From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.help Subject: Re: Strange problem with (setq buffer-read-only t). Date: Fri, 16 Jan 2009 09:04:08 +0800 Message-ID: <87eiz4dptj.fsf@debian.domain> References: <87prioe9ay.fsf@debian.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232067919 31013 80.91.229.12 (16 Jan 2009 01:05:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 01:05:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Juanma Barranquero" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 02:06:31 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNdA5-0008Dc-Eg for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 02:06:13 +0100 Original-Received: from localhost ([127.0.0.1]:36607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNd8o-0004aH-MF for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 20:04:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNd8S-0004a0-Cj for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:04:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNd8Q-0004Zh-Tw for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:04:32 -0500 Original-Received: from [199.232.76.173] (port=41889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNd8Q-0004Ze-RN for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:04:30 -0500 Original-Received: from ag-out-0708.google.com ([72.14.246.246]:54955) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNd8Q-0002E0-IP for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 20:04:30 -0500 Original-Received: by ag-out-0708.google.com with SMTP id 8so140151agc.8 for ; Thu, 15 Jan 2009 17:04:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type; bh=plXHP75x6os7NTD5Cd2N/NcWLkJDKuok2eaZJMvJlGU=; b=KJnbPo4T5c4jEeIwfOK/c4zObQRSeLLuqcsefwXpZvP2sq3I9pHkJJtCqQzdl04mnX zhQhNIiODVc5A9kXoFradTkJ/YECTcSESyqG6HDpKmwoFUaIaj1qeaVpZT8mqbTbZUC8 yCZgu/BVGnyaxdWUNCbXCn9jT4K4+2skij8WM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=n65Cc1KemIR1fjQIY0lKBssHU8pvnMpVOpDIUFLP5LAhih0z6YidManI1k1UiCpyTQ w4pf4gPPCFeUbmwvWNKb6N9ejWM8xykUZT94p32CQ5k5vWYyMDdFbjHo18VBgKVgKAh6 yOTUvRavHU7B5/AbS+fidczbs8Vv3VxxUXy/I= Original-Received: by 10.110.8.5 with SMTP id 5mr2359764tih.53.1232067867868; Thu, 15 Jan 2009 17:04:27 -0800 (PST) Original-Received: from smtp.gmail.com ([222.212.143.51]) by mx.google.com with ESMTPS id 22sm1423258tim.35.2009.01.15.17.04.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 Jan 2009 17:04:26 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Thu, 15 Jan 2009 19:22:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61385 Archived-At: Hi Juanma, "Juanma Barranquero" writes: > On Thu, Jan 15, 2009 at 19:03, Andy Stewart 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