changeset 93335:36e2d4840e38

(grep-mode-tool-bar-map): The same.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 28 Mar 2008 10:05:53 +0000
parents c598ce296aea
children 6598459f3056
files lisp/progmodes/grep.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/grep.el	Fri Mar 28 09:58:35 2008 +0000
+++ b/lisp/progmodes/grep.el	Fri Mar 28 10:05:53 2008 +0000
@@ -240,6 +240,8 @@
 	 :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