* Ian Zimmerman <i...@buug.org> [06-26-15 12:05]: > It seems when multiple hooks exist for the same context (in particular, > multiple folder-hooks matching on ".*"), they're executed in reverse > order of appearance in .muttrc. > > >From the 1st day I started using mutt seriously I had this in .muttrc: > > folder-hook .* "exec collapse-all" > > But, this resulted in the last message scrolling up to some apparently > random position when I entered a folder. So, a couple of times I tried > adding > > folder-hook .* "exec current-bottom" > > but this seemed to have no effect whatsoever, so I removed it again. > > Today I finally had the bright idea of doing an uncollapse in a folder > right after entering it, and I noticed this placed the last message > exactly in the bottom row, where it belongs. So, it was clear that the > collapse caused the misalignment. After thinking for a few minutes, I > added the hook with current-bottom again, but this time _before_ the > hook with collapse-all. And voila! problem solved. > > >From this behavior it is clear that the "second" hook in fact runs > first, and vice versa. > > It would be nice to document this in the reference :-P
If you will check tfm, I believe you will find that some hooks are executed on the first match and some one the last. Been a while since I looked, so .... And I am getting quite old. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net