From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Cc: Nicolas Petton <nicolas@petton.fr>
Subject: How does one require the seq library after installing an updated version of it with package.el?
Date: Wed, 29 Apr 2020 11:51:33 -0400 [thread overview]
Message-ID: <9b8e1ff9-7886-78f7-8397-99c8cef30d78@gmail.com> (raw)
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.
next reply other threads:[~2020-04-29 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 15:51 Clément Pit-Claudel [this message]
2020-04-29 16:16 ` How does one require the seq library after installing an updated version of it with package.el? Stefan Monnier
2020-04-29 20:26 ` Clément Pit-Claudel
2020-05-01 2:47 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b8e1ff9-7886-78f7-8397-99c8cef30d78@gmail.com \
--to=cpitclaudel@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.