GNU bug report logs -
#65719
[PATCH] Pass restart argument to 'kill-emacs-query-functions'
Previous Next
Reported by: me <at> elken.dev
Date: Sun, 3 Sep 2023 19:29:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
me--- via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
> Small change here to pass the restart status to
> 'kill-emacs-query-functions' in 'save-buffers-kill-emacs' so any
> functions there can react to being restarted, sample use-case this may
> be useful is if one is using a package like perspective.el to handle
> buffer/window management and when calling `M-x restart-emacs` you WANT
> your last session to be persisted, but just starting Emacs normally you
> don't.
>
> There are other potential use-cases for this too, so hopefully this
> patch is well-received.
Thanks. The feature sounds useful, and the use-case makes sense. But
isn't the change backwards-incompatible? Can we find a way to do this
without any breaking changes?
One idea would be to simply introduce a new variable that takes the
argument, while making the old one obsolete. That would allow people to
slowly migrate over to the new one, without everything suddenly breaking
under their feet.
This bug report was last modified 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.