diff options
| author | Glenn Morris | 2012-10-23 13:49:24 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-10-23 13:49:24 -0400 |
| commit | a6709bc70c1ddde8f31c1470f06d39f67976d68d (patch) | |
| tree | 222ab41d8869a0b889ab85c1202c3ea490bd63dc | |
| parent | ed68379ea9440ca254eef279047d2e9bfd175e5b (diff) | |
| download | emacs-a6709bc70c1ddde8f31c1470f06d39f67976d68d.tar.gz emacs-a6709bc70c1ddde8f31c1470f06d39f67976d68d.zip | |
* gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 593b2a935b7..2d3bd095278 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-23 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/gud.el (gud-menu-map): | ||
| 4 | Check gdb-active-process is bound. (Bug#12358) | ||
| 5 | |||
| 1 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * repeat.el (repeat): Set real-this-command (bug#12232). | 8 | * repeat.el (repeat): Set real-this-command (bug#12232). |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 719471278a8..13eac8392a2 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -148,7 +148,8 @@ Used to gray out relevant toolbar icons.") | |||
| 148 | ([run] menu-item "Run" gud-run | 148 | ([run] menu-item "Run" gud-run |
| 149 | :enable (not gud-running) | 149 | :enable (not gud-running) |
| 150 | :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb))) | 150 | :visible (memq gud-minor-mode '(gdbmi gdb dbx jdb))) |
| 151 | ([go] menu-item (if gdb-active-process "Continue" "Run") gud-go | 151 | ([go] menu-item (if (bound-and-true-p gdb-active-process) |
| 152 | "Continue" "Run") gud-go | ||
| 152 | :visible (and (eq gud-minor-mode 'gdbmi) | 153 | :visible (and (eq gud-minor-mode 'gdbmi) |
| 153 | (gdb-show-run-p))) | 154 | (gdb-show-run-p))) |
| 154 | ([stop] menu-item "Stop" gud-stop-subjob | 155 | ([stop] menu-item "Stop" gud-stop-subjob |
| @@ -178,7 +179,7 @@ Used to gray out relevant toolbar icons.") | |||
| 178 | '(gdbmi gdb dbx xdb jdb pdb))) | 179 | '(gdbmi gdb dbx xdb jdb pdb))) |
| 179 | ([pp] menu-item "Print S-expression" gud-pp | 180 | ([pp] menu-item "Print S-expression" gud-pp |
| 180 | :enable (and (not gud-running) | 181 | :enable (and (not gud-running) |
| 181 | gdb-active-process) | 182 | (bound-and-true-p gdb-active-process)) |
| 182 | :visible (and (string-equal | 183 | :visible (and (string-equal |
| 183 | (buffer-local-value | 184 | (buffer-local-value |
| 184 | 'gud-target-name gud-comint-buffer) "emacs") | 185 | 'gud-target-name gud-comint-buffer) "emacs") |