summaryrefslogtreecommitdiff
path: root/doc/emacs/frames.texi
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-01-16 22:58:30 +0200
committerJuri Linkov <juri@linkov.net>2022-01-16 22:58:30 +0200
commit714e11d53534416b6519396a9df5d62054731810 (patch)
tree48e8f0c0f5d9ea800346609e83bf4d1865052f3a /doc/emacs/frames.texi
parent5c30c8778dffb647528d2144e00a48eaf723416e (diff)
downloademacs-714e11d53534416b6519396a9df5d62054731810.tar.gz
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.
Diffstat (limited to 'doc/emacs/frames.texi')
-rw-r--r--doc/emacs/frames.texi14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index c641b8ccb14..ba58f70caf3 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -515,12 +515,14 @@ error if there is only one frame.
@item C-x 5 u
@kindex C-x 5 u
@findex undelete-frame
-@findex undelete-frame-mode
-When @code{undelete-frame-mode} is enabled, undelete one of the 16
-most recently deleted frames. Without a prefix argument, undelete the
-most recently deleted frame. With a numerical prefix argument between
-1 and 16, where 1 is the most recently deleted frame, undelete the
-corresponding deleted frame.
+@findex undelete-frame-max
+Undelete one of the recently deleted frames. The user option
+@code{undelete-frame-max} specifies the maximum number of deleted
+frames to keep (the default is 1). Without a prefix argument,
+undelete the most recently deleted frame. With a numerical prefix
+argument between 1 and the number specified by @code{undelete-frame-max},
+where 1 is the most recently deleted frame, undelete the corresponding
+deleted frame.
@item C-z
@kindex C-z @r{(X windows)}