aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorEli Zaretskii2005-01-29 15:52:07 +0000
committerEli Zaretskii2005-01-29 15:52:07 +0000
commitcf63e6fa17ead6154ec0f4253e9e8a27618100da (patch)
tree5a4b6ed2f6137332398eee5c1e32a989d23595de /lisp/progmodes/compile.el
parent28d986b971b61e745ce7d3ef9b63e2b4ad3426f0 (diff)
downloademacs-cf63e6fa17ead6154ec0f4253e9e8a27618100da.tar.gz
emacs-cf63e6fa17ead6154ec0f4253e9e8a27618100da.zip
(compilation-start): Bind buffer-read-only to nil before
invoking call-process. Reset buffer's modified flag after fontifying it in the no-async branch.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 601eb03946e..7b401da794e 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -985,8 +985,9 @@ Returns the compilation buffer created."
985 (setq mode-line-process ":run") 985 (setq mode-line-process ":run")
986 (force-mode-line-update) 986 (force-mode-line-update)
987 (sit-for 0) ; Force redisplay 987 (sit-for 0) ; Force redisplay
988 (let ((status (call-process shell-file-name nil outbuf nil "-c" 988 (let* ((buffer-read-only nil) ; call-process needs to modify outbuf
989 command))) 989 (status (call-process shell-file-name nil outbuf nil "-c"
990 command)))
990 (cond ((numberp status) 991 (cond ((numberp status)
991 (compilation-handle-exit 'exit status 992 (compilation-handle-exit 'exit status
992 (if (zerop status) 993 (if (zerop status)
@@ -1003,6 +1004,7 @@ exited abnormally with code %d\n"
1003 ;; fontified, so fontify it now. 1004 ;; fontified, so fontify it now.
1004 (let ((font-lock-verbose nil)) ; shut up font-lock messages 1005 (let ((font-lock-verbose nil)) ; shut up font-lock messages
1005 (font-lock-fontify-buffer)) 1006 (font-lock-fontify-buffer))
1007 (set-buffer-modified-p nil)
1006 (message "Executing `%s'...done" command))) 1008 (message "Executing `%s'...done" command)))
1007 ;; Now finally cd to where the shell started make/grep/... 1009 ;; Now finally cd to where the shell started make/grep/...
1008 (setq default-directory thisdir)) 1010 (setq default-directory thisdir))