aboutsummaryrefslogtreecommitdiffstats
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorPo Lu2022-02-16 10:53:00 +0800
committerPo Lu2022-02-16 10:53:00 +0800
commitf1d535da1ed2e7a70c6cf28fdcdca31d3f86a3f5 (patch)
tree75a6922c25dea7dd9d80f0e1b8b9dab55799b34a /src/termhooks.h
parent0a9c8855b0ce9618219ef70bb489107ce7194ba1 (diff)
downloademacs-f1d535da1ed2e7a70c6cf28fdcdca31d3f86a3f5.tar.gz
emacs-f1d535da1ed2e7a70c6cf28fdcdca31d3f86a3f5.zip
Decode keyboard input as latin-1 whenever appropriate
* src/keyboard.c (kbd_buffer_get_event_1): Use `coding' property if present. * src/termhooks.h (enum event_kind): Document meaning of `coding' property on text strings. * src/xterm.c (handle_one_xevent): Set coding property on text to latin-1 if it was obtained with XLookupString.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/termhooks.h b/src/termhooks.h
index 4276d8ac2f2..0a9ab61afab 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -90,7 +90,17 @@ enum event_kind
90 decoded and the decoded 90 decoded and the decoded
91 string's characters will be 91 string's characters will be
92 used as .code 92 used as .code
93 individually. */ 93 individually.
94
95 The string can have a
96 property `coding', which
97 should be a symbol
98 describing a coding system
99 to use to decode the string.
100
101 If it is nil, then the
102 locale coding system will
103 be used. */
94 NON_ASCII_KEYSTROKE_EVENT, /* .code is a number identifying the 104 NON_ASCII_KEYSTROKE_EVENT, /* .code is a number identifying the
95 function key. A code N represents 105 function key. A code N represents
96 a key whose name is 106 a key whose name is