[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: Order of hook execution
From:       "Kevin J. McCarthy" <kevin () 8t8 ! us>
Date:       2015-06-26 22:52:11
Message-ID: 20150626225211.GC2553 () zaogao ! lan
[Download RAW message or body]


Ian Zimmerman wrote:
> From this behavior it is clear that the "second" hook in fact runs
> first, and vice versa.

Actually, the folder-hooks are run in the order listed in your .muttrc.

However, each invocation of exec or push adds to the *front* of the
input buffer.  Hence the contents of the second exec/push will be
executed before the first one (after all the hooks are evaluated and
input starts processing).

It's possible to put multiple functions in a single exec, so
  folder-hook . "exec collapse-all current-bottom"
may be clearer.

--=20
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic