From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pengji Zhang Newsgroups: gmane.emacs.bugs Subject: bug#65035: 29.1; Port flycheck-emacs-lisp-initialize-packages to flymake Date: Thu, 14 Nov 2024 19:18:20 +0800 Message-ID: <87msi23vyb.fsf@pengjiz.com> References: <87o73b6vmk.fsf@pengjiz.com> <86o73bds9e.fsf@gnu.org> <87ed44s8o7.fsf@pengjiz.com> <86y11sn4rw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26504"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, 65035@debbugs.gnu.org To: Spencer Baugh , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 14 12:19:29 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 1tBXsm-0006mB-8l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Nov 2024 12:19:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBXsN-0000iV-UC; Thu, 14 Nov 2024 06:19: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 1tBXsM-0000i8-Dp for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 06:19: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 1tBXsM-0004s0-5H for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 06:19:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=u3sNNhyERjXy+dD2v1wrohRt/sKPaO5Yn0ro82JsjLU=; b=LJt1W57RXHnCMK2n7VEi/vXIgkuHx4IoIv++ZyzsQ2XMxzhe8FyB+7h3+5Mu9XXO4igEQHtsOUjwlFeghUqopK/+x6QGyMeNks+moYUeo6UBctvOKg+GwkEf2PqG8obX2n0dGKFwqkLc5lOQPDW9Ct03XVS6Oqqt9e4/A2Sd6USZyVn2D+drWbqJZVuh7ugc15K5eS4/f6AFXKXNH4O60I2TmI4Hnqaa+tPP8WLjYR1gG4X5RgQigjOMf37WtyhOBHKmeiq5IaRyhnSaZKgc1pC2vmk4mctFO/jdScXCd42U3MFTUjVj2MkJrI3Xi+nDEvGjDXdoI7DDxWKhyW9ojA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBXsL-0000ia-V9 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 06:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pengji Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2024 11:19:01 +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.17315831242728 (code B ref 65035); Thu, 14 Nov 2024 11:19:01 +0000 Original-Received: (at 65035) by debbugs.gnu.org; 14 Nov 2024 11:18:44 +0000 Original-Received: from localhost ([127.0.0.1]:45285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBXs3-0000hw-Rw for submit@debbugs.gnu.org; Thu, 14 Nov 2024 06:18:44 -0500 Original-Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]:37289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBXs2-0000hk-TF for 65035@debbugs.gnu.org; Thu, 14 Nov 2024 06:18:43 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 8CA061140175; Thu, 14 Nov 2024 06:18:37 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 14 Nov 2024 06:18:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1731583117; x=1731669517; bh=u3sNNhyERj Xy+dD2v1wrohRt/sKPaO5Yn0ro82JsjLU=; b=dGivCy+qQe6edUolqmLXb/+mRU wsHlYVMmAjd+n5Ool38bVxXNHEn9UU5hBQza3KAp54nBaeZVgU7jbO1fC2avSIhY uzwDm6ZQ1kcA45ODpxqhaedmsjvSzpoVujzkkx4M8SGmICnqObZCJCziRvM5lX9+ D+cPOyzp8M//uhfA9V9z7GQEeIOLxPnMSdN/9pjsvPZexPDN0ZDCyJxN6jcRDJGL 8kxcwq9gGos0TnxeBUZzMWqREUV1X7ZungDYfUnoij7WLKh6FIjjS5NK9j1MRjIL Z7E9mUBcAQQUYvuNsZ0oBjOrNUgYl09HnBxB1Ptd0+2OSMSzYx1hQyKdPJmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1731583117; x=1731669517; bh=u3sNNhyERjXy+dD2v1wrohRt/sKPaO5Yn0r o82JsjLU=; b=FJdHUkzsnpi6X7Um5Huii+07cN1QiPd35ToSeKLr5WeEi+QNCmz sNnPkRdhpgyCPUIelwoE77dWPkbxVZ2d6mLedJ50kL/Ndn7uGP0dcvdA5xFNO0GA ePmxrb0Q4cYcx4FRJ7hP3Fj9o0SCjzUA8pJv6szPzoBNcoqWJ78TD8qbMTWVcymd jqfTC0HQDU6m5sRgYX+F/CKavPFOKzAC3FHp1/+YHW3NOM2e82VBEPmoEa/O4Nsi KZ5N0aStrwecgZopD/urCXXWnAU+YeFcgUBC9yV8VtuGy0aDa0GJvvjaJDW2wFCE ba1UXc1ccwMw6rbjkKh/kCODsgHFv1/UMig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddvgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgesthdtredttddttdenucfh rhhomheprfgvnhhgjhhiucgkhhgrnhhguceomhgvsehpvghnghhjihiirdgtohhmqeenuc ggtffrrghtthgvrhhnpeegfeeiiedvudekiedtgedufedtvedtueetieffhfdvhefftefg ieejieelleehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehmvgesphgvnhhgjhhiiidrtghomhdpnhgspghrtghpthhtohepgedpmhhouggv pehsmhhtphhouhhtpdhrtghpthhtohepshgsrghughhhsehjrghnvghsthhrvggvthdrtg homhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehjohgrohht rghvohhrrgesghhmrghilhdrtghomhdprhgtphhtthhopeeihedtfeehseguvggssghugh hsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Nov 2024 06:18:36 -0500 (EST) In-Reply-To: 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:295328 Archived-At: 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.