aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2004-10-19 16:48:30 +0000
committerRichard M. Stallman <[email protected]>2004-10-19 16:48:30 +0000
commit4f331dedcad5c0b259e4b07999bea7af452054e3 (patch)
tree324a00bc1c41aeb3fba1839cc91a7605c23a3745 /lisp
parent08dedea656abbecfc80e8de68645da32edca0533 (diff)
(compilation-setup): Don't set buffer-read-only if MINOR is non-nil.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/compile.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index d90fe77fe2..5179e2e9b2 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)