* How does one require the seq library after installing an updated version of it with package.el?
@ 2020-04-29 15:51 Clément Pit-Claudel
2020-04-29 16:16 ` Stefan Monnier
2020-05-01 2:47 ` Richard Stallman
0 siblings, 2 replies; 4+ messages in thread
From: Clément Pit-Claudel @ 2020-04-29 15:51 UTC (permalink / raw)
To: Emacs developers; +Cc: Nicolas Petton
Hi there,
Because package.el requires `seq', seq is loaded very early after starting Emacs — so early, in fact, that when package-initialize adds elpa/ directories to the load-path, seq is already loaded.
As a result, even if a newer version of seq is installed, it is never loaded, because the built-in seq library is already loaded.
I got bitten by this while developing a package that uses seq-sort-by, which isn't available in Emacs 25's built-in seq. I added a dependency on seq 2.14, which does contain seq-sort-by, but that doesn't help: package.el does install the dependency, but it is never loaded.
Is this a bug, or am I doing something wrong?
Thanks!
Clément.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does one require the seq library after installing an updated version of it with package.el?
2020-04-29 15:51 How does one require the seq library after installing an updated version of it with package.el? Clément Pit-Claudel
@ 2020-04-29 16:16 ` Stefan Monnier
2020-04-29 20:26 ` Clément Pit-Claudel
2020-05-01 2:47 ` Richard Stallman
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2020-04-29 16:16 UTC (permalink / raw)
To: Clément Pit-Claudel; +Cc: Nicolas Petton, Emacs developers
> Is this a bug, or am I doing something wrong?
It's a bug.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does one require the seq library after installing an updated version of it with package.el?
2020-04-29 16:16 ` Stefan Monnier
@ 2020-04-29 20:26 ` Clément Pit-Claudel
0 siblings, 0 replies; 4+ messages in thread
From: Clément Pit-Claudel @ 2020-04-29 20:26 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Nicolas Petton, Emacs developers
On 29/04/2020 12.16, Stefan Monnier wrote:
>> Is this a bug, or am I doing something wrong?
>
> It's a bug.
Thanks, reported as #40971.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How does one require the seq library after installing an updated version of it with package.el?
2020-04-29 15:51 How does one require the seq library after installing an updated version of it with package.el? Clément Pit-Claudel
2020-04-29 16:16 ` Stefan Monnier
@ 2020-05-01 2:47 ` Richard Stallman
1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2020-05-01 2:47 UTC (permalink / raw)
To: Clément Pit-Claudel; +Cc: nicolas, emacs-devel
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> Because package.el requires `seq', seq is loaded very early after starting Emacs
For libraries we expect many users to load, such as package.el, it
might be better to avoid depending on seq.el.
We no longer need to try to keep Emacs under Eight Megabytes,
but we may as well avoid things that cause it to grow
when they are easy to avoid.
--
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-01 2:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-29 15:51 How does one require the seq library after installing an updated version of it with package.el? Clément Pit-Claudel
2020-04-29 16:16 ` Stefan Monnier
2020-04-29 20:26 ` Clément Pit-Claudel
2020-05-01 2:47 ` Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.