From c027ad59dd8446ea146fa5303222e17a18a44fd9 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 20 Jan 2022 10:05:05 +0200 Subject: [PATCH] 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) --- lisp/menu-bar.el | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5