diff options
| author | Stefan Kangas | 2020-02-05 13:12:01 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-02-05 13:18:12 +0100 |
| commit | aea12d4903136c057bb14d3fd7683bf7a4e1eff6 (patch) | |
| tree | 183e578c697d5b95191df9384f714c999f84a7e7 /etc | |
| parent | 196da3017bc9b2fc6fecff0c0ce560e6c46b8a72 (diff) | |
| download | emacs-aea12d4903136c057bb14d3fd7683bf7a4e1eff6.tar.gz emacs-aea12d4903136c057bb14d3fd7683bf7a4e1eff6.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -120,6 +120,20 @@ like cell phones, tablets or cameras. | |||
| 120 | *** Pcase 'map' pattern added keyword symbols abbreviation. | 120 | *** Pcase 'map' pattern added keyword symbols abbreviation. |
| 121 | A pattern like '(map :sym)' binds the map's value for ':sym' to 'sym', | 121 | A pattern like '(map :sym)' binds the map's value for ':sym' to 'sym', |
| 122 | equivalent to '(map (:sym sym))'. | 122 | equivalent to '(map (:sym sym))'. |
| 123 | ** Package | ||
| 124 | |||
| 125 | +++ | ||
| 126 | *** New functions to filter the package list. | ||
| 127 | The filter command key bindings are as follows: | ||
| 128 | |||
| 129 | key binding | ||
| 130 | --- ------- | ||
| 131 | / a package-menu-filter-by-archive | ||
| 132 | / k package-menu-filter-by-keyword | ||
| 133 | / n package-menu-filter-by-name | ||
| 134 | / s package-menu-filter-by-status | ||
| 135 | / v package-menu-filter-by-version | ||
| 136 | / / package-menu-filter-clear | ||
| 123 | 137 | ||
| 124 | 138 | ||
| 125 | * New Modes and Packages in Emacs 28.1 | 139 | * New Modes and Packages in Emacs 28.1 |