From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: fundamental-mode-hook Date: Thu, 08 Feb 2007 02:06:24 -0800 Message-ID: <877iutvu8v.fsf@floss.red-bean.com> References: <45CA70FA.6020002@gmail.com> Reply-To: kfogel@red-bean.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170896598 18095 80.91.229.12 (8 Feb 2007 01:03:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Feb 2007 01:03:18 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 08 02:03:11 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 1HExgr-0006Wj-F0 for ged-emacs-devel@m.gmane.org; Thu, 08 Feb 2007 02:03:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HExgr-0001BO-4Q for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2007 20:03:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HExgf-0001BI-F7 for emacs-devel@gnu.org; Wed, 07 Feb 2007 20:02:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HExgd-0001B0-UA for emacs-devel@gnu.org; Wed, 07 Feb 2007 20:02:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HExgd-0001Ax-OW for emacs-devel@gnu.org; Wed, 07 Feb 2007 20:02:55 -0500 Original-Received: from sanpietro.red-bean.com ([66.146.193.61]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HExgd-0003bS-85 for emacs-devel@gnu.org; Wed, 07 Feb 2007 20:02:55 -0500 Original-Received: from localhost ([127.0.0.1]:53197 helo=floss.red-bean.com ident=kfogel) by sanpietro.red-bean.com with esmtp (Exim 4.63) (envelope-from ) id 1HExgc-0000vC-5f; Wed, 07 Feb 2007 19:02:54 -0600 Emacs: a Lisp interpreter masquerading as ... a Lisp interpreter! In-Reply-To: <45CA70FA.6020002@gmail.com> (Lennart Borgman's message of "Thu\, 08 Feb 2007 01\:38\:18 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-detected-kernel: Linux 2.6 (newer, 3) 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:66099 Archived-At: "Lennart Borgman (gmail)" writes: > The elisp manual > > (info "(elisp) Major Mode Conventions") > > says that > > Each major mode should have a normal "mode hook" named > `MODENAME-mode-hook'. > > fundamental-mode does not have such a hook. Do you have a use in mind for such a hook, or is the inconsistency just bugging you? (Not a facetious question, I'm honestly trying to figure out if the situation is a problem or not.) In simple.el, fundamental-mode's definition is pretty tiny: (defun fundamental-mode () "Major mode not specialized for anything in particular. Other major modes are defined by comparison with this one." (interactive) (kill-all-local-variables) (unless delay-mode-hooks (run-hooks 'after-change-major-mode-hook))) Hmm, for one thing, I'm not sure why it doesn't just say (delay-mode-hooks 'after-change-major-mode-hook) instead of checking the variable delay-mode-hooks manually. Aside from that, it would be pretty easy to stick a run-hooks call in there, but would it really help anyone do anything they couldn't do before? -Karl