]> code.delx.au - gnu-emacs/commitdiff
(compilation-setup): Don't set buffer-read-only.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 16 Nov 2004 04:52:19 +0000 (04:52 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 16 Nov 2004 04:52:19 +0000 (04:52 +0000)
(compilation-mode): Set it here instead.

lisp/progmodes/compile.el

index fb2e2e78317c5961ecadcfd3b46ca03e9c591971..b73c9ca0007918e8bb32e9dee4fe399632ee91aa 100644 (file)
@@ -1150,6 +1150,7 @@ Runs `compilation-mode-hook' with `run-hooks' (which see).
   (set (make-local-variable 'page-delimiter)
        compilation-page-delimiter)
   (compilation-setup)
+  (setq buffer-read-only t)
   (run-mode-hooks 'compilation-mode-hook))
 
 (defmacro define-compilation-mode (mode name doc &rest body)
@@ -1212,8 +1213,6 @@ 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'."
-  (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)