summaryrefslogtreecommitdiff
path: root/lisp/progmodes/grep.el
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2008-03-28 10:05:53 +0000
committerJan Djärv <jan.h.d@swipnet.se>2008-03-28 10:05:53 +0000
commit94e65e0d28e1ce2984660f3c4749b9131af8a939 (patch)
tree83878c863b4f2b5a2cb08b285a42114917c83ae2 /lisp/progmodes/grep.el
parentd0b7952a9f5b0d92ca8ff85f5b48de9f46e7c5c5 (diff)
downloademacs-94e65e0d28e1ce2984660f3c4749b9131af8a939.tar.gz
(grep-mode-tool-bar-map): The same.
Diffstat (limited to 'lisp/progmodes/grep.el')
-rw-r--r--lisp/progmodes/grep.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el
index 6cd5c657aef..328588065c6 100644
--- a/lisp/progmodes/grep.el
+++ b/lisp/progmodes/grep.el
@@ -240,6 +240,8 @@ See `compilation-error-screen-columns'"
:help "Goto next match")
(tool-bar-local-item
"cancel" 'kill-compilation 'kill-compilation map
+ :enable '(let ((buffer (compilation-find-buffer)))
+ (get-buffer-process buffer))
:help "Stop grep")
(tool-bar-local-item
"refresh" 'recompile 'recompile map