[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master f43306a: Fix Bug#20621
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] master f43306a: Fix Bug#20621 |
Date: |
Tue, 26 May 2015 07:36:31 +0000 |
branch: master
commit f43306aed9fbfbaa7534f47a92e0176f309e0f30
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
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
---
lisp/net/tramp-sh.el | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 493f3d1..46588f0 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."
(tramp-set-connection-property
(tramp-get-connection-process vec) "scripts" (cons name scripts))))))
-(defun tramp-set-auto-save ()
- (when (and ;; ange-ftp has its own auto-save mechanism.
- (eq (tramp-find-foreign-file-name-handler (buffer-file-name))
- 'tramp-sh-file-name-handler)
- ;; epa has its own auto-save mechanism.
- (not epa-file-inhibit-auto-save)
- auto-save-default)
- (auto-save-mode 1)))
-(add-hook 'find-file-hooks 'tramp-set-auto-save t)
-(add-hook 'tramp-unload-hook
- (lambda ()
- (remove-hook 'find-file-hooks 'tramp-set-auto-save)))
-
(defun tramp-run-test (switch filename)
"Run `test' on the remote system, given a SWITCH and a FILENAME.
Returns the exit code of the `test' program."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master f43306a: Fix Bug#20621,
Michael Albinus <=