emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d5d2959217f: * lisp/progmodes/gud.el (gud-minor-menu-map): Fix th


From: Stefan Monnier
Subject: master d5d2959217f: * lisp/progmodes/gud.el (gud-minor-menu-map): Fix thinko in last change
Date: Fri, 10 Mar 2023 12:22:47 -0500 (EST)

branch: master
commit d5d2959217f7afc99f2636cafdb8ffe00e14dfae
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/progmodes/gud.el (gud-minor-menu-map): Fix thinko in last change
---
 lisp/progmodes/gud.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 42d64952d86..d5c8e37a37b 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -211,7 +211,9 @@ Used to gray out relevant toolbar icons.")
   ;; We then merge them here into `gud-minor-mode-map'.
   :parent gud-menu-mode-map
   "<menu-bar>" `(menu-item nil ,gud-text-menu-bar-map
-                 :filter ,(lambda (map) (unless window-system map))))
+                 ;; Be careful to return an empty keymap rather than nil
+                 ;; so as not to hide the parent's menus.
+                 :filter ,(lambda (map) (if window-system '(keymap) map))))
 
 (easy-menu-define gud-menu-map gud-menu-mode-map
   "Menu for `gud-mode'."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]