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

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

Re: Strange problem with (setq buffer-read-only t).


From: Andy Stewart
Subject: Re: Strange problem with (setq buffer-read-only t).
Date: Fri, 16 Jan 2009 09:04:08 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi Juanma,

"Juanma Barranquero" <address@hidden> writes:

> On Thu, Jan 15, 2009 at 19:03, Andy Stewart <address@hidden> wrote:
>
>> I use (setq buffer-read-only t) in function `irfc-mode' for make RFC
>> buffer read-only.
>>
>> And strange thing is, the (setq buffer-read-only t) that write in code looks
>> no effect.
>
> What do you mean with "no effect"?
>
> I just tried irfc.el and RFC buffers are indeed read-only.
>
> Which version of Emacs are you using? What steps should I follow to
> reproduce the bug?
I use 23.0.60.1, i find if i association rfc[0-9]+\\.txt with
'irfc-mode', then buffer is not read-only when it open, even i write
(setq buffer-read-only t) in source code.

But RFC buffer can read-only if i eval-expression "(setq buffer-read-only t)" 
with
*after* i open RFC buffer.

  -- Andy


>
>     Juanma




reply via email to

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