Variable: desktop-auto-save-timeout
desktop-auto-save-timeout is a customizable variable defined in
desktop.el.gz.
Value
30
Documentation
Number of seconds of idle time before auto-saving the desktop.
The desktop will be auto-saved when this amount of idle time have
passed after some change in the window configuration.
This applies to an existing desktop file when desktop-save-mode(var)/desktop-save-mode(fun) is enabled.
Zero or nil means disable auto-saving due to idleness.
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/desktop.el.gz
(defcustom desktop-auto-save-timeout auto-save-timeout
"Number of seconds of idle time before auto-saving the desktop.
The desktop will be auto-saved when this amount of idle time have
passed after some change in the window configuration.
This applies to an existing desktop file when `desktop-save-mode' is enabled.
Zero or nil means disable auto-saving due to idleness."
:type '(choice (const :tag "Off" nil)
(integer :tag "Seconds"))
:set (lambda (symbol value)
(set-default symbol value)
(ignore-errors
(if (and (integerp value) (> value 0))
(desktop-auto-save-enable value)
(desktop-auto-save-disable))))
:version "24.4")