Commit 3525a3ee authored by Nick Roberts's avatar Nick Roberts
Browse files

(gud-menu-map): Make visibility of stop and

go buttons complementary.
parent 18468a1e
......@@ -140,10 +140,12 @@ Used to grey out relevant togolbar icons.")
(memq gud-minor-mode '(gdbmi gdb dbx jdb)))
:visible (not (eq gud-minor-mode 'gdba)))
([go] menu-item "Run/Continue" gud-go
:enable (not gud-running)
:visible (eq gud-minor-mode 'gdba))
:visible (and (not gud-running)
(eq gud-minor-mode 'gdba)))
([stop] menu-item "Stop" comint-interrupt-subjob
:enable gud-running)
:visible (or (not (eq gud-minor-mode 'gdba))
(and gud-running
(eq gud-minor-mode 'gdba))))
([until] menu-item "Continue to selection" gud-until
:enable (and (not gud-running)
(memq gud-minor-mode '(gdbmi gdba gdb perldb)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment