]> git.eshelyaron.com Git - emacs.git/commitdiff
(gud-speedbar-menu-items): Use :visible
authorNick Roberts <nickrob@snap.net.nz>
Sat, 8 Oct 2005 21:19:18 +0000 (21:19 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 8 Oct 2005 21:19:18 +0000 (21:19 +0000)
instead of :active.

lisp/progmodes/gud.el

index 12c7e1c0ba00ed35209a58a506283f11076076db..8840a01283ffb4999f4fa08a77298883091e2786 100644 (file)
@@ -357,15 +357,13 @@ t means that there is no stack, and we are in display-file mode.")
     (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)))])