desktop-minor-mode-handlers

desktop-minor-mode-handlers is a variable defined in `desktop.el'.
Its value is shown below.
  • This variable may be risky if used as a file-local variable.

Documentation:
Alist of functions to restore non-standard minor modes.
Functions are called by `desktop-create-buffer' to restore minor modes.
List elements must have the form

(MINOR-MODE . RESTORE-FUNCTION).

Minor modes not specified here, are restored by the standard minor mode
function.

Handlers are called with argument list

(DESKTOP-BUFFER-LOCALS)

Furthermore, they may use the following variables:

`desktop-file-version'
`desktop-buffer-file-name'
`desktop-buffer-name'
`desktop-buffer-major-mode'
`desktop-buffer-minor-modes'
`desktop-buffer-point'
`desktop-buffer-mark'
`desktop-buffer-read-only'
`desktop-buffer-misc'

When a handler is called, the buffer has been created and the major mode has
been set, but local variables listed in desktop-buffer-locals has not yet been
created and set.

Modules that define a minor mode that needs a special handler should contain
code like

(defun foo-desktop-restore
...
(add-to-list 'desktop-minor-mode-handlers
'(foo-mode . foo-desktop-restore))

Furthermore the minor mode function must be autoloaded.

See also `desktop-minor-mode-table'.

Value:

((srecode-minor-mode . semantic-desktop-ignore-this-minor-mode) (semantic-highlight-func-mode . semantic-desktop-ignore-this-minor-mode) (semantic-stickyfunc-mode . semantic-desktop-ignore-this-minor-mode) (semantic-show-parser-state-mode . semantic-desktop-ignore-this-minor-mode) (semantic-show-unmatched-syntax-mode . semantic-desktop-ignore-this-minor-mode) (semantic-highlight-edits-mode . semantic-desktop-ignore-this-minor-mode) (highlight-changes-mode . hilit-chg-desktop-restore) (allout-mode))