Subject: Re: bug#79124: emacs -Q doesn't give me a clean slate

From: Eli Zaretskii <[email-masked]>
Date: Wed, 30 Jul 2025 19:03:25 +0300

> From: Robert Pluim <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Wed, 30 Jul 2025 17:33:26 +0200
> 
> >>>>> On Wed, 30 Jul 2025 18:29:40 +0300, Eli Zaretskii <[email-masked]> said:
> 
>     >> From: Robert Pluim <[email-masked]>
>     >> Cc: Paul Eggert <[email-masked]>,  Richard Stallman <[email-masked]>,
>     >> [email-masked]
>     >> Date: Wed, 30 Jul 2025 16:11:15 +0200
>     >> 
>     >> We sometimes also read from .emacs.d/network-security.data under -Q,
> 
>     Eli> Not at startup time, right?  You are talking about calling some
>     Eli> network-related APIs.
> 
> Right. But itʼs still surprising that Emacs reads from ~/.emacs.d when
> -Q is specified.
> 
> Basically it happens whenever `nsm-verify-connection' calls
> `nsm-host-settings'. We could add a check for "-Q" there.

OTOH, it's quite annoying to type the same responses to the NSM
prompts when trying stuff in "emacs -Q".

There is "emacs -D", which perhaps could be more "pristine".  Patches
welcome.

That said, these options are of interest only to Emacs hackers.