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

From: Arash Esbati <[email-masked]>
Date: Sat, 05 Aug 2023 17:46:05 +0200

Eli Zaretskii <[email-masked]> writes:

> No reason.  Feel free to submit a patch to add that, but please do it
> for the emacs-29 branch (as I believe that command exists in Emacs 29
> as well).

Yes, that command was introduced with Emacs 28.1, IIUC.  Please find
attached a patch against the emacs-29 branch.

Best, Arash
>From 25b9fe55dd8813c09b9af7ec998b91a07671bd32 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..c17703afde9 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 Upgradeability" package-menu-filter-upgradable
+      :help "Filter packages by upgradeability"]
      ["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