GNU bug report logs - #45292
28.0.50; first key typed ignores current input method (in magit commit buffer)

Previous Next

Package: emacs;

Reported by: Platon Pronko <platon7pronko <at> gmail.com>

Date: Thu, 17 Dec 2020 12:53:01 UTC

Severity: normal

Found in version 28.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Platon Pronko <platon7pronko <at> gmail.com>
To: 45292 <at> debbugs.gnu.org
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
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.




This bug report was last modified 4 years and 48 days ago.

Previous Next


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