Closed nandryshak closed 7 years ago
Thanks. However I did additional changes 93202a6d9b823eb21361bf911c01bbf91898a6e2. Hope this will not break your fix.)
Hmm, I think it might break again. Changing the when
to an if
should fix it.
@nandryshak can I close this? Or do you think that it is still not fixed?
I believe it should be fixed now, thanks!
When
persp-auto-save-opt
is 0,persp-asave-on-exit
will returnnil
, which makespersp-kill-emacs-query-function
returnnil
, which preventssave-buffers-kill-emacs
from finishing, which means Emacs never exits, becausesave-buffers-kill-emacs
runspersp-kill-emacs-query-function
usingrun-hook-with-args-until-failure
, andnil
indicates a failure.Phew, that was a mouthful. I submitted a pull request that fixes this by returning
t
when auto-save is off, indicating a successful completion of the function.