[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23923: 25.0.94; GDB duplicate menu entry
From: |
Glenn Morris |
Subject: |
bug#23923: 25.0.94; GDB duplicate menu entry |
Date: |
Fri, 03 Mar 2017 19:48:17 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Version: 26.1
commit 69dde0c
Date: Fri Mar 3 19:46:57 2017 -0500
Avoid duplicate gud menu items with gdb-mi
* lisp/progmodes/gud.el (gud-menu-map): Avoid duplicate "Run"
entries in gdbmi mode. (Bug#23923)
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 1301758..7ab1442 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#23923: 25.0.94; GDB duplicate menu entry,
Glenn Morris <=