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: Fundamental mode. Date: Wed, 15 Jun 2005 10:59:54 +0200 Message-ID: <87br68f111.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118826598 31858 80.91.229.2 (15 Jun 2005 09:09:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2005 09:09:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 15 11:09:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DiTtX-0000vR-UE for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 11:09:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiTyj-0003FL-30 for ged-emacs-devel@m.gmane.org; Wed, 15 Jun 2005 05:14:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DiTnS-0000Xw-8Y for emacs-devel@gnu.org; Wed, 15 Jun 2005 05:02:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DiTnQ-0000Wi-JI for emacs-devel@gnu.org; Wed, 15 Jun 2005 05:02:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiTnP-0000UF-MK for emacs-devel@gnu.org; Wed, 15 Jun 2005 05:02:52 -0400 Original-Received: from [194.109.24.21] (helo=smtp-vbr1.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DiTm2-0006q9-Vd for emacs-devel@gnu.org; Wed, 15 Jun 2005 05:01:27 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr1.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5F8xsau070152 for ; Wed, 15 Jun 2005 10:59:55 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DiTkY-0004eo-00 for ; Wed, 15 Jun 2005 10:59:54 +0200 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 12 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:38867 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38867 Modes derived from fundamental mode run after-change-major-mode-hook twice because fundamental mode runs it unconditionally. Fundamental mode should only run after-change-major-mode-hook if delay-mode-hooks is nil. We can either test this directly or use (run-mode-hooks 'fundamental-mode-hook). The latter also introduces fundamental-mode-hook, of course. I see no problem with that, but I'm a bit surprised it hasn't been done already. (So I suspect there is some reason for not running fundamental-mode-hook.) What do others think is best? Lute.