diff options
| author | Richard M. Stallman | 1997-05-14 05:47:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-14 05:47:07 +0000 |
| commit | 542d7fd2bae1668015db7d35e761f5d013c47ada (patch) | |
| tree | f57cd2ef8edc129b557f32bfe785bd70313f55cd | |
| parent | 01a6ef79efbf0821bab7adbbae77c1f90870455e (diff) | |
| download | emacs-542d7fd2bae1668015db7d35e761f5d013c47ada.tar.gz emacs-542d7fd2bae1668015db7d35e761f5d013c47ada.zip | |
(describe_vector): Identify charset row numbers clearly.
| -rw-r--r-- | src/keymap.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/keymap.c b/src/keymap.c index 35465ad8597..dbeae522928 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -2882,9 +2882,9 @@ describe_vector (vector, elt_prefix, elt_describer, | |||
| 2882 | { | 2882 | { |
| 2883 | /* We need an octal representation for this block of | 2883 | /* We need an octal representation for this block of |
| 2884 | characters. */ | 2884 | characters. */ |
| 2885 | char work[5]; | 2885 | char work[16]; |
| 2886 | sprintf (work, "\\%03o", i & 255); | 2886 | sprintf (work, "(row %d)", i); |
| 2887 | insert (work, 4); | 2887 | insert (work, strlen (work)); |
| 2888 | } | 2888 | } |
| 2889 | } | 2889 | } |
| 2890 | else if (CHAR_TABLE_P (vector)) | 2890 | else if (CHAR_TABLE_P (vector)) |
| @@ -2922,7 +2922,7 @@ describe_vector (vector, elt_prefix, elt_describer, | |||
| 2922 | 2922 | ||
| 2923 | starting_i = i; | 2923 | starting_i = i; |
| 2924 | 2924 | ||
| 2925 | /* Find all consecutive characters that have the same | 2925 | /* Find all consecutive characters or rows that have the same |
| 2926 | definition. But, for elements of a top level char table, if | 2926 | definition. But, for elements of a top level char table, if |
| 2927 | they are for charsets, we had better describe one by one even | 2927 | they are for charsets, we had better describe one by one even |
| 2928 | if they have the same definition. */ | 2928 | if they have the same definition. */ |
| @@ -2972,9 +2972,11 @@ describe_vector (vector, elt_prefix, elt_describer, | |||
| 2972 | } | 2972 | } |
| 2973 | else | 2973 | else |
| 2974 | { | 2974 | { |
| 2975 | char work[5]; | 2975 | /* We need an octal representation for this block of |
| 2976 | sprintf (work, "\\%03o", i & 255); | 2976 | characters. */ |
| 2977 | insert (work, 4); | 2977 | char work[16]; |
| 2978 | sprintf (work, "(row %d)", i); | ||
| 2979 | insert (work, strlen (work)); | ||
| 2978 | } | 2980 | } |
| 2979 | } | 2981 | } |
| 2980 | else | 2982 | else |