[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71356: use-package doesn't load org from elpa
From: |
Eli Zaretskii |
Subject: |
bug#71356: use-package doesn't load org from elpa |
Date: |
Wed, 05 Jun 2024 14:18:51 +0300 |
> Cc: 71356@debbugs.gnu.org
> From: Andrea Corallo <acorallo@gnu.org>
> Date: Tue, 04 Jun 2024 17:44:37 -0400
>
> Seems the issue is in 'use-package-ensure-elpa' where we gate any
> installation with "(unless (package-installed-p package)". I think we
> should progress also if we see that the package is built-in and is
> actually pinned.
>
> The attached seems to do the job for me, but I'm not 100% sure it's the
> best/right fix so I'd appretiate someone else to have a look.
Isn't this because we require an explicit directive by the user in
order to upgrade a built-in package? The Emacs user manual says:
By default, ‘package-install’ doesn't consider built-in packages for
which new versions are available from the archives. (A package is
built-in if it is included in the Emacs distribution.) In particular,
it will not show built-in packages in the list of completion candidates
when you type at its prompt. But if you invoke ‘package-install’ with a
prefix argument, it will also consider built-in packages that can be
upgraded. You can make this behavior the default by customizing the
variable ‘package-install-upgrade-built-in’: if its value is non-‘nil’,
‘package-install’ will consider built-in packages even when invoked
without a prefix argument. Note that the package-menu commands (*note
Package Menu::) are also affected by ‘package-install-upgrade-built-in’.
By contrast, ‘package-upgrade’ and ‘package-upgrade-all’ never
consider built-in packages. If you want to use these commands for
upgrading some built-in packages, you need to upgrade each of those
packages, once, either via ‘C-u M-x package-install <RET>’, or by
customizing ‘package-install-upgrade-built-in’ to a non-‘nil’ value, and
then upgrading the package once via the package menu or by
‘package-install’.
We had a long (and somewhat heated) discussion about this a year ago,
see bug#62720.
Philip, am I missing something?
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/04
- bug#71356: use-package doesn't load org from elpa, Andrea Corallo, 2024/06/04
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/05
- bug#71356: use-package doesn't load org from elpa,
Eli Zaretskii <=
- bug#71356: use-package doesn't load org from elpa, Andrea Corallo, 2024/06/05
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Eli Zaretskii, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Philip Kaludercic, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Eli Zaretskii, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Eli Zaretskii, 2024/06/06
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/07
- bug#71356: use-package doesn't load org from elpa, Philip Kaludercic, 2024/06/10
- bug#71356: use-package doesn't load org from elpa, Pedro Andres Aranda Gutierrez, 2024/06/10