From d5d2959217f7afc99f2636cafdb8ffe00e14dfae Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 10 Mar 2023 12:22:43 -0500 Subject: [PATCH] * 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-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'." -- 2.39.2