aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2000-05-20 00:03:16 +0000
committerKenichi Handa <[email protected]>2000-05-20 00:03:16 +0000
commit54e03a4ac40be5c30a03feef21e69b825b44ca2f (patch)
treeba9e9f04d1800ac678802cf4347611d2209db75e /src/keymap.c
parentb16afa45bb6a0b0b68658c5d4e563e2010b12169 (diff)
(Fsingle_key_description): Use SPLIT_CHAR instead of
SPLIT_NON_ASCII_CHAR. (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally. (Fkey_description): Likewise.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c32
1 files changed, 10 insertions, 22 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 4b7c6c2a4a..2a6114907f 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1502,14 +1502,10 @@ then the value includes only maps for prefixes that start with PREFIX.")
for (i = 0, i_byte = 0; i < XSTRING (prefix)->size;)
{
int i_before = i;
- if (STRING_MULTIBYTE (prefix))
- FETCH_STRING_CHAR_ADVANCE (c, prefix, i, i_byte);
- else
- {
- c = XSTRING (prefix)->data[i++];
- if (c & 0200)
- c ^= 0200 | meta_modifier;
- }
+
+ FETCH_STRING_CHAR_ADVANCE (c, prefix, i, i_byte);
+ if (SINGLE_BYTE_CHAR_P (c) && (c & 0200))
+ c ^= 0200 | meta_modifier;
XVECTOR (copy)->contents[i_before] = make_number (c);
}
prefix = copy;
@@ -1738,15 +1734,9 @@ spaces are put between sequence elements, etc.")
int c;
int i_before = i;
- if (STRING_MULTIBYTE (keys))
- FETCH_STRING_CHAR_ADVANCE (c, keys, i, i_byte);
- else
- {
- c = XSTRING (keys)->data[i++];
- if (c & 0200)
- c ^= 0200 | meta_modifier;
- }
-
+ FETCH_STRING_CHAR_ADVANCE (c, keys, i, i_byte);
+ if (SINGLE_BYTE_CHAR_P (c) && (c & 0200))
+ c ^= 0200 | meta_modifier;
XSETFASTINT (XVECTOR (vector)->contents[i_before], c);
}
keys = vector;
@@ -1931,7 +1921,7 @@ Control characters turn into C-whatever, etc.")
if (SINGLE_BYTE_CHAR_P (without_bits))
charset = 0;
else
- SPLIT_NON_ASCII_CHAR (without_bits, charset, c1, c2);
+ SPLIT_CHAR (without_bits, charset, c1, c2);
if (charset
&& CHARSET_DEFINED_P (charset)
@@ -3034,8 +3024,7 @@ describe_vector (vector, elt_prefix, elt_describer,
}
else if (complete_char)
{
- character
- = MAKE_NON_ASCII_CHAR (indices[0], indices[1], indices[2]);
+ character = MAKE_CHAR (indices[0], indices[1], indices[2]);
}
else
character = 0;
@@ -3178,8 +3167,7 @@ describe_vector (vector, elt_prefix, elt_describer,
else if (complete_char)
{
indices[char_table_depth] = i;
- character
- = MAKE_NON_ASCII_CHAR (indices[0], indices[1], indices[2]);
+ character = MAKE_CHAR (indices[0], indices[1], indices[2]);
insert_char (character);
}
else