]> git.eshelyaron.com Git - emacs.git/commit
Add new filter commands to Package Menu (Bug#38424)
authorStefan Kangas <stefankangas@gmail.com>
Wed, 5 Feb 2020 12:12:01 +0000 (13:12 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 5 Feb 2020 12:18:12 +0000 (13:18 +0100)
commitaea12d4903136c057bb14d3fd7683bf7a4e1eff6
tree183e578c697d5b95191df9384f714c999f84a7e7
parent196da3017bc9b2fc6fecff0c0ce560e6c46b8a72
Add new filter commands to Package Menu (Bug#38424)

* lisp/emacs-lisp/package.el (package-menu-filter-by-version)
(package-menu-filter-by-status, package-menu-filter-by-archive):
New filter commands.
(package-menu--filter-by): New helper function.
(package-menu-filter-by-keyword, package-menu-filter-by-name): Use
the above helper function.
(package-menu-mode-menu):
(package-menu-mode-map): Update menu to include new filter commands.
* doc/emacs/package.texi (Package Menu): Document the new commands and
re-arrange the sort order of commands to be closer to the one in
describe-major-mode.
* etc/NEWS: Announce the new commands.

* lisp/emacs-lisp/package.el (package-menu--display): New function
extracted from....
(package-menu--generate): ...here.

* test/lisp/emacs-lisp/package-tests.el (with-package-menu-test):
New macro.
(package-test-update-listing, package-test-list-filter-by-name)
(package-test-list-filter-clear): Use above macro.
(package-test-list-filter-by-archive)
(package-test-list-filter-by-keyword)
(package-test-list-filter-by-status)
(package-test-list-filter-by-version-=)
(package-test-list-filter-by-version-<)
(package-test-list-filter-by-version->): New tests.
(package-test-filter-by-version): New helper function.
doc/emacs/package.texi
etc/NEWS
lisp/emacs-lisp/package.el
test/lisp/emacs-lisp/package-tests.el