From e77fc70c47f7efcc1527b2de69dc4daeff30daf8 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Thu, 2 Jul 2009 06:36:16 +0000 Subject: [PATCH] (gud-minor-mode-map): Make "stop" button visible in text mode when program is running. (gud-tooltip-mode): Autoload so that it can be set by customize. --- lisp/progmodes/gud.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 3e2556791a7..58f6c2671ec 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -251,8 +251,8 @@ Used to grey out relevant toolbar icons.") (eq gud-minor-mode 'gdba))) ([menu-bar stop] menu-item ,(propertize "stop" 'face 'font-lock-doc-face) gud-stop-subjob - :visible (or gud-running - (not (eq gud-minor-mode 'gdba)))) + :visible (and gud-running + (eq gud-minor-mode 'gdba))) ([menu-bar print] . (,(propertize "print" 'face 'font-lock-doc-face) . gud-print)) ([menu-bar tools] . undefined) @@ -3239,6 +3239,7 @@ Treats actions as defuns." ;;; Customizable settings +;;;###autoload (define-minor-mode gud-tooltip-mode "Toggle the display of GUD tooltips." :global t -- 2.39.5