1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

(tramp-file-name-handler): Inhibit modification hooks to avoid

confusion when combining after-change calls.
This commit is contained in:
Chong Yidong 2007-02-28 01:35:20 +00:00
parent 17282c9b75
commit cd00d0a053

View 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