]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-error-with-buffer): Give a hint to use
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 18 Dec 2012 13:37:06 +0000 (14:37 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 18 Dec 2012 13:37:06 +0000 (14:37 +0100)
`tramp-cleanup-this-connection', when the process has died.
(Bug#13151)

lisp/ChangeLog
lisp/net/tramp.el

index 9d05f2fcc26da56243f30609a9cfdb00866cd2aa..39fa4b2ef49afd29c7db64cde28efccc943a1028 100644 (file)
@@ -1,3 +1,9 @@
+2012-12-18  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-error-with-buffer): Give a hint to use
+       `tramp-cleanup-this-connection', when the process has died.
+       (Bug#13151)
+
 2012-12-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * icomplete.el (icomplete-completions): Also use … to truncate prefix.
index a4be6eab41f65e12a12205c10767d68cc21b5d84..bc220a33b2a12d6389867e57eb1288dcaf3dfa8d 100644 (file)
@@ -1455,6 +1455,11 @@ an input event arrives.  The other arguments are passed to `tramp-error'."
           (or (and (bufferp buffer) buffer)
               (and (processp vec-or-proc) (process-buffer vec-or-proc))
               (tramp-get-connection-buffer vec-or-proc)))
+         (when (string-equal fmt-string "Process died")
+           (message
+            "%s\n    %s"
+            "Tramp failed to connect.  If this happens repeatedly, try"
+            "`M-x tramp-cleanup-this-connection'"))
          (sit-for 30))))))
 
 (defmacro with-parsed-tramp-file-name (filename var &rest body)