# HG changeset patch # User Nick Roberts # Date 1141253009 0 # Node ID 4ec5a067baf35e269d7f346000ad3e49c1e2c9d3 # Parent ea4b21409f7f595ee494ad78a2811a34f22f6dd0 (gud-speedbar-menu-items): Use buffer-local-value and add missing :visible keyword. diff -r ea4b21409f7f -r 4ec5a067baf3 lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Wed Mar 01 22:42:17 2006 +0000 +++ b/lisp/progmodes/gud.el Wed Mar 01 22:43:29 2006 +0000 @@ -406,18 +406,18 @@ (defvar gud-speedbar-menu-items '(["Jump to stack frame" speedbar-edit-line - :visible (with-current-buffer gud-comint-buffer - (not (memq gud-minor-mode '(gdbmi gdba))))] + :visible (not (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer) + '(gdbmi gdba)))] ["Edit value" speedbar-edit-line - :visible (with-current-buffer gud-comint-buffer - (memq gud-minor-mode '(gdbmi gdba)))] + :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer) + '(gdbmi gdba))] ["Delete expression" gdb-var-delete - (with-current-buffer gud-comint-buffer - (memq gud-minor-mode '(gdbmi gdba)))] + :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer) + '(gdbmi gdba))] ["Auto raise frame" gdb-speedbar-auto-raise :style toggle :selected gdb-speedbar-auto-raise - :visible (with-current-buffer gud-comint-buffer - (memq gud-minor-mode '(gdbmi gdba)))]) + :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer) + '(gdbmi gdba))]) "Additional menu items to add to the speedbar frame.") ;; Make sure our special speedbar mode is loaded