Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ecad93d2
Commit
ecad93d2
authored
Oct 11, 2008
by
Chong Yidong
Browse files
(grep-mode-tool-bar-map): Initialize it unconditionally.
parent
f4c77d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
lisp/progmodes/grep.el
lisp/progmodes/grep.el
+19
-20
No files found.
lisp/progmodes/grep.el
View file @
ecad93d2
...
@@ -228,26 +228,25 @@ See `compilation-error-screen-columns'"
...
@@ -228,26 +228,25 @@ See `compilation-error-screen-columns'"
`compilation-minor-mode-map' is a cdr of this."
)
`compilation-minor-mode-map' is a cdr of this."
)
(
defvar
grep-mode-tool-bar-map
(
defvar
grep-mode-tool-bar-map
(
if
(
display-graphic-p
)
(
let
((
map
(
butlast
(
copy-keymap
tool-bar-map
)))
(
let
((
map
(
butlast
(
copy-keymap
tool-bar-map
)))
(
help
(
last
tool-bar-map
)))
;; Keep Help last in tool bar
(
help
(
last
tool-bar-map
)))
;; Keep Help last in tool bar
(
tool-bar-local-item
(
tool-bar-local-item
"left-arrow"
'previous-error-no-select
'previous-error-no-select
map
"left-arrow"
'previous-error-no-select
'previous-error-no-select
map
:rtl
"right-arrow"
:rtl
"right-arrow"
:help
"Goto previous match"
)
:help
"Goto previous match"
)
(
tool-bar-local-item
(
tool-bar-local-item
"right-arrow"
'next-error-no-select
'next-error-no-select
map
"right-arrow"
'next-error-no-select
'next-error-no-select
map
:rtl
"left-arrow"
:rtl
"left-arrow"
:help
"Goto next match"
)
:help
"Goto next match"
)
(
tool-bar-local-item
(
tool-bar-local-item
"cancel"
'kill-compilation
'kill-compilation
map
"cancel"
'kill-compilation
'kill-compilation
map
:enable
'
(
let
((
buffer
(
compilation-find-buffer
)))
:enable
'
(
let
((
buffer
(
compilation-find-buffer
)))
(
get-buffer-process
buffer
))
(
get-buffer-process
buffer
))
:help
"Stop grep"
)
:help
"Stop grep"
)
(
tool-bar-local-item
(
tool-bar-local-item
"refresh"
'recompile
'recompile
map
"refresh"
'recompile
'recompile
map
:help
"Restart grep"
)
:help
"Restart grep"
)
(
append
map
help
)))
(
append
map
help
))))
(
defalias
'kill-grep
'kill-compilation
)
(
defalias
'kill-grep
'kill-compilation
)
...
...
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