mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-09 15:50:21 +00:00
Avoid duplicate gud menu items with gdb-mi
* lisp/progmodes/gud.el (gud-menu-map): Avoid duplicate "Run" entries in gdbmi mode. (Bug#23923)
This commit is contained in:
parent
87849fe31f
commit
69dde0c54c
@ -146,7 +146,11 @@ Used to gray out relevant toolbar icons.")
|
||||
([refresh] "Refresh" . gud-refresh)
|
||||
([run] menu-item "Run" gud-run
|
||||
:enable (not gud-running)
|
||||
:visible (memq gud-minor-mode '(gdbmi gdb dbx jdb)))
|
||||
:visible (or (memq gud-minor-mode '(gdb dbx jdb))
|
||||
(and (eq gud-minor-mode 'gdbmi)
|
||||
(or (not (gdb-show-run-p))
|
||||
(bound-and-true-p
|
||||
gdb-active-process)))))
|
||||
([go] menu-item (if (bound-and-true-p gdb-active-process)
|
||||
"Continue" "Run") gud-go
|
||||
:visible (and (eq gud-minor-mode 'gdbmi)
|
||||
|
Loading…
Reference in New Issue
Block a user