GNU bug report logs - #69300
30.0.50; [WISHLIST] Use-package require-with-check integration

Previous Next

Package: emacs;

Reported by: No Wayman <iarchivedmywholelife <at> gmail.com>

Date: Wed, 21 Feb 2024 15:19:02 UTC

Severity: wishlist

Found in version 30.0.50

To reply to this bug, email your comments to 69300 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#69300; Package emacs. (Wed, 21 Feb 2024 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to No Wayman <iarchivedmywholelife <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Feb 2024 15:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: No Wayman <iarchivedmywholelife <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; [WISHLIST] Use-package require-with-check integration
Date: Wed, 21 Feb 2024 10:16:26 -0500
A common user configuration error is loading built-in version of a 
package prior to loading a different version of the same package. 
For example, when user's store their config in an Org file and use 
`org-babel-load-file` to load their config which then attempts to 
activate/load the development version of Org.

use-package could be made to expand so `require-with-check' is 
used instead of `require' to catch cases like these. This should 
be customizable on a per-declaration basis, with a defcustom akin 
to the other use-package-always-* options. The use-package options 
should allow both signaling an error when the package is already 
on load-path, or forcefully reloading.





This bug report was last modified 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.