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

Full log


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 1 year and 116 days ago.

Previous Next


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