bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62750: 29.0.50; Commands 'package-update' and 'package-update-all' s


From: Dmitry Gutov
Subject: bug#62750: 29.0.50; Commands 'package-update' and 'package-update-all' should be called '*-upgrade'
Date: Mon, 24 Apr 2023 02:06:45 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 15/04/2023 04:34, Dmitry Gutov wrote:
On 12/04/2023 16:34, Stefan Monnier wrote:
I hadn't realized that `package-update` hasn't been in a release yet, so
we don't need such a compatibility alias.
Even though these commands were available under those names for the
last year or so?
Well, that's for you to judge 😄

Since they're not very likely to be used in Lisp code, I'd say it's unlikely to be a problem.

Alternatively, we'll probably get around to fixing this inconsistency sometime after this release, and then carry the compatibility aliases for a number of years.

Here's a couple of other existing functions:

  package--update-selected-packages
  package--update-downloads-in-progress

Neither of these relate to upgrading packages. Although the former could be easy to mistake for that now.

In all older functions, the term "update" (in comments and variable names) refers to updating the value of some variable, not packages.

By analogy, 'M-x package-update-all' might be easy enough to mistake for updating the list of packages available for installation, for example.

Here's a patch that does the rename. Also including package-vc-update* that Philip mentioned.

Attachment: 0001-Rename-all-functions-called-package-update-to-packag.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]