Commit a6709bc7 authored by Glenn Morris's avatar Glenn Morris
Browse files

* gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358)

parent ed68379e
2012-10-23 Glenn Morris <rgm@gnu.org>
* progmodes/gud.el (gud-menu-map):
Check gdb-active-process is bound. (Bug#12358)
2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
 
* repeat.el (repeat): Set real-this-command (bug#12232).
......
......@@ -148,7 +148,8 @@ Used to gray out relevant toolbar icons.")
([run] menu-item "Run" gud-run
:enable (not gud-running)
:visible (memq gud-minor-mode '(gdbmi gdb dbx jdb)))
([go] menu-item (if gdb-active-process "Continue" "Run") gud-go
([go] menu-item (if (bound-and-true-p gdb-active-process)
"Continue" "Run") gud-go
:visible (and (eq gud-minor-mode 'gdbmi)
(gdb-show-run-p)))
([stop] menu-item "Stop" gud-stop-subjob
......@@ -178,7 +179,7 @@ Used to gray out relevant toolbar icons.")
'(gdbmi gdb dbx xdb jdb pdb)))
([pp] menu-item "Print S-expression" gud-pp
:enable (and (not gud-running)
gdb-active-process)
(bound-and-true-p gdb-active-process))
:visible (and (string-equal
(buffer-local-value
'gud-target-name gud-comint-buffer) "emacs")
......
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