aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-06-15 13:36:30 +0000
committerMichael Albinus2008-06-15 13:36:30 +0000
commit11c712173eb2b012b45bde54a2815810c953edb5 (patch)
tree24f56dd4ed346a025decf18ffde33560b1e12943
parent9f2960826522ec553f16ad1f8aa64a041b2f0ac7 (diff)
downloademacs-11c712173eb2b012b45bde54a2815810c953edb5.tar.gz
emacs-11c712173eb2b012b45bde54a2815810c953edb5.zip
* 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.
-rw-r--r--lisp/net/tramp.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 546bb69b02f..943a7a66b55 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3681,7 +3681,10 @@ beginning of local filename are not substituted."
3681 ;; BUFFER can be nil. 3681 ;; BUFFER can be nil.
3682 (get-buffer-create (or buffer (current-buffer)))) 3682 (get-buffer-create (or buffer (current-buffer))))
3683 ;; Activate narrowing in order to save BUFFER contents. 3683 ;; Activate narrowing in order to save BUFFER contents.
3684 ;; Clear also the modification time; otherwise we might be
3685 ;; interrupted by `verify-visited-file-modtime'.
3684 (with-current-buffer (tramp-get-connection-buffer v) 3686 (with-current-buffer (tramp-get-connection-buffer v)
3687 (clear-visited-file-modtime)
3685 (narrow-to-region (point-max) (point-max))) 3688 (narrow-to-region (point-max) (point-max)))
3686 ;; Goto working directory. `tramp-send-command' opens a new 3689 ;; Goto working directory. `tramp-send-command' opens a new
3687 ;; connection. 3690 ;; connection.
@@ -4564,6 +4567,7 @@ preventing reentrant calls of Tramp.")
4564 "Invoke remote-shell Tramp file name handler. 4567 "Invoke remote-shell Tramp file name handler.
4565Fall back to normal file name handler if no Tramp handler exists." 4568Fall back to normal file name handler if no Tramp handler exists."
4566 (when (and tramp-locked (not tramp-locker)) 4569 (when (and tramp-locked (not tramp-locker))
4570 (setq tramp-locked nil)
4567 (signal 'file-error (list "Forbidden reentrant call of Tramp"))) 4571 (signal 'file-error (list "Forbidden reentrant call of Tramp")))
4568 (let ((tl tramp-locked)) 4572 (let ((tl tramp-locked))
4569 (unwind-protect 4573 (unwind-protect
@@ -7515,6 +7519,8 @@ Only works for Bourne-like shells."
7515;; * Make `tramp-default-user' obsolete. 7519;; * Make `tramp-default-user' obsolete.
7516;; * Tramp shall reconnect automatically to its ssh connection when it 7520;; * Tramp shall reconnect automatically to its ssh connection when it
7517;; detects that the process "has died". (David Reitter) 7521;; detects that the process "has died". (David Reitter)
7522;; * How can I interrupt the remote process with a signal
7523;; (interrupt-process seems not to work)? (Markus Triska)
7518 7524
7519;; Functions for file-name-handler-alist: 7525;; Functions for file-name-handler-alist:
7520;; diff-latest-backup-file -- in diff.el 7526;; diff-latest-backup-file -- in diff.el