From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 22:13:51 +0300 Message-ID: <83ttx5w0sw.fsf@gnu.org> 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 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22619"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, larsi@gnus.org, philipk@posteo.net, monnier@iro.umontreal.ca, 62750@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 24 21:14:22 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 1pr1dl-0005h5-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Apr 2023 21:14:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pr1dU-0006SI-61; Mon, 24 Apr 2023 15:14:04 -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 1pr1dS-0006Ri-SI for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 15:14:02 -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 1pr1dS-00009w-9v for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 15:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pr1dS-0006Xw-4F for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2023 15:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Apr 2023 19:14:02 +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.168236361625126 (code B ref 62750); Mon, 24 Apr 2023 19:14:02 +0000 Original-Received: (at 62750) by debbugs.gnu.org; 24 Apr 2023 19:13:36 +0000 Original-Received: from localhost ([127.0.0.1]:50338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr1d2-0006XA-Bg for submit@debbugs.gnu.org; Mon, 24 Apr 2023 15:13:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr1d0-0006Ww-6L for 62750@debbugs.gnu.org; Mon, 24 Apr 2023 15:13:35 -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 1pr1cu-0008V4-Fm; Mon, 24 Apr 2023 15:13:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Oswdx78zAGSbw65bTVrI5AmvpResHG1ziaiIOE+HrX4=; b=qSOMrXNVG7wuop4Osxge NagH5ojhzQIXghkp+yeRZDAsVCqJOr/iTCd2N5d9CygVDe383y95rwqoBAe5r5ML6CW5gKSw9Asbs keppdMrRU+XtQPqKfwfjeQrwsYpE9cYlipQrmd1CZzRdysaEswT/sTqBHKApHh88dWtnT+B6IigWA TaVTzFcGEy0V6Y2iz007h7zYQKMf7nXAUruCHmt6ETX/YhQqRrmfQ+PUozQA50ewUzbXaepLFiRjE ZrXntxedOpkmtypqVOoJdqyWgNy7IoSsjQHe05NrSZ3gbjUQASllFhC0r6XQqp/hWFCTsdxx6isoF 6j+TR6JqrlDA+Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pr1ct-0005zg-Vp; Mon, 24 Apr 2023 15:13:28 -0400 In-Reply-To: (message from Dmitry Gutov on Mon, 24 Apr 2023 21:54:58 +0300) 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:260582 Archived-At: > Date: Mon, 24 Apr 2023 21:54:58 +0300 > Cc: monnier@iro.umontreal.ca, philipk@posteo.net, larsi@gnus.org, > 62750@debbugs.gnu.org > From: Dmitry Gutov > > 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. A separate command that does the same, or almost the same, as package-upgrade? That's uneconomical, let alone elegant. > 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. We are talking about invoking commands, not about Lisp programs. How many times did you do "C-- C-f" instead of "C-b"? > We don't keep older versions around in ELPA anyway, so for now the > question is moot. I was trying to raise a possible future issue. We all know that command names, once they gain enough tenure, cannot be easily changed. So this is the time to think about future issues; we won't have another chance. It's exactly why we should consider what is today a "moot point" but could be a real one later.