GNU bug report logs - #77389
31.0.50; Restarting Emacs with (kill-emacs ... t) looses noninteractivity

Previous Next

Package: emacs;

Reported by: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>

Date: Sun, 30 Mar 2025 17:22:01 UTC

Severity: normal

Found in version 31.0.50

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: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77389 <at> debbugs.gnu.org
Subject: bug#77389: 31.0.50; Restarting Emacs with (kill-emacs ... t) looses noninteractivity
Date: Sat, 5 Apr 2025 14:44:12 +0200
[Message part 1 (text/plain, inline)]
On 2025-04-05  08:46, Eli Zaretskii wrote:

>>> Why does this matter?  Your patch doesn't eliminate initial_argv, so
>>> initial_argv[0] still holds the name of the Emacs program, albeit only
>>> in the form it was provided by the calling shell.  Right?  If so, then
>>> for reporting errors (and ones that should never happen at that), I
>>> don't see any need to jump through hoops.
>>
>> But my patch, at least the second one [1] on message #20
>> of this bug, plus your earlier request to #ifdef away
>> function and call to copy_raw_args on Windows, would skip
>> the initialization of initial_argv on Windows, no?
> 
> Ah, I've missed that part.  Then the call to 'error' could just use
> argv[0] instead of initial_argv[0], right?

Then what do you think about the attached patch?
[0001-Use-a-pristine-copy-of-argv-to-restart-Emacs.patch (text/x-patch, attachment)]

This bug report was last modified 41 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.