From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Differencing a major mode from its derived modes Date: Tue, 08 Jun 2004 08:36:38 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8665a2blop.fsf@rumba.de.uu.net> References: <86y8mzc7fg.fsf@ifrance.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086676874 11446 80.91.224.253 (8 Jun 2004 06:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2004 06:41:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 08 08:41:08 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 1BXaIG-0005Vy-00 for ; Tue, 08 Jun 2004 08:41:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXaIp-0003lt-DM for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jun 2004 02:41:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXaIe-0003kt-Bi for help-gnu-emacs@gnu.org; Tue, 08 Jun 2004 02:41:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXaIc-0003kH-TM for help-gnu-emacs@gnu.org; Tue, 08 Jun 2004 02:41:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXaIc-0003kE-Qj for help-gnu-emacs@gnu.org; Tue, 08 Jun 2004 02:41:30 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BXaHo-00077h-8p for help-gnu-emacs@gnu.org; Tue, 08 Jun 2004 02:40:40 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by mx20.gnu.org with esmtp (Exim 4.34) id 1BXaHa-0005so-S1 for help-gnu-emacs@gnu.org; Tue, 08 Jun 2004 02:40:27 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BXaHZ-0001ko-00 for ; Tue, 08 Jun 2004 08:40:25 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jun 2004 08:40:25 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jun 2004 08:40:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 13 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:C3nmTy08Zxw9ap8+oABTmhm+JWc= 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:18915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18915 chem writes: > I would like to add allout mode only to text-mode. That is, I don't > want allout mode to propagate to all the derived modes, like message > mode, etc. 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. Kai