diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/keymap.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 238e3faae51..f9283730ebf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-10-01 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * keymap.c (Fsingle_key_description): Use make_specified_string | ||
| 4 | instead of build_string to build string from push_key_description. | ||
| 5 | (Bug#5193) | ||
| 6 | |||
| 1 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2011-09-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | * buffer.h (struct buffer): Use time_t, not int, for a time stamp. | 9 | * buffer.h (struct buffer): Use time_t, not int, for a time stamp. |
diff --git a/src/keymap.c b/src/keymap.c index 4485080db21..739dfd8f2de 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2274,10 +2274,11 @@ around function keys and event symbols. */) | |||
| 2274 | 2274 | ||
| 2275 | if (INTEGERP (key)) /* Normal character */ | 2275 | if (INTEGERP (key)) /* Normal character */ |
| 2276 | { | 2276 | { |
| 2277 | char tem[KEY_DESCRIPTION_SIZE]; | 2277 | char tem[KEY_DESCRIPTION_SIZE], *p; |
| 2278 | 2278 | ||
| 2279 | *push_key_description (XINT (key), tem, 1) = 0; | 2279 | p = push_key_description (XINT (key), tem, 1); |
| 2280 | return build_string (tem); | 2280 | *p = 0; |
| 2281 | return make_specified_string (tem, -1, p - tem, 1); | ||
| 2281 | } | 2282 | } |
| 2282 | else if (SYMBOLP (key)) /* Function key or event-symbol */ | 2283 | else if (SYMBOLP (key)) /* Function key or event-symbol */ |
| 2283 | { | 2284 | { |