From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: package-install-selected-packages and newer versions Date: Thu, 27 Jul 2023 11:45:34 +0200 Message-ID: <87jzul65sj.fsf@gnu.org> References: <87edkt958f.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32996"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.12; emacs 30.0.50 Cc: emacs-devel@gnu.org To: Jarmo Hurri Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 27 12:09:48 2023 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 1qOxwJ-0008Ng-8O for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Jul 2023 12:09:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOxew-0007di-J5; Thu, 27 Jul 2023 05:51:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOxeu-0007be-6Z for emacs-devel@gnu.org; Thu, 27 Jul 2023 05:51:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOxeq-0001Fk-VU; Thu, 27 Jul 2023 05:51:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=iwdFBN5bH3bWHP/Wp2FoL88Bil+Txj/uTs+jZ2V1mLU=; b=fORm5KAuIeHj13 eOuvDfaDiTcGJkcC7Lf3d9a9rNsG5e9FVB4ij6rorfxlE1zOR5q3at67lZZhgh9rP9FNDYQSmgRAL +zRjOPgZ611pKTb/C3wIXRy77pJtFmIbV4eIsR36PbuQQTA2MbWiYtFtUTephoQ/D8M1Mxd2Cdad9 oeGsNDHMabEskA+MEGYRPZLR2qmAZeRCZfvqLaGxiEy2B6dGjFd5918LJEtnLr40xXnCdXwEEzG+1 NtB2kqDYA+RLftk6BhVTjWTkAjNu7tjDWSxzrR8hTVyJ1jd0YjeL3hpUd2bPosgoaQfoy0EoQ1Zkk Dh7L0GB9w+75iwJ2YB0w==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOxeq-0003eT-DN; Thu, 27 Jul 2023 05:51:44 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id C40B627C0054; Thu, 27 Jul 2023 05:51:43 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 27 Jul 2023 05:51:43 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrieefgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe dujedtheduvdelffejkeetgedvheelhedvueefhfeukeekkeehvdfggeegffevgfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnod hmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedv leekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Jul 2023 05:51:43 -0400 (EDT) In-reply-to: <87edkt958f.fsf@iki.fi> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308143 Archived-At: Jarmo Hurri writes: Hi Jarmo, > 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. Bye, Tassilo