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.bugs Subject: bug#62750: 29.0.50; Commands 'package-update' and 'package-update-all' should be called '*-upgrade' Date: Mon, 24 Apr 2023 21:54:58 +0300 Message-ID: References: <2726a957-a2a8-3b89-8930-2d620d83491e@alphapapa.net> <83sfd7c1v1.fsf@gnu.org> <875ya3euof.fsf@posteo.net> <87fs95a6y3.fsf@posteo.net> <83h6tl6xgn.fsf@gnu.org> <54892fb9-fcc5-d036-e0de-e199712ff7d4@gutov.dev> <83bkjdxzbx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2629"; 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: larsi@gnus.org, philipk@posteo.net, monnier@iro.umontreal.ca, 62750@debbugs.gnu.org To: Adam Porter , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 24 20:56:31 2023 Return-path: Envelope-to: geb-bug-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 1pr1MU-0000VV-87 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Apr 2023 20:56:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pr1MF-0007Gv-Qd; Mon, 24 Apr 2023 14:56:15 -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 1pr1M5-0007Cz-91 for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 14:56:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pr1M2-0001sW-FQ for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 14:56:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pr1M1-00066A-Qn for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 14:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Apr 2023 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62750 X-GNU-PR-Package: emacs Original-Received: via spool by 62750-submit@debbugs.gnu.org id=B62750.168236251023181 (code B ref 62750); Mon, 24 Apr 2023 18:56:01 +0000 Original-Received: (at 62750) by debbugs.gnu.org; 24 Apr 2023 18:55:10 +0000 Original-Received: from localhost ([127.0.0.1]:50323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr1LB-00061n-Ol for submit@debbugs.gnu.org; Mon, 24 Apr 2023 14:55:10 -0400 Original-Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:48731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr1LA-00060z-Cp for 62750@debbugs.gnu.org; Mon, 24 Apr 2023 14:55:09 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 23FDD2B0683A; Mon, 24 Apr 2023 14:55:02 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 24 Apr 2023 14:55:02 -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= 1682362501; x=1682366101; bh=mwOULDZWDpy6yKdqQpNg/G7zztTcEQKC47K 4tQUSPOc=; b=YKlk7hgjqqg6D5Xn1lqBYITbiP9ihzkmj5vNzR4xYWM4fwzwFi0 000CVRpQLOu7u6ndKa6RR6MwgE1/F4p/Ek4eFb9mokK4b9ZxWixLVbLQNpmQvWRO FRy1CD7kusyGJQmtXPDdVgwkCNYnWM3WlrIJPPZUigHQBc0vyA0E8y6LIilesoM8 gfjnI5eThGgGC2SjZfFvt3aA7h9BTjvUhvmgJZ4P+5fQWAUVdhP+uAXyRG44BG5G RlsCnMcSCym5KrNy4kVko8Es3BuHvZntCSqE3+xSm6ZILDng+KYTdv4WxVavjoSU o+HFT2//1Nl0P6AnpZk65XwK52DvqUhEO6Q== 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= 1682362501; x=1682366101; bh=mwOULDZWDpy6yKdqQpNg/G7zztTcEQKC47K 4tQUSPOc=; b=OeQoFfNVWZfRVlzRT0byP1iSHnKnbCBjPJRCg6qMHdMWsa4FDEu BELHGDvc7I4Iv3I+v2DlN5me4zUHtD/ELXHjPv0AbefFNHRpheb0RsWAJxg0PrPr K4EPoycn121eP+21p/z5olb0MvQyYy1YihUfZpJb9cPiWKskrBEFiIV1WxUMHC4Z WfqsNtjBcfuHQXtN1HjKZsq7gx/1n+eTiOkebSNFJuyiktB8hsAUWkHu1MOoozPs hDN+7UgPIu7NXtKkV7tdqPRxch8OyGA3FxZMnQ3nSYC2XssUO+kwh+U/CVYudz6I s7NoWkJRirNumT0cdpKNg4FqwTDfbJOBNvw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedutddgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpefhffehleejffegffeugefhkeektdffgfehjedvgeejtedtudehueffgffg feejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Apr 2023 14:54:59 -0400 (EDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260581 Archived-At: On 24/04/2023 20:28, Adam Porter wrote: > On 4/24/23 07:02, Eli Zaretskii wrote: > >> Me, I have only one potential issue: since "update" just means "delete >> the installed version, then install another version", it could be >> easily made to downgrade, not just to upgrade.  So if we ever would >> like to allow downgrading, the new names will get in the way.  But if >> this is not an issue we should be bothered about, it's fine by me. > > IMHO, a command to downgrade ought to be a separate command with a > different name--not only to reduce confusion, but because downgrading > packages is an operation that is more likely to require manual user > intervention, such as recompiling other packages that depend on the > downgraded package (e.g. if struct or macro definitions change, or > symbols disappear). That might also be the case when upgrading a package that some others depend on (newer version could also have macros deleted or renamed). Either way, though, we could make it a separate command. Or even augment the current one: (package-upgrade 'name "some-older-version") has a similar feel to (forward-char -1), not exactly unfamiliar to us. Would "update" be a more proper term to cover both upgrading and downgrading? I'm not sure about that. Aside from "downgrade", I would probably say "revert" or "install an older version". E.g. when using apt-get, the relevant subcommand would be "install". > It's easy enough to cause that problem when upgrading, and much more > likely when downgrading, to the extent that it's arguable that a command > to downgrade shouldn't exist, because users who want to downgrade a > package should be prepared to deal with the potential fallout. Or that. We don't keep older versions around in ELPA anyway, so for now the question is moot.