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 17:12:11 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     Maybe Gnus can do something like:
>
>     (or (fboundp 'run-mode-hooks)
>       (defalias 'run-mode-hooks 'run-hooks))
>
> Definitely not!  Gnus should not mess with the way Emacs defines
> (or doesn't define) these functions!

It seems that that I was badly educated by code I read: I've quite
often seen the use of constructs like the one above.

> Gnus should define a function called gnus-run-mode-hooks, which calls
> run-mode-hooks if that is defined, otherwise run-hooks.  Then all the
> modes in Gnus could use gnus-run-mode-hooks.

That's what Katsumi did for gnus-score-mode.  Other major mode in Gnus
still use gnus-run-hooks which uses run-hooks.  Katsumi, could you fix
those modes in a similar way?

Lute.




reply via email to

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