Skip to content

Fix unintended undef-hook invocation due to more than twice key lookup#1019

Merged
cxxxr merged 1 commit intolem-project:mainfrom
fukamachi:fix/keymap-duplicates
Aug 29, 2023
Merged

Fix unintended undef-hook invocation due to more than twice key lookup#1019
cxxxr merged 1 commit intolem-project:mainfrom
fukamachi:fix/keymap-duplicates

Conversation

@fukamachi
Copy link
Copy Markdown
Collaborator

@fukamachi fukamachi commented Aug 29, 2023

After the merge of #1004, the completion-mode can't use C-n and C-p to choose an item.

This is because #1004 adds minor-mode keymaps to the top of the keymaps list to make them a high priority. I didn't think this caused any problems, but it invoked the undef-hook of the completion keymap by accident.

The key command will go through the list of keymaps like this: next-line -> completion-next-line -> completion-self-insert (by undef-hook).

Reported by @Sasanidas.

@fukamachi fukamachi marked this pull request as draft August 29, 2023 11:45
@fukamachi fukamachi force-pushed the fix/keymap-duplicates branch from 258a144 to ee128fa Compare August 29, 2023 11:49
@fukamachi fukamachi marked this pull request as ready for review August 29, 2023 11:49
@fukamachi fukamachi force-pushed the fix/keymap-duplicates branch from ee128fa to 314539b Compare August 29, 2023 11:52
@cxxxr cxxxr merged commit 99a93de into lem-project:main Aug 29, 2023
@cxxxr
Copy link
Copy Markdown
Member

cxxxr commented Aug 29, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants