kill if a process is running.
+2008-03-28 Jan Djärv <jan.h.d@swipnet.se>
+
+ * progmodes/compile.el (compilation-mode-tool-bar-map): Only enable
+ kill if a process is running.
+
+ * progmodes/grep.el (grep-mode-tool-bar-map): The same.
+
2008-03-28 Dan Nicolaescu <dann@ics.uci.edu>
* vc.el: Add new backend function 'status-extra-headers.
:help "Goto next error")
(tool-bar-local-item
"cancel" 'kill-compilation 'kill-compilation map
+ :enable '(let ((buffer (compilation-find-buffer)))
+ (get-buffer-process buffer))
:help "Stop compilation")
(tool-bar-local-item
"refresh" 'recompile 'recompile map