aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index e9e51c785de..a1f0de1c09a 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1,5 +1,5 @@
1/* Manipulation of keymaps 1/* Manipulation of keymaps
2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000 2 Copyright (C) 1985, 86,87,88,93,94,95,98,99, 2000, 2001
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -1960,9 +1960,13 @@ around function keys and event symbols.")
1960 else 1960 else
1961 { 1961 {
1962 char tem[KEY_DESCRIPTION_SIZE]; 1962 char tem[KEY_DESCRIPTION_SIZE];
1963 int len;
1963 1964
1964 *push_key_description (XUINT (key), tem, 1) = 0; 1965 *push_key_description (XUINT (key), tem, 1) = 0;
1965 return build_string (tem); 1966 len = strlen (tem);
1967 return make_multibyte_string (tem,
1968 multibyte_chars_in_text (tem, len),
1969 len);
1966 } 1970 }
1967 } 1971 }
1968 else if (SYMBOLP (key)) /* Function key or event-symbol */ 1972 else if (SYMBOLP (key)) /* Function key or event-symbol */