all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 23923-done@debbugs.gnu.org
Subject: bug#23923: 25.0.94; GDB duplicate menu entry
Date: Fri, 03 Mar 2017 19:48:17 -0500	[thread overview]
Message-ID: <b9d1dxj29a.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87shvjpu11.fsf@aol.com> (Live System User's message of "Fri, 08 Jul 2016 19:52:26 -0400")

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)





      parent reply	other threads:[~2017-03-04  0:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08 23:52 bug#23923: 25.0.94; GDB duplicate menu entry Live System User
2016-07-09  7:32 ` Eli Zaretskii
2016-07-09 16:55   ` Glenn Morris
2016-07-09 17:03     ` Eli Zaretskii
2017-03-04  0:48 ` Glenn Morris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9d1dxj29a.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=23923-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.