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: Alan Mackenzie
Subject: Re: An idea: controlling the order of execution of elisp hook functions
Date: 8 Dec 2001 00:20:04 +0100
Date: Fri, 7 Dec 2001 18:24:26 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> wrote on Fri, 07 Dec 2001
13:19:42 -0500:
>> Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> wrote on Fri, 07 Dec 2001
>> 10:07:47 -0500:
>> >> Sometimes it is desirable to be able to control the order of
>> >> execution of elisp hook functions.

>> >> A way to do this would be to give each hook function an optional
>> >> property called, say, "priority", with expected values 'first
>> >> 'normal and 'last.

>> > As David pointed out, this level of control already exists.

>> Could one of you give me a pointer to this, please.  I didn't find it
>> in the Elisp manual v2.7 (accompanying Emacs 21.1).

>  (elisp)Hooks

> or 

>  C-h f add-hook

> See bit about 'append.

OK, I missed this.  But even so, it only allows a hook to say "please
execute me last".  It doesn't allow a hook to say "please execute me
first".

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").




reply via email to

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