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
Message #58 received at 65719-done <at> debbugs.gnu.org (full text, mbox):
> Cc: 65719 <at> debbugs.gnu.org, stefankangas <at> gmail.com
> Date: Tue, 07 Jan 2025 18:38:04 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > Date: Tue, 07 Jan 2025 15:54:42 +0000
> > From: me <at> elken.dev
> > Cc: 65719 <at> debbugs.gnu.org, stefankangas <at> gmail.com
> >
> > > It's a strange (and maybe even dangerous) distinction.
> >
> > I'm afraid I don't see this, could you elaborate?
> >
> > > But in any case, I think a cleaner solution would be to bind a
> > > variable inside restart-emacs, and then your hook could examine it.
> > > Alternatively, ...
> > >
> > >> > In any case, the prefix argument is available via current-prefix-arg.
> > >>
> > >> Yes you're right, I realised after I sent it....
> > >
> > > ...you could invoke restart-emacs with a prefix argument, and examine
> > > that in your kill-emacs-query-functions hook. AFAICT, this should
> > > work without any changes.
> >
> > I'm afraid I also don't follow here, how is that cleaner than
> > introducing
> > a specific hook? Rather than needing to specifically modify a function
> > to work with the prefix argument, you can just add it to the hook.
>
> It isn't necessarily cleaner, but it is a local solution for what I
> consider a local and very specialized problem. There's no reason to
> expect Emacs to have an OOTB solution for every possible niche use
> case that some user needs to handle. Adding a hook means we all have
> to pay the price in documenting it, maintaining it, etc.
>
> Each request for adding a new feature should have a solid enough basis
> before we must consider it for addition. FWIW, I don't yet see why
> this particular request qualifies.
No further comments, so I'm closing this bug.
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.