aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-02-28 01:35:20 +0000
committerChong Yidong2007-02-28 01:35:20 +0000
commitcd00d0a053b5d3c24ceb78b18e8fd306a243c95e (patch)
tree096ee71fd90005d4034c7f65027fe3a3e8ef6dba
parent17282c9b75cd70dfd2a33c85a9384dcccc651c8b (diff)
downloademacs-cd00d0a053b5d3c24ceb78b18e8fd306a243c95e.tar.gz
emacs-cd00d0a053b5d3c24ceb78b18e8fd306a243c95e.zip
(tramp-file-name-handler): Inhibit modification hooks to avoid
confusion when combining after-change calls.
-rw-r--r--lisp/net/tramp.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 602c6d25eaa..73cab23d1d9 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4348,7 +4348,12 @@ Falls back to normal file name handler if no tramp file name handler exists."
4348 (save-match-data 4348 (save-match-data
4349 (let* ((filename (apply 'tramp-file-name-for-operation operation args)) 4349 (let* ((filename (apply 'tramp-file-name-for-operation operation args))
4350 (completion (tramp-completion-mode filename)) 4350 (completion (tramp-completion-mode filename))
4351 (foreign (tramp-find-foreign-file-name-handler filename))) 4351 (foreign (tramp-find-foreign-file-name-handler filename))
4352 ;; If combine-after-change-calls is t, it is possible to
4353 ;; get Emacs into a confused state since the backend
4354 ;; handlers can scribble to temp buffers, e.g. through
4355 ;; format-spec. So we ignore all modification hooks.
4356 (inhibit-modification-hooks t))
4352 (with-parsed-tramp-file-name filename nil 4357 (with-parsed-tramp-file-name filename nil
4353 (cond 4358 (cond
4354 ;; When we are in completion mode, some operations shouldn' be 4359 ;; When we are in completion mode, some operations shouldn' be