1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

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>.
This commit is contained in:
Stefan Kangas 2022-07-05 19:37:55 +02:00
parent 89c589bae4
commit fe82c0743b
2 changed files with 7 additions and 6 deletions

View File

@ -2009,9 +2009,9 @@ You can use it to automatically save only specific buffers, for
example buffers using a particular mode or in some directory.
---
*** New user option 'auto-save-visited-remote-files'.
This user option controls whether or not 'auto-save-visited-mode' will
auto-save remote buffers. The default is t.
*** New user option 'remote-file-name-inhibit-auto-save-visited'.
If this user option is non-nil, 'auto-save-visited-mode' will not
auto-save remote buffers. The default is nil.
+++
*** New package vtable.el for formatting tabular data.

View File

@ -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))))))))