unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#62576: package-install of an ELPA :core package doesn't reload in time
@ 2023-03-31 22:43 João Távora
  0 siblings, 0 replies; only message in thread
From: João Távora @ 2023-03-31 22:43 UTC (permalink / raw)
  To: 62576; +Cc: monnier

Hello,

I'm reporting this bug to Emacs as suggested by Stefan.

The original report by Jay Barra lives at
https://github.com/joaotavora/eglot/issues/1193:

A simpler reproduction can be achieved in this manner, with Emacs 28:

   HOME=`mktemp -d` && emacs -Q # ensure we have a blank ELPA package directly

   M-: (featurep 'project) ;; return nil
   M-x package-install RET eglot RET
   M-x find-library RET project RET
   M-: (featurep 'project) ;; returns t
   M-: (fboundp 'project-name) ;; return nil

The last step is a bug because the 'project.el' now shown in the window,
which _does_ contain 'project-name' is not the one that was loaded.

Instead, Emacs's 28 built-in project.el 0.8.1 was loaded.  Subsequent usage of
Eglot, which requires project 0.9.8, fails.  Restarting Emacs fixes this.

Stefan says there is some code in package.el to prevent this and
unconditionally reload the newly installed project.el.  But for some
reason it's not being triggered.

João





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

only message in thread, other threads:[~2023-03-31 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 22:43 bug#62576: package-install of an ELPA :core package doesn't reload in time João Távora

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