From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] text-mode-hook-identify should be part of the standard value for text-mode-hook Date: Sat, 09 Feb 2002 12:38:22 +0100 Organization: The Church of Emacs Message-ID: References: <200201302237.g0UMb1d24844@aztec.santafe.edu> <200202040927.g149RUF02434@aztec.santafe.edu> <200202051248.g15CmDb02207@aztec.santafe.edu> <200202071457.g17Ev9B04626@aztec.santafe.edu> <200202082323.g18NNgw05648@aztec.santafe.edu> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013255313 6653 195.204.10.66 (9 Feb 2002 11:48:33 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 9 Feb 2002 11:48:33 GMT Cc: emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16ZVzc-0001jD-00 for ; Sat, 09 Feb 2002 12:48:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZVqa-000676-00; Sat, 09 Feb 2002 06:39:12 -0500 Original-Received: from sheridan.dina.kvl.dk ([130.225.40.227]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZVpo-00064C-00; Sat, 09 Feb 2002 06:38:25 -0500 Original-Received: from ssv2.dina.kvl.dk (ssv2.dina.kvl.dk [130.225.40.226]) by sheridan.dina.kvl.dk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id MAA07976; Sat, 9 Feb 2002 12:38:22 +0100 Original-Received: from abraham by ssv2.dina.kvl.dk with local (Exim 3.12 #1 (Debian)) id 16ZVpm-0007Eg-00; Sat, 09 Feb 2002 12:38:22 +0100 Original-To: rms@gnu.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ In-Reply-To: <200202082323.g18NNgw05648@aztec.santafe.edu> (Richard Stallman's message of "Fri, 8 Feb 2002 16:23:42 -0700 (MST)") Original-Lines: 22 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:914 Richard Stallman writes: > I suspect it was done with a hook because text-mode-hook is also > called from modes not derived from text-mode. > > That seems very unreliable. Which are they, and why? I remember it as being recommended practice, before define-derived-mode existed. A grep run-hooks.*text-mode-hook in the Emacs CVS revealed the following modes that call text-mode-hook: bookmark-read-annotation-mode, bookmark-edit-annotation-mode, gnus-article-edit-mode, message-mode (fixed in Gnus CVS), the old outline-mode, and news-reply-mode (from rnewspost... does rnews really still exists?). >From unbundled packages, I know the various AUC TeX modes also call text-mode-hook explicitly, they have never been converted to use 'define-derived-mode'. I suspect other older unbundled packages for editining "mostly plain text" do the same. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel