diff options
| author | Gerd Moellmann | 2001-05-16 10:49:21 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-16 10:49:21 +0000 |
| commit | d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0 (patch) | |
| tree | 695025bf71fc0c194224d96c53d0faab5a2ab5d3 | |
| parent | 502522b28034c87b1e7fcffd612d418b7df9e450 (diff) | |
| download | emacs-d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0.tar.gz emacs-d4ae91d2ce2a3cc51a315f62aea005c92f2fd4b0.zip | |
(Fsingle_key_description): Replace a build_string with
a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
| -rw-r--r-- | src/keymap.c | 8 |
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 | ||
| 5 | This file is part of GNU Emacs. | 5 | This 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 */ |