]> git.eshelyaron.com Git - emacs.git/commitdiff
(grep-mode-tool-bar-map): The same.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 28 Mar 2008 10:05:53 +0000 (10:05 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 28 Mar 2008 10:05:53 +0000 (10:05 +0000)
lisp/progmodes/grep.el

index 6cd5c657aefce4fcaa3b02ebcebdff407a40ba2e..328588065c6ca6e4c1f0c8b707c308c54a850b4d 100644 (file)
@@ -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