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, 30 Nov 2024 11:48:11 +0200 Message-ID: <868qt19hno.fsf@gnu.org> References: <87o73b6vmk.fsf@pengjiz.com> <86o73bds9e.fsf@gnu.org> <87ed44s8o7.fsf@pengjiz.com> <86y11sn4rw.fsf@gnu.org> <87msi23vyb.fsf@pengjiz.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, 65035@debbugs.gnu.org To: sbaugh@janestreet.com, Pengji Zhang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 10:49:19 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 1tHK6J-0009fw-Ct for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 10:49:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHK64-0007Hi-TB; Sat, 30 Nov 2024 04:49:04 -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 1tHK62-0007HV-Oo for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:49: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 1tHK62-000551-G3 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:49: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=TW02Y4L9n2b3/zzoJdVakifspGVJwM/D95oyrPfLges=; b=gLXONP5lUtLY9nmud0+x4aGlOPHxNYYvLyYSHuBozM4iZkaEeGZIyEwVmBM7QkOpguGt7NJBT793rgPjakg73Q3lO+L+hlKFk3ZkE0RjMYG2pF8rbaFJ2Lg7m+LFMN+oSVuV18ll0Pd3/L8qarthcr8q6hwbR/gZZlK+OF5x2EoMJ09xpQ0nqJBuAOKOmPjMMgZKoMrtoQ3M6B2hAPdeq7Pxk8RD356ON33+jkt4/bJP9re4CotHp/aAqapC+cnOuyWcCxuXJzStp1dVMyIuiV4BTekzYZUfKt21fJw3/y/5CldmDr4V0lTp/BF+rDia4Lm+HjH24FvG7p89jpgoWg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHK62-0006Ph-87 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 04:49: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, 30 Nov 2024 09:49: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.173296010324575 (code B ref 65035); Sat, 30 Nov 2024 09:49:02 +0000 Original-Received: (at 65035) by debbugs.gnu.org; 30 Nov 2024 09:48:23 +0000 Original-Received: from localhost ([127.0.0.1]:45449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHK5O-0006OJ-H4 for submit@debbugs.gnu.org; Sat, 30 Nov 2024 04:48:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHK5M-0006O5-KH for 65035@debbugs.gnu.org; Sat, 30 Nov 2024 04:48:21 -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 1tHK5G-0004lP-SS; Sat, 30 Nov 2024 04:48:14 -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=TW02Y4L9n2b3/zzoJdVakifspGVJwM/D95oyrPfLges=; b=a+52hE8CWXM8 OYg2bbvbrJidu5syNqxxhh5h4ZmEbdpRAT+QPwxp4TBW0lGaqZ3trvFLX1x9nD7srtl3nm3JxL4vt AGkThmdIth1qrOaUP7cGEVI0pE+wPatup9PjpT/w4M2nXyT8t7mItwKCEX5yq5XkNccRwe9l/ec0B pIdXSly8o6DbVklUC//fpvUe6PP+B1b3kIn7nZN9x73IgPMPP/jriS+k4e8HWtNDbqmzkWzSit4Y+ 1pgUFQ+dsPubMVueTWYdjjx2ZbaBay8dAsEqbsR0X9GWZEOuwSNVqw68kOMpZbUU3EZPMV+EY2RAp HnP134AHEHEXTPP+zw3Upw==; In-Reply-To: <87msi23vyb.fsf@pengjiz.com> (message from Pengji Zhang on Thu, 14 Nov 2024 19:18:20 +0800) 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:296126 Archived-At: 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. > > > >