bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45292: Acknowledgement (28.0.50; first key typed ignores current inp


From: Platon Pronko
Subject: bug#45292: Acknowledgement (28.0.50; first key typed ignores current input method (in magit commit buffer))
Date: Thu, 17 Dec 2020 19:31:57 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

Digged into it further. Here's what I found:

1. quail-input-method is used to translate keys according current keymap.

2. At the time of the first keystroke ("j" in my example) quail-input-method sees incorrect buffer (verified 
this by calling and printing buffer-name from inside quail-input-method). It sees "magit: test-repo" on the 
first keystroke, and "COMMIT_EDITMSG" on subsequent keystrokes. And since "magit: test-repo" is 
read-only, no translation is done and key is returned as-is.

3. So apparently record_asynch_buffer_change() was crucial to update the 
current buffer.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]