The code that gives this advice handles only the simple cases. As you have pointed out, to even try to handle the hard cases is very hard.
We certainly don't want to do that now, and it might not be worth doing ever. I am concerned that the approach you have in mind, `change-window-buffer-functions', would be the first step on a path that adds up to lots of work. I also see potential problems in putting hooks on every state-changing activity in Emacs, such as displaying a buffer in a window. _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
