From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: chem Newsgroups: gmane.emacs.help Subject: Re: Differencing a major mode from its derived modes Date: Tue, 08 Jun 2004 11:36:38 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86vfhy5xg4.fsf@ifrance.com> References: <86y8mzc7fg.fsf@ifrance.com> <8665a2blop.fsf@rumba.de.uu.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086941323 19751 80.91.224.253 (11 Jun 2004 08:08:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Jun 2004 08:08:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 11 10:08:31 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 1BYh5S-0006sa-00 for ; Fri, 11 Jun 2004 10:08:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYh6C-00059i-1F for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jun 2004 04:09:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BYh63-00059c-F7 for help-gnu-emacs@gnu.org; Fri, 11 Jun 2004 04:09:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BYh61-00059P-77 for help-gnu-emacs@gnu.org; Fri, 11 Jun 2004 04:09:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BYh61-00059M-1p for help-gnu-emacs@gnu.org; Fri, 11 Jun 2004 04:09:05 -0400 Original-Received: from [195.46.220.210] (helo=mx.noos.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BYh5B-0003P9-Bi for help-gnu-emacs@gnu.org; Fri, 11 Jun 2004 04:08:13 -0400 Original-Received: from noos.fr (pm-mnet3.mgn.net [195.46.220.218]) by mx.noos.fr (Postfix) with SMTP id A888126D1B; Fri, 11 Jun 2004 10:08:11 +0200 (MEST) X-Mailbox-Line: From chemtov@ifrance.com Fri Jun 11 10:08:11 2004 Original-Received: from linux.localdomain (linux.localdomain [81.66.230.85]) by pm-mnet3.mgn.net with ESMTP; Fri, 11 Jun 2004 10:08:11 (MEST) Original-Received: by linux.localdomain (Postfix, from userid 35) id A59A3BA5A9; Fri, 11 Jun 2004 10:08:11 +0200 (CEST) X-From-Line: nobody Tue Jun 8 11:36:38 2004 Original-To: Kai Grossjohann Mail-Followup-To: Kai Grossjohann , help-gnu-emacs@gnu.org In-Reply-To: <8665a2blop.fsf@rumba.de.uu.net> (Kai Grossjohann's message of "Tue, 08 Jun 2004 08:36:38 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Original-Lines: 18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18937 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18937 > message-mode runs message-mode-hook and then text-mode-hook. > text-mode runs text-mode-hook only. > > So you could toggle allout mode from both hooks. This would turn it > on, then off again, in message-mode, which is what you want. Thanks, I did it already, but there are a lot of modes deriving from text mode, and I don't want to modify them all. That's why I wanted a general way to specify that a particular hook should only apply to the parent mode, and not to its children. PS: I try hard to make gnus and message use the MFT header (I post from the mailing list), I hope I achieve it. If not, I'm sorry, and will try harder. A typo in my emacs.el hinders me from replying sooner. -- Chemtov