From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Fundamental mode. Date: Sun, 19 Jun 2005 02:49:33 +0200 Message-ID: <87slzf1882.fsf@xs4all.nl> References: <87br68f111.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119141972 26495 80.91.229.2 (19 Jun 2005 00:46:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Jun 2005 00:46:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 19 02:46:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Djnwc-0004YM-7E for ged-emacs-devel@m.gmane.org; Sun, 19 Jun 2005 02:45:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Djo2W-0002T5-Vm for ged-emacs-devel@m.gmane.org; Sat, 18 Jun 2005 20:51:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Djo1u-0002QG-Hm for emacs-devel@gnu.org; Sat, 18 Jun 2005 20:51:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Djo1r-0002Oq-EN for emacs-devel@gnu.org; Sat, 18 Jun 2005 20:51:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Djo1r-0002OZ-AW for emacs-devel@gnu.org; Sat, 18 Jun 2005 20:51:15 -0400 Original-Received: from [194.109.24.31] (helo=smtp-vbr11.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Djo2Z-0001Jo-QP for emacs-devel@gnu.org; Sat, 18 Jun 2005 20:52:00 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr11.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5J0nYkT090805 for ; Sun, 19 Jun 2005 02:49:34 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Djo0D-00019I-00 for ; Sun, 19 Jun 2005 02:49:33 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: (Johan =?iso-8859-1?Q?Bockg=E5rd's?= message of "Sat, 18 Jun 2005 17:04:45 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 19 X-Virus-Scanned: by XS4ALL Virus Scanner 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:39093 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39093 bojohan+news@dd.chalmers.se (Johan Bockg=E5rd) writes: >>> Modes derived from fundamental mode run after-change-major-mode-hook >>> twice because fundamental mode runs it unconditionally. > > I don't understand this. As define-derived-mode is currently defined modes > derived from fundamental-mode do not automatically call the fundamental-m= ode > function. > > [define-derived-mode] > > (when (eq parent 'fundamental-mode) (setq parent nil)) > [...] > (,(or parent 'kill-all-local-variables)) True. But it's possible to define a derived mode manually, without using the define-derived-mode macro. Lute.