Commit fa2ec41f authored by Andreas Schwab's avatar Andreas Schwab

* src/keymap.c (Fsingle_key_description): Use make_specified_string

instead of build_string to build string from push_key_description.
(Bug#5193)
parent 3390454c
2011-09-19 Andreas Schwab <schwab@linux-m68k.org>
* keymap.c (Fsingle_key_description): Use make_specified_string
instead of build_string to build string from push_key_description.
(Bug#5193)
2011-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* xdisp.c (expose_window): Save original value of phys_cursor_on_p
......
......@@ -2529,10 +2529,11 @@ around function keys and event symbols. */)
if (INTEGERP (key)) /* Normal character */
{
char tem[KEY_DESCRIPTION_SIZE];
char tem[KEY_DESCRIPTION_SIZE], *p;
*push_key_description (XUINT (key), tem, 1) = 0;
return build_string (tem);
p = push_key_description (XUINT (key), tem, 1);
*p = 0;
return make_specified_string (tem, -1, p - tem, 1);
}
else if (SYMBOLP (key)) /* Function key or event-symbol */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment