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.

Full log


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




This bug report was last modified 3 years and 158 days ago.

Previous Next


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