From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: On package-install x package-install-selected-packages Date: Sat, 13 Mar 2021 01:05:52 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12834"; mail-complaints-to="usenet@ciao.gmane.io" To: Gabriel , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 13 08:06:45 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKyMF-0003BU-9h for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Mar 2021 08:06:43 +0100 Original-Received: from localhost ([::1]:39920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKyME-0004dS-6e for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Mar 2021 02:06:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKyLU-00043V-Gl for emacs-devel@gnu.org; Sat, 13 Mar 2021 02:05:56 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:47102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKyLS-0003DV-PG for emacs-devel@gnu.org; Sat, 13 Mar 2021 02:05:56 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id 16so10877343pgo.13 for ; Fri, 12 Mar 2021 23:05:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=wAf02wrrdClCBvt5TFlv7bJPNdUamDX0WW1fkyqswUw=; b=ck4z4b0QDpJFxOH3m4WvpGAY60dKqY8Q2KGD706WxirzUi3KPNB9BNprxlagakgD46 rQkauVQdzErfGrFOj5cbgVI88AjVpzfOnbf3jGLO6by8gp7wz8SXs7JC4OkRW73qXjLt ll54ZH7RkPAHaV54CfPOOCYC2o17wKFNMgHS1RH7iljFurrnNQ4bJ0oUjQHFjwTn5/NH ErbqTpaQjYWKnkuCmicYg7oZybyBlbCgtUb8DVqlcZvSzTekL3D4Nlx5ZxyhMYBrBUwK mZbgJYFj2LlV+o/jBfk5WsbgXLGy4oHt3innu9qT1b6i3JD1zBWJYJUyz247LG+0Vdti umeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=wAf02wrrdClCBvt5TFlv7bJPNdUamDX0WW1fkyqswUw=; b=Av0hAmDzvPDf2Svt838lCYDzeMa2g2VjQpLhSdFq3bk1/u3tSCb1PXeKslj9k3RRYd yt0ySnCZ6/e5/d7WkDwGBIZnK2vFOjUpOxnGSqSukxGSysNts2Tx9Zq0WA+/p0ha6/Zc WXg8PRAhg9Y4lGtz8RILlJh21mchRwImIg3WK2MblMfXQukhlC6I+cooM/lS5k6BWwzQ OCq+JJBQo69SHiFkRmrXxpSwXy5Xmmo1QkyTVM80w6YskpPUCkJSFlabqMppm9uwxFdG 7iUlVlTrFY6cKgM/l7VZA35CgwsjmpOwjN5HuEECTf0piKJrRAbJmlEqKtFVvtCQsLpg HDHw== X-Gm-Message-State: AOAM53209Mz/iwwlJj736CTTlT/zurtq/TF60miOHhEDmXZH3G76YxC7 wyzudSKlhoLW3jtwRLt++1gXFXiN0WGc2CpItp4= X-Google-Smtp-Source: ABdhPJytpKEFXHFXqA/X85xIC/yFUlL+PlyfeJNzjmC0TBVuvBpK0/zw7bmMXcnP79xOTjcdim53QboI3Xe5fUxvbf4= X-Received: by 2002:a63:ed02:: with SMTP id d2mr15347324pgi.67.1615619153045; Fri, 12 Mar 2021 23:05:53 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 13 Mar 2021 01:05:52 -0600 In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:266427 Archived-At: Gabriel 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?