On 21/09/2022 17:25, Aleksas Tunikas wrote:
can't quit emacs because of this error, guess i've mess something up,
pls help
Ensure that you saved all buffers and evaluate (scratch buffer of M-:)
(setq kill-emacs-hook nil)
I usually fail into such state after compiling Org for Emacs-27 and
launching Emacs-26. Once I faced a similar issue playing with remote
editing using tramp, but I have not tried to reproduce it.
You may provide more information, e.g. copy error from the *Messages*
buffer (C-h e) or by enable debug on error.
I believe that exit hooks should be more fool proof.