From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-devel@gnu.org
Subject: Re: package-install-selected-packages and newer versions
Date: Thu, 27 Jul 2023 13:27:51 +0300 [thread overview]
Message-ID: <874jlpabtk.fsf@iki.fi> (raw)
In-Reply-To: 87jzul65sj.fsf@gnu.org
Greetings Tassilo.
>> I was trying to use the nice variable package-selected-packages and
>> the associated function package-install-selected-packages to automate
>> package installation on my multiple systems.
>
> You might also be interested in use-package which is part of emacs since
> 29.1 (which, of course, isn't released, yet). I use that in my ~/.emacs
> for all external packages and can just copy my ~/.emacs to some new
> machine and the first start will install all required packages.
> Example:
>
> (use-package markdown-mode
> :ensure t
> :mode "\\.md\\'"
> :custom
> (markdown-command "cmark --unsafe"))
>
> The :ensure t makes sure the package will be installed if it isn't yet.
>
>> I ran into a problem because package-install-selected-packages does
>> not check whether a newer version of a package is available.
>> [...]
>> Would it be desirable to add an option to install a newer version if
>> one is available?
>
> In emacs 29.1, there's a new package-upgrade-all command which basically
> solves that issue.
I feel like in a supermarket when I ask where a product is located, and
the shopkeeper kindly tells me that I am standing right next to the
thing I just asked for.
Looking forward to 29.1. Thanks!
Jarmo
next prev parent reply other threads:[~2023-07-27 10:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 7:35 package-install-selected-packages and newer versions Jarmo Hurri
2023-07-27 9:45 ` Tassilo Horn
2023-07-27 10:27 ` Jarmo Hurri [this message]
2023-07-27 15:01 ` Tassilo Horn
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jlpabtk.fsf@iki.fi \
--to=jarmo.hurri@iki.fi \
--cc=emacs-devel@gnu.org \
/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 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).