aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2008-03-28 10:06:13 +0000
committerJan Djärv2008-03-28 10:06:13 +0000
commit5af370aba7b475ed08dd718d8966c58af421328d (patch)
tree76b46a05a00ed8ac0fc501d58aaea1d11a1a131f
parent94e65e0d28e1ce2984660f3c4749b9131af8a939 (diff)
downloademacs-5af370aba7b475ed08dd718d8966c58af421328d.tar.gz
emacs-5af370aba7b475ed08dd718d8966c58af421328d.zip
(compilation-mode-tool-bar-map): Only enable
kill if a process is running.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/compile.el2
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 764d32c9ec9..1139f40eb51 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12008-03-28 Jan Djärv <jan.h.d@swipnet.se>
2
3 * progmodes/compile.el (compilation-mode-tool-bar-map): Only enable
4 kill if a process is running.
5
6 * progmodes/grep.el (grep-mode-tool-bar-map): The same.
7
12008-03-28 Dan Nicolaescu <dann@ics.uci.edu> 82008-03-28 Dan Nicolaescu <dann@ics.uci.edu>
2 9
3 * vc.el: Add new backend function 'status-extra-headers. 10 * vc.el: Add new backend function 'status-extra-headers.
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index be69da1d7f6..4ee96c6e76a 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1429,6 +1429,8 @@ Returns the compilation buffer created."
1429 :help "Goto next error") 1429 :help "Goto next error")
1430 (tool-bar-local-item 1430 (tool-bar-local-item
1431 "cancel" 'kill-compilation 'kill-compilation map 1431 "cancel" 'kill-compilation 'kill-compilation map
1432 :enable '(let ((buffer (compilation-find-buffer)))
1433 (get-buffer-process buffer))
1432 :help "Stop compilation") 1434 :help "Stop compilation")
1433 (tool-bar-local-item 1435 (tool-bar-local-item
1434 "refresh" 'recompile 'recompile map 1436 "refresh" 'recompile 'recompile map