From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: buffer-read-only is always t at text-mode-hook time Date: Sat, 14 Aug 2004 04:05:02 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87d61u7qj5.fsf@jidanni.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092430918 9995 80.91.224.253 (13 Aug 2004 21:01:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Aug 2004 21:01:58 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 13 23:01:48 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 1BvjBM-0002IK-00 for ; Fri, 13 Aug 2004 23:01:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvjFK-0003ZF-Nr for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Aug 2004 17:05:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BvjFJ-0003Ym-3Q for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2004 17:05:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BvjFH-0003YG-IM for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2004 17:05:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvjFH-0003YD-Fv for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2004 17:05:51 -0400 Original-Received: from [203.79.224.63] (helo=smtp2.apol.com.tw) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BvjB4-0001MS-0x for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2004 17:01:30 -0400 Original-Received: from jidanni1 (TC218-187-79-209.2-4.dynamic.apol.com.tw [218.187.79.209]) by smtp2.apol.com.tw (8.9.3/8.9.3) with ESMTP id FAA26413814 for ; Sat, 14 Aug 2004 05:01:22 +0800 (CST) Original-Received: from jidanni by jidanni1 with local (Exim 4.34) id 1BviIQ-0000vI-6z for bug-gnu-emacs@gnu.org; Sat, 14 Aug 2004 04:05:02 +0800 Original-To: bug-gnu-emacs@gnu.org 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:8696 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8696 Ok it is not true that "buffer-read-only is always t at text-mode-hook time". Of course my bogus bug report is not my fault, > tell folks how also to set a hook just in case they need to > override. Don't only mention just add-hook. Rogers> Bad idea. Well, with all the setq examples from the 80's gone, we'll just add and add, and produce bogus bug reports. rms> (add-hook 'text-mode-hook 'turn-on-auto-fill) rms> should also show how to not turn it on for files one has no hope of editing. rms> Why bother to check? If you don't edit, it won't do anything. Well, at least do so for flyspell.el where it counts. OK, using (and (not buffer-read-only)(> 88888 (buffer-size))(flyspell-mode 1)) Over and out.