From: Richard M. Stallman Date: Tue, 19 Oct 2004 16:48:30 +0000 (+0000) Subject: (compilation-setup): Don't set buffer-read-only if MINOR is non-nil. X-Git-Tag: ttn-vms-21-2-B4~4478 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f331dedcad5c0b259e4b07999bea7af452054e3;p=emacs.git (compilation-setup): Don't set buffer-read-only if MINOR is non-nil. --- 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)