aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c10
1 files changed, 8 insertions, 2 deletions
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 {