I've tried with many different autocmds but no dice. It works just fine when changing the buffer via :e bar.c ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results