From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Fundamental mode. Date: Thu, 16 Jun 2005 00:07:42 -0400 Message-ID: References: <87br68f111.fsf@xs4all.nl> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118895109 9670 80.91.229.2 (16 Jun 2005 04:11:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2005 04:11:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 16 06:11:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Diliw-0002dd-T8 for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 06:11:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DiloH-0004XX-Tf for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2005 00:16:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dilmo-000420-Ub for emacs-devel@gnu.org; Thu, 16 Jun 2005 00:15:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dilmk-0003zP-N9 for emacs-devel@gnu.org; Thu, 16 Jun 2005 00:15:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dilmj-0003uz-IS for emacs-devel@gnu.org; Thu, 16 Jun 2005 00:15:21 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dilh8-00088t-Gv for emacs-devel@gnu.org; Thu, 16 Jun 2005 00:09:34 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1DilfK-0003Fm-6G; Thu, 16 Jun 2005 00:07:42 -0400 Original-To: Lute Kamstra In-reply-to: <87br68f111.fsf@xs4all.nl> (message from Lute Kamstra on Wed, 15 Jun 2005 10:59:54 +0200) 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:38930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38930 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. Fundamental mode does not run a mode hook because what it means is "put settings in their default values". But it needs to run after-change-major-mode-hook, since the minor modes that should apply to all buffers apply to these buffers too. Could you do that explicitly? Thanks.