aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2005-10-07 02:45:56 +0000
committerNick Roberts2005-10-07 02:45:56 +0000
commitccd91c09784f9c52d4d13b7f7062af26e762b6a3 (patch)
treee44c2e69e4f1ddcb32f4c50d51bbdf43c24c336c
parentbd5497c2ca69186246578108d324642e193ac057 (diff)
downloademacs-ccd91c09784f9c52d4d13b7f7062af26e762b6a3.tar.gz
emacs-ccd91c09784f9c52d4d13b7f7062af26e762b6a3.zip
(gud-menu-map): Only display un-intuitive
gud-break and gud-remove icons when the fringe is not available.
-rw-r--r--lisp/progmodes/gud.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 47d74f00aec..12c7e1c0ba0 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -137,11 +137,15 @@ Used to grey out relevant togolbar icons.")
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 ([remove] menu-item "Remove Breakpoint" gud-remove 139 ([remove] menu-item "Remove Breakpoint" gud-remove
140 :enable (not gud-running)) 140 :enable (not gud-running)
141 :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
142 (window-fringes))))
141 ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak 143 ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak
142 :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb))) 144 :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb)))
143 ([break] menu-item "Set Breakpoint" gud-break 145 ([break] menu-item "Set Breakpoint" gud-break
144 :enable (not gud-running)) 146 :enable (not gud-running)
147 :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
148 (window-fringes))))
145 ([up] menu-item "Up Stack" gud-up 149 ([up] menu-item "Up Stack" gud-up
146 :enable (and (not gud-running) 150 :enable (and (not gud-running)
147 (memq gud-minor-mode 151 (memq gud-minor-mode