From: Nick Roberts Date: Sat, 8 Oct 2005 21:19:18 +0000 (+0000) Subject: (gud-speedbar-menu-items): Use :visible X-Git-Tag: emacs-pretest-22.0.90~6738 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f078ee4a372c7937a69793722b02836820780cd;p=emacs.git (gud-speedbar-menu-items): Use :visible instead of :active. --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 12c7e1c0ba0..8840a01283f 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -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)))])