[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminal or keyboard decoding system?
From: |
Stefan Monnier |
Subject: |
Re: Terminal or keyboard decoding system? |
Date: |
Fri, 24 Sep 2021 09:07:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> BTW, why use `read-char-exclusive` rather than, say, `read-event`?
> Fantastic catch! I did not know that `read-event` could be used here;
> after replacing `read-char-exclusive` with `read-event`, two days of
> emacs use has not resulted in the keystroke interleaving problem.
> Why does this work better?
I have no idea and I suspect noone else does either :-(
>>> 1. Is modifying input-decode-map and key-translation-map the right
>>> approach?
>> Yes (tho `key-translation-map` is better avoided, but sometimes it's
>> the only option).
> Why should it be avoided? I haven't run into any issues, but it'd be
> good to know.
Because it applies after `function-key-map`, and the interaction between
the two can be ... disappointing in corner cases.
Stefan