Subject: Re: bug#65094: 30.0.50; '/ u' is missing in menu bar under Package

From: Arash Esbati <[email-masked]>
Date: Sat, 05 Aug 2023 22:06:14 +0200

Eli Zaretskii <[email-masked]> writes:

> Thanks, but can we make the help-echo string a bit more helpful, by
> not just repeating what the item's name says?  What does it mean "by
> upgradeability" -- does it mean only packages that can be upgraded
> will be shown? if so, let's say so.
>
> (Yes, I know the other help-echo are also of this kind, but that
> doesn't mean they are a good example to follow...)

My choice was driven solely by symmetry to the other entries.  Maybe
something like this:

--8<---------------cut here---------------start------------->8---
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 58ca19f7fe2..83c7380553d 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -3090,6 +3090,8 @@ package-menu-mode-menu
      ["Filter by Name or Description" package-menu-filter-by-name-or-description
       :help "Filter packages by name or description"]
      ["Filter by Status" package-menu-filter-by-status :help "Filter packages by status"]
+     ["Filter by Upgrades available" package-menu-filter-upgradable
+      :help "Filter packages by available upgrades"]
      ["Filter by Version" package-menu-filter-by-version :help "Filter packages by version"]
      ["Filter Marked" package-menu-filter-marked :help "Filter packages marked for upgrade"]
      ["Clear Filter" package-menu-clear-filter :help "Clear package list filter"])
--8<---------------cut here---------------end--------------->8---

Best, Arash

>From f67aeefef1e04ccd3c2cca1d1be4747a1f2f3107 Mon Sep 17 00:00:00 2001
From: Arash Esbati <[email-masked]>
Date: Sat, 5 Aug 2023 17:39:32 +0200
Subject: [PATCH] ; Filter packages available for upgrade via menu bar

* lisp/emacs-lisp/package.el (package-menu-mode-menu): Add entry
to filter packages available for upgrade via menu bar.  (bug#65094)
---
 lisp/emacs-lisp/package.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 58ca19f7fe2..83c7380553d 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -3090,6 +3090,8 @@ package-menu-mode-menu
      ["Filter by Name or Description" package-menu-filter-by-name-or-description
       :help "Filter packages by name or description"]
      ["Filter by Status" package-menu-filter-by-status :help "Filter packages by status"]
+     ["Filter by Upgrades available" package-menu-filter-upgradable
+      :help "Filter packages by available upgrades"]
      ["Filter by Version" package-menu-filter-by-version :help "Filter packages by version"]
      ["Filter Marked" package-menu-filter-marked :help "Filter packages marked for upgrade"]
      ["Clear Filter" package-menu-clear-filter :help "Clear package list filter"])
-- 
2.41.0