unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andy Stewart <lazycat.manatee@gmail.com>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Strange problem with (setq buffer-read-only t).
Date: Fri, 16 Jan 2009 09:04:08 +0800	[thread overview]
Message-ID: <87eiz4dptj.fsf@debian.domain> (raw)
In-Reply-To: <f7ccd24b0901151022xe188933he6ac180660831d2d@mail.gmail.com> (Juanma Barranquero's message of "Thu, 15 Jan 2009 19:22:53 +0100")

Hi Juanma,

"Juanma Barranquero" <lekktu@gmail.com> writes:

> On Thu, Jan 15, 2009 at 19:03, Andy Stewart <lazycat.manatee@gmail.com> 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	other threads:[~2009-01-16  1:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 18:03 Strange problem with (setq buffer-read-only t) Andy Stewart
2009-01-15 18:22 ` Juanma Barranquero
2009-01-16  1:04   ` Andy Stewart [this message]
2009-01-16  1:16     ` Juanma Barranquero
2009-01-16  1:29       ` Andy Stewart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eiz4dptj.fsf@debian.domain \
    --to=lazycat.manatee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).