aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el13
-rw-r--r--lisp/simple.el18
2 files changed, 16 insertions, 15 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 2ea9d1e4673..b99ccf66d8a 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -475,14 +475,15 @@ Any other value means that it will not."
475 :version "29.1") 475 :version "29.1")
476 476
477(define-minor-mode auto-save-visited-mode 477(define-minor-mode auto-save-visited-mode
478 "Toggle automatic saving to file-visiting buffers on or off. 478 "Toggle automatic saving of file-visiting buffers to their files.
479 479
480When this mode is enabled, visited files are saved automatically. 480When this mode is enabled, file-visiting buffers are automatically
481The user option `auto-save-visited-interval' controls how often. 481saved to their files. This is in contrast to `auto-save-mode', which
482auto-saves those buffers to a separate file, leaving the original
483file intact. See Info node `Saving' for details of the save process.
482 484
483Unlike `auto-save-mode', this mode will auto-save buffer contents 485The user option `auto-save-visited-interval' controls how often to
484to the visited files directly and will also run all save-related 486auto-save a buffer into its visited file.
485hooks. See Info node `Saving' for details of the save process.
486 487
487You can use `auto-save-visited-predicate' to control which 488You can use `auto-save-visited-predicate' to control which
488buffers are saved. 489buffers are saved.
diff --git a/lisp/simple.el b/lisp/simple.el
index caba924f6a5..e048df36951 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -8926,15 +8926,15 @@ presented."
8926(define-minor-mode auto-save-mode 8926(define-minor-mode auto-save-mode
8927 "Toggle auto-saving in the current buffer (Auto Save mode). 8927 "Toggle auto-saving in the current buffer (Auto Save mode).
8928 8928
8929When this mode is enabled, Emacs periodically saves each visited 8929When this mode is enabled, Emacs periodically saves each file-visiting
8930file in a separate file called the \"auto-save file\". This is a 8930buffer in a separate \"auto-save file\". This is a safety measure to
8931safety measure to prevent you from losing more than a limited 8931prevent you from losing more than a limited amount of work if the
8932amount of work if the system crashes. 8932system crashes.
8933 8933
8934Auto-saving does not alter the file you actually use: the visited 8934Auto-saving does not alter the file visited by the buffer: the visited
8935file is changed only when you request saving it explicitly (such 8935file is changed only when you request saving it explicitly (such as
8936as with \\[save-buffer]). If you want to save visited files 8936with \\[save-buffer]). If you want to save the buffer into its
8937automatically, use \\[auto-save-visited-mode]). 8937visited files automatically, use \\[auto-save-visited-mode]).
8938 8938
8939For more details, see Info node `(emacs) Auto Save'." 8939For more details, see Info node `(emacs) Auto Save'."
8940 :variable ((and buffer-auto-save-file-name 8940 :variable ((and buffer-auto-save-file-name