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: org-mode and mode hooks. Date: Wed, 25 May 2005 18:15:50 -0400 Message-ID: <87hdgrufcl.fsf-monnier+emacs@gnu.org> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> <200505252135.j4PLZvt26969@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117059446 2035 80.91.229.2 (25 May 2005 22:17:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 May 2005 22:17:26 +0000 (UTC) Cc: emacs-devel@gnu.org, Lute.Kamstra.lists@xs4all.nl, dominik@science.uva.nl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 26 00:17:23 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Db4Ao-0007un-3t for ged-emacs-devel@m.gmane.org; Thu, 26 May 2005 00:16:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db4Dp-0000AK-5l for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 18:19:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Db4DA-00007F-JT for emacs-devel@gnu.org; Wed, 25 May 2005 18:18:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Db4D7-00004x-En for emacs-devel@gnu.org; Wed, 25 May 2005 18:18:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Db4D7-0008WM-5n for emacs-devel@gnu.org; Wed, 25 May 2005 18:18:45 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Db4An-0000ab-W0 for emacs-devel@gnu.org; Wed, 25 May 2005 18:16:22 -0400 Original-Received: from alfajor ([70.49.81.199]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050525221550.NFXG26102.tomts10-srv.bellnexxia.net@alfajor>; Wed, 25 May 2005 18:15:50 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id BE1DAD7700; Wed, 25 May 2005 18:15:50 -0400 (EDT) Original-To: Luc Teirlinck In-Reply-To: <200505252135.j4PLZvt26969@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 25 May 2005 16:35:57 -0500 (CDT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:37646 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37646 > I do not know whether there are a lot of derived modes that do not > follow the convention. I know there are several. Derived modes are pretty common, whereas the use of define-derived-mode was pretty rare until recently. W.r.t the code bundled with Emacs, there's often no problem (tho, sometimes there is, because it's not always trivial to fix the code to use define-derived-mode), but for the unbundled packages, the change: 2005-05-22 Luc Teirlinck * emacs-lisp/easy-mmode.el (define-global-minor-mode): Use `after-change-major-mode-hook' instead of `find-file-hook'. introduced a bug where (typically) global-font-lock chooses the wrong keywords (the ones of the parent mode rather than ones of the actual major mode). Stefan