aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-11-16 04:52:19 +0000
committerStefan Monnier2004-11-16 04:52:19 +0000
commitbd8c6db5dc15296bacb42cbc65b24e82d12b7cfb (patch)
treec169da396074854d95603106ab4950868dfd3c40
parente542ea4bed4820e585ed59bfea8a1d3320782601 (diff)
downloademacs-bd8c6db5dc15296bacb42cbc65b24e82d12b7cfb.tar.gz
emacs-bd8c6db5dc15296bacb42cbc65b24e82d12b7cfb.zip
(compilation-setup): Don't set buffer-read-only.
(compilation-mode): Set it here instead.
-rw-r--r--lisp/progmodes/compile.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index fb2e2e78317..b73c9ca0007 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1150,6 +1150,7 @@ Runs `compilation-mode-hook' with `run-hooks' (which see).
1150 (set (make-local-variable 'page-delimiter) 1150 (set (make-local-variable 'page-delimiter)
1151 compilation-page-delimiter) 1151 compilation-page-delimiter)
1152 (compilation-setup) 1152 (compilation-setup)
1153 (setq buffer-read-only t)
1153 (run-mode-hooks 'compilation-mode-hook)) 1154 (run-mode-hooks 'compilation-mode-hook))
1154 1155
1155(defmacro define-compilation-mode (mode name doc &rest body) 1156(defmacro define-compilation-mode (mode name doc &rest body)
@@ -1212,8 +1213,6 @@ If nil, use the beginning of buffer.")
1212 "Prepare the buffer for the compilation parsing commands to work. 1213 "Prepare the buffer for the compilation parsing commands to work.
1213Optional argument MINOR indicates this is called from 1214Optional argument MINOR indicates this is called from
1214`compilation-minor-mode'." 1215`compilation-minor-mode'."
1215 (unless minor
1216 (setq buffer-read-only t))
1217 (make-local-variable 'compilation-current-error) 1216 (make-local-variable 'compilation-current-error)
1218 (make-local-variable 'compilation-messages-start) 1217 (make-local-variable 'compilation-messages-start)
1219 (make-local-variable 'compilation-error-screen-columns) 1218 (make-local-variable 'compilation-error-screen-columns)