From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Derek Upham via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72453: 29.4; "use-package" macro does not load all expected related files Date: Sun, 18 Aug 2024 18:26:22 -0700 Message-ID: <87cym5xpz5.fsf@priss.frightenedpiglet.com> References: <87plqp9slr.fsf@priss.frightenedpiglet.com> Reply-To: Derek Upham Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72453@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 19 03:27:40 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 1sfrBL-000ACC-PJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Aug 2024 03:27:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfrB6-0007bA-3g; Sun, 18 Aug 2024 21:27:24 -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 1sfrB3-0007am-UG for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 21:27:22 -0400 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 1sfrB3-0006BB-L8 for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 21:27:21 -0400 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=wzX5syO5oqyVXghW+fHvuSmhaOoBmVKf+Bp5n1blUts=; b=ma4S1vq+bqZtmL097XgJrv0QEwUazSUdONYlyjmUbBB1Y3MkfexSrVJsYO1KmG5vQHhr3NfuZ6x4ocus4MCq5NvINT8sY2rz+0rRE21qYvsnsR59IYxXGUINICHkEjYDJJnUnRPAUegKeS+AVeb2dIU5wsnQbvqfM+FBSHtDFFlB3Khg83iGteG/VPoKMTF9QodtQ7WGXiqjfrZpJADxaEaM0ELpWGapk9TCPssd+iJrVWrcgHHymOewQYqAEGSxKdck/Jq8S/5dDiYkYfXQMOe3WwV5/EYrfzKYUDKXdkTMNSGCRyP/oaD+hk+d4KyRbMkV5HEptH7w8hPmLByVcQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfrBi-0001Ib-4Q for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2024 21:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Derek Upham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Aug 2024 01:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72453 X-GNU-PR-Package: emacs Original-Received: via spool by 72453-submit@debbugs.gnu.org id=B72453.17240308384932 (code B ref 72453); Mon, 19 Aug 2024 01:28:02 +0000 Original-Received: (at 72453) by debbugs.gnu.org; 19 Aug 2024 01:27:18 +0000 Original-Received: from localhost ([127.0.0.1]:57132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfrB0-0001HU-GB for submit@debbugs.gnu.org; Sun, 18 Aug 2024 21:27:18 -0400 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]:60374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfrAy-0001H7-Dh for 72453@debbugs.gnu.org; Sun, 18 Aug 2024 21:27:17 -0400 Original-Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by wilbur.contactoffice.com (Postfix) with ESMTP id 48AD6209F; Mon, 19 Aug 2024 03:26:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1724030788; s=20240605-akrp; d=mailfence.com; i=derek_upham@mailfence.com; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=wzX5syO5oqyVXghW+fHvuSmhaOoBmVKf+Bp5n1blUts=; b=epiq28sWPSXwHUVRFpKi1bVzmV1hg9PdvCkkpZDDYg+fVH579hmJiXpEDlel2Yjk 5ZtirFTd/EJDDi99oOMx1xlZ8kaO/dIuyXi/TZdim5YoO/rNDsoFgqcm+2jl49ko/Au mxxFMLen6CPz8RvGAl22syUGbaCwegl5Oa4aIot+gDH/dEPWez9pdzPKpaQGqv/AmCM IzahjQg4PZWQuzEI9y847xP/6CRK6u/7tgNyagnbOTJ6HFoECk86oeV1JxYHvc+DZtf Vlfjn+b+/L2GGtMRWbbzjOKrgSdXgN1SrGzPIB0UBiIv8XLxaHilxsHoVSrfS0SkK9I d1E9Ggk0LA== Original-Received: by smtp.mailfence.com with ESMTPSA ; Mon, 19 Aug 2024 03:26:25 +0200 (CEST) Original-Received: from [::1] (helo=priss.frightenedpiglet.com) by priss.frightenedpiglet.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97) (envelope-from ) id 1sfrA6-00000000LUm-3uxk; Sun, 18 Aug 2024 18:26:22 -0700 In-Reply-To: (Stefan Kangas's message of "Sun, 18 Aug 2024 11:21:40 +0000") X-ContactOffice-Account: com:175140567 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:290364 Archived-At: Stefan Kangas writes: >> Warning (emacs): use-package-ensure-trace files (t) nil >> Warning (emacs): use-package-ensure-trace rx (t) nil >> Warning (emacs): use-package-ensure-trace avoid (t) nil > > Thanks for the bug report and the clear recipe to reproduce it. > > I can reproduce this bug here also. > >> Moving the "use-package" macro into the top-level "use-package"=20 >> file >> should fix the problem. The "use-package" file explicitly=20 >> loads the >> other files, which sets up all of the defaults. > > The attached less intrusive patch fixes it here. Could you=20 > please test > that it fixes the problem for you? Validating on stock 29.4, with this command: ~/emacs-29.4/bin/emacs --init-directory use-package-ensure-test and this test code: (defun use-package-ensure-trace (name args state) (warn "use-package-ensure-trace %s %s %s" name args state) t) ;;(require 'use-package) (setq use-package-ensure-function 'use-package-ensure-trace) (setq use-package-always-ensure t) (use-package faces) (use-package ansi-color) (use-package files :ensure t) (use-package rx) (use-package avoid) I=E2=80=99m seeing the outputs that we expect: Warning (emacs): use-package-ensure-trace faces (t) nil Warning (emacs): use-package-ensure-trace ansi-color (t) nil Warning (emacs): use-package-ensure-trace files (t) nil Warning (emacs): use-package-ensure-trace rx (t) nil Warning (emacs): use-package-ensure-trace avoid (t) nil Thanks for working on this. --=20 Derek Upham derek_upham@mailfence.com