Variable: desktop-load-locked-desktop
desktop-load-locked-desktop is a customizable variable defined in
desktop.el.gz.
Value
ask
Documentation
Specifies whether the desktop should be loaded if locked.
Possible values are:
t -- load anyway.
nil -- don't load.
ask -- ask the user.
check-pid -- load if locking Emacs process is missing locally.
If the value is nil, or ask and the user chooses not to load
the desktop, the normal hook desktop-not-loaded-hook is run.
If the value is check-pid, load the desktop if the Emacs
process that has locked it is not running on the local machine.
This should not be used in circumstances where the locking Emacs
might still be running on another machine. That could be the
case if you have remotely mounted (NFS) paths in
desktop-dirname.
This variable was added, or its default value changed, in Emacs 22.2.
Probably introduced at or before Emacs version 22.2.
Source Code
;; Defined in /usr/src/emacs/lisp/desktop.el.gz
(defcustom desktop-load-locked-desktop 'ask
"Specifies whether the desktop should be loaded if locked.
Possible values are:
t -- load anyway.
nil -- don't load.
ask -- ask the user.
check-pid -- load if locking Emacs process is missing locally.
If the value is nil, or `ask' and the user chooses not to load
the desktop, the normal hook `desktop-not-loaded-hook' is run.
If the value is `check-pid', load the desktop if the Emacs
process that has locked it is not running on the local machine.
This should not be used in circumstances where the locking Emacs
might still be running on another machine. That could be the
case if you have remotely mounted (NFS) paths in
`desktop-dirname'."
:type
'(choice
(const :tag "Load anyway" t)
(const :tag "Don't load" nil)
(const :tag "Ask the user" ask)
(const :tag "Load if no local process" check-pid))
:version "22.2")