projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cfede
)
* lisp/progmodes/gud.el (gud-minor-menu-map): Fix thinko in last change
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 10 Mar 2023 17:22:43 +0000
(12:22 -0500)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Fri, 10 Mar 2023 17:22:43 +0000
(12:22 -0500)
lisp/progmodes/gud.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/gud.el
b/lisp/progmodes/gud.el
index 42d64952d864dd6a6b12118fd03b363600b0c8af..d5c8e37a37b5b7d9583918f77115303342574569 100644
(file)
--- 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'."