From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Wed, 25 May 2005 12:30:55 -0500 (CDT) Message-ID: <200505251730.j4PHUsa24634@raven.dms.auburn.edu> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117043222 14920 80.91.229.2 (25 May 2005 17:47:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 May 2005 17:47:02 +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 Wed May 25 19:46:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dazw4-0006Co-EZ for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 19:44:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dazzy-0003sF-F3 for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 13:48:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dazv1-0002PG-NV for emacs-devel@gnu.org; Wed, 25 May 2005 13:43:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dazuo-0002Iz-AZ for emacs-devel@gnu.org; Wed, 25 May 2005 13:43:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dazum-00028o-LI for emacs-devel@gnu.org; Wed, 25 May 2005 13:43:32 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DazjK-0006nc-TT for emacs-devel@gnu.org; Wed, 25 May 2005 13:31:43 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j4PHVECK006807; Wed, 25 May 2005 12:31:14 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j4PHUsa24634; Wed, 25 May 2005 12:30:55 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier@iro.umontreal.ca In-reply-to: <87ll63weye.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 25 May 2005 10:45:08 -0400) 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:37628 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37628 Stefan Monnier wrote: 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. I my previous reply to the last sentence, I forgot that we were talking about timing and not about the actual running or not running. But the fact that run-mode-hooks should be run _at the very end_ of a mode has been documented ever since run-mode-hooks itself was documented. In my replies on this issue, I was assuming that there was a problem with org-mode as it is right now (which could only be that after-change-major-mode-hook was not run), whereas on closer reading, I see that the discussed problem would only occur after a change to org-mode. Sincerely, Luc.