From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65035: 29.1; Port flycheck-emacs-lisp-initialize-packages to flymake Date: Sat, 14 Dec 2024 11:33:58 +0200 Message-ID: <864j36wqux.fsf@gnu.org> References: <87o73b6vmk.fsf@pengjiz.com> <86o73bds9e.fsf@gnu.org> <87ed44s8o7.fsf@pengjiz.com> <86y11sn4rw.fsf@gnu.org> <87msi23vyb.fsf@pengjiz.com> <868qt19hno.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65035@debbugs.gnu.org, joaotavora@gmail.com, me@pengjiz.com To: sbaugh@janestreet.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 10:35:27 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMOYY-0006Hd-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 10:35:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMOYB-0000Zy-MI; Sat, 14 Dec 2024 04:35:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMOYA-0000Zh-Or for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:35:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMOYA-0000BZ-An for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:35:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=YtpTUTFJFhcrot9RVfZxC1/uTiw0DjdLBVL5tm02HbI=; b=iQczGnWs7lgiDb2W+rTiwt+yt/AC96TBxiwgyfpDtHcGkxuJw0m0UiJ6mTP4ICUwLjjzGL1yO04lVz1VtAQ4JZNsTFsn0en07d4+kXNSu+NpcUcmv75nDmNmiHamUDCQVTFLMxFw+izqzDsSx2kzB9W81ZOnbaU8nc0Vgxyb524wowmvyZAfIZOcLjATeGVOccpPgoj8Bg1i4Rg6+0z6yZmSQfZPg9VpDhr2bbictYbB1Qk/+W0hC0Pm2iI/M64Go7l/GnFi+0QEPv8/3cXpl7kMEqgpvXDF8sfqK0eXRv9K3Ga+O/V0rPeCDTwHs83lWlvpcqcSW4PABNck/2Lu6A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMOYA-0006a4-4c for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2024 09:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65035 X-GNU-PR-Package: emacs Original-Received: via spool by 65035-submit@debbugs.gnu.org id=B65035.173416885725210 (code B ref 65035); Sat, 14 Dec 2024 09:35:02 +0000 Original-Received: (at 65035) by debbugs.gnu.org; 14 Dec 2024 09:34:17 +0000 Original-Received: from localhost ([127.0.0.1]:45446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMOXQ-0006YX-EE for submit@debbugs.gnu.org; Sat, 14 Dec 2024 04:34:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMOXI-0006Y9-L4 for 65035@debbugs.gnu.org; Sat, 14 Dec 2024 04:34:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMOXC-00005L-88; Sat, 14 Dec 2024 04:34:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YtpTUTFJFhcrot9RVfZxC1/uTiw0DjdLBVL5tm02HbI=; b=k+APeVLU12Ck jBriKpQy5mfZU15bptx19Ud6k3OOXTt1qcH0YXu0iSohdo5sLSG1fMk85W88eK04zQK/LVMbRr7Fz hltvXW8Jgk3rUZ8blILUGOPunrKH1mix0xZ5Yvklo1gGC/gWjyAQuw0VcKFw/S7zlBI/9fMgWCP59 7zgynzOusoRmukm+zXd5StOJM6vnnlQ1fS/o6FWcoIrV9UHUCdXxNl76WSl0Pjm5fGtAWoB1tgq0o H5JXvGSj1BkUkLVLOV0shFYpyOb+O4v7etb0//7t8d0bmNeusiaS3k7k9HMWDZAuK3+i5VL6zBA5o QhV+U4k3WHq54XSQdkCHkw==; In-Reply-To: <868qt19hno.fsf@gnu.org> (message from Eli Zaretskii on Sat, 30 Nov 2024 11:48:11 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297018 Archived-At: Ping! Ping! > Cc: joaotavora@gmail.com, 65035@debbugs.gnu.org > Date: Sat, 30 Nov 2024 11:48:11 +0200 > From: Eli Zaretskii > > Ping! Can we make some progress with this bug report? > > > Cc: joaotavora@gmail.com, 65035@debbugs.gnu.org > > From: Pengji Zhang > > Date: Thu, 14 Nov 2024 19:18:20 +0800 > > > > Spencer Baugh writes: > > > > > 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. > > > > I agree. How about the following change? > > > > --8<---------------cut here---------------start------------->8--- > > :name "elisp-flymake-byte-compile" > > :buffer output-buffer > > :command `(,(expand-file-name invocation-name invocation-directory) > > - "-Q" > > + ,@(if elisp-flymake--byte-compile-activate-packages > > + ;; Add site-lisp directories to `load-path' so > > + ;; that system-wide packages (installed into > > + ;; site-lisp/elpa) are activated. > > + '("-q" "--no-site-file") > > + '("-Q")) > > "--batch" > > ;; "--eval" "(setq load-prefer-newer t)" ; for testing > > ,@(mapcan (lambda (path) (list "-L" path)) > > --8<---------------cut here---------------end--------------->8--- > > > > > Probably we should specifically pass "--batch --no-site-file" instead > > > of "-Q --batch", since --batch also implies -q. > > > > I am not sure if it is a good idea to always include the site-lisp > > directories. I myself want this only when checking my init.el. When > > developing packages, I prefer a pristine environment. > > > > > > > > > > > >