From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steven Allen Newsgroups: gmane.emacs.bugs Subject: bug#63541: [PATCH] ; Fix use-package :vc keyword when byte-compiled Date: Tue, 16 May 2023 16:12:04 -0700 Message-ID: <20230516231204.40043-1-steven@stebalien.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12009"; mail-complaints-to="usenet@ciao.gmane.io" To: 63541@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 17 01:13:27 2023 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 1pz3rB-0002wF-Jp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 May 2023 01:13:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pz3qs-00048R-52; Tue, 16 May 2023 19:13:06 -0400 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 1pz3qo-000480-Ar for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 19:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pz3qo-0000Kn-3M for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 19:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pz3qn-0003tf-Ok for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 19:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Steven Allen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 May 2023 23:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168427873714921 (code B ref -1); Tue, 16 May 2023 23:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2023 23:12:17 +0000 Original-Received: from localhost ([127.0.0.1]:48225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz3q5-0003sb-C5 for submit@debbugs.gnu.org; Tue, 16 May 2023 19:12:17 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pz3q2-0003sS-AI for submit@debbugs.gnu.org; Tue, 16 May 2023 19:12:16 -0400 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 1pz3q1-000451-Aq for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 19:12:13 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pz3py-00009s-Pg for bug-gnu-emacs@gnu.org; Tue, 16 May 2023 19:12:12 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 890503200906 for ; Tue, 16 May 2023 19:12:07 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 16 May 2023 19:12:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stebalien.com; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1684278727; x=1684365127; bh=dqOjyYbvWy FhdZrE6XL/UBrY0iyVIb5P8z8G3TmPKkE=; b=RV1Ha6qSwLnBNSSHejjpmLyWRj 18LHD5Op1I/jPoUCxX4RLY5dXIIhaiKnd3x8XnRLMlw86fumTKabmW6u9Mlww+fG yf9JwD+Cip+eqBDIIx/eyBl8zp1IUVLrQFivl8GkqKmceL86l8JbZZIUVv6syeDY vFeVbfYL/fFLjctT4b0NUYj8rYyAxCyDbHUvvNjMA8XwT2XnEAGv2R8waZ8/pIhQ qqosm+fda+43kk1iXA3Hqb/WUFhGcCPrAsDIHWDkv0A5hYIRqWguHMfGh1XGSTuR fUnPk51l6cbrMLEWUcwP9KQOp6MXmVIIT3ybolDJFwGBLK7hLsM+iPywHVJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1684278727; x=1684365127; bh=dqOjyYbvWyFhdZrE6XL/UBrY0iyV Ib5P8z8G3TmPKkE=; b=ZKndnbWjmSyX7M5Xh0rXuoitDwDtRdLmq9yO8B+v7Rie Ghk0drggMaEckUCX+rPPc9jSdqVwaqsNOASuDmOyrTnDSKs+YwHlXcMDHt+1exAa wYVhFHpg9sLI6GThYjtqG6AwGXquVaH0lWxMsVeJm+rX+flp6LMK11vu/46NpTNG r8C3dtP/uKaA7gehNBJVn7idvsIR59iR1VSDAWiSkEdmHISTqqKmcG1vIrQeCK9X lGiGORyGM7YnmT6KxGNhpQx876B003ZVvcKunbYRheeCIDKkeAxrgIz1WndzPMPq 9hORfQ+Xje8L69+Pym1kcD+bjIgjYjZWn5hoQqsXhw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeitddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepufhtvghvvghnucetlhhlvghnuceoshhtvghvvghnsehsthgvsggr lhhivghnrdgtohhmqeenucggtffrrghtthgvrhhnpeetffeujefgtdelieehudffheeihe dtiedtjefftdehvdfhjedvgeekteefvdetvdenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehsthgvvhgvnhesshhtvggsrghlihgvnhdrtghomh X-ME-Proxy: Feedback-ID: ie8a146a7:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 16 May 2023 19:12:06 -0400 (EDT) X-Mailer: git-send-email 2.40.1 Received-SPF: pass client-ip=64.147.123.19; envelope-from=steven@stebalien.com; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:261818 Archived-At: * lisp/use-package/use-package-core.el (use-package-handler/:vc): Return the new 'body'. Otherwise, the entire package declaration gets dropped when byte-compiling. --- lisp/use-package/use-package-core.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 0d99e270a3f..e0e16134ed3 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -1619,7 +1619,8 @@ defvar use-package--form) ;; See `use-package-handler/:ensure' for an explanation. (if (bound-and-true-p byte-compile-current-file) (funcall #'use-package-vc-install arg local-path) ; compile time - (push `(use-package-vc-install ',arg ,local-path) body)))) ; runtime + (push `(use-package-vc-install ',arg ,local-path) body)) ; runtime + body)) (defun use-package-normalize--vc-arg (arg) "Normalize possible arguments to the `:vc' keyword. -- 2.40.1