GNU bug report logs - #49474
28.0.50; package-menu-filter-by-status doesn't accept argument it claims to

Previous Next

Package: emacs;

Reported by: Adam Porter <adam <at> alphapapa.net>

Date: Fri, 9 Jul 2021 01:22:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49474 in the body.
You can then email your comments to 49474 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#49474; Package emacs. (Fri, 09 Jul 2021 01:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Porter <adam <at> alphapapa.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 09 Jul 2021 01:22:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Adam Porter <adam <at> alphapapa.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; package-menu-filter-by-status doesn't accept argument it
 claims to
Date: Thu, 8 Jul 2021 20:20:51 -0500
The docstring for the function package-menu-filter-by-status says:

    When called interactively, prompt for STATUS, which can be a
    comma-separated string.  If STATUS is empty, show all packages.

    When called from Lisp, STATUS can be a string or a list of
    strings.  If STATUS is nil or the empty string, show all
    packages.

However, when given a comma-separated string or a list of strings, it
doesn't work, because it applies a filter predicate that calls
string-match-p, which expects a regexp string.

Thanks for your work on Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49474; Package emacs. (Sat, 10 Jul 2021 16:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 49474 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Adam Porter <adam <at> alphapapa.net>
Cc: 49474 <at> debbugs.gnu.org
Subject: Re: bug#49474: 28.0.50; package-menu-filter-by-status doesn't
 accept argument it claims to
Date: Sat, 10 Jul 2021 18:54:14 +0200
Adam Porter <adam <at> alphapapa.net> writes:

> The docstring for the function package-menu-filter-by-status says:
>
>     When called interactively, prompt for STATUS, which can be a
>     comma-separated string.  If STATUS is empty, show all packages.
>
>     When called from Lisp, STATUS can be a string or a list of
>     strings.  If STATUS is nil or the empty string, show all
>     packages.
>
> However, when given a comma-separated string or a list of strings, it
> doesn't work, because it applies a filter predicate that calls
> string-match-p, which expects a regexp string.

Yup.  I've now changed the command (in Emacs 28) to work as documented.
Hopefully nobody were relying on the previous, undocumented regexp-match
behaviour.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 49474 <at> debbugs.gnu.org and Adam Porter <adam <at> alphapapa.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 10 Jul 2021 16:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 08 Aug 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.