bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *compilation* buffers should be readonly


From: Kevin Rodgers
Subject: Re: *compilation* buffers should be readonly
Date: Fri, 01 Jun 2001 13:14:59 -0600

Dan Jacobson wrote:
> *compilation* buffers should be readonly by default as often it (make
> or sh -x output) looks like your source code and you start editing it
> only to have your changes wiped away by the next invocation of M-x
> compile.
> 
> Hmmm, in the meantime I'll try
> (add-hook 'compilation-mode-hook
>            (function (lambda ()
>                       (toggle-read-only 1))))

Won't that prevent Emacs itself from writing the compile command's output to
the compilation buffer?  I also disagree with your suggestion in general,
since someone might want to run an interactive command that requires input
via `compile'.

I think what you want would be better implemented via the compilation buffer's 
rocess sentinel.

-- 
Kevin Rodgers <address@hidden>          Lead Software Engineer
Information Handling Services           Electronic Systems Development
15 Inverness Way East, M/S A114         GO BUFFS!
Englewood CO 80112-5776 USA             1+ (303) 397-2807[voice]/705-4258[fax]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]