diff options
| author | Kenichi Handa | 2003-11-24 02:21:55 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-11-24 02:21:55 +0000 |
| commit | 5c99c2e685c8297413565d7b588a99304a139850 (patch) | |
| tree | fe41545079edc4a110ffbcebaf24c6fc4d2d7b1c /src/coding.c | |
| parent | a36634571d377ec55092413fe67146a0aa689296 (diff) | |
| download | emacs-5c99c2e685c8297413565d7b588a99304a139850.tar.gz emacs-5c99c2e685c8297413565d7b588a99304a139850.zip | |
(Fdefine_coding_system_internal): Fix previous change.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/coding.c b/src/coding.c index a7b4a7a4a75..76b61e36baa 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -8119,34 +8119,15 @@ usage: (define-coding-system-internal ...) */) | |||
| 8119 | If Nth element is a list of charset IDs, N is the first byte | 8119 | If Nth element is a list of charset IDs, N is the first byte |
| 8120 | of one of them. The list is sorted by dimensions of the | 8120 | of one of them. The list is sorted by dimensions of the |
| 8121 | charsets. A charset of smaller dimension comes firtst. */ | 8121 | charsets. A charset of smaller dimension comes firtst. */ |
| 8122 | Lisp_Object list; | ||
| 8123 | int maybe_ascii_compatible = 1; | ||
| 8124 | |||
| 8125 | for (list = Qnil, tail = charset_list; CONSP (tail); tail = XCDR (tail)) | ||
| 8126 | { | ||
| 8127 | struct charset *charset = CHARSET_FROM_ID (XFASTINT (XCAR (tail))); | ||
| 8128 | |||
| 8129 | if (charset->method == CHARSET_METHOD_SUPERSET) | ||
| 8130 | { | ||
| 8131 | val = CHARSET_SUPERSET (charset); | ||
| 8132 | for (; CONSP (val); val = XCDR (val)) | ||
| 8133 | list = Fcons (XCAR (XCAR (val)), list); | ||
| 8134 | maybe_ascii_compatible = 0; | ||
| 8135 | } | ||
| 8136 | else | ||
| 8137 | list = Fcons (XCAR (tail), list); | ||
| 8138 | } | ||
| 8139 | |||
| 8140 | val = Fmake_vector (make_number (256), Qnil); | 8122 | val = Fmake_vector (make_number (256), Qnil); |
| 8141 | 8123 | ||
| 8142 | for (tail = Fnreverse (list); CONSP (tail); tail = XCDR (tail)) | 8124 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 8143 | { | 8125 | { |
| 8144 | struct charset *charset = CHARSET_FROM_ID (XFASTINT (XCAR (tail))); | 8126 | struct charset *charset = CHARSET_FROM_ID (XFASTINT (XCAR (tail))); |
| 8145 | int dim = CHARSET_DIMENSION (charset); | 8127 | int dim = CHARSET_DIMENSION (charset); |
| 8146 | int idx = (dim - 1) * 4; | 8128 | int idx = (dim - 1) * 4; |
| 8147 | 8129 | ||
| 8148 | if (CHARSET_ASCII_COMPATIBLE_P (charset) | 8130 | if (CHARSET_ASCII_COMPATIBLE_P (charset)) |
| 8149 | && maybe_ascii_compatible) | ||
| 8150 | CODING_ATTR_ASCII_COMPAT (attrs) = Qt; | 8131 | CODING_ATTR_ASCII_COMPAT (attrs) = Qt; |
| 8151 | 8132 | ||
| 8152 | for (i = charset->code_space[idx]; | 8133 | for (i = charset->code_space[idx]; |