Bad-ptr / persp-mode.el

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

Emacs doesn't exit when persp-auto-save-opt is non-zero #49

Closed nandryshak closed 7 years ago

nandryshak commented 7 years ago

When persp-auto-save-opt is 0, persp-asave-on-exit will return nil, which makes persp-kill-emacs-query-function return nil, which prevents save-buffers-kill-emacs from finishing, which means Emacs never exits, because save-buffers-kill-emacs runs persp-kill-emacs-query-function using run-hook-with-args-until-failure, and nil 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.

Bad-ptr commented 7 years ago

Thanks. However I did additional changes 93202a6d9b823eb21361bf911c01bbf91898a6e2. Hope this will not break your fix.)

nandryshak commented 7 years ago

Hmm, I think it might break again. Changing the when to an if should fix it.

Bad-ptr commented 7 years ago

@nandryshak can I close this? Or do you think that it is still not fixed?

nandryshak commented 7 years ago

I believe it should be fixed now, thanks!