GNU bug report logs - #52374
keymap-lookup with prefixes returns nil

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Wed, 8 Dec 2021 12:22:02 UTC

Severity: normal

Fixed in version 29.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 52374 in the body.
You can then email your comments to 52374 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#52374; Package emacs. (Wed, 08 Dec 2021 12:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 Dec 2021 12:22:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: bug-gnu-emacs <at> gnu.org
Subject: keymap-lookup with prefixes returns nil
Date: Wed, 8 Dec 2021 13:21:10 +0100
Run emacs -Q, type `M-x re-builder RET' and then `C-c C-q':

Now evaluate:

    (lookup-key reb-mode-map "\C-c")
    => (keymap (21 . reb-force-update) (2 . reb-change-target-buffer) ...)

Compare this to:

    (keymap-lookup reb-mode-map "C-c")
    => nil

Is the second result expected, or is it a bug?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52374; Package emacs. (Fri, 10 Dec 2021 12:13:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52374 <at> debbugs.gnu.org
Subject: Re: bug#52374: keymap-lookup with prefixes returns nil
Date: Fri, 10 Dec 2021 13:11:43 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> Run emacs -Q, type `M-x re-builder RET' and then `C-c C-q':
>
> Now evaluate:
>
>     (lookup-key reb-mode-map "\C-c")
>     => (keymap (21 . reb-force-update) (2 . reb-change-target-buffer) ...)
>
> Compare this to:
>
>     (keymap-lookup reb-mode-map "C-c")
>     => nil
>
> Is the second result expected, or is it a bug?

It's a bug.  Should be fixed now.

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




bug marked as fixed in version 29.1, send any further explanations to 52374 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 10 Dec 2021 12:13:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52374; Package emacs. (Fri, 10 Dec 2021 13:34:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52374 <at> debbugs.gnu.org
Subject: Re: bug#52374: keymap-lookup with prefixes returns nil
Date: Fri, 10 Dec 2021 13:33:09 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> It's a bug.  Should be fixed now.

Thanks!  Does this deserve a unit test?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52374; Package emacs. (Fri, 10 Dec 2021 13:36:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52374 <at> debbugs.gnu.org
Subject: Re: bug#52374: keymap-lookup with prefixes returns nil
Date: Fri, 10 Dec 2021 14:34:51 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> Thanks!  Does this deserve a unit test?

Probably...  many of those smaller keymap-* functions were added in a
hurry while I was finishing up things and aren't well tested.

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Jan 2022 12:24:10 GMT) Full text and rfc822 format available.

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

Previous Next


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