Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
394 stars 44 forks source link

Ensure current-buffer is up to date #149

Open LemonBreezes opened 4 months ago

LemonBreezes commented 4 months ago

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.