From: Platon Pronko <platon7pronko@gmail.com>
To: 45292@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 [thread overview]
Message-ID: <1f8c0245-61bc-6546-e776-f5ccf8ffa855@gmail.com> (raw)
In-Reply-To: <bbd83dbd-da91-ebb1-041c-e0d87d89c594@gmail.com>
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.
next prev parent reply other threads:[~2020-12-17 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 12:52 bug#45292: 28.0.50; first key typed ignores current input method (in magit commit buffer) Platon Pronko
[not found] ` <handler.45292.B.16082095764744.ack@debbugs.gnu.org>
2020-12-17 13:45 ` bug#45292: Acknowledgement (28.0.50; first key typed ignores current input method (in magit commit buffer)) Platon Pronko
2020-12-17 16:31 ` Platon Pronko [this message]
2020-12-23 23:32 ` Stefan Monnier
2020-12-24 7:26 ` Platon Pronko
2021-04-04 1:00 ` bug#45292: 28.0.50; first key typed ignores current input method (in magit commit buffer) Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f8c0245-61bc-6546-e776-f5ccf8ffa855@gmail.com \
--to=platon7pronko@gmail.com \
--cc=45292@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).