From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: buffer-read-only is always t at text-mode-hook time Date: Tue, 17 Aug 2004 21:34:00 -0400 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87d61u7qj5.fsf@jidanni.org> <4120DF47.5000708@yahoo.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1092792896 25387 80.91.224.253 (18 Aug 2004 01:34:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2004 01:34:56 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 03:34:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxFLk-0006kr-00 for ; Wed, 18 Aug 2004 03:34:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxFPw-0004T8-56 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2004 21:39:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxFPJ-00045f-OL for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2004 21:38:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxFPH-00044b-7A for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2004 21:38:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxFPH-00044R-4S for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2004 21:38:27 -0400 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BxFL4-0007c5-Ko for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2004 21:34:06 -0400 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id i7I1Y4UT045165 for ; Wed, 18 Aug 2004 01:34:05 GMT (envelope-from rms@gnu.org) Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BxFKy-0003Mn-77; Tue, 17 Aug 2004 21:34:00 -0400 Original-To: Kevin Rodgers In-reply-to: <4120DF47.5000708@yahoo.com> (message from Kevin Rodgers on Mon, 16 Aug 2004 10:22:31 -0600) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8733 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8733 I don't know how that could be fixed without moving the call to set-buffer-major-mode into or after find-file-no-select-1 (which inserts the file contents into the buffer). If that's not feasible, should the interaction between default-major-mode and the mode's hook functions be documented? Moving the call into after-find-file would fix this, but that kind of change could easily introduce various other bugs. I don't know of any specific thing that could fail after this change, but there are many things that need to be checked to verify they won't sometimes fail. Does anyone want to study and check them?