]> git.eshelyaron.com Git - emacs.git/commit
Avoid consing extra string when processing GTK native input
authorPo Lu <luangruo@yahoo.com>
Sat, 19 Feb 2022 12:59:12 +0000 (20:59 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 19 Feb 2022 13:02:30 +0000 (21:02 +0800)
commit14562b45bd81334064b19ed91f02e11cd46aaf56
tree5fe7e1b23e386fdcf3bd03e99de0764613630020
parentf273a504be670d714fe46a067e5edba548443701
Avoid consing extra string when processing GTK native input

* src/gtkutil.c (xg_im_context_commit): Use
`decode_string_utf8' to decode input text.

* src/keyboard.c (kbd_buffer_get_event_1): If coding system is
Qt, simply return the string without decoding it.

* src/termhooks.h (enum event_kind): Document meaning of Qt as
coding system in a multibyte keystroke event's string argument.
src/gtkutil.c
src/keyboard.c
src/termhooks.h