Mercurial > emacs
changeset 65883:46ec04efd3cc
(gud-menu-map): Only display un-intuitive
gud-break and gud-remove icons when the fringe is not available.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Fri, 07 Oct 2005 02:45:56 +0000 |
parents | ab855ff04658 |
children | 7246b6fe556e |
files | lisp/progmodes/gud.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gud.el Fri Oct 07 02:43:39 2005 +0000 +++ b/lisp/progmodes/gud.el Fri Oct 07 02:45:56 2005 +0000 @@ -137,11 +137,15 @@ :enable (and (not gud-running) (memq gud-minor-mode '(gdbmi gdba gdb perldb)))) ([remove] menu-item "Remove Breakpoint" gud-remove - :enable (not gud-running)) + :enable (not gud-running) + :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) + (window-fringes)))) ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak :enable (memq gud-minor-mode '(gdbmi gdba gdb sdb xdb bashdb))) ([break] menu-item "Set Breakpoint" gud-break - :enable (not gud-running)) + :enable (not gud-running) + :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) + (window-fringes)))) ([up] menu-item "Up Stack" gud-up :enable (and (not gud-running) (memq gud-minor-mode