Hi. Currently, after switching persps, the buffer before the switch is still set as (current-buffer), so the post-command-hook is ran for that buffer with the new buffer as the (window-buffer). This can cause untold horrors like in: https://github.com/magit/magit/pull/5098. And the Emacs maintainers have declared this behavior in a command to be a bug in:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69259.
Hi. Currently, after switching persps, the buffer before the switch is still set as
(current-buffer)
, so thepost-command-hook
is ran for that buffer with the new buffer as the(window-buffer)
. This can cause untold horrors like in: https://github.com/magit/magit/pull/5098. And the Emacs maintainers have declared this behavior in a command to be a bug in: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69259.