aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/backups.texi
diff options
context:
space:
mode:
authorChong Yidong2012-09-23 18:46:50 +0800
committerChong Yidong2012-09-23 18:46:50 +0800
commite109c4a6514ce0e930f63df1ead56eda1703afcf (patch)
treef1a258be38f7b304561abff46a4fe4ad8fdc35fa /doc/lispref/backups.texi
parent9a93067632c0fc183ad5fb4ef44edc4ea8373716 (diff)
downloademacs-e109c4a6514ce0e930f63df1ead56eda1703afcf.tar.gz
emacs-e109c4a6514ce0e930f63df1ead56eda1703afcf.zip
Doc updates for read-only-mode.
* buffers.texi (Misc Buffer): Replace toggle-read-only with read-only-mode. * files.texi (Visiting): Likewise. * backups.texi (Auto-Saving): Refer to Minor Mode Conventions for calling conventions. * buffers.texi (Read Only Buffers): Document read-only-mode. * keymaps.texi (Alias Menu Items): Replace toggle-read-only with read-only-mode.
Diffstat (limited to 'doc/lispref/backups.texi')
-rw-r--r--doc/lispref/backups.texi14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi
index 04aa28e9f04..935a49116cd 100644
--- a/doc/lispref/backups.texi
+++ b/doc/lispref/backups.texi
@@ -441,12 +441,14 @@ buffer-auto-save-file-name
441@end defvar 441@end defvar
442 442
443@deffn Command auto-save-mode arg 443@deffn Command auto-save-mode arg
444When used interactively without an argument, this command is a toggle 444This is the mode command for Auto Save mode, a buffer-local minor
445switch: it turns on auto-saving of the current buffer if it is off, 445mode. When Auto Save mode is enabled, auto-saving is enabled in the
446and vice versa. When called from Lisp with no argument, it turns 446buffer. The calling convention is the same as for other minor mode
447auto-saving on. With an argument @var{arg}, it turns auto-saving on 447commands (@pxref{Minor Mode Conventions}).
448if the value of @var{arg} is @code{t}, a nonempty list, or a positive 448
449integer; otherwise, it turns auto-saving off. 449Unlike most minor modes, there is no @code{auto-save-mode} variable.
450Auto Save mode is enabled if @code{buffer-auto-save-file-name} is
451non-@code{nil} and @code{buffer-saved-size} (see below) is non-zero.
450@end deffn 452@end deffn
451 453
452@defun auto-save-file-name-p filename 454@defun auto-save-file-name-p filename