Some doc for desktop-auto-save-timeout

* doc/emacs/misc.texi (Saving Emacs Sessions):
Mention desktop-auto-save-timeout.

* lisp/desktop.el (desktop-save-mode): Doc fix.

* etc/NEWS: Related edit.
This commit is contained in:
Glenn Morris 2014-02-02 19:12:29 -08:00
parent f16a3d523a
commit be445cf2ab
5 changed files with 19 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2014-02-03 Glenn Morris <rgm@gnu.org>
* misc.texi (Saving Emacs Sessions): Mention desktop-auto-save-timeout.
2014-02-02 Glenn Morris <rgm@gnu.org>
* regs.texi (Registers): Mention previewing.

View file

@ -2141,7 +2141,8 @@ subsequent Emacs sessions reload the saved desktop.
@vindex desktop-save-mode
You can save the desktop manually with the command @kbd{M-x
desktop-save}. You can also enable automatic saving of the desktop
when you exit Emacs, and automatic restoration of the last saved
at regular intervals and when you exit Emacs, and automatic restoration
of the last saved
desktop when Emacs starts: use the Customization buffer (@pxref{Easy
Customization}) to set @code{desktop-save-mode} to @code{t} for future
sessions, or add this line in your init file (@pxref{Init File}):
@ -2150,6 +2151,11 @@ sessions, or add this line in your init file (@pxref{Init File}):
(desktop-save-mode 1)
@end example
@vindex desktop-auto-save-timeout
@noindent
Emacs then auto-saves the desktop every @code{desktop-auto-save-timeout}
seconds, if that is non-@code{nil} and non-zero.
@findex desktop-change-dir
@findex desktop-revert
@vindex desktop-path

View file

@ -458,8 +458,9 @@ if your version doesn't support that option. See option `cfengine-cf-promises'.
** Desktop
*** `desktop-auto-save-timeout' defines the number of seconds idle time
before auto-save of the desktop.
+++
*** By default, the desktop is now auto-saved after `desktop-auto-save-timeout'.
To disable this, customize that option to nil (or zero).
*** `desktop-restore-frames', enabled by default, allows saving and
restoring the frame/window configuration (frameset). Additional options

View file

@ -1,5 +1,7 @@
2014-02-03 Glenn Morris <rgm@gnu.org>
* desktop.el (desktop-save-mode): Doc fix.
* frameset.el (frameset-to-register):
* kmacro.el (kmacro-to-register):
* register.el (increment-register):

View file

@ -160,7 +160,9 @@ the mode if ARG is omitted or nil.
If Desktop Save mode is enabled, the state of Emacs is saved from
one session to another. See variable `desktop-save' and function
`desktop-read' for details."
`desktop-read' for details.
For options you can set, browse the `desktop' customization group."
:global t
:group 'desktop)