changeset 66457:902db04fb1b3

(gud-menu-map): Only display gud-until icon when the fringe is not available.
author Nick Roberts <nickrob@snap.net.nz>
date Wed, 26 Oct 2005 01:02:31 +0000
parents 885272126a8e
children f2be1560adf2
files lisp/progmodes/gud.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Wed Oct 26 01:01:34 2005 +0000
+++ b/lisp/progmodes/gud.el	Wed Oct 26 01:02:31 2005 +0000
@@ -135,13 +135,16 @@
 			       (memq gud-minor-mode '(gdbmi gdba gdb dbx jdb))))
     ([until]	menu-item "Continue to selection" gud-until
                   :enable (and (not gud-running)
-			       (memq gud-minor-mode '(gdbmi gdba gdb perldb))))
+			       (memq gud-minor-mode '(gdbmi gdba gdb perldb)))
+		  :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
+				     (> (car (window-fringes)) 0))))
     ([remove]	menu-item "Remove Breakpoint" gud-remove
                   :enable (not gud-running)
 		  :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
 				     (> (car (window-fringes)) 0))))
     ([tbreak]	menu-item "Temporary Breakpoint" gud-tbreak
-		  :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb)))
+		  :enable (memq gud-minor-mode
+				'(gdbmi gdba gdb sdb xdb bashdb)))
     ([break]	menu-item "Set Breakpoint" gud-break
                   :enable (not gud-running)
 		  :visible (not (and (memq gud-minor-mode '(gdbmi gdba))