-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:pin option ignored when trying to install newer version of builtin packages #955
Comments
Another scenario is installing
just keeps the built-in |
Just to reply to myself, I worked around this by having the following in my init file: (defun mk/ignore-builtin (pkg)
(assq-delete-all pkg package--builtins)
(assq-delete-all pkg package--builtin-versions))
(mk/ignore-builtin 'org)
(use-package org ....) This will ensure that Since this is a relatively common problem, it would be good if we had use-package supportin this use case natively, by adding a new option like |
Maybe I'm missing something here, but I don't think |
Regardless which version you installed or upgraded from the Snippet from #955 (comment) works around this, but it would be nice if |
I use Emacs on multiple machines and copy my config manually without the Except for org. I just tested again and even with As a user, |
You know, I didn't think until after I wrote this to check if I can delete my
Then all you have to do to get org-mode is something like this:
Remember to put it high in your config file so Emacs doesn't load the built-in org-mode first, otherwise you might get weird stuff like |
I have the following in my config where is
gnu
defined to point to gnu elpa repository.Expected result:
org-mode
is installed and loaded from the repository specified with:pin
.Actual result:
use-package
loads builtin version oforg
that is bundled with Emacs itself.Solutions:
If :pin option is used,
use-package
should not allow loading specified package from other sources, including builtin packages.Note:
This is related to #319 but not specific to
org-mode
since it applies to all packages.The text was updated successfully, but these errors were encountered: