From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: emacs-29 9b775ddc057 1/2: ; * etc/EGLOT-NEWS: Fix wording of last change. Date: Sat, 6 May 2023 18:54:47 +0300 Message-ID: <35df1362-fd92-9424-97d0-df3479414677@gutov.dev> References: <168335548287.8529.4912240840977468283@vcs2.savannah.gnu.org> <20230506064443.56C75C22F15@vcs2.savannah.gnu.org> <59835735-faa0-4096-e491-35ec92964b7a@gutov.dev> <831qjthhm8.fsf@gnu.org> <715cdac6-83f6-6907-2ff8-3b33381f3487@gutov.dev> <83zg6hg29c.fsf@gnu.org> <83ttwpfvcr.fsf@gnu.org> <83h6spfose.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23835"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: joaotavora@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 06 17:55:49 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 1pvKGC-00061B-EI for ged-emacs-devel@m.gmane-mx.org; Sat, 06 May 2023 17:55:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvKFN-0007au-G9; Sat, 06 May 2023 11:54:57 -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 1pvKFL-0007al-LW for emacs-devel@gnu.org; Sat, 06 May 2023 11:54:55 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pvKFI-0003lc-09; Sat, 06 May 2023 11:54:53 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1C0F85C01CF; Sat, 6 May 2023 11:54:51 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 06 May 2023 11:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1683388491; x=1683474891; bh=J/aWWkj8PZZasr4mnG1isxKO8UufbpmtC7W //m7wCQI=; b=AGmdQh9xvni7/fXssCvx+bCfVLSQIoX3M0MRbonf4IKHFwB0IiO kG3Z6dsNt5pAN+3N0KL/b5hXv6YmuAZZvGnIxTh78kOLxHhgBAoRgqohzCHSTKrU F0VDZiwiwQ7PJXClheWH4450C+Ksw3vs46V7wjP4hOY/JInVNDyOiKdue+cHwngW kKEJIprFRZRd2ZyxH+VErMgkk2I+uo7gnjJSuis1Gg+KVFJtQv4ikHCY/GGHlr8X tlwBDWVgdiHxRDaNdHXIfEQQYHMP/kdXEYD6DrJLkQxQjc+4DKrQZWgOBOHMKCGA i8A5sZ/gE8mxB5Q0FsI7KqMF6mc10P9kprA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1683388491; x=1683474891; bh=J/aWWkj8PZZasr4mnG1isxKO8UufbpmtC7W //m7wCQI=; b=U7Er7ySVcpwbAAal9TrR+nhSTtvY7GKCRs80U7fXfypvzpXuwES MDgGMAG9efIV09ZLg/WcbECPcMDysa2iMwzUARLMKjJiDK0EPyxtwYOR3AR691W/ TL2Qy16CayUz6ahUOUvDttsVAIINFpuuEm2M4Z84F0Zks5XJcbwEeMmnlFocu+4H FOKEIpzg6r9Kb8RUNp/p/UAEYYnxOnb0E5MvvhusszHRLlsHLYdBAQTJSxSoXUWH DU17Iv4LMsLB9N2nEcM2pEd3u0pdHcfHtTW8jadAYSn5UeFKGdtAr8FlSoAryHnK IgOKzPboDmE2sxjMikmKcJI1cEMIdToUYEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeefgedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 6 May 2023 11:54:49 -0400 (EDT) Content-Language: en-US In-Reply-To: <83h6spfose.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.29; envelope-from=dmitry@gutov.dev; helo=out5-smtp.messagingengine.com X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.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, NICE_REPLY_A=-4.28, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:305916 Archived-At: On 06/05/2023 18:44, Eli Zaretskii wrote: >> Date: Sat, 6 May 2023 18:26:11 +0300 >> Cc: emacs-devel@gnu.org >> From: Dmitry Gutov >> >>>> One more time: in Emacs 28 package-install doesn't upgrade, >>>> but it installs the latest, which is incompatible behaviour >>>> if you move to Emacs 29, where that won't happen. >>> >>> Is this for Eglot (and use-package), or is this for any package >>> installed from ELPA? IOW, does Emacs 29's package-install still >>> install the latest version of a package from ELPA? And does that >>> happen even if some older version of a package is already installed? >> >> Like Joao said: >> >> Yes to the first, no to the second. > > Yes, except that I asked 3 questions, not 2, and the first was "either > or", so saying "yes" doesn't help. But never mind. The answers were for the two questions after "IOW". >> Meaning, 'M-x package-install' will install the latest version (or some >> available version) from ELPA, if the package is not installed. >> >> If some version of it is installed from ELPA (!) already, 'M-x >> package-install' won't upgrade. > > Then I don't understand why you decided to drop the similar change to > package-upgrade. At the time I thought package-install can be used as > an alternative, but if it cannot, I think we should add to > package-upgrade the same optional behavior of upgrading a built-in > package as we have in package-install. We now have a better solution on master: 'M-x package-upgrade' simply upgrades the built-ins, no questions asked. If we added the behavior similar to the addition in package-install (with prefix arguments and guarded by an option, possibly even a new optional argument), we'd have to carry over that awkward convention to Emacs 30 in some form. And as you recall, Joao wasn't happy with either solution anyway (of those that you liked enough). > What other methods currently exist to upgrade an already installed > package (or a non-built-in package that is already installed)? I know > about one -- via lisp-packages (a.k.a. package menu); are there > others? Also: M-x package-upgrade M-x package-upgrade-all > Will any of these methods upgrade a built-in package, at least as an > optional behavior? Not in Emacs 29. >>>> So if you're used to setting up a brand new Emacs 28 and >>>> package-install Eglot to get versions with nice features and >>>> bugfixes, you may be dismayed to find that doing the very >>>> same thing in Emacs 29 results in what will probably be a >>>> old version. >>> >>> Are you talking about users who didn't update their Eglot, except when >>> a new Emacs version was released? Or are you talking about users who >>> updated Eglot from ELPA (using package-install) even between Emacs >>> releases? Or are you talking about something else entirely? >> >> He is mostly talking about users who e.g. wiped their config directory >> and ~/.emacs.d/elpa and are starting anew. Or just deleted >> ~/.emacs.d/elpa/eglot-xxxxxx. > > Is this what many users do? I'd be surprised, but maybe I'm missing > something. I have no idea. Joao says this is common enough. That has not been my experience, but I don't deal with support for Eglot users either. >> In that situation, indeed, 'M-x >> package-install' will install the latest version from ELPA. >> >> In Emacs 29, however, it won't. Because one version of Eglot is >> available already (built-in). > > But if emptying ~/.emacs.d/elpa is not a frequent use case, why should > we care about it so much? It sounds like bug#62720 and the entire > long dispute that followed were focused on this strange use pattern, > instead of talking about more reasonable upgrade scenarios? We focused on it because, apparently, using 'M-x package-install' worked in more cases in Emacs 28 than in Emacs 29. And some think it's important. And because 'package-upgrade' is not in Emacs 28 at all. Personally, I think it's better to focus on fixing 'package-upgrade' (which I did). But I don't think it's constructive to hide that fix behind a pref. >> I'm pretty sure I have outlined this twice already, not too long ago. >> Prefacing the first message with an apology, saying I had been >> previously confused myself. > > I apologize for being confused and for asking almost the same > questions repeatedly, but given that fact that even people who are > familiar with package.el are confused, I think I'm in good company. It's okay. Just answering the question from your second response in this thread.