Bad-ptr / persp-mode.el

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

Switching buffers in kill-buffer-hook #71

Closed mz-pdm closed 7 years ago

mz-pdm commented 7 years ago

persp-mode adds persp-kill-buffer-h to kill-buffer-hook. It invokes persp--remove-buffer-1, which may switch buffers. In the result other kill-buffer-hook functions may be called on a different buffer than the killed one, which may cause undesirable effects.

Setting persp-when-remove-buffer-switch-to-other-buffer to nil in persp-kill-buffer-h seems to fix the problem.

Bad-ptr commented 7 years ago

Can you try this a81eee3accf8c624a0956356364fd7a2566a91f3 ?

mz-pdm commented 7 years ago

I tried it and it seems to work fine. Thank you for the fix!

Bad-ptr commented 7 years ago

must be fixed