changeset 65932:34fd3b73a2b4

(gud-speedbar-menu-items): Use :visible instead of :active.
author Nick Roberts <nickrob@snap.net.nz>
date Sat, 08 Oct 2005 21:19:18 +0000
parents 32b93ac48493
children 4a1ce261e35c
files lisp/progmodes/gud.el
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Sat Oct 08 21:18:18 2005 +0000
+++ b/lisp/progmodes/gud.el	Sat Oct 08 21:19:18 2005 +0000
@@ -357,15 +357,13 @@
     (define-key gud-speedbar-key-map "\C-m" 'speedbar-edit-line)
     (define-key gud-speedbar-key-map "D" 'gdb-var-delete)))
 
-
 (defvar gud-speedbar-menu-items
-  ;; Note to self.  Add expand, and turn off items when not available.
   '(["Jump to stack frame" speedbar-edit-line
-     (with-current-buffer gud-comint-buffer
-       (not (memq gud-minor-mode '(gdbmi gdba))))]
+     :visible (with-current-buffer gud-comint-buffer
+		(not (memq gud-minor-mode '(gdbmi gdba))))]
     ["Edit value" speedbar-edit-line
-     (with-current-buffer gud-comint-buffer
-       (memq gud-minor-mode '(gdbmi gdba)))]
+     :visible (with-current-buffer gud-comint-buffer
+		(memq gud-minor-mode '(gdbmi gdba)))]
     ["Delete expression" gdb-var-delete
      (with-current-buffer gud-comint-buffer
        (memq gud-minor-mode '(gdbmi gdba)))])