aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2015-05-26 09:35:38 +0200
committerMichael Albinus2015-05-26 09:35:38 +0200
commitf43306aed9fbfbaa7534f47a92e0176f309e0f30 (patch)
tree5a547e60bec60797d3755a762a4b9280ef1cc8e5
parentdb87b14e7c9368e231fb0396bc4fd1aad56cf849 (diff)
downloademacs-f43306aed9fbfbaa7534f47a92e0176f309e0f30.tar.gz
emacs-f43306aed9fbfbaa7534f47a92e0176f309e0f30.zip
Fix Bug#20621
* lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it. There are major modes which set `auto-save-mode' on their own rules; Tramp shall not overwrite such settings. Fixes: debbugs:20621
-rw-r--r--lisp/net/tramp-sh.el13
1 files changed, 0 insertions, 13 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 493f3d11e5b..46588f07630 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3754,19 +3754,6 @@ Only send the definition if it has not already been done."
3754 (tramp-set-connection-property 3754 (tramp-set-connection-property
3755 (tramp-get-connection-process vec) "scripts" (cons name scripts)))))) 3755 (tramp-get-connection-process vec) "scripts" (cons name scripts))))))
3756 3756
3757(defun tramp-set-auto-save ()
3758 (when (and ;; ange-ftp has its own auto-save mechanism.
3759 (eq (tramp-find-foreign-file-name-handler (buffer-file-name))
3760 'tramp-sh-file-name-handler)
3761 ;; epa has its own auto-save mechanism.
3762 (not epa-file-inhibit-auto-save)
3763 auto-save-default)
3764 (auto-save-mode 1)))
3765(add-hook 'find-file-hooks 'tramp-set-auto-save t)
3766(add-hook 'tramp-unload-hook
3767 (lambda ()
3768 (remove-hook 'find-file-hooks 'tramp-set-auto-save)))
3769
3770(defun tramp-run-test (switch filename) 3757(defun tramp-run-test (switch filename)
3771 "Run `test' on the remote system, given a SWITCH and a FILENAME. 3758 "Run `test' on the remote system, given a SWITCH and a FILENAME.
3772Returns the exit code of the `test' program." 3759Returns the exit code of the `test' program."