Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f4eb2268
Commit
f4eb2268
authored
Mar 01, 2006
by
Nick Roberts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gud-speedbar-menu-items): Use
buffer-local-value and add missing :visible keyword.
parent
115712f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lisp/progmodes/gud.el
lisp/progmodes/gud.el
+8
-8
No files found.
lisp/progmodes/gud.el
View file @
f4eb2268
...
...
@@ -406,18 +406,18 @@ t means that there is no stack, and we are in display-file mode.")
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment