]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow disabling 'undelete-frame-mode' from the menu bar
authorEli Zaretskii <eliz@gnu.org>
Thu, 20 Jan 2022 08:05:05 +0000 (10:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 20 Jan 2022 08:05:05 +0000 (10:05 +0200)
* lisp/menu-bar.el (menu-bar-file-menu): Add
'disable-undelete-frame-mode' menu item.  (Bug#53382)

lisp/menu-bar.el

index 36cbd6a9c511949961f861bc9a57c9301a1fa83a..109aad3898fe97fbfa3a4d97965d78724d5117d5 100644 (file)
       '(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