diff options
| author | Stefan Monnier | 2012-02-13 10:55:27 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-02-13 10:55:27 -0500 |
| commit | af70074f2f0ea0b3120014de3b721057d09c9758 (patch) | |
| tree | ddf792ca66950ad28f4cd86358d415ca4585a391 /src | |
| parent | 3d2af1938b425929bddac50fbf3540efcee954d4 (diff) | |
| download | emacs-af70074f2f0ea0b3120014de3b721057d09c9758.tar.gz emacs-af70074f2f0ea0b3120014de3b721057d09c9758.zip | |
* src/keymap.c (Fsingle_key_description): Handle char ranges.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keymap.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1e28d258523..d9c02e011ad 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-02-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * keymap.c (Fsingle_key_description): Handle char ranges. | ||
| 4 | |||
| 1 | 2012-02-12 Chong Yidong <cyd@gnu.org> | 5 | 2012-02-12 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here, | 7 | * xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here, |
diff --git a/src/keymap.c b/src/keymap.c index 5b5faec3a65..0ae055213c3 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2270,9 +2270,15 @@ around function keys and event symbols. */) | |||
| 2270 | if (CONSP (key) && lucid_event_type_list_p (key)) | 2270 | if (CONSP (key) && lucid_event_type_list_p (key)) |
| 2271 | key = Fevent_convert_list (key); | 2271 | key = Fevent_convert_list (key); |
| 2272 | 2272 | ||
| 2273 | if (CONSP (key) && INTEGERP (XCAR (key)) && INTEGERP (XCDR (key))) | ||
| 2274 | /* An interval from a map-char-table. */ | ||
| 2275 | return concat3 (Fsingle_key_description (XCAR (key), no_angles), | ||
| 2276 | build_string (".."), | ||
| 2277 | Fsingle_key_description (XCDR (key), no_angles)); | ||
| 2278 | |||
| 2273 | key = EVENT_HEAD (key); | 2279 | key = EVENT_HEAD (key); |
| 2274 | 2280 | ||
| 2275 | if (INTEGERP (key)) /* Normal character */ | 2281 | if (INTEGERP (key)) /* Normal character. */ |
| 2276 | { | 2282 | { |
| 2277 | char tem[KEY_DESCRIPTION_SIZE], *p; | 2283 | char tem[KEY_DESCRIPTION_SIZE], *p; |
| 2278 | 2284 | ||
| @@ -2280,7 +2286,7 @@ around function keys and event symbols. */) | |||
| 2280 | *p = 0; | 2286 | *p = 0; |
| 2281 | return make_specified_string (tem, -1, p - tem, 1); | 2287 | return make_specified_string (tem, -1, p - tem, 1); |
| 2282 | } | 2288 | } |
| 2283 | else if (SYMBOLP (key)) /* Function key or event-symbol */ | 2289 | else if (SYMBOLP (key)) /* Function key or event-symbol. */ |
| 2284 | { | 2290 | { |
| 2285 | if (NILP (no_angles)) | 2291 | if (NILP (no_angles)) |
| 2286 | { | 2292 | { |