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: Sun, 15 Aug 2004 10:50:37 +0800 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87smapglmq.fsf@jidanni.org> References: <87d61u7qj5.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092601797 7000 80.91.224.253 (15 Aug 2004 20:29:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2004 20:29:57 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 15 22:29:51 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 1BwRdX-0003CT-00 for ; Sun, 15 Aug 2004 22:29:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BwRhb-0001bV-Ft for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Aug 2004 16:34:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BwRhX-0001Zo-1P for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2004 16:33:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BwRhU-0001ZV-33 for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2004 16:33:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BwRhU-0001ZL-0X for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2004 16:33:56 -0400 Original-Received: from [203.79.224.63] (helo=smtp2.apol.com.tw) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BwRdH-0006J3-TO for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2004 16:29:36 -0400 Original-Received: from jidanni1 (TC218-187-74-56.2-3.dynamic.apol.com.tw [218.187.74.56]) by smtp2.apol.com.tw (8.9.3/8.9.3) with ESMTP id EAA26635285 for ; Mon, 16 Aug 2004 04:29:29 +0800 (CST) Original-Received: from jidanni by jidanni1 with local (Exim 4.34) id 1BwB6T-0001K2-K2 for bug-gnu-emacs@gnu.org; Sun, 15 Aug 2004 10:50:37 +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:8713 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8713 rms> Could you elaborate? If you turn on flyspell mode for a read-only rms> buffer, what subsequently happens that you find inconvenient? Some might want to know of spelling problems they can't fix---but never mind that---larger problem: $ cat .emacs (setq default-major-mode 'text-mode);adding this line makes the below useless! (add-hook 'text-mode-hook (lambda () (or buffer-read-only (turn-on-auto-fill)) (and (not buffer-read-only)(> 88888 (buffer-size))(flyspell-mode 1)))) $ emacs -nw --no-site-file /usr/share/emacs/21.3/etc/DOC-21.3.1 And what do you know, despite my best efforts, there I am staring at "(Text Fly Fill)" in the modeline.