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, 28 Dec 2024 13:08:25 +0200 Message-ID: <86o70wt68m.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> <864j36wqux.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: me@pengjiz.com, joaotavora@gmail.com, 65035@debbugs.gnu.org To: sbaugh@janestreet.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 28 12:09:17 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 1tRUh2-00011q-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Dec 2024 12:09:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRUgq-0006GX-T8; Sat, 28 Dec 2024 06:09: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 1tRUgo-0006GL-WC for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:09:03 -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 1tRUgo-0006CX-O6 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:09: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=PwxuTq8zNJytW64Uge69yNtYew/J9ZsC5UCgA/RiYRk=; b=EPDwB4kvTtxqGQa7VdleBjOfsM+I9ZRDmy0CvgEggytDAXBsSkoCobksWRsqU172Akap6KDCwDPQPcDXnZt4W+ul5/fBKsxktUUUWTFtJeGlj+IG+91PitTAR6ysAkndeyWqNnF/6mk4T7AlPzxA/XXUg58E8pba6oRMFMbLi7g1oFwEA4RA+Qn7RKqPEKOUa0r1qpUGp5cqA2j1uMfL3ozW1ehzbYR3f/lixkYA9W+DWRuE85u3pit0H4totTT4h696XJU5YQT2b5f+dcRnPfbvbAFLw1vjjG2B6NgJzFNWRKBSDqURjzmLfhE53pzBaztQj47jcD9Q7tKbSIHYlw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRUgo-0006PO-Ha for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2024 06:09: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, 28 Dec 2024 11:09: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.173538412824613 (code B ref 65035); Sat, 28 Dec 2024 11:09:02 +0000 Original-Received: (at 65035) by debbugs.gnu.org; 28 Dec 2024 11:08:48 +0000 Original-Received: from localhost ([127.0.0.1]:48948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRUgZ-0006Ou-VF for submit@debbugs.gnu.org; Sat, 28 Dec 2024 06:08:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRUgX-0006Oi-RM for 65035@debbugs.gnu.org; Sat, 28 Dec 2024 06:08:46 -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 1tRUgS-00068Z-9G; Sat, 28 Dec 2024 06:08:40 -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=PwxuTq8zNJytW64Uge69yNtYew/J9ZsC5UCgA/RiYRk=; b=fBOaQmGMOOPv gKM4XN52bi3Afe47LXPWvL1eOmU80E+HaE8HDcU6aLXsWTbrAY71zakUD+nG83OL+d5dP4/udfqp/ 9Ng6M1tHJoE/Kg//1j832PP6m+TKxF5+n0ldWnLY0XU7VZx74S+D8OPJSSc228cTPPvDccMqYFlcM IQK6AqXkpIFrUaY7FyIM4OQMqrzYVI8b62jk28UNG64llMRuqRttw2G0MqiPoBnHuvHeEOHh7fzcz xOZfJHjx0yfS52jle15447QnW6tMs7CJkevZDH6FEbOl7SDEDgOTHavnURFaiMckBT6s6YvJuzvJA lEKvQL/gOuKu1A9q+qnoDw==; In-Reply-To: <864j36wqux.fsf@gnu.org> (message from Eli Zaretskii on Sat, 14 Dec 2024 11:33:58 +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:297873 Archived-At: Ping! Ping! Ping! > Cc: 65035@debbugs.gnu.org, joaotavora@gmail.com, me@pengjiz.com > Date: Sat, 14 Dec 2024 11:33:58 +0200 > From: Eli Zaretskii > > 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. > > > > > > > > > > > > > > > > > > > > > > > >