diff options
| author | Stefan Kangas | 2022-07-10 06:30:35 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-07-10 06:30:35 +0200 |
| commit | c8c8bbd8551e1c19e9b76fe1e1f36e52e55ed040 (patch) | |
| tree | 7c67f71c911bc37272433cbe19c9efb50aaf939f | |
| parent | 932cf200bb607ed7fdcef82ef3c0f1d1c1bd7c3b (diff) | |
| parent | 115261b323a73aaf5253b3052f433895c8b77881 (diff) | |
| download | emacs-c8c8bbd8551e1c19e9b76fe1e1f36e52e55ed040.tar.gz emacs-c8c8bbd8551e1c19e9b76fe1e1f36e52e55ed040.zip | |
Merge from origin/emacs-28
115261b323 ; Improve wording of recently-changed doc strings.
| -rw-r--r-- | lisp/files.el | 13 | ||||
| -rw-r--r-- | lisp/simple.el | 18 |
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 | ||
| 480 | When this mode is enabled, visited files are saved automatically. | 480 | When this mode is enabled, file-visiting buffers are automatically |
| 481 | The user option `auto-save-visited-interval' controls how often. | 481 | saved to their files. This is in contrast to `auto-save-mode', which |
| 482 | auto-saves those buffers to a separate file, leaving the original | ||
| 483 | file intact. See Info node `Saving' for details of the save process. | ||
| 482 | 484 | ||
| 483 | Unlike `auto-save-mode', this mode will auto-save buffer contents | 485 | The user option `auto-save-visited-interval' controls how often to |
| 484 | to the visited files directly and will also run all save-related | 486 | auto-save a buffer into its visited file. |
| 485 | hooks. See Info node `Saving' for details of the save process. | ||
| 486 | 487 | ||
| 487 | You can use `auto-save-visited-predicate' to control which | 488 | You can use `auto-save-visited-predicate' to control which |
| 488 | buffers are saved. | 489 | buffers 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 | ||
| 8929 | When this mode is enabled, Emacs periodically saves each visited | 8929 | When this mode is enabled, Emacs periodically saves each file-visiting |
| 8930 | file in a separate file called the \"auto-save file\". This is a | 8930 | buffer in a separate \"auto-save file\". This is a safety measure to |
| 8931 | safety measure to prevent you from losing more than a limited | 8931 | prevent you from losing more than a limited amount of work if the |
| 8932 | amount of work if the system crashes. | 8932 | system crashes. |
| 8933 | 8933 | ||
| 8934 | Auto-saving does not alter the file you actually use: the visited | 8934 | Auto-saving does not alter the file visited by the buffer: the visited |
| 8935 | file is changed only when you request saving it explicitly (such | 8935 | file is changed only when you request saving it explicitly (such as |
| 8936 | as with \\[save-buffer]). If you want to save visited files | 8936 | with \\[save-buffer]). If you want to save the buffer into its |
| 8937 | automatically, use \\[auto-save-visited-mode]). | 8937 | visited files automatically, use \\[auto-save-visited-mode]). |
| 8938 | 8938 | ||
| 8939 | For more details, see Info node `(emacs) Auto Save'." | 8939 | For more details, see Info node `(emacs) Auto Save'." |
| 8940 | :variable ((and buffer-auto-save-file-name | 8940 | :variable ((and buffer-auto-save-file-name |