tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crazy idea: generate a pseudo-random value for tramp-end-of-output


From: Francis Litterio
Subject: Re: Crazy idea: generate a pseudo-random value for tramp-end-of-output
Date: Fri, 11 Oct 2002 07:40:41 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.0.2195)

Daniel Pittman writes:

> On Thu, 10 Oct 2002, Francis Litterio wrote:
>> Here's a crazy solution to the issue where the string "/////" cannot
>> appear in the output of a remote command:

> It's not crazy; it's something that I did myself when I was last working
> on TRAMP. The changes never got submitted, though. I think that this is
> a good change.

In that case, here's a diff against tramp.el r2.241:

diff -u -r2.241 tramp.el
--- tramp.el    11 Oct 2002 07:57:48 -0000      2.241
+++ tramp.el    11 Oct 2002 11:40:23 -0000
@@ -1254,7 +1254,12 @@
 the visited file modtime.")
 (make-variable-buffer-local 'tramp-buffer-file-attributes)
 
-(defvar tramp-end-of-output "/////"
+(require 'time-stamp)
+(defvar tramp-end-of-output
+  (md5 (concat (prin1-to-string process-environment)
+              (time-stamp-yyyy-mm-dd)
+              (time-stamp-hh:mm:ss)
+              (prin1-to-string (directory-files-and-attributes (getenv 
"HOME")))))
   "String used to recognize end of output.")
 
 (defvar tramp-connection-function nil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]