[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: |
Kim F. Storm |
Subject: |
Re: An idea: controlling the order of execution of elisp hook functions |
Date: |
10 Dec 2001 01:07:16 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
eliz@is.elta.co.il (Eli Zaretskii) writes:
> 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.
Suppose package A knows its hook should come before package B, but B
doesn't know about A.
Now, if A's hook is added before B, then you need to store the `before B'
requirement too, to handle adding B's hook later on.