aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-02-02 19:12:29 -0800
committerGlenn Morris2014-02-02 19:12:29 -0800
commitbe445cf2abe016f00c59964268d6d46c3b5da421 (patch)
treed7bf75452e21a9528d6f389a278424e90f403254
parentf16a3d523afc1a0c6bf7095f5f755ca16f8419d0 (diff)
downloademacs-be445cf2abe016f00c59964268d6d46c3b5da421.tar.gz
emacs-be445cf2abe016f00c59964268d6d46c3b5da421.zip
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.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/misc.texi8
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/desktop.el4
5 files changed, 19 insertions, 4 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 4478e4bd72c..c8508c39280 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12014-02-03 Glenn Morris <rgm@gnu.org>
2
3 * misc.texi (Saving Emacs Sessions): Mention desktop-auto-save-timeout.
4
12014-02-02 Glenn Morris <rgm@gnu.org> 52014-02-02 Glenn Morris <rgm@gnu.org>
2 6
3 * regs.texi (Registers): Mention previewing. 7 * regs.texi (Registers): Mention previewing.
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index e2151e9144c..f89ebabd27a 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -2141,7 +2141,8 @@ subsequent Emacs sessions reload the saved desktop.
2141@vindex desktop-save-mode 2141@vindex desktop-save-mode
2142 You can save the desktop manually with the command @kbd{M-x 2142 You can save the desktop manually with the command @kbd{M-x
2143desktop-save}. You can also enable automatic saving of the desktop 2143desktop-save}. You can also enable automatic saving of the desktop
2144when you exit Emacs, and automatic restoration of the last saved 2144at regular intervals and when you exit Emacs, and automatic restoration
2145of the last saved
2145desktop when Emacs starts: use the Customization buffer (@pxref{Easy 2146desktop when Emacs starts: use the Customization buffer (@pxref{Easy
2146Customization}) to set @code{desktop-save-mode} to @code{t} for future 2147Customization}) to set @code{desktop-save-mode} to @code{t} for future
2147sessions, or add this line in your init file (@pxref{Init File}): 2148sessions, 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}):
2150(desktop-save-mode 1) 2151(desktop-save-mode 1)
2151@end example 2152@end example
2152 2153
2154@vindex desktop-auto-save-timeout
2155@noindent
2156Emacs then auto-saves the desktop every @code{desktop-auto-save-timeout}
2157seconds, if that is non-@code{nil} and non-zero.
2158
2153@findex desktop-change-dir 2159@findex desktop-change-dir
2154@findex desktop-revert 2160@findex desktop-revert
2155@vindex desktop-path 2161@vindex desktop-path
diff --git a/etc/NEWS b/etc/NEWS
index cfcb74cf782..b8251c9c87f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -458,8 +458,9 @@ if your version doesn't support that option. See option `cfengine-cf-promises'.
458 458
459** Desktop 459** Desktop
460 460
461*** `desktop-auto-save-timeout' defines the number of seconds idle time 461+++
462before auto-save of the desktop. 462*** By default, the desktop is now auto-saved after `desktop-auto-save-timeout'.
463To disable this, customize that option to nil (or zero).
463 464
464*** `desktop-restore-frames', enabled by default, allows saving and 465*** `desktop-restore-frames', enabled by default, allows saving and
465restoring the frame/window configuration (frameset). Additional options 466restoring the frame/window configuration (frameset). Additional options
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b4391a165d3..cc6e8ac5805 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12014-02-03 Glenn Morris <rgm@gnu.org> 12014-02-03 Glenn Morris <rgm@gnu.org>
2 2
3 * desktop.el (desktop-save-mode): Doc fix.
4
3 * frameset.el (frameset-to-register): 5 * frameset.el (frameset-to-register):
4 * kmacro.el (kmacro-to-register): 6 * kmacro.el (kmacro-to-register):
5 * register.el (increment-register): 7 * register.el (increment-register):
diff --git a/lisp/desktop.el b/lisp/desktop.el
index 78ecc2f5376..f603a413a82 100644
--- a/lisp/desktop.el
+++ b/lisp/desktop.el
@@ -160,7 +160,9 @@ the mode if ARG is omitted or nil.
160 160
161If Desktop Save mode is enabled, the state of Emacs is saved from 161If Desktop Save mode is enabled, the state of Emacs is saved from
162one session to another. See variable `desktop-save' and function 162one session to another. See variable `desktop-save' and function
163`desktop-read' for details." 163`desktop-read' for details.
164
165For options you can set, browse the `desktop' customization group."
164 :global t 166 :global t
165 :group 'desktop) 167 :group 'desktop)
166 168