]> git.eshelyaron.com Git - emacs.git/commitdiff
(tramp-file-name-handler): Inhibit modification hooks to avoid
authorChong Yidong <cyd@stupidchicken.com>
Wed, 28 Feb 2007 01:35:20 +0000 (01:35 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 28 Feb 2007 01:35:20 +0000 (01:35 +0000)
confusion when combining after-change calls.

lisp/net/tramp.el

index 602c6d25eaa0957f0e92c3fc7336c474348f2332..73cab23d1d9c146e17b40e648dc76a8a5a362e14 100644 (file)
@@ -4348,7 +4348,12 @@ Falls back to normal file name handler if no tramp file name handler exists."
   (save-match-data
     (let* ((filename (apply 'tramp-file-name-for-operation operation args))
           (completion (tramp-completion-mode filename))
-          (foreign (tramp-find-foreign-file-name-handler filename)))
+          (foreign (tramp-find-foreign-file-name-handler filename))
+          ;; If combine-after-change-calls is t, it is possible to
+          ;; get Emacs into a confused state since the backend
+          ;; handlers can scribble to temp buffers, e.g. through
+          ;; format-spec.  So we ignore all modification hooks.
+          (inhibit-modification-hooks t))
       (with-parsed-tramp-file-name filename nil
        (cond
         ;; When we are in completion mode, some operations shouldn' be