From: Derek Upham via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 72453@debbugs.gnu.org
Subject: bug#72453: 29.4; "use-package" macro does not load all expected related files
Date: Sun, 18 Aug 2024 18:26:22 -0700 [thread overview]
Message-ID: <87cym5xpz5.fsf@priss.frightenedpiglet.com> (raw)
In-Reply-To: <CADwFkmk7s+=b-cVX=iFtf_SQaXGYtszkA44MUn6ML+xsEJS2fg@mail.gmail.com> (Stefan Kangas's message of "Sun, 18 Aug 2024 11:21:40 +0000")
Stefan Kangas <stefankangas@gmail.com> 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"
>> file
>> should fix the problem. The "use-package" file explicitly
>> loads the
>> other files, which sets up all of the defaults.
>
> The attached less intrusive patch fixes it here. Could you
> 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’m 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.
--
Derek Upham
derek_upham@mailfence.com
next prev parent reply other threads:[~2024-08-19 1:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-03 21:58 bug#72453: 29.4; "use-package" macro does not load all expected related files Derek Upham via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-04 4:44 ` Eli Zaretskii
2024-08-04 6:01 ` John Wiegley
2024-08-04 8:14 ` Eli Zaretskii
2024-08-04 14:56 ` Derek Upham via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 8:24 ` Eli Zaretskii
2024-08-04 14:46 ` Derek Upham via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-18 11:21 ` Stefan Kangas
2024-08-18 11:31 ` Eli Zaretskii
2024-08-19 1:26 ` Derek Upham via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-08-19 23:58 ` Stefan Kangas
2024-08-21 12:46 ` Mattias Engdegård
2024-09-01 9:32 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cym5xpz5.fsf@priss.frightenedpiglet.com \
--to=bug-gnu-emacs@gnu.org \
--cc=72453@debbugs.gnu.org \
--cc=derek_upham@mailfence.com \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).