From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: chem Newsgroups: gmane.emacs.help Subject: Differencing a major mode from its derived modes Date: Tue, 08 Jun 2004 00:46:59 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <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 1086648465 19026 80.91.224.253 (7 Jun 2004 22:47:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2004 22:47:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 08 00:47:33 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 1BXStx-0008GZ-00 for ; Tue, 08 Jun 2004 00:47:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXSuW-0005Mt-1p for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jun 2004 18:48:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BXSuN-0005Mn-9T for help-gnu-emacs@gnu.org; Mon, 07 Jun 2004 18:47:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BXSuL-0005Ma-Gs for help-gnu-emacs@gnu.org; Mon, 07 Jun 2004 18:47:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BXSuL-0005MX-Ck for help-gnu-emacs@gnu.org; Mon, 07 Jun 2004 18:47:57 -0400 Original-Received: from [195.46.220.209] (helo=pm-mx.noos.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BXStZ-0004Sx-Os for help-gnu-emacs@gnu.org; Mon, 07 Jun 2004 18:47:09 -0400 Original-Received: from noos.fr (pm-mnet5.mgn.net [195.46.220.216]) by pm-mx.noos.fr (Postfix) with SMTP id 5256F26939 for ; Tue, 8 Jun 2004 00:47:00 +0200 (MEST) X-Mailbox-Line: From chemtov@ifrance.com Tue Jun 08 00:47:00 2004 Original-Received: from linux.localdomain (linux.localdomain [81.66.230.85]) by pm-mnet5.mgn.net with ESMTP; Tue, 8 Jun 2004 00:47:00 (MEST) Original-Received: by linux.localdomain (Postfix, from userid 35) id 36ECCB9DFB; Tue, 8 Jun 2004 00:46:59 +0200 (CEST) Original-To: help-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) 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:18910 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18910 Hi, 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. I tried, using a: - if test on the major-mode, and it's not working - (if (get major-mode 'derived-mode-parent)..., not working neither. It seems that the major-mode on which the derived mode is based is actually loaded. Thus, all the hooks are made. Only then, the customization of the derived mode are done. Then, I really don't know how to isolated the parent from its children. If someone has a solution, it would be nice. Thanks -- Chemtov