From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Newsgroups: gmane.emacs.help Subject: Re: Let `package-install-selected-packages' install packages without asking for confirmation. Date: Mon, 26 Jul 2021 02:08:02 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9748"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Arthur Miller , Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 26 02:08:32 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1m7oAa-0002Mk-Pt for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 26 Jul 2021 02:08:32 +0200 Original-Received: from localhost ([::1]:54326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7oAZ-0002lq-PE for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 20:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7oAG-0002ld-4W for help-gnu-emacs@gnu.org; Sun, 25 Jul 2021 20:08:12 -0400 Original-Received: from st43p00im-ztdg10061801.me.com ([17.58.63.170]:37373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7oAB-0008Nw-3n for help-gnu-emacs@gnu.org; Sun, 25 Jul 2021 20:08:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1627258085; bh=6zD6/tK4nFcG3cPvRStddnji04QgmI6GY45f9YyBk3E=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TZ3GJ3lRSOQ24tVMUlw8nKBb/8VCxKL+evGEQ2GslvBV/wEFsZ6upjhI6ZLioI/bf t0faAMe3cDgJS9ckwX/R/nDHFm4tO9kqmgUAalK9VMBiCNVRlOQZ6WC+ZShyrrKoj2 HCCzKrzvgFMAaYtx+rCWGLHGN6ZPJswCGQNmlqcRXcUxLon1WAe6UfuliP9s6qsfXV x3zkvNDL/7YJS96Q41yMcoX02s4l+5IjtpHyayyUQa6m1UXfHSazVRllxiMuc9U1IL ie7PTvuLobxDTgAuvREeaK7fnf+4Tssah9epV2bN6mXpTfrZDNJCqziMqTEmIXJTh/ L0WbzhoIa9RXQ== Original-Received: from Workstation.local (78-141-116-131.dynamic.orange.sk [78.141.116.131]) by st43p00im-ztdg10061801.me.com (Postfix) with ESMTPSA id 219958C049F; Mon, 26 Jul 2021 00:08:03 +0000 (UTC) In-Reply-To: X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.391,18.0.790,17.0.607.475.0000000_definitions?= =?UTF-8?Q?=3D2021-07-25=5F07:2021-07-23=5F01,2021-07-25=5F07,2020-04-07?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 bulkscore=0 clxscore=1011 suspectscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2107250168 Received-SPF: pass client-ip=17.58.63.170; envelope-from=salutis@me.com; helo=st43p00im-ztdg10061801.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132106 Archived-At: On a related note, I use =E2=80=9C(package-install 'X)=E2=80=9D in my Emacs= =20 configuration files which spits out =E2=80=9C=E2=80=98X=E2=80=99 is already= installed=E2=80=9D for=20 every package on launch. It is no big deal, but it would be great=20 if Emacs included =E2=80=9Cpackage-install-if-needed=E2=80=9D or perhaps so= me=20 argument on =E2=80=9Cpackage-install=E2=80=9D to stay quiet if no work is=20 necessary. Clearly, =E2=80=9C(unless (package-installed-p X)=20 (package-install X))=E2=80=9D is a common pattern. R+ Arthur Miller writes: > [snip] > > (dolist (p packages-to-install)=20 > (unless (package-installed-p p)=20 > (package-install p)))=20 --=20 "Contrariwise," continued Tweedledee, "if it was so, it might be;=20 and if it were so, it would be; but as it isn't, it ain't. That's=20 logic." -- Lewis Carroll, Through the Looking Glass Rudolf=20 Adamkovi=C4=8D Studenohorsk=C3=A1 25 84103 Bratislava=20 Slovakia [he/him]