emacs-devel
[Top][All Lists]
Advanced

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

Re: run-hooks vs. run-mode-hooks.


From: Lute Kamstra
Subject: Re: run-hooks vs. run-mode-hooks.
Date: Fri, 27 May 2005 03:40:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Katsumi Yamaoka <address@hidden> writes:

> run-mode-hooks is only available in Emacs 22, while Gnus v5.11
> still supports Emacs 20 and 21 (and No Gnus supports Emacs 21).
>
> 2005-05-26  Lute Kamstra  <address@hidden>
>
>       * score-mode.el (gnus-score-mode): Use run-mode-hooks.

Sorry about that.

> Is it possible to use run-hooks in those Emacs versions?

Maybe Gnus can do something like:

(or (fboundp 'run-mode-hooks)
    (defalias 'run-mode-hooks 'run-hooks))

I saw that most hooks are run with gnus-run-hooks, which calls
run-hooks.  Maybe you can also define a gnus-run-mode-hooks that uses
run-mode-hooks instead and use that function for Gnus' major modes?

Lute.




reply via email to

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