[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-mode and mode hooks.

From: Stefan Monnier
Subject: Re: org-mode and mode hooks.
Date: Wed, 25 May 2005 18:15:50 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> 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  <address@hidden>

        * 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]