From: Eli Zaretskii Date: Thu, 20 Jan 2022 08:05:05 +0000 (+0200) Subject: Allow disabling 'undelete-frame-mode' from the menu bar X-Git-Tag: emacs-29.0.90~2916 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c027ad59dd8446ea146fa5303222e17a18a44fd9;p=emacs.git Allow disabling 'undelete-frame-mode' from the menu bar * lisp/menu-bar.el (menu-bar-file-menu): Add 'disable-undelete-frame-mode' menu item. (Bug#53382) --- diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 36cbd6a9c51..109aad3898f 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -113,6 +113,10 @@ '(menu-item "Enable Undeleting Frames" undelete-frame-mode :visible (null undelete-frame-mode) :help "Enable undeleting frames in this session")) + (bindings--define-key menu [disable-undelete-frame-mode] + '(menu-item "Disable Undeleting Frames" undelete-frame-mode + :visible undelete-frame-mode + :help "Disable undeleting frames in this session")) (bindings--define-key menu [undelete-last-deleted-frame] '(menu-item "Undelete Frame" undelete-frame :visible (and undelete-frame-mode