[subtree] Initial commit
[filter] run the hook only after all the other hooks messed with the buffer