From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: define-derived-mode runs parent mode hook after evaluating body Date: Fri, 20 Jul 2007 12:11:10 -0400 Message-ID: References: <46A079C2.4000802@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184947949 4800 80.91.229.12 (20 Jul 2007 16:12:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2007 16:12:29 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 18:12:27 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IBv5c-00006C-Q1 for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 18:12:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBv5c-000325-A2 for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 12:12:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBv4T-00024z-Vp for emacs-devel@gnu.org; Fri, 20 Jul 2007 12:11:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBv4R-00021u-Vt for emacs-devel@gnu.org; Fri, 20 Jul 2007 12:11:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBv4R-00021U-Ov for emacs-devel@gnu.org; Fri, 20 Jul 2007 12:11:11 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBv4R-0002im-Ba for emacs-devel@gnu.org; Fri, 20 Jul 2007 12:11:11 -0400 Original-Received: from pastel.home ([74.12.208.65]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070720161110.UESO1657.tomts36-srv.bellnexxia.net@pastel.home> for ; Fri, 20 Jul 2007 12:11:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1A6417FC0; Fri, 20 Jul 2007 12:11:09 -0400 (EDT) In-Reply-To: <46A079C2.4000802@gmx.at> (martin rudalics's message of "Fri\, 20 Jul 2007 11\:00\:50 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:75187 Archived-At: > (define-derived-mode change-log-mode text-mode "Change Log" > "..." > (setq left-margin 8 > fill-column 74 > ... > ...but in my .emacs I have: > (add-hook > 'text-mode-hook > '(lambda () (setq fill-column 72))) The problem here is that we use text-mode both as a parent and as a real major-mode, so you can't change "text-mode" without changing all its derivatives. Maybe the real text-mode should be renamed to plain-text-mode (and derive from text-mode, of course). Stefan