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: org-mode and mode hooks. Date: Wed, 25 May 2005 17:44:21 +0200 Message-ID: <87wtpnl38q.fsf@xs4all.nl> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117036460 21782 80.91.229.2 (25 May 2005 15:54:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 May 2005 15:54:20 +0000 (UTC) Cc: Carsten Dominik , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 25 17:54:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Day9x-0006Eu-7E for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 17:51:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DayDq-0003H2-6b for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 11:55:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DayCN-0002lv-Ky for emacs-devel@gnu.org; Wed, 25 May 2005 11:53:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DayCK-0002kv-F1 for emacs-devel@gnu.org; Wed, 25 May 2005 11:53:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DayCK-0002ks-7n for emacs-devel@gnu.org; Wed, 25 May 2005 11:53:32 -0400 Original-Received: from [194.109.24.22] (helo=smtp-vbr2.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Day3u-00020o-DQ for emacs-devel@gnu.org; Wed, 25 May 2005 11:44:50 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr2.xs4all.nl (8.13.3/8.13.3) with ESMTP id j4PFiMfH079673; Wed, 25 May 2005 17:44:23 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Day3S-0001mV-00; Wed, 25 May 2005 17:44:22 +0200 Original-To: Stefan Monnier In-Reply-To: <87ll63weye.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 25 May 2005 10:45:08 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 21 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:37623 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37623 Stefan Monnier writes: [...] > While I think that org-mode should use define-derived-mode, I'm wondering > why it's a problem that after-change-major-mode-hook is run at the > wrong time. After all, such manual mode derivation (without using > define-derived-mode) is pretty common, so if there's a problem with it, we > should fix it. It is a problem in combination with a global minor mode defined with define-global-minor-mode since this 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'. See another message of mine in this thread. Lute.