Variable: undelete-frame-mode

undelete-frame-mode is a customizable variable defined in frame.el.gz.

Value

nil

Documentation

Non-nil if Undelete-Frame mode is enabled.

See the undelete-frame-mode(var)/undelete-frame-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function undelete-frame-mode(var)/undelete-frame-mode(fun).

View in manual

Probably introduced at or before Emacs version 29.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(define-minor-mode undelete-frame-mode
  "Enable the `undelete-frame' command."
  :group 'frames
  :global t
  (if undelete-frame-mode
      (add-hook 'delete-frame-functions
                #'undelete-frame--save-deleted-frame -75)
    (remove-hook 'delete-frame-functions
                 #'undelete-frame--save-deleted-frame)
    (setq undelete-frame--deleted-frames nil)))