Subject: Re: bug#65035: 29.1; Port flycheck-emacs-lisp-initialize-packages to flymake

From: Spencer Baugh <[email-masked]>
Date: Tue, 12 Nov 2024 16:56:11 -0500

Eli Zaretskii <[email-masked]> writes:
>> From: Pengji Zhang <[email-masked]>
>> Cc: [email-masked], João Távora
>>  <[email-masked]>, Eli Zaretskii
>>  <[email-masked]>
>> Date: Fri, 25 Oct 2024 19:50:48 +0800
>> 
>> João Távora <[email-masked]> writes:
>> 
>> > Feel free to use my patch of course.  Stefan noted some time ago
>> > that -f package-initialize is the wrong flag to ask Emacs -Q to use
>> > elpa though, so there's something better.
>> 
>> Thanks! I prepared a new patch based on yours.
>
> Thanks.  Spencer, any comments?

I think this should also switch from passing "-Q" to passing just "-q".
If we're include ~/.emacs.d/elpa on load-path, we should include the
site-lisp directories too, which -Q suppresses.

Probably we should specifically pass "--batch --no-site-file" instead of
"-Q --batch", since --batch also implies -q.

(This is particularly relevant for my site, where most packages are
distributed via site-lisp/elpa rather than installed into
package-user-dir)