Variable: desktop-minor-mode-handlers
desktop-minor-mode-handlers is a variable defined in desktop.el.gz.
Value
((srecode-minor-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-mru-bookmark-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-decoration-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-idle-breadcrumbs-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-idle-completions-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-idle-local-symbol-highlight-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-idle-summary-mode . semantic-desktop-ignore-this-minor-mode)
(semantic-idle-scheduler-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)
(eglot-inlay-hints-mode . ignore)
(eglot--managed-mode . ignore))
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))
The minor mode function must either be autoloaded, or of the form
"foobar-mode" and defined in library "foobar", so that desktop
can guess how to load the mode's definition.
See also desktop-minor-mode-table.
Source Code
;; Defined in /usr/src/emacs/lisp/desktop.el.gz
;;;###autoload
(defvar desktop-minor-mode-handlers nil
"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))
The minor mode function must either be autoloaded, or of the form
\"foobar-mode\" and defined in library \"foobar\", so that desktop
can guess how to load the mode's definition.
See also `desktop-minor-mode-table'.")