diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/keymap.c b/src/keymap.c index d1b0cb827f2..f760969b21f 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -537,9 +537,7 @@ access_keymap (map, idx, t_ok, noinherit, autoload) | |||
| 537 | Lisp_Object t_binding; | 537 | Lisp_Object t_binding; |
| 538 | t_binding = Qnil; | 538 | t_binding = Qnil; |
| 539 | 539 | ||
| 540 | /* If `t_ok' is 2, both `t' and generic-char bindings are accepted. | 540 | /* If `t_ok' is 2, both `t' is accepted. */ |
| 541 | If it is 1, only generic-char bindings are accepted. | ||
| 542 | Otherwise, neither are. */ | ||
| 543 | t_ok = t_ok ? 2 : 0; | 541 | t_ok = t_ok ? 2 : 0; |
| 544 | 542 | ||
| 545 | for (tail = XCDR (map); | 543 | for (tail = XCDR (map); |
| @@ -563,24 +561,6 @@ access_keymap (map, idx, t_ok, noinherit, autoload) | |||
| 563 | 561 | ||
| 564 | if (EQ (key, idx)) | 562 | if (EQ (key, idx)) |
| 565 | val = XCDR (binding); | 563 | val = XCDR (binding); |
| 566 | else if (t_ok | ||
| 567 | && INTEGERP (idx) | ||
| 568 | && (XINT (idx) & CHAR_MODIFIER_MASK) == 0 | ||
| 569 | && INTEGERP (key) | ||
| 570 | && (XINT (key) & CHAR_MODIFIER_MASK) == 0 | ||
| 571 | && !SINGLE_BYTE_CHAR_P (XINT (idx)) | ||
| 572 | && !SINGLE_BYTE_CHAR_P (XINT (key)) | ||
| 573 | && CHAR_VALID_P (XINT (key), 1) | ||
| 574 | && !CHAR_VALID_P (XINT (key), 0) | ||
| 575 | && (CHAR_CHARSET (XINT (key)) | ||
| 576 | == CHAR_CHARSET (XINT (idx)))) | ||
| 577 | { | ||
| 578 | /* KEY is the generic character of the charset of IDX. | ||
| 579 | Use KEY's binding if there isn't a binding for IDX | ||
| 580 | itself. */ | ||
| 581 | t_binding = XCDR (binding); | ||
| 582 | t_ok = 0; | ||
| 583 | } | ||
| 584 | else if (t_ok > 1 && EQ (key, Qt)) | 564 | else if (t_ok > 1 && EQ (key, Qt)) |
| 585 | { | 565 | { |
| 586 | t_binding = XCDR (binding); | 566 | t_binding = XCDR (binding); |
| @@ -2044,7 +2024,7 @@ push_key_description (c, p, force_multibyte) | |||
| 2044 | { | 2024 | { |
| 2045 | *p++ = c; | 2025 | *p++ = c; |
| 2046 | } | 2026 | } |
| 2047 | else if (CHAR_VALID_P (c, 0)) | 2027 | else if (CHARACTERP (c)) |
| 2048 | { | 2028 | { |
| 2049 | if (NILP (current_buffer->enable_multibyte_characters)) | 2029 | if (NILP (current_buffer->enable_multibyte_characters)) |
| 2050 | *p++ = multibyte_char_to_unibyte (c, Qnil); | 2030 | *p++ = multibyte_char_to_unibyte (c, Qnil); |