diff options
| author | Nick Roberts | 2005-10-26 01:02:31 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-10-26 01:02:31 +0000 |
| commit | 3cae51964d23e83cef93e6d124ee0b19d92b027b (patch) | |
| tree | dc94a09c1152533f00fef492d1b2b48394657cf9 | |
| parent | 9317517c79bb14815aed8a795372bc8145d82d26 (diff) | |
| download | emacs-3cae51964d23e83cef93e6d124ee0b19d92b027b.tar.gz emacs-3cae51964d23e83cef93e6d124ee0b19d92b027b.zip | |
(gud-menu-map): Only display gud-until icon
when the fringe is not available.
| -rw-r--r-- | lisp/progmodes/gud.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index de050cf696a..a0c58260839 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -135,13 +135,16 @@ Used to grey out relevant togolbar icons.") | |||
| 135 | (memq gud-minor-mode '(gdbmi gdba gdb dbx jdb)))) | 135 | (memq gud-minor-mode '(gdbmi gdba gdb dbx jdb)))) |
| 136 | ([until] menu-item "Continue to selection" gud-until | 136 | ([until] menu-item "Continue to selection" gud-until |
| 137 | :enable (and (not gud-running) | 137 | :enable (and (not gud-running) |
| 138 | (memq gud-minor-mode '(gdbmi gdba gdb perldb)))) | 138 | (memq gud-minor-mode '(gdbmi gdba gdb perldb))) |
| 139 | :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) | ||
| 140 | (> (car (window-fringes)) 0)))) | ||
| 139 | ([remove] menu-item "Remove Breakpoint" gud-remove | 141 | ([remove] menu-item "Remove Breakpoint" gud-remove |
| 140 | :enable (not gud-running) | 142 | :enable (not gud-running) |
| 141 | :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) | 143 | :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) |
| 142 | (> (car (window-fringes)) 0)))) | 144 | (> (car (window-fringes)) 0)))) |
| 143 | ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak | 145 | ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak |
| 144 | :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb))) | 146 | :enable (memq gud-minor-mode |
| 147 | '(gdbmi gdba gdb sdb xdb bashdb))) | ||
| 145 | ([break] menu-item "Set Breakpoint" gud-break | 148 | ([break] menu-item "Set Breakpoint" gud-break |
| 146 | :enable (not gud-running) | 149 | :enable (not gud-running) |
| 147 | :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) | 150 | :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) |