diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-07-05 19:37:55 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-07-05 19:48:54 +0200 |
commit | fe82c0743b3feecb9b80549ef4bb3dc8529891a8 (patch) | |
tree | 33ec29e5db1e385dd72b24b850673ac6e18fbfe2 /lisp/files.el | |
parent | 89c589bae47fa7faa7273a9df0f4be836e9da29b (diff) | |
download | emacs-fe82c0743b3feecb9b80549ef4bb3dc8529891a8.tar.gz emacs-fe82c0743b3feecb9b80549ef4bb3dc8529891a8.tar.bz2 emacs-fe82c0743b3feecb9b80549ef4bb3dc8529891a8.zip |
Rename new option to remote-file-name-inhibit-auto-save-visited
* lisp/files.el (remote-file-name-inhibit-auto-save-visited):
Rename from 'auto-save-visited-remote-files' and invert logic.
(auto-save-visited-mode): Adjust accordingly. (Bug#41333)
Suggested by Michael Albinus <michael.albinus@gmx.de>.
Diffstat (limited to 'lisp/files.el')
-rw-r--r-- | lisp/files.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el index 9eeed836c99..31e450355f1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -469,8 +469,9 @@ non-nil." :risky t :version "29.1") -(defcustom auto-save-visited-remote-files t - "If non-nil, `auto-save-visited-mode' will auto-save remote files." +(defcustom remote-file-name-inhibit-auto-save-visited nil + "When nil, `auto-save-visited-mode' will auto-save remote files. +Any other value means that it will not." :group 'auto-save :type 'boolean :version "29.1") @@ -509,7 +510,7 @@ For more details, see Info node `(emacs) Auto Save Files'." (not (and buffer-auto-save-file-name auto-save-visited-file-name)) (or (not (file-remote-p buffer-file-name)) - auto-save-visited-remote-files) + (not remote-file-name-inhibit-auto-save-visited)) (or (not (functionp auto-save-visited-predicate)) (funcall auto-save-visited-predicate)))))))) |