]> git.eshelyaron.com Git - emacs.git/commit
Add undelete-frame-max instead of undelete-frame-mode (bug#51883)
authorJuri Linkov <juri@linkov.net>
Sun, 16 Jan 2022 20:58:30 +0000 (22:58 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 16 Jan 2022 20:58:30 +0000 (22:58 +0200)
commit714e11d53534416b6519396a9df5d62054731810
tree48e8f0c0f5d9ea800346609e83bf4d1865052f3a
parent5c30c8778dffb647528d2144e00a48eaf723416e
Add undelete-frame-max instead of undelete-frame-mode (bug#51883)

* doc/emacs/frames.texi (Frame Commands): Replace
undelete-frame-mode with undelete-frame-max.

* lisp/frame.el (undelete-frame-max): New defcustom, by default 1.
(undelete-frame--handle-delete-frame): Use undelete-frame-max
instead of hard-coded 16.
(undelete-frame-mode): Remove function.
(after-init-hook): Add hook undelete-frame--handle-delete-frame to
delete-frame-functions using after-init-hook to not store the
initial frame.
(undelete-frame): Remove undelete-frame-mode.  Use undelete-frame-max
instead of hard-coded 16.

* lisp/menu-bar.el (menu-bar-file-menu): Remove menu item undelete-frame-mode.

* src/frame.c (Fdelete_frame): Replace `undelete-frame-mode' with
`undelete-frame-max' in the docstring.
doc/emacs/frames.texi
etc/NEWS
lisp/frame.el
lisp/menu-bar.el
src/frame.c