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: Richard Stallman
Subject: Re: run-hooks vs. run-mode-hooks.
Date: Fri, 27 May 2005 10:20:23 -0400

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

Yes, but it won't always be correct.

    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!

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.




reply via email to

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