summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-01-13 10:31:43 +0200
committerJuri Linkov <juri@linkov.net>2022-01-13 10:31:43 +0200
commit48159c16b58af959555ced5cbd510835db5ea17b (patch)
tree9698a478f5d092f9de8694ef706a680e81018204 /doc/emacs
parent46f24bf08f6cc12aa8945ae0257c810a59a8803c (diff)
downloademacs-48159c16b58af959555ced5cbd510835db5ea17b.tar.gz
emacs-48159c16b58af959555ced5cbd510835db5ea17b.tar.bz2
emacs-48159c16b58af959555ced5cbd510835db5ea17b.zip
Undelete deleted frames.
* lisp/frame.el (undelete-frame): New command. (undelete-frame--handle-delete-frame): New auxiliary function. (undelete-frame--deleted-frames): New auxiliary variables. (undelete-frame-mode): New minor mode. (ctl-x-5-map): Bind the new command. * etc/NEWS: Document the new command and minor mode. * src/frame.c (Fdelete_frame): Update docstring, and mention the minor mode. * lisp/menu-bar.el (menu-bar-file-menu): Add an entry for the new command. * doc/emacs/frames.tex (Frame Commands): Document the new command and minor mode. See bug#51883.
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/frames.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index ce43408101d..c641b8ccb14 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -512,6 +512,16 @@ frames by specifying @dfn{frame parameters}. @xref{Frame Parameters}.
Delete the selected frame (@code{delete-frame}). This signals an
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.
+
@item C-z
@kindex C-z @r{(X windows)}
Minimize (or iconify) the selected Emacs frame