GNU bug report logs -
#36981
26.2; request: add searching by package name to list-packages
Previous Next
Reported by: ndame <emacsuser <at> freemail.hu>
Date: Fri, 9 Aug 2019 07:22:02 UTC
Severity: wishlist
Tags: patch
Found in version 26.2
Fixed in version 27.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hey Stefan, thanks again for the input.
> Perhaps just:
>
> * test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-by-name)
> (package-test-list-clear-filter): New tests.
>
>> +@item / s
>> +Filter the package list by name (@code{package-menu-filter-by-name}).
>
> That should be "/ n" as below.
Good catch!
>> ++++
>> +*** New function 'package-menu-filter-by-name'.
>> +Allows users to filter packages by name on the packages list. By
>> +default, it is bound to '/ n'. To clear the filter, use '/ /'.
>> +
>> ++++
>> +*** Function 'package-menu-fiter-by-keyword' has been renamed
>> +from 'package-menu-filter'. Its keybinding has also been changed to
>> +'/ k' (from 'f'). To clear the filter, '/ /' must now be used instead
>> +of 'q'.
>> +
>> ++++
>> +*** New function 'package-menu-clear-filter'
>> +Allows users to clear a filter applied with 'package-menu-filter-by-name' or
>> +'package-menu-filter-by-keyword'.
>
> Perhaps this would be better as just one item where all changes are
> explained together?
>
>> @@ -2699,7 +2701,9 @@ package-menu-mode-map
>> ["Unmark" package-menu-mark-unmark :help "Clear any marks on a package and move to the next line"]
>>
>> "--"
>> - ["Filter Package List" package-menu-filter :help "Filter package selection (q to go back)"]
>> + ["Filter Packages by Keyword" package-menu-filter-by-keyword :help "Filter packages by keyword"]
>> + ["Filter Packages by Name" package-menu-filter-by-name :help "Filter packages by name"]
>> + ["Clear Packages Filter" package-menu-clear-filter :help "Clear package list filter"]
>
> This is fine by me, but perhaps it would be better to add a submenu
> for filtering?
Good idea, I've changed the menu entries so that they're part of a
submenu now. I'm attaching the new patch.
Thanks!
[search.patch (text/x-diff, attachment)]
This bug report was last modified 5 years and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.