diff options
author | Richard M. Stallman <rms@gnu.org> | 2004-10-19 16:48:30 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2004-10-19 16:48:30 +0000 |
commit | 4f331dedcad5c0b259e4b07999bea7af452054e3 (patch) | |
tree | 324a00bc1c41aeb3fba1839cc91a7605c23a3745 /lisp/progmodes/compile.el | |
parent | 08dedea656abbecfc80e8de68645da32edca0533 (diff) | |
download | emacs-4f331dedcad5c0b259e4b07999bea7af452054e3.tar.gz |
(compilation-setup): Don't set buffer-read-only if MINOR is non-nil.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r-- | lisp/progmodes/compile.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d90fe77fe28..5179e2e9b2c 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -1186,7 +1186,8 @@ If nil, use the beginning of buffer.") "Prepare the buffer for the compilation parsing commands to work. Optional argument MINOR indicates this is called from `compilation-minor-mode'." - (setq buffer-read-only t) + (unless minor + (setq buffer-read-only t)) (make-local-variable 'compilation-current-error) (make-local-variable 'compilation-messages-start) (make-local-variable 'compilation-error-screen-columns) |