Package: Emacs Version: 30.0.50 With packages being available both as bundled with Emacs and as ELPA packages, it has become a lot more common place to have two versions of a package in the `load-path` and to have to deal with situations where the "incorrect" version has been loaded before `load-path` was changed. These kinds of problems manifest in various ways and we try to circumvent them in `package.el` in some cases but that can't cover all cases. I suggest we introduce a new function to help packages susceptible to those problems. The patch below introduces a new function which I tentatively called `require-with-check` and shows how it could be used in the case of `eglot.el` (which relies on several core packages also distributed via GNU ELPA and currently uses a hack which slows it down unnecessarily in the normal case). As mentioned in a FIXME in there, maybe we should also consider adding to `seq` (and `eldoc`) something like ;;;###autoload (if (featurep 'seq) (require-with-check 'seq 'reload)) -- Stefan