changeset 58256:02a1d74082fd

(compilation-setup): Don't set buffer-read-only. (compilation-mode): Set it here instead.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 16 Nov 2004 04:52:19 +0000
parents 65bbc782c81c
children 8f67c69ee3ee
files lisp/progmodes/compile.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Tue Nov 16 04:05:29 2004 +0000
+++ b/lisp/progmodes/compile.el	Tue Nov 16 04:52:19 2004 +0000
@@ -1150,6 +1150,7 @@
   (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 @@
   "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)