mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Expand docstrings related to auto-saving
* lisp/files.el (auto-save-visited-mode): * lisp/simple.el (auto-save-mode): Expand docstring.
This commit is contained in:
parent
28c5c27162
commit
d5e1424174
2 changed files with 19 additions and 2 deletions
|
@ -421,6 +421,9 @@ idle for `auto-save-visited-interval' seconds."
|
||||||
(define-minor-mode auto-save-visited-mode
|
(define-minor-mode auto-save-visited-mode
|
||||||
"Toggle automatic saving to file-visiting buffers on or off.
|
"Toggle automatic saving to file-visiting buffers on or off.
|
||||||
|
|
||||||
|
When this mode is enabled, visited files are saved automatically.
|
||||||
|
The user option `auto-save-visited-interval' controls how often.
|
||||||
|
|
||||||
Unlike `auto-save-mode', this mode will auto-save buffer contents
|
Unlike `auto-save-mode', this mode will auto-save buffer contents
|
||||||
to the visited files directly and will also run all save-related
|
to the visited files directly and will also run all save-related
|
||||||
hooks. See Info node `Saving' for details of the save process.
|
hooks. See Info node `Saving' for details of the save process.
|
||||||
|
@ -429,7 +432,9 @@ You can also set the buffer-local value of the variable
|
||||||
`auto-save-visited-mode' to nil. A buffer where the buffer-local
|
`auto-save-visited-mode' to nil. A buffer where the buffer-local
|
||||||
value of this variable is nil is ignored for the purpose of
|
value of this variable is nil is ignored for the purpose of
|
||||||
`auto-save-visited-mode', even if `auto-save-visited-mode' is
|
`auto-save-visited-mode', even if `auto-save-visited-mode' is
|
||||||
enabled."
|
enabled.
|
||||||
|
|
||||||
|
For more details, see Info node `(emacs) Auto Save Files'."
|
||||||
:group 'auto-save
|
:group 'auto-save
|
||||||
:global t
|
:global t
|
||||||
(when auto-save--timer (cancel-timer auto-save--timer))
|
(when auto-save--timer (cancel-timer auto-save--timer))
|
||||||
|
|
|
@ -8398,7 +8398,19 @@ presented."
|
||||||
:global t :group 'mode-line)
|
:global t :group 'mode-line)
|
||||||
|
|
||||||
(define-minor-mode auto-save-mode
|
(define-minor-mode auto-save-mode
|
||||||
"Toggle auto-saving in the current buffer (Auto Save mode)."
|
"Toggle auto-saving in the current buffer (Auto Save mode).
|
||||||
|
|
||||||
|
When this mode is enabled, Emacs periodically saves each visited
|
||||||
|
file in a separate file called the \"auto-save file\". This is a
|
||||||
|
safety measure to prevent you from losing more than a limited
|
||||||
|
amount of work if the system crashes.
|
||||||
|
|
||||||
|
Auto-saving does not alter the file you actually use: the visited
|
||||||
|
file is changed only when you request saving it explicitly (such
|
||||||
|
as with \\[save-buffer]). If you want to save visited files
|
||||||
|
automatically, use \\[auto-save-visited-mode]).
|
||||||
|
|
||||||
|
For more details, see Info node `(emacs) Auto Save'."
|
||||||
:variable ((and buffer-auto-save-file-name
|
:variable ((and buffer-auto-save-file-name
|
||||||
;; If auto-save is off because buffer has shrunk,
|
;; If auto-save is off because buffer has shrunk,
|
||||||
;; then toggling should turn it on.
|
;; then toggling should turn it on.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue