# HG changeset patch # User Michael Albinus # Date 1213536990 0 # Node ID a20bb74ebe03ad6c42fbcf16a762d03123fbdfe1 # Parent 59534766a79931735be7e67fd557710d5d61ba5f * net/tramp.el (tramp-handle-start-file-process): Clear modification time of the connection buffer. (tramp-sh-file-name-handler): Reset `tramp-locked' in case of error. diff -r 59534766a799 -r a20bb74ebe03 lisp/net/tramp.el --- a/lisp/net/tramp.el Sun Jun 15 12:26:28 2008 +0000 +++ b/lisp/net/tramp.el Sun Jun 15 13:36:30 2008 +0000 @@ -3681,7 +3681,10 @@ ;; BUFFER can be nil. (get-buffer-create (or buffer (current-buffer)))) ;; Activate narrowing in order to save BUFFER contents. + ;; Clear also the modification time; otherwise we might be + ;; interrupted by `verify-visited-file-modtime'. (with-current-buffer (tramp-get-connection-buffer v) + (clear-visited-file-modtime) (narrow-to-region (point-max) (point-max))) ;; Goto working directory. `tramp-send-command' opens a new ;; connection. @@ -4564,6 +4567,7 @@ "Invoke remote-shell Tramp file name handler. Fall back to normal file name handler if no Tramp handler exists." (when (and tramp-locked (not tramp-locker)) + (setq tramp-locked nil) (signal 'file-error (list "Forbidden reentrant call of Tramp"))) (let ((tl tramp-locked)) (unwind-protect @@ -7515,6 +7519,8 @@ ;; * Make `tramp-default-user' obsolete. ;; * Tramp shall reconnect automatically to its ssh connection when it ;; detects that the process "has died". (David Reitter) +;; * How can I interrupt the remote process with a signal +;; (interrupt-process seems not to work)? (Markus Triska) ;; Functions for file-name-handler-alist: ;; diff-latest-backup-file -- in diff.el