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.
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.

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.
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."
  :type
  '(choice
    (const :tag "Load anyway" t)
    (const :tag "Don't load" nil)
    (const :tag "Ask the user" ask))
  :group 'desktop
  :version "22.2")