On 18 March 2014 22:52, Andreas Schwab <schwab@linux-m68k.org> wrote:
Reuben Thomas <rrt@sc3d.org> writes:

> Is there a way to give Emacs itself a continuation, i.e. a command to exec
> when it exits?

kill-emacs-hook?

That's not a tail-call: to reexec Emacs, it needs to be a proper exec. It might work from kill-emacs-hook, but it's surely not safe? Emacs hasn't finished shutting down when it runs…

--
http://rrt.sc3d.org