GNU bug report logs -
#77389
31.0.50; Restarting Emacs with (kill-emacs ... t) looses noninteractivity
Previous Next
Full log
View this message in rfc822 format
On 2025-04-04 12:46, Eli Zaretskii wrote:
>> - sysdep.c refers to initial_argv[0] in function emacs_perror
>> and it seems it does so for Windows as well. What should I
>> do about that one? Use simply constant "emacs"? Or the
>> result of w32_my_exename (plus any required coding system
>> conversion)?
>
> 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?
[1]: https://debbugs.gnu.org/cgi/bugreport.cgi?att=1;bug=77389;filename=0001-Use-raw-argv-as-passed-into-main-to-restart-Emacs-alternative.patch;msg=20
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.