Fix doc strings in desktop.el
* lisp/desktop.el (desktop-auto-save-timeout) (desktop-auto-save-set-timer): Doc fixes. (Bug#28945)
This commit is contained in:
parent
9102fb603e
commit
d43b486f6c
1 changed files with 7 additions and 5 deletions
|
@ -216,8 +216,9 @@ determine where the desktop is saved."
|
|||
:version "22.1")
|
||||
|
||||
(defcustom desktop-auto-save-timeout auto-save-timeout
|
||||
"Number of seconds idle time before auto-save of the desktop.
|
||||
The idle timer activates auto-saving only when window configuration changes.
|
||||
"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)
|
||||
|
@ -1362,10 +1363,11 @@ Called by the timer created in `desktop-auto-save-set-timer'."
|
|||
(desktop-save desktop-dirname nil t)))
|
||||
|
||||
(defun desktop-auto-save-set-timer ()
|
||||
"Set the auto-save timer.
|
||||
"Set the desktop auto-save timer.
|
||||
Cancel any previous timer. When `desktop-auto-save-timeout' is a positive
|
||||
integer, start a new idle timer to call `desktop-auto-save' repeatedly
|
||||
after that many seconds of idle time."
|
||||
integer, start a new idle timer to call `desktop-auto-save' after that many
|
||||
seconds of idle time.
|
||||
This function is called from `window-configuration-change-hook'."
|
||||
(desktop-auto-save-cancel-timer)
|
||||
(when (and (integerp desktop-auto-save-timeout)
|
||||
(> desktop-auto-save-timeout 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue