unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#69300: 30.0.50; [WISHLIST] Use-package require-with-check integration
@ 2024-02-21 15:16 No Wayman
  0 siblings, 0 replies; only message in thread
From: No Wayman @ 2024-02-21 15:16 UTC (permalink / raw)
  To: 69300


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.






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-21 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 15:16 bug#69300: 30.0.50; [WISHLIST] Use-package require-with-check integration No Wayman

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).