unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Gabriel <gabriel376@hotmail.com>, emacs-devel@gnu.org
Subject: Re: On package-install x package-install-selected-packages
Date: Sat, 13 Mar 2021 01:05:52 -0600	[thread overview]
Message-ID: <CADwFkmk-uoFmeVHHcwfKoaiWiS8xY77UaM=OrjxZG7k8bViBxw@mail.gmail.com> (raw)
In-Reply-To: <CH2PR01MB5879BF55DCFB5AB57D7726DA8B6E9@CH2PR01MB5879.prod.exchangelabs.com>

Gabriel <gabriel376@hotmail.com> writes:

> On package.el, the 'package-install' calls
> 'package--archives-initialize' to initialize the archive contents, but
> 'package-install-selected-packages' does not calls it, relying on users
> to initialize the archive contents by themselves. I could not find any
> documentation about this difference. Should we modify
> 'package-install-selected-packages' to call
> 'package--archives-initialize' ?

Makes sense to me.  It doesn't seem useful that there should be any
difference with `package-install' in this regard.

> Also, 'package-install-selected-packages' always asks for a confirmation
> to install or not the packages. Can we add an option to skip this
> confirmation ?

Would it be best to add an option, or is it better to add a (prefix?)
argument to `package-install-selected-packages'?

I can only think of the use-case where I would like to call that
function from my Init file to always have things installed (such as on a
new machine), and it seems easier to just pass an argument than to
remember the name of and set an option.  But perhaps you have another
use-case in mind?



  reply	other threads:[~2021-03-13  7:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13  6:13 On package-install x package-install-selected-packages Gabriel
2021-03-13  7:05 ` Stefan Kangas [this message]
2021-03-13 14:13 ` Stefan Monnier

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='CADwFkmk-uoFmeVHHcwfKoaiWiS8xY77UaM=OrjxZG7k8bViBxw@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=gabriel376@hotmail.com \
    /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).