GNU bug report logs - #65719
[PATCH] Pass restart argument to 'kill-emacs-query-functions'

Previous Next

Package: emacs;

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

From: me <at> elken.dev
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 65719 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: bug#65719: [PATCH] Pass restart argument to 'kill-emacs-query-functions'
Date: Tue, 07 Jan 2025 15:54:42 +0000
> 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.




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.