]> git.eshelyaron.com Git - emacs.git/commit
Be more allowing when looking for menu-bar items
authorStefan Kangas <stefan@marxist.se>
Tue, 12 Oct 2021 22:04:23 +0000 (00:04 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 28 Oct 2021 20:21:16 +0000 (22:21 +0200)
commit2671ea0de8e90e20241fe0441f4f8b79eeccdb12
tree8f7706ebb6178963fefd94131b2de5ddfd3a58c9
parent64cc31b5c80ab165c4e565ff8943919d832ebd2f
Be more allowing when looking for menu-bar items

* src/keymap.c (lookup_key_1): Factor out function from
Flookup_key.
(Flookup_key): Be case insensitive, and treat spaces as dashes,
when looking for Qmenu_bar items.  (Bug#50752)

* test/src/keymap-tests.el
(keymap-lookup-key/mixed-case)
(keymap-lookup-key/mixed-case-multibyte)
(keymap-lookup-keymap/with-spaces)
(keymap-lookup-keymap/with-spaces-multibyte)
(keymap-lookup-keymap/with-spaces-multibyte-lang-env): New tests.
etc/NEWS
src/keymap.c
test/src/keymap-tests.el