bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: An idea: controlling the order of execution of elisp hook functions


From: Eli Zaretskii
Subject: Re: An idea: controlling the order of execution of elisp hook functions
Date: Sun, 9 Dec 2001 11:29:29 +0200 (IST)

On Sat, 8 Dec 2001, Richard Stallman wrote:

> To make them work, you have to figure out logical categories and
> assign regions of the number space to them--in which case, it is
> better to label them with categories instead of numbers.  Or else you
> have to assign numbers based on knowing what numbers everything else
> uses.  That can be made to work if one person can assign numbers to
> everything, but it's hard for that to work when lots of people are
> assigning them independently.

Perhaps such a category scheme could simply store, together with the
hook, the name of the package that added the hook.  Then other
packages could decide whether they need to put their hook before or
after the hooks that are already in the list.  A simple extension of
add-hook could provide a `before' and an `after' feature.



reply via email to

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