diff options
| author | Eli Zaretskii | 2005-01-29 15:52:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-01-29 15:52:07 +0000 |
| commit | cf63e6fa17ead6154ec0f4253e9e8a27618100da (patch) | |
| tree | 5a4b6ed2f6137332398eee5c1e32a989d23595de | |
| parent | 28d986b971b61e745ce7d3ef9b63e2b4ad3426f0 (diff) | |
| download | emacs-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.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4699f639d57..0ac939a0d6a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2005-01-29 Eli Zaretskii <eliz@gnu.org> | 1 | 2005-01-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * progmodes/compile.el (compilation-start): Bind buffer-read-only | ||
| 4 | to nil before invoking call-process. Reset buffer's modified flag | ||
| 5 | after fontifying it in the no-async branch. | ||
| 6 | |||
| 3 | * wid-edit.el (widget-specify-button): If mouse pointer shape | 7 | * wid-edit.el (widget-specify-button): If mouse pointer shape |
| 4 | cannot be changed, use mouse face instead. | 8 | cannot be changed, use mouse face instead. |
| 5 | 9 | ||
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)) |