Mercurial > emacs
annotate src/ChangeLog.22 @ 89974:2fef8edebd5c
(detect_coding_utf_16): Don't set detect_info->found if
BOM is not found.
(detect_coding): Optimization for ISO-2022 when no 8-bit data is
found.
(detect_coding_system): Likewise.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Mon, 13 Sep 2004 00:41:15 +0000 |
| parents | cc33ef29b565 |
| children | 84389b8b8802 |
| rev | line source |
|---|---|
| 89968 | 1 2004-09-01 Jason Rumney <jasonr@gnu.org> |
| 2 | |
| 3 * w32fns.c (x_to_w32_font): Update to use new coding struct. | |
| 4 | |
| 89972 | 5 2004-08-17 Kenichi Handa <handa@m17n.org> |
| 6 | |
| 7 * charset.c (Fdeclare_equiv_charset): Fix handing of CHARS. | |
| 8 (Fiso_charset): Likewise. | |
| 9 | |
|
89960
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
10 2004-08-03 Steven Tamm <steventamm@mac.com> |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
11 |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
12 * macterm.c (mac_encode_char): Add charset argument and update |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
13 to use encoding_type |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
14 (x_new_font,x_new_fontset): Merge in changes from xterm.c; |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
15 switch to pure fontset |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
16 (decode_mac_font_name): Temporarily remove decoding |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
17 (x_font_name_to_mac_font_name): Temporarily remove encoding |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
18 (x_load_font): Temporarily remove encoding |
|
d79ab6afded5
macterm.c (mac_encode_char): Add charset argument and update
Steven Tamm <steventamm@mac.com>
parents:
89951
diff
changeset
|
19 |
| 89949 | 20 2004-06-30 Kenichi Handa <handa@m17n.org> |
| 21 | |
| 22 * xfaces.c (Fface_font): If frame is not on a window system, | |
| 23 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't | |
| 24 refer to face->font. | |
| 89951 | 25 (split_font_name_into_vector, build_font_name_from_vector) |
| 26 (lookup_non_ascii_face, realize_non_ascii_face): Define them only | |
| 27 whne HAVE_WINDOW_SYSTEM is defined. | |
| 89949 | 28 |
| 89942 | 29 2004-05-29 Kenichi Handa <handa@m17n.org> |
| 30 | |
| 31 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. | |
| 32 (x_produce_glyphs): Fix setting of members of cmp in case | |
| 33 cmp->glyph_len is zero, | |
| 34 | |
| 35 * fontset.c (Fset_fontset_font): Docstring fixed. | |
| 36 (Ffontset_info): Make it backward compatible. New arg ALL. | |
| 37 | |
| 89939 | 38 2004-05-11 Kim F. Storm <storm@cua.dk> |
| 39 | |
| 40 * process.c (read_process_output): Grow decoding_buf when needed; | |
| 41 this could cause a crash in allocate_string and compact_small_strings. | |
| 42 | |
| 89936 | 43 2004-04-29 Kenichi Handa <handa@m17n.org> |
| 44 | |
| 45 * fileio.c (WRITE_BUF_SIZE): This macro deleted. | |
| 46 (e_write): Fix previous change. | |
| 47 | |
| 89934 | 48 2004-04-28 Kenichi Handa <handa@m17n.org> |
| 49 | |
| 50 * coding.c (setup_coding_system): Set coding->common_flags | |
| 51 correctly for raw-text. | |
| 52 (consume_chars): On encoding unibyte text by raw-text, don't check | |
| 53 multibyte form. | |
| 54 (encode_coding): On encoding by raw-text, never use translation | |
| 55 tables. | |
| 56 | |
| 57 * fileio.c (e_write): Short cut for the case of no encoding. | |
| 58 | |
| 89925 | 59 2004-04-20 Kenichi Handa <handa@m17n.org> |
| 60 | |
| 61 * coding.c (detect_coding): Delete unused variables. | |
| 62 (detect_coding_system): Likewise. | |
| 63 | |
| 89918 | 64 2004-04-18 Kenichi Handa <handa@m17n.org> |
| 65 | |
| 66 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. | |
| 67 (consume_chars): Fix handling of 8-bit bytes in unibyte source. | |
| 68 | |
| 69 2004-04-14 Kenichi Handa <handa@m17n.org> | |
| 70 | |
| 71 Sync all files to HEAD. | |
| 72 | |
| 89906 | 73 2004-04-14 Kenichi Handa <handa@m17n.org> |
| 74 | |
| 75 * coding.c (Ffind_coding_systems_region_internal): Include | |
| 76 raw-text and no-conversion in the result. | |
| 77 | |
| 78 * fontset.h: Sync to HEAD. | |
| 79 | |
| 80 * fontset.c: Sync to HEAD. | |
| 81 | |
| 89902 | 82 2004-04-14 Kenichi Handa <handa@m17n.org> |
| 83 | |
| 84 * fontset.c (find_font_encoding): Return `ascii' for unknown | |
| 85 encoding. | |
| 86 (load_font_get_repertory): Delete unnecessary check of ENCODING of | |
| 87 FONT_DEF. | |
| 88 (font_def_arg, add_arg, from_arg, to_arg): New args. | |
| 89 (set_fontset_font): Argument changed. | |
| 90 (Fset_fontset_font): Fix for the case that TARGET is a script | |
| 91 name and charset name. | |
| 92 (new_fontset_from_font_name): Fix argument to Fnew_fontset. | |
| 93 | |
| 89893 | 94 2004-04-13 Kenichi Handa <handa@m17n.org> |
| 95 | |
| 89899 | 96 * fontset.c (fontset_font): Renamed from fontset_face. Return |
| 97 value changed. | |
| 98 (face_suitable_for_char_p): Adjusted for the change of | |
| 99 fontset_font. | |
| 100 (face_for_char): Likewise. | |
| 101 (make_fontset_for_ascii_face): Fix setting of the fontset element | |
| 102 for ASCII. | |
| 103 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR | |
| 104 to get a font name. | |
| 105 (Ffontset_info): Adjusted for the change of fontset_font. | |
| 106 | |
| 107 * composite.c: Sync to HEAD. | |
| 108 | |
| 109 * search.c: Sync to HEAD. | |
| 110 | |
| 89893 | 111 * coding.c: Sync to HEAD. |
| 112 (emacs_mule_char): Check invalid code more regidly. | |
| 113 | |
| 114 * coding.h: Sync to HEAD. | |
| 115 | |
| 116 * charset.c: Sync to HEAD. | |
| 117 | |
| 118 * charset.h: Sync to HEAD. | |
| 89888 | 119 |
| 120 * character.h (LEADING_CODE_LATIN_1_MIN) | |
| 121 (LEADING_CODE_LATIN_1_MAX): Delete these macros. | |
| 122 | |
| 89881 | 123 2004-04-08 Kenichi Handa <handa@m17n.org> |
| 124 | |
| 125 * category.h: Sync to HEAD. | |
| 126 | |
| 127 * category.c: Sync to HEAD. | |
| 128 | |
| 129 * syntax.h: Sync to HEAD. | |
| 130 | |
| 131 * syntax.c: Sync to HEAD. | |
| 132 | |
| 133 * regex.h: Sync to HEAD. | |
| 134 | |
| 135 * regex.c: Sync to HEAD. | |
| 136 | |
| 89879 | 137 2004-04-07 Kenichi Handa <handa@m17n.org> |
| 138 | |
| 139 * editfns.c: Sync to HEAD. | |
| 140 (check_translation): New function. | |
| 141 (Ftranslate_region_internal): Handle M:N mapping. | |
| 142 | |
| 89876 | 143 2004-04-06 Kenichi Handa <handa@m17n.org> |
| 144 | |
| 145 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. | |
| 146 | |
| 89872 | 147 2004-03-30 Kenichi Handa <handa@m17n.org> |
| 148 | |
| 89874 | 149 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of |
| 150 goto invalid_code. | |
| 151 (decode_coding_iso_2022): Fix handling of invalid designation. | |
| 152 | |
| 89872 | 153 * fileio.c (Finsert_file_contents): Be sure to call unbind_to |
| 154 after calling code_conversion_save. | |
| 155 | |
| 156 2004-03-11 Kenichi Handa <handa@m17n.org> | |
| 89862 | 157 |
| 89868 | 158 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. |
| 159 | |
| 160 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. | |
| 161 | |
| 162 * fontset.c: Include "intervals.h". | |
| 163 (fontset_face): Fix comparing of Lisp_Objects. | |
| 164 (free_face_fontset): Fix Lisp_Object/int mixup. | |
| 165 (new_fontset_from_font_name): Likewise. | |
| 166 | |
| 167 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup. | |
| 168 | |
| 169 * coding.c: Add many prototypes for static functions. | |
| 170 (get_translation_table): Allow max_lookup to be NULL. | |
| 89862 | 171 (decode_coding): Call get_translation_table with max_lookup NULL. |
| 172 (Ffind_coding_systems_region_internal): Likewise. | |
| 173 (Funencodable_char_position, Fcheck_coding_systems_region): | |
| 174 Likewise. | |
| 175 | |
| 89860 | 176 2004-03-11 Kenichi Handa <handa@m17n.org> |
| 177 | |
| 178 * coding.c (get_translation_table): Declare it as Lisp_Object. | |
| 179 (LOOKUP_TRANSLATION_TABLE): New macro. | |
| 180 (produce_chars): Use LOOKUP_TRANSLATION_TABLE instead of | |
| 181 CHAR_TABLE_REF. | |
| 182 (consume_chars): Likewise. | |
| 183 | |
| 89853 | 184 2004-03-11 Kenichi Handa <handa@m17n.org> |
| 185 | |
| 186 * coding.c (MAX_ANNOTATION_LENGTH): Adjusted for the change of | |
| 187 annotation data format. | |
| 188 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): | |
| 189 Change arguments FROM and TO to single argument NCHARS. Caller | |
| 190 changed. | |
| 191 (decode_coding_utf_8): Pay attention to coding->charbuf_used. | |
| 192 (decode_coding_utf_16, decode_coding_emacs_mule) | |
| 193 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) | |
| 194 (decode_coding_ccl, decode_coding_charset): Likewise. | |
| 195 (get_translation): New function. | |
| 196 (produce_chars): New arguments translation_table and last_block. | |
| 197 Translate characters here. Return number of carryover chars. | |
| 198 Caller changed. | |
| 199 (produce_composition): New argument pos. Caller changed. | |
| 200 Adjusted for the change of annotation data format. | |
| 201 (produce_charset, produce_annotation): Likewise. | |
| 89857 | 202 (decode_coding, encode_coding): Don't call translate_chars. |
| 203 (consume_chars): New arg translation_table. Caller changed. | |
| 204 (translate_chars): Deleted. | |
| 205 (syms_of_coding): Make translation-table's number of extra slots | |
| 206 2. | |
| 89853 | 207 |
| 89849 | 208 2004-03-09 Kenichi Handa <handa@m17n.org> |
| 209 | |
| 89851 | 210 * search.c (simple_search): Fix setting this_pos_byte in backward |
| 211 search. | |
| 212 | |
| 89849 | 213 * coding.c (detect_coding_emacs_mule): Fix counting of encoded |
| 214 byte sequence. | |
| 215 (detect_coding_ccl): Fix setting of the variable valids. | |
| 216 | |
| 89841 | 217 2004-03-04 Kenichi Handa <handa@m17n.org> |
| 218 | |
| 89846 | 219 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. |
| 220 | |
| 89843 | 221 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. |
| 222 | |
| 89841 | 223 * editfns.c (Ftranslate_region_internal): Renamed from |
| 224 Ftranslate_region. Accept a char-table in TABLE. | |
| 225 (syms_of_editfns): Defsubr Stranslate_region_internal. | |
| 226 | |
| 227 * xfaces.c (set_lface_from_font_name): If a font is specified for | |
| 228 a frame, generate a fontset from the font. | |
| 89846 | 229 (build_scalable_font_name): If the scalable font is requested for |
| 230 a specific size, don't change that size. | |
| 231 (try_font_list): Try a scalable font also in the case that a | |
| 232 pattern string is specified, | |
| 233 | |
| 89841 | 234 |
| 89837 | 235 2004-03-03 Kenichi Handa <handa@m17n.org> |
| 236 | |
| 237 * xfaces.c (Fface_font): New optional arg CHARACTER. | |
| 238 | |
| 89833 | 239 2004-02-17 Kenichi Handa <handa@m17n.org> |
| 240 | |
| 241 * charset.h (CHARSET_OFFSET): New macro. | |
| 242 | |
| 89827 | 243 2004-02-13 Kenichi Handa <handa@m17n.org> |
| 244 | |
| 89829 | 245 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. |
| 246 | |
| 89827 | 247 * fontset.c (fontset_face): Handle the case that repertory is a |
| 248 char-table. | |
| 249 (find_font_encoding): Return nil for unknown encoding. | |
| 250 (Fset_fontset_font): Ignore a font of unknown encoding. | |
| 251 | |
| 89812 | 252 2004-02-09 Kenichi Handa <handa@m17n.org> |
| 253 | |
| 254 * keymap.c (describe_vector): Handle default value of a char | |
| 255 table. | |
| 256 | |
| 257 * fontset.c (fontset_face): Handle fallback fonts correctly. | |
| 258 (Ffontset_info): Return infomation about fallback fonts. | |
| 259 | |
| 89808 | 260 2004-02-06 Kenichi Handa <handa@m17n.org> |
| 261 | |
| 262 * fontset.c (FONTSET_DEFAULT): New macro. | |
| 263 (FONTSET_ADD): Handle the case that range is nil. | |
| 264 (fontset_add): Likewise. | |
| 265 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle | |
| 266 the case that it is nil. | |
| 267 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK. | |
| 268 (syms_of_fontset): Set char-table-extra-slots property of fontset | |
| 269 to 9. | |
| 270 | |
| 271 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is | |
| 272 subset or superset. | |
| 273 | |
| 89790 | 274 2004-01-30 Kenichi Handa <handa@m17n.org> |
| 275 | |
| 276 * emacs.c (main): Call init_charset after syms_of_XXX. | |
| 277 | |
| 278 * charset.c (Vcharset_map_directory): Deleted. | |
| 279 (Vcharset_map_path): New variable | |
| 280 (load_charset_map_from_file): Use Vcharset_map_path instead. | |
| 281 (init_charset): Initialize Vcharset_map_path. | |
| 282 (syms_of_charset): Delete declaration of "charset-map-directory", | |
| 283 add declaration of "charset-map-path". | |
| 284 | |
| 89782 | 285 2004-01-29 Kenichi Handa <handa@m17n.org> |
| 286 | |
| 89784 | 287 * fns.c (string_char_to_byte): Optimize for ASCII only string. |
| 288 (string_byte_to_char): Likewise. | |
| 289 | |
| 89782 | 290 * fileio.c (Finsert_file_contents): Avoid detecting a code twice. |
| 291 | |
| 292 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. | |
| 293 (detect_coding): Treat '\0' as normal ASCII byte.. | |
| 294 (detect_coding_system): Likewise. | |
| 295 | |
| 89761 | 296 2004-01-27 Kenichi Handa <handa@m17n.org> |
| 297 | |
| 89772 | 298 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. |
| 299 | |
| 89761 | 300 * coding.c (QCmnemonic, QCdefalut_char) |
| 301 (QCdecode_translation_table, QCencode_translation_table) | |
| 302 (QCpost_read_conversion, QCpre_write_conversion): New variables. | |
| 303 (get_translation_table): Return a list of translation tables if | |
| 304 necessary. | |
| 305 (decode_coding): Call get_translation_table with ENCODEP 0. | |
| 306 (char_encodable_p): If translation_table is non-nil, always call | |
| 307 translate_char. | |
| 308 (Fdefine_coding_system_internal): Accept list of translation | |
| 309 tables as :encode-translation-table and :decode-translation-table. | |
| 310 (Fcoding_system_put): New function. | |
| 311 (syms_of_coding): Declare new symbols. Defsubr | |
| 312 Scoding_system_put. | |
| 89772 | 313 (decode_coding_sjis): Handle 4th charset (typically JISX0212). |
| 314 (encode_coding_sjis): Likewise. | |
| 89761 | 315 |
| 316 * charset.c (map_charset_chars): Fix arg to map_charset_chars in | |
| 317 when the charset is superset type. | |
| 318 | |
| 319 * character.c (translate_char): Accept list of translation tables. | |
| 320 | |
| 89743 | 321 2004-01-25 Kenichi Handa <handa@m17n.org> |
| 322 | |
| 323 * coding.h (enum coding_attr_index): New member | |
| 324 coding_attr_trans_tbl. | |
| 325 (CODING_ATTR_TRANS_TBL): New macro. | |
| 326 | |
| 327 * coding.c (get_translation_table): New function. | |
| 328 (translate_chars): Fix the bug of skipping annotation data. | |
| 329 (decode_coding): Utilze get_translation_table. | |
| 330 (encode_coding): Likewise. | |
| 331 (char_encodable_p): Translate char if necessary. | |
| 332 (Funencodable_char_position): Likewise. | |
| 333 (Ffind_coding_systems_region_internal): Setup translation table | |
| 334 for encode in a coding system attribute vector in advance. | |
| 335 (Fcheck_coding_systems_region): Likewise. | |
| 336 (Fdefine_coding_system_internal): Allow a symbol as translation | |
| 337 table. For shift-jis type coding system, allow 4th charset. | |
| 338 | |
| 89729 | 339 2004-01-24 Kenichi Handa <handa@m17n.org> |
| 340 | |
| 89731 | 341 * coding.c (decode_coding_sjis): Check the first byte rigidly. |
| 342 | |
| 89729 | 343 * xdisp.c (get_next_display_element): Pass -1 as POS to |
| 344 FACE_FOR_CHAR if displaying a C-string. | |
| 345 | |
| 89727 | 346 2004-01-23 Kenichi Handa <handa@m17n.org> |
| 347 | |
| 348 * composite.c (get_composition_id): Handle xoff and yoff in a | |
| 349 composition rule. | |
| 350 | |
| 351 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. | |
| 352 (struct composition): New member lbearing and rbearing. | |
| 353 | |
| 354 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y). | |
| 355 (x_get_glyph_overhangs): Handle a composition glyph. | |
| 356 (x_produce_glyphs): Setup lbearing and rbreaing for a composition | |
| 357 glyph. | |
| 358 | |
| 359 * xterm.c (x_compute_glyph_string_overhangs): Handle also a | |
| 360 composition glyph. | |
| 361 | |
| 89718 | 362 2004-01-18 Kenichi Handa <handa@m17n.org> |
| 363 | |
| 364 * print.c: Include charset.h. | |
| 365 (Vprint_charset_text_property): New variable. | |
| 366 (Qdefault): Extern it. | |
| 367 (PRINT_STRING_NON_CHARSET_FOUND) | |
| 368 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros. | |
| 369 (print_check_string_result): New variable. | |
| 370 (print_check_string_charset_prop): New function. | |
| 371 (print_prune_charset_plist): New variable. | |
| 372 (print_prune_string_charset): New function. | |
| 373 (print_object): Call print_prune_string_charset if | |
| 374 Vprint_charset_text_property is not t. | |
| 375 (print_interval): Print nothing if itnerval->plist is nil. | |
| 376 (syms_of_print): Declare Vprint_charset_text_property as a lisp | |
| 377 variable. Init and staticpro print_prune_charset_plist. | |
| 378 | |
| 89710 | 379 2004-01-15 Kenichi Handa <handa@m17n.org> |
| 380 | |
| 89712 | 381 * fontset.c (new_fontset_from_font_name): Use the specified font |
| 382 for all characters in the new fontset. | |
| 383 | |
| 89710 | 384 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and |
| 385 OBJECT args. | |
| 386 | |
| 387 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and | |
| 388 OBJECT args for composition too. | |
| 389 | |
| 390 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and | |
| 391 OBJECT args. | |
| 392 | |
| 89703 | 393 2004-01-13 Kenichi Handa <handa@m17n.org> |
| 394 | |
| 395 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. | |
| 396 | |
| 397 * fontset.c (reorder_font_vector): Adjusted for the change of | |
| 398 FONT_DEF format. | |
| 399 (fontset_face): New arg id. Caller changed. | |
| 400 (face_for_char): New args pos and object. | |
| 401 (make_fontset_for_ascii_face): Adjusted for the change of FONT_DEF | |
| 402 format.n | |
| 403 (fs_query_fontset): Check NAME by Fassoc too. | |
| 404 (Fset_fontset_font): Allow non-XLFD font name. | |
| 405 (Ffontset_info): Adjusted for the change of FONT_DEF format. | |
| 406 | |
| 407 * fontset.h (face_for_char): Prototype adjusted. | |
| 408 | |
| 409 * xdisp.c (face_before_or_after_it_pos): Call FACE_FOR_CHAR with | |
| 410 POS and OBJECT args. | |
| 411 (get_next_display_element): Likewise. | |
| 412 (append_space): Likewise. | |
| 413 (extend_face_to_end_of_line): Likewise. | |
| 414 (get_char_face_and_encoding): Likewise. | |
| 415 (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
| 416 (x_produce_glyphs): Likewise. | |
| 417 | |
| 418 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with | |
| 419 POS and OBJECT args. | |
| 420 | |
| 421 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with | |
| 422 POS and OBJECT args. | |
| 423 | |
| 89694 | 424 2004-01-03 Jason Rumney <jasonr@gnu.org> |
| 425 | |
| 426 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc | |
| 427 of GlobalAlloc'ed memory. | |
| 428 | |
| 89690 | 429 2003-12-29 Kenichi Handa <handa@m17n.org> |
| 430 | |
| 431 * ccl.c (Fccl_execute_on_string): Fix the condition of loop. | |
| 432 | |
| 433 * charset.h (charset_table_used): Delete extern. | |
| 434 | |
| 435 * charset.c (charset_table_used): Make it static. | |
| 436 (map_charset_chars): Fix args to c_function with. | |
| 437 | |
| 438 * chartab.c (map_sub_char_table_for_charset): Fix args to | |
| 439 c_function with. | |
| 440 | |
| 441 * coding.h (enum coding_result_code): Delete | |
| 442 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC. | |
| 443 | |
| 444 * coding.c (Qinsufficient_source, Qinconsistent_eol) | |
| 445 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New | |
| 446 variables. | |
| 447 (Vlast_code_conversion_error): New variables. | |
| 448 (syms_of_coding): DEFSYM or DEFVAR_LISP them. | |
| 449 (ONE_MORE_BYTE): Record error if any instead of signaling an | |
| 450 error. If non-ASCII multibyte char is found, return the negative | |
| 451 value of the code. All callers changed to check it. | |
| 452 (ONE_MORE_BYTE_NO_CHECK): Likewise. | |
| 453 (record_conversion_result): New function. All codes setting | |
| 454 coding->result are changed to call this function. | |
| 455 (detect_coding_utf_8): Don't use the local variable incomplete. | |
| 456 (decode_coding_utf_8): Likewise. | |
| 457 (emacs_mule_char): Change the second arg to `const'. | |
| 458 (detect_coding_emacs_mule): Don't use the local variable | |
| 459 incomplete. | |
| 460 (detect_coding_sjis): Likewise. | |
| 461 (detect_coding_big5): Likewise. | |
| 462 (decode_coding): Fix of flushing out unprocessed data. | |
| 463 (make_conversion_work_buffer): Fix making of a work buffer. | |
| 464 (decode_coding_object): Return coding->dst_object; | |
| 465 | |
| 466 * fontset.c (set_fontset_font): Fix args. | |
| 467 | |
| 468 * lisp.h (CHARACTERBITS): Define as 22. | |
| 469 | |
| 470 * process.c (send_process): Be sure to set coding->src_multibyte. | |
| 471 | |
| 89692 | 472 * xdisp.c (handle_auto_composed_prop): Fix setting of limit. |
| 473 | |
| 89677 | 474 2003-12-02 Kenichi Handa <handa@m17n.org> |
| 475 | |
| 89693 | 476 * xdisp.c (handle_auto_composed_prop): Give limit to |
| 477 Fnext_single_char_property_change. | |
| 478 | |
| 479 2003-12-02 Kenichi Handa <handa@m17n.org> | |
| 480 | |
| 89677 | 481 * coding.c (detect_coding): Fix previous change. |
| 482 (detect_coding_system): Likewise. | |
| 483 | |
| 89670 | 484 2003-12-02 Kenichi Handa <handa@m17n.org> |
| 485 | |
| 89672 | 486 * composite.c (syms_of_composite): Don't make the compostion hash |
| 487 table week. | |
| 488 | |
| 89670 | 489 * fontset.c (Fset_fontset_font): Fix docstring. |
| 490 | |
| 491 * lisp.h (detect_coding_system): Adjust prototype. | |
| 492 | |
| 493 * fileio.c (kill_workbuf_unwind): Delete this function. | |
| 494 (Finsert_file_contents): Adjust the call of detect_coding_system. | |
| 495 Get conversion_buffer by code_conversion_save. Use the macor | |
| 496 CODING_MAY_REQUIRE_DECODING. After decoding, update | |
| 497 coding_system. | |
| 498 | |
| 499 * coding.h (make_conversion_work_buffer): Delete extern. | |
| 500 (code_conversion_save): Extern it. | |
| 501 | |
| 502 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return. | |
| 503 (CODING_GET_INFO): Delete argument eol_type. Callers changed. | |
| 504 (decode_coding_utf_8): Don't do eol converion. | |
| 505 (detect_coding_utf_16): Check coding->src_chars, not | |
| 506 coding->src_bytes. Add heuristics for those that have no | |
| 507 signature. | |
| 508 (decode_coding_emacs_mule): Don't do eol converion. | |
| 509 (decode_coding_iso_2022): Likewise. | |
| 510 (decode_coding_sjis): Likewise. | |
| 511 (decode_coding_big5): Likewise. | |
| 512 (decode_coding_charset): Likewise. | |
| 513 (adjust_coding_eol_type): Return a new coding system. | |
| 514 (detect_coding): Don't detect eol. Fix for utf-16 detection. | |
| 515 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on | |
| 516 each change. | |
| 517 (decode_coding): Pay attention to undo_list. Do eol convesion for | |
| 518 all types of coding-systems (if necessary). | |
| 519 (Vcode_conversion_work_buf_list): Delete it. | |
| 520 (Vcode_conversion_reused_workbuf): Renamed from | |
| 521 Vcode_conversion_reused_work_buf. | |
| 522 (Vcode_conversion_workbuf_name): New variable. | |
| 523 (reused_workbuf_in_use): New variable. | |
| 524 (make_conversion_work_buffer): Delete the arg DEPTH. | |
| 525 (code_conversion_restore): Argument changed to cons. | |
| 526 (code_conversion_save): Delete the argument BUFFER. Callers | |
| 527 changed. | |
| 528 (detect_coding_system): New argument src_chars. Callers changed. | |
| 529 Fix for utf-16 detection. | |
| 530 (init_coding_once): Don't use ISO_carriage_return. | |
| 531 (syms_of_coding): Initialized Vcode_conversion_workbuf_name and | |
| 532 reused_workbuf_in_use. | |
| 533 | |
| 89654 | 534 2003-11-24 Kenichi Handa <handa@m17n.org> |
| 535 | |
| 89656 | 536 * keymap.c (store_in_keymap): Pay attention to the case that idx |
| 537 is a cons specifying a character range. | |
| 538 | |
| 89654 | 539 * coding.c (Fdefine_coding_system_internal): Fix previous change. |
| 540 | |
| 89649 | 541 2003-11-23 Kenichi Handa <handa@m17n.org> |
| 542 | |
| 89652 | 543 * xdisp.c (handle_auto_composed_prop): Fix the case of returning |
| 544 HANDLED_RECOMPUTE_PROPS. | |
| 545 | |
| 89649 | 546 * coding.c (Fdefine_coding_system_internal): Fix checking of |
| 547 ascii compatibility. | |
| 548 | |
| 89641 | 549 2003-11-22 Kenichi Handa <handa@m17n.org> |
| 550 | |
| 89646 | 551 * charset.c (find_charsets_in_text): Delete unused locale |
| 552 variable. | |
| 553 (Fset_charset_priority): Update Vemacs_mule_charset_list too. | |
| 554 | |
| 89643 | 555 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB. |
| 89646 | 556 Resync charset_list to Vemacs_mule_charset_list. |
| 89643 | 557 |
| 89641 | 558 * keymap.c (store_in_keymap): Pay attention to the case that idx |
| 559 is a cons specifying a character range. | |
| 560 | |
| 89631 | 561 2003-11-18 Kenichi Handa <handa@m17n.org> |
| 562 | |
| 89634 | 563 * composite.c (update_compositions): Bind inhibit-read-only, etc |
| 564 to t before calling remove-list-of-text-properties. | |
| 565 | |
| 89631 | 566 * print.c (print_object): Always print ASCII chars as is. |
| 567 | |
| 89625 | 568 2003-11-17 Kenichi Handa <handa@m17n.org> |
| 569 | |
| 89627 | 570 * keymap.c (Fdefine_key): Fix handling of Lucid style event type |
| 571 list. | |
| 572 | |
| 89625 | 573 * fns.c (Fmapconcat): Signal an error if SEQUENCE is a char table. |
| 574 (Fmapcar): Likewise. | |
| 575 (Fmapc): Likewise. | |
| 576 | |
| 89623 | 577 2003-11-15 Kenichi Handa <handa@m17n.org> |
| 578 | |
| 579 * syntax.c (skip_chars): Be sure to alloca char_ranges when | |
| 580 necessary. | |
| 581 | |
| 89621 | 582 2003-11-14 Kenichi Handa <handa@m17n.org> |
| 583 | |
| 584 * xfaces.c (set_lface_from_font_name): Fix for the case that | |
| 585 FONTNAME is not fontset name. | |
| 586 | |
| 89616 | 587 2003-11-13 Kenichi Handa <handa@m17n.org> |
| 588 | |
| 589 * fns.c (base64_encode_1): Fix previous change. | |
| 590 | |
| 89621 | 591 2003-11-08 Kenichi Handa <handa@m17n.org> |
| 592 | |
| 593 * fontset.c (set_fontset_font): New function. | |
| 594 (Fset_fontset_font): If a font is specified for a charset, use | |
| 595 map_charset_chars to store the font spec in a fontset. | |
| 596 | |
| 89611 | 597 2003-10-29 Kenichi Handa <handa@m17n.org> |
| 598 | |
| 599 * fontset.c (fontset_face): Create a fallback fontset on demand | |
| 600 (make_fontset): Don't create a fallback fontset here. | |
| 601 (free_face_fontset): Free a fallback fontset (if any) too. | |
| 602 (n_auto_fontsets): Delete this variable. | |
| 603 (auto_fontset_alist): New variable. | |
| 604 (new_fontset_from_font_name): Check auto_fontset_alist. | |
| 605 (dump_fontset) [FONTSET_DEBUG]: Fully re-written. | |
| 606 (Ffontset_list_all) [FONTSET_DEBUG]: New function. | |
| 607 (syms_of_fontset): Initialize and staticpro auto_fontset_alist. | |
| 608 Defsubr Sfontset_list_all. | |
| 609 | |
| 89606 | 610 2003-10-24 Kenichi Handa <handa@m17n.org> |
| 611 | |
| 612 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. | |
| 613 | |
| 89604 | 614 2003-10-23 Kenichi Handa <handa@m17n.org> |
| 615 | |
| 616 * fontset.c (Fnew_fontset): Check NAME more rigidly. | |
| 617 | |
| 89602 | 618 2003-10-17 Kenichi Handa <handa@m17n.org> |
| 619 | |
| 620 * editfns.c (Fgoto_char): Fix docstring. | |
| 621 | |
| 89599 | 622 2003-10-16 Kenichi Handa <handa@m17n.org> |
| 623 | |
| 624 * insdel.c (insert_from_gap): Adjust intervals correctly. | |
| 625 | |
| 89592 | 626 2003-10-12 Jason Rumney <jasonr@gnu.org> |
| 627 | |
| 89597 | 628 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. |
| 629 (pfnGetFontUnicodeRanges): New dynamically loaded function. | |
| 630 (w32_initialize): Try to load it. | |
| 631 (x_get_font_repertory): Use it if available. | |
| 632 (w32_encode_char): Add shortcut for unicode output. | |
| 633 | |
| 634 * w32fns.c (w32_load_system_font): Default charset to -1. | |
| 635 (x_to_w32_charset): Match all fonts for unicode. | |
| 636 (w32_to_x_charset): New parameter matching. Don't return partial | |
| 637 or wildcard charsets. | |
| 638 (w32_to_all_x_charsets): Don't return partial or wildcard charsets. | |
| 639 (w32_codepage_for_font): Return CP_UNICODE for unicode. | |
| 640 (w32_to_x_font): Match charset to real charset. | |
| 641 (enum_font_cb2): Always list unicode versions. | |
| 642 | |
| 89592 | 643 * makefile.w32-in (temacs): Increase EMHEAP. |
| 644 | |
| 89589 | 645 2003-10-11 Jason Rumney <jasonr@gnu.org> |
| 646 | |
| 647 * w32term.c (w32_encode_char): New charset parameter. | |
| 648 font_info.encoding becomes encoding_type. | |
| 649 (x_get_font_repertory): New function. Warning: stub only! | |
| 650 (x_new_font): Return quickly if font already set. | |
| 651 (x_new_fontset): fontsetname parameter is Lisp_Object. | |
| 652 Use new fs_query_fontset. Try new_fontset_from_font_name. Use | |
| 653 fontset_name for return value. | |
| 654 | |
| 655 * w32term.h: Declare x_get_font_repertory. | |
| 656 | |
| 657 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in | |
| 658 place of find_charset_in_text. Use encode_coding_object in place | |
| 659 of encode_coding. | |
| 660 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of | |
| 661 decode_coding. | |
| 662 | |
| 663 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version | |
| 664 of x_new_fontset. | |
| 665 (w32_load_system_font): Initialize charset as unicode. | |
| 666 font_info.encoding becomes encoding_type. | |
| 667 (w32_to_x_font): Use decode_coding_c_string in place of | |
| 668 decode_coding. | |
| 669 (x_to_w32_font): Use encode_coding_object in place of | |
| 670 encode_coding. | |
| 671 (syms_of_w32fns): Set get_font_repertory_func. | |
| 672 | |
| 673 * w32console.c: Include character.h. Use terminal_encode_buffer | |
| 674 from term.c. | |
| 675 (write_glyphs): Use new version of encode_terminal_code. Use | |
| 676 encode_coding_object in place of encode_coding. | |
| 677 | |
| 678 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling. | |
| 679 encoding becomes encoding_type. | |
| 680 | |
| 681 * term.c (terminal_encode_buffer): Make externally visible. | |
| 682 | |
| 683 * makefile.w32-in: Add character.h dependancies. | |
| 684 (character.o, chartab.o): New targets. | |
| 685 | |
| 89578 | 686 2003-10-10 Kenichi Handa <handa@m17n.org> |
| 687 | |
| 688 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
| 689 CODING_ID_EOL_TYPE.. | |
| 690 | |
|
89576
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
691 2003-10-07 Andreas Schwab <schwab@suse.de> |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
692 |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
693 * coding.c (produce_chars): Revert last change. |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
694 |
| 89574 | 695 2003-10-06 Kenichi Handa <handa@m17n.org> |
| 696 | |
| 697 * charset.h (charset_unicode): Extern it. | |
| 698 | |
| 699 * charset.c (string_xstring_p): Check by (C >= 0x100). | |
| 700 (find_charsets_in_text): Format of the arc CHARSETS changed. New | |
| 701 arg MULTIBYTE. | |
| 702 (Ffind_charset_region, Ffind_charset_string): Adjusted for the | |
| 703 change of find_charsets_in_text. | |
| 704 (Fsplit_char): Fix doc. Never return unknown. | |
| 705 | |
| 706 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
| 707 | |
| 708 * coding.c (Fdefine_coding_system_alias): Update | |
| 709 Vcoding_system_list. | |
| 710 | |
| 711 * fontset.c (load_font_get_repertory): Pay attention to the case | |
| 712 that ENCODING of a font is specified by a char-table. | |
| 713 | |
| 714 * xterm.c (x_get_font_repertory): Handle the case that the | |
| 715 encoding of font is other than Unicode. | |
| 716 | |
| 89567 | 717 2003-10-02 Kenichi Handa <handa@m17n.org> |
| 718 | |
| 719 * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
| 720 if a character is encodable by the terminal coding system. If | |
| 721 not, produces proper number of `?'s. Update | |
| 722 terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
| 723 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
| 724 | |
| 89565 | 725 2003-10-01 Kenichi Handa <handa@m17n.org> |
| 726 | |
| 727 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
| 728 variables. | |
| 729 (encode_terminal_code): Argument changed. Encode multiple | |
| 730 characters at once. Store the result of encoding in | |
| 731 terminal_encode_buffer. | |
| 732 (write_glyphs): Adjusted for the change of encode_terminal_code. | |
| 733 (insert_glyphs): Likewise. | |
| 734 (term_init): Initialize terminal_encode_buffer and | |
| 735 terminal_encode_buf_size. | |
| 736 | |
| 737 * coding.c (consume_chars): If coding->src_object is nil, don't | |
| 738 check annotation. | |
| 739 | |
| 89561 | 740 2003-09-30 Kenichi Handa <handa@m17n.org> |
| 741 | |
| 742 * character.c (char_string): Use ASCII_CHAR_P instead of | |
| 743 SINGLE_BYTE_CHAR_P. | |
| 744 | |
| 89560 | 745 2003-09-30 Kenichi Handa <handa@m17n.org> |
| 746 | |
| 747 * xdisp.c (handle_auto_composed_prop): Check if the last | |
| 748 characters of auto-composed region is newly composed with the | |
| 749 following characters. | |
| 750 (handle_composition_prop): Fix checking of point being inside | |
| 751 composition. | |
| 752 | |
| 753 2003-09-26 Kenichi Handa <handa@m17n.org> | |
| 754 | |
| 755 * fns.c (concat): Don't change multibyteness of the result by | |
| 756 concatenating an 8-bit character. | |
| 757 | |
| 758 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
| 759 multibyteness of the result when newelt is an 8-bit character. | |
| 760 | |
| 89557 | 761 2003-09-29 Dave Love <fx@gnu.org> |
| 762 | |
| 763 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
| 764 EMACS_INT. | |
| 765 | |
| 766 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
| 767 | |
| 768 * xfaces.c (face_numeric_value): Declare dim size_t. | |
| 769 (Finternal_lisp_face_equal_p): Remove unused f. | |
| 770 | |
| 771 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
| 772 (MATRIX_ROW): Remove unused vars. | |
| 773 (draw_glyphs, x_insert_glyphs, fast_find_position) | |
| 774 (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
| 775 byte/char counts. | |
| 776 | |
| 777 * regex.c (regex_compile): Remove unused var. | |
| 778 | |
| 779 * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
| 780 | |
| 781 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
| 782 (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
| 783 | |
| 784 * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
| 785 | |
| 786 * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
| 787 | |
| 788 * fileio.c (Fwrite_region): Remove unused var. | |
| 789 | |
| 790 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
| 791 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
| 792 | |
| 793 * composite.c (Fremove_list_of_text_properties): Declare. | |
| 794 | |
| 795 * coding.c (inhibit_pre_post_conversion): Removed (unused). | |
| 796 (alloc_destination, produce_chars): Use EMACS_INT for byte/char | |
| 797 counts. | |
| 798 (coding_inherit_eol_type): Remove unused attrs. | |
| 799 (detect_coding): Cast arg of detect_eol. | |
| 800 | |
| 801 * charset.c (syms_of_charset): Remove unused var p. | |
| 802 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
| 803 byte/char counts. | |
| 804 | |
| 805 * casetab.c (set_case_table): Remove unused var. | |
| 806 | |
| 807 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
| 808 unsued vars. | |
| 809 | |
| 89561 | 810 >>>>>>> 1.1.2.8 |
| 89536 | 811 2003-09-26 Dave Love <fx@gnu.org> |
| 812 | |
| 813 * xterm.c (x_bitmap_mask): Declare. | |
| 814 | |
| 89516 | 815 2003-09-17 Dave Love <fx@gnu.org> |
| 816 | |
| 89523 | 817 * xterm.c (x_term_init): Fix type error. |
| 818 | |
| 819 * lisp.h: Add Funibyte_char_to_multibyte. | |
| 820 | |
| 821 * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
| 822 (Fset_coding_system_priority): Doc fix. | |
| 823 | |
| 824 * alloc.c: Sync with HEAD version. | |
| 825 | |
| 826 * ccl.c (ccl_driver): Fix arg of CHARACTERP. | |
| 827 | |
| 89516 | 828 * indent.c (check_composition): Make start and end EMACS_INT. |
| 829 | |
| 830 * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
| 831 | |
| 832 * xdisp.c (handle_composition_prop, check_point_in_composition): | |
| 833 Make buffer positions EMACS_INT. | |
| 834 | |
| 835 * composite.c (find_composition, run_composition_function) | |
| 836 (update_compositions, Ffind_composition_internal): Make buffer | |
| 837 positions EMACS_INT. | |
| 838 | |
| 839 * composite.h (find_composition, update_compositions): Make | |
| 840 position args EMACS_INT. | |
| 841 | |
| 842 * keyboard.c (adjust_point_for_property): Make beg and end | |
| 843 EMACS_INT. | |
| 844 | |
| 845 * intervals.c (get_property_and_range) | |
| 846 * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
| 847 | |
| 848 * unexalpha.c: Don't include varargs.h. | |
| 849 | |
| 89508 | 850 2003-09-16 Dave Love <fx@gnu.org> |
| 851 | |
| 852 * coding.h (ENCODE_UTF_8): New. | |
| 853 | |
| 854 * Makefile.in (gtkutil.o): Depend on coding.h. | |
| 855 | |
| 856 * coding.c (Fset_coding_system_priority): Doc fix. | |
| 857 | |
| 89505 | 858 2003-09-16 Kenichi Handa <handa@m17n.org> |
| 859 | |
| 860 * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
| 861 the case of auto saving. | |
| 862 | |
| 89560 | 863 2003-09-10 Andreas Schwab <schwab@suse.de> |
| 864 | |
| 865 * chartab.c (map_char_table): Protect `range' from GC. | |
| 866 (map_char_table_for_charset): Likewise. | |
| 867 | |
| 89483 | 868 2003-07-09 Kenichi Handa <handa@m17n.org> |
| 869 | |
| 870 * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
| 871 | |
| 872 2003-06-26 Kenichi Handa <handa@m17n.org> | |
| 873 | |
| 874 * fileio.c (choose_write_coding_system): Return a decided coding | |
| 875 system. | |
| 876 (Fwrite_region): Set Vlast_coding_system_used to the return value | |
| 877 of choose_write_coding_system. | |
| 878 | |
| 879 2003-06-06 Kenichi Handa <handa@m17n.org> | |
| 880 | |
| 881 * charset.c (Fset_charset_priority): Pay attention to duplicated | |
| 882 arguments. | |
| 883 | |
| 884 * coding.c (QCcategory): New variable. | |
| 885 (syms_of_coding): Defsym it. Set all elements of | |
| 886 Vcoding_category_table and their symbol values. | |
| 887 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
| 888 coding-category-XXX, and coding-category-list. | |
| 889 (Fdefine_coding_system_internal): Add category in the plist. | |
| 890 | |
| 891 2003-06-05 Kenichi Handa <handa@m17n.org> | |
| 892 | |
| 893 * callproc.c (Fcall_process): Handle carryover correctly. | |
| 894 | |
| 895 * coding.c (decode_coding_iso_2022): Fix handling of invalid | |
| 896 bytes. | |
| 897 (raw_text_coding_system): Check NILP (coding_system). | |
| 898 (coding_inherit_eol_type): Check NILP (coding_system) and | |
| 899 NILP (parent). | |
| 900 (consume_chars): Fix for the case of raw-text. | |
| 901 | |
| 902 * process.c (read_process_output): Handle carryover correctly. | |
| 903 | |
| 904 2003-06-02 Dave Love <fx@gnu.org> | |
| 905 | |
| 906 * regex.c (re_search_2): Fix last change. | |
| 907 | |
| 908 2003-05-30 Kenichi Handa <handa@m17n.org> | |
| 909 | |
| 910 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
| 911 target_multibyte. Even in a unibyte case, return a converted | |
| 912 multibyte char. | |
| 913 (GET_CHAR_AFTER): New macro. | |
| 914 (PATFETCH): Translate via multibyte char. | |
| 915 (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
| 916 (SETUP_MULTIBYTE_RANGE): New macro. | |
| 917 (regex_compile): Setup compiled code so that its multibyteness | |
| 918 matches that of a target. Fix the handling of "[X-YZ]" using | |
| 919 SETUP_MULTIBYTE_RANGE. | |
| 920 (analyse_first) <charset>: For filling fastmap for all multibyte | |
| 921 characters, don't check by BASE_LEADING_CODE_P. | |
| 922 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
| 923 the same as RE_MULTIBYTE_P (bufp) now. | |
| 924 (mutually_exclusive_p): Check by (! multibyte || | |
| 925 IS_REAL_ASCII (c)). | |
| 926 (TARGET_CHAR_AND_LENGTH): Delete this macro. | |
| 927 (TRANSLATE_VIA_MULTIBYTE): New macro. | |
| 928 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
| 929 It is the same as RE_MULTIBYTE_P (bufp) now. | |
| 930 <exactn>: Translate via multibyte. | |
| 931 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
| 932 translate it. | |
| 933 <charset, charset_not>: Fetch a character by | |
| 934 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
| 935 <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
| 936 <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
| 937 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
| 938 by GET_CHAR_AFTER. | |
| 939 (bcmp_translate): Likewise. | |
| 940 | |
| 941 * search.c (compile_pattern): Check the member target_multibyte, | |
| 942 not the member multibyte of buf. | |
| 943 | |
| 944 * lread.c (read1): While reading a string, set force_singlebyte | |
| 945 and force_multibyte correctly. | |
| 946 | |
| 947 * charset.c (Fset_unibyte_charset): Fix setting up of | |
| 948 unibyte_to_multibyte_table. | |
| 949 (init_charset_once): Likewise. | |
| 950 | |
| 951 2003-05-29 Kenichi Handa <handa@m17n.org> | |
| 952 | |
| 953 * coding.c (setup_coding_system): If coding has | |
| 954 post-read-conversion or pre-write-conversion, set | |
| 955 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
| 956 respectively. | |
| 957 (decode_coding_gap): Run post-read-conversion if any. | |
| 958 | |
| 959 * fileio.c (Finsert_file_contents): Even if we read into a | |
| 960 unibyte buffer, check if we must decode the result or not. | |
| 961 | |
| 962 2003-05-29 Kenichi Handa <handa@m17n.org> | |
| 963 | |
| 964 * coding.c (make_conversion_work_buffer): Change the work buffer | |
| 965 name to the same one as that of Emacs 21. | |
| 966 | |
| 967 2003-05-28 Kenichi Handa <handa@m17n.org> | |
| 968 | |
| 969 * coding.h (make_conversion_work_buffer): Prototype adjusted. | |
| 970 (code_conversion_restore): Don't extern it. | |
| 971 | |
| 972 * coding.c (detected_mask): Delete unused variable. | |
| 973 (decode_coding_iso_2022): Pay attention to the byte sequence of | |
| 974 CTEXT extended segment, and retain those bytes as is. | |
| 975 (decode_coding_ccl): Delete unused variable `valids'. | |
| 976 (setup_coding_system): Delete unused variable `category'. | |
| 977 (consume_chars): Delete unused variable `category'. Make it work | |
| 978 for non-multibyte case. | |
| 979 (make_conversion_work_buffer): Argument changed. | |
| 980 (saved_coding): Delete unused variable. | |
| 981 (code_conversion_restore): Don't check saved_coding->destination. | |
| 982 (code_conversion_save): New function. | |
| 983 (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
| 984 instead of record_unwind_protect. | |
| 985 (decode_coding_object, encode_coding_object): Likewise. Recover | |
| 986 PT. | |
| 987 (detect_coding_system): Delete unused variable `mask'. | |
| 988 (Fdefine_coding_system_internal): Delete unsed vaiable id; | |
| 989 | |
| 990 * fileio.c (kill_workbuf_unwind): New function. | |
| 991 (Finsert_file_contents): On replacing, call | |
| 992 make_conversion_work_buffer with correct args, and call | |
| 993 record_unwind_protect with the first arg kill_workbuf_unwind. | |
| 994 | |
| 995 * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
| 996 | |
| 997 2003-05-20 Kenichi Handa <handa@m17n.org> | |
| 998 | |
| 999 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not | |
| 1000 FONTSET_NAME. | |
| 1001 (fontset_add): Fix for the case that TO is less than TO1. | |
| 1002 (Ffontset_info): Don't use fallback fontset on checking the | |
| 1003 default fontset. | |
| 1004 (dump_fontset): New function for debugging. | |
| 1005 | |
| 1006 * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
| 1007 coding_type is Qcharset. | |
| 1008 | |
| 1009 2003-05-07 Kenichi Handa <handa@m17n.org> | |
| 1010 | |
| 1011 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
| 1012 (map_char_table): Don't inherit the value from the parent on | |
| 1013 initializing VAL. Adjusted for the above change. | |
| 1014 | |
| 1015 2003-05-06 Kenichi Handa <handa@m17n.org> | |
| 1016 | |
| 1017 * coding.c (Qsignature, Qendian): Delete these variables. | |
| 1018 (syms_of_coding): Don't initialize them. | |
| 1019 (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
| 1020 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
| 1021 detect_info->found. | |
| 1022 (decode_coding_utf_16): Don't detect BOM here. | |
| 1023 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
| 1024 is NOT utf_16_without_bom. | |
| 1025 (setup_coding_system): For a coding system of type utf-16, check | |
| 1026 if the attribute :endian is Qbig or not (not nil or not), and set | |
| 1027 CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
| 1028 (detect_coding): If coding type is utf-16 and BOM detection is | |
| 1029 required, detect it. | |
| 1030 (Fdefine_coding_system_internal): For a coding system of type | |
| 1031 utf-16, check if the attribute :endian is Qbig or not (not nil or | |
| 1032 not). | |
| 1033 | |
| 1034 2003-05-06 Kenichi Handa <handa@m17n.org> | |
| 1035 | |
| 1036 * coding.c (coding_set_source): Fix for the case that the current | |
| 1037 buffer is different from coding->src_object. | |
| 1038 (decode_coding_object): Don't use the conversion work buffer if | |
| 1039 DST_OBJECT is a buffer. | |
| 1040 | |
| 1041 2003-05-04 Dave Love <fx@gnu.org> | |
| 1042 | |
| 1043 * lread.c (read_emacs_mule_char) [len==2]: Index | |
| 1044 emacs_mule_charset correctly. | |
| 1045 | |
| 1046 2003-02-16 Dave Love <fx@gnu.org> | |
| 1047 | |
| 1048 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
| 1049 (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
| 1050 (Fdecode_big5_char, Fencode_big5_char): Deleted. (Big5 no longer | |
| 1051 treated specially.) | |
| 1052 (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
| 1053 (detected_mask): Remove Big5 bits. | |
| 1054 | |
| 1055 2003-04-09 Kenichi Handa <handa@m17n.org> | |
| 1056 | |
| 1057 The following changes are to make the font rescaling facility | |
| 1058 compatible with Emacs 21. | |
| 1059 | |
| 1060 * xfaces.c (Vface_font_rescale_alist): Renamed from | |
| 1061 Vface_resizing_fonts. | |
| 1062 (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
| 1063 (font_rescale_ratio): Renamed from font_resizing_ratio. | |
| 1064 (split_font_name): Set font->rescale_ratio. | |
| 1065 (better_font_p): Pay attention to font->rescale_ratio. | |
| 1066 (build_scalable_font_name): Likewise. Change RESX, and RESY | |
| 1067 fields. | |
| 1068 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp | |
| 1069 variable. | |
| 1070 | |
| 1071 2003-03-28 Kenichi Handa <handa@m17n.org> | |
| 1072 | |
| 1073 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
| 1074 (Qutf_16_le): Remove these variables. | |
| 1075 (syms_of_coding): Don't DEFSYM them. | |
| 1076 (decode_coding_utf_16): Fix handling of BOM. | |
| 1077 (encode_coding_utf_16): Fix handling of BOM. | |
| 1078 | |
| 1079 2003-03-14 Kenichi Handa <handa@m17n.org> | |
| 1080 | |
| 1081 * fileio.c (Finsert_file_contents): On replacing, before decoding | |
| 1082 the file into the work buffer, set point of the work buffer to the | |
| 1083 end. | |
| 1084 | |
| 1085 2003-02-13 Dave Love <fx@gnu.org> | |
| 1086 | |
| 1087 * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
| 1088 | |
| 1089 2003-02-04 Dave Love <fx@gnu.org> | |
| 1090 | |
| 1091 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
| 1092 and fix C types. | |
| 1093 | |
| 1094 2003-01-31 Kenichi Handa <handa@m17n.org> | |
| 1095 | |
| 1096 * xdisp.c (SKIP_GLYPHS): New macro. | |
| 1097 (set_cursor_from_row): Pay attention to string display properties. | |
| 1098 | |
| 1099 * category.c (copy_category_entry): Fix for the case that RANGE | |
| 1100 is an integer. | |
| 1101 | |
| 1102 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
| 1103 | |
| 1104 * w32term.c (w32_encode_char): Call ccl_driver with the last arg | |
| 1105 Qnil. | |
| 1106 | |
| 1107 2003-01-30 Kenichi Handa <handa@m17n.org> | |
| 1108 | |
| 1109 * charset.c (Fcharset_id_internal): New function. | |
| 1110 (syms_of_charset): Defsubr it. | |
| 1111 | |
| 1112 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
| 1113 with the last arg charset_list acquired from coding. | |
| 1114 (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
| 1115 the attribute coding_attr_ccl_valids. | |
| 1116 | |
| 1117 * coding.h (enum define_coding_ccl_arg_index): Set the first | |
| 1118 member coding_arg_ccl_decoder to coding_arg_max. | |
| 1119 | |
| 1120 * ccl.h (ccl_driver): Prototype adjusted. | |
| 1121 | |
| 1122 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
| 1123 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
| 1124 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
| 1125 (Fccl_execute): Call ccl_driver with the last arg Qnil. | |
| 1126 (Fccl_execute_on_string): Likewise. | |
| 1127 | |
| 1128 2003-01-11 Kenichi Handa <handa@m17n.org> | |
| 1129 | |
| 1130 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
| 1131 call encode_char. | |
| 1132 | |
| 1133 * charset.c (encode_char): Fix handling of methods SUBSET and | |
| 1134 SUPERSET. | |
| 1135 | |
| 1136 * xterm.c (x_new_fontset): Fix previous change. | |
| 1137 | |
| 1138 2003-01-10 Dave Love <fx@gnu.org> | |
| 1139 | |
| 1140 * composite.c (syms_of_composite): Make composition_hash_table | |
| 1141 weak. | |
| 1142 | |
| 1143 2003-01-10 Kenichi Handa <handa@m17n.org> | |
| 1144 | |
| 1145 * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
| 1146 (font_name_registry): Don't extern them. | |
| 1147 (split_font_name_into_vector, build_font_name_from_vector): Extern | |
| 1148 them. | |
| 1149 | |
| 1150 * fontset.h (Qfontset): Don't extern it. | |
| 1151 (new_fontset_from_font_name): Extern it. | |
| 1152 | |
| 1153 * fontset.c: Give 8 extra slots to fontset objects. | |
| 1154 (Qfontset_info): New variable. | |
| 1155 (syms_of_fontset): Defsym it. | |
| 1156 (FONTSET_FALLBACK): New macro. | |
| 1157 (fontset_face): Try also the default fontset. | |
| 1158 (make_fontset): Realize a fallback fontset from the default | |
| 1159 fontset. | |
| 1160 (generate_ascii_font_name): Moved from xfaces.c. Rewritten by | |
| 1161 using split_font_name_into_vector and build_font_name_from_vector. | |
| 1162 (Fset_fontset_font): Access the elements of font_spec by enum | |
| 1163 FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
| 1164 name by using split_font_name_into_vector. | |
| 1165 (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
| 1166 generate a proper font name from the fontset name. Update | |
| 1167 Vfontset_alias_alist. | |
| 1168 (n_auto_fontsets): New variable. | |
| 1169 (new_fontset_from_font_name): New function. | |
| 1170 (Ffont_info): Store the information about fonts generated from the | |
| 1171 default fontset in the first extra slot of the returned | |
| 1172 char-table. | |
| 1173 | |
| 1174 * xfaces.c (generate_ascii_font_name): Moved to fontset.c. | |
| 1175 (font_name_registry): Function deleted. | |
| 1176 (split_font_name_into_vector): New function. | |
| 1177 (build_font_name_from_vector): New function. | |
| 1178 (font_list): The argument REGISTRY is now a list of registry | |
| 1179 names. | |
| 1180 (choose_face_font): If we are choosing an ASCII font, and ATTRS | |
| 1181 specifies an explicit font name, return the name as is. Make a | |
| 1182 list of registy names. | |
| 1183 | |
| 1184 * xfns.c (x_set_font, x_create_tip_frame): Adjusted to the change | |
| 1185 of x_new_fontset. | |
| 1186 (Fx_create_frame): Don't call x_new_fontset here. Just use | |
| 1187 x_list_fonts to check the existence of fonts. | |
| 1188 | |
| 1189 * xterm.h (x_new_fontset): Prototype adjusted. | |
| 1190 | |
| 1191 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
| 1192 string. Use new_fontset_from_font_name to create a fontset from a | |
| 1193 font name. | |
| 1194 | |
| 1195 2003-01-07 Dave Love <fx@gnu.org> | |
| 1196 | |
| 1197 * Makefile.in: Fix some dependencies. | |
| 1198 | |
| 1199 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
| 1200 set it to nil before returning. | |
| 1201 | |
| 1202 * composite.c (update_compositions): Fix type error. | |
| 1203 | |
| 1204 * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
| 1205 | |
| 89872 | 1206 2003-01-07 Kenichi Handa <handa@m17n.org> |
| 89483 | 1207 |
| 1208 * xterm.c (x_new_font): Optimize for the case that the font is | |
| 1209 already set for the frame. | |
| 1210 | |
| 1211 2003-01-06 Kenichi Handa <handa@m17n.org> | |
| 1212 | |
| 1213 * chartab.c (char_table_ascii): Check if the char table contents | |
| 1214 is sub-char-table or not. | |
| 1215 (char_table_set): Fix argument to char_table_ascii. | |
| 1216 (char_table_set_range): Likewise. | |
| 1217 | |
| 1218 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
| 1219 (detect_coding_utf_8, detect_coding_utf_16) | |
| 1220 (detect_coding_emacs_mule, detect_coding_iso_2022) | |
| 1221 (detect_coding_sjis, detect_coding_big5) | |
| 1222 (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
| 1223 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
| 1224 sequence is valid in this coding system. Callers changed. | |
| 1225 (MAX_ANNOTATION_LENGTH): New macro. | |
| 1226 (ADD_ANNOTATION_DATA): New macro. | |
| 1227 (ADD_COMPOSITION_DATA): Argument changed. Callers changed. Call | |
| 1228 ADD_ANNOTATION_DATA. The format of annotation data changed. | |
| 1229 (ADD_CHARSET_DATA): New macro. | |
| 1230 (emacs_mule_char): New argument ID. Callers changed. | |
| 1231 (decode_coding_emacs_mule, decode_coding_iso_2022) | |
| 1232 (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
| 1233 Produce charset annotation data in coding->charbuf. | |
| 1234 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
| 1235 to charset annotation data in coding->charbuf. | |
| 1236 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
| 1237 coding->common_flags if the coding system is iso-2022 based and | |
| 1238 uses designation. | |
| 1239 (produce_composition): Adjusted for the new annotation data | |
| 1240 format. | |
| 1241 (produce_charset): New function. | |
| 1242 (produce_annotation): Handle charset annotation. | |
| 1243 (handle_composition_annotation, handle_charset_annotation): New | |
| 1244 functions. | |
| 1245 (consume_chars): Handle charset annotation. Utilize the above two | |
| 1246 functions. | |
| 1247 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
| 1248 buffer, get the deleted text as a string and set | |
| 1249 coding->src_object to that string. | |
| 1250 (detect_coding, detect_coding_system): Use the new struct | |
| 1251 coding_detection_info. | |
| 1252 | |
| 1253 * coding.h (struct coding_detection_info): New structure. | |
| 1254 (struct coding_system): Prototype of the member `detector' | |
| 1255 adjusted. | |
| 1256 (CODING_ANNOTATE_CHARSET_MASK): New macro. | |
| 1257 | |
| 89872 | 1258 2003-01-06 Kenichi Handa <handa@m17n.org> |
| 89483 | 1259 |
| 1260 * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
| 1261 | |
| 1262 2003-01-03 Dave Love <fx@gnu.org> | |
| 1263 | |
| 1264 * keymap.c (apropos_predicate, apropos_accumulate): Declare | |
| 1265 static. | |
| 1266 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result | |
| 1267 to new local and nullify apropos_accumulate before returning. | |
| 1268 (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
| 1269 | |
| 1270 2002-12-05 Kenichi Handa <handa@m17n.org> | |
| 1271 | |
| 1272 * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
| 1273 correctly. | |
| 1274 | |
| 1275 2002-11-26 Dave Love <fx@gnu.org> | |
| 1276 | |
| 1277 * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
| 1278 | |
| 1279 2002-11-07 Kenichi Handa <handa@m17n.org> | |
| 1280 | |
| 1281 The following changes are to make character composition happen | |
| 1282 automatically on displaying. | |
| 1283 | |
| 1284 * Makefile.in (lisp, shortlisp): Add composite.elc | |
| 1285 | |
| 1286 * composite.h (Qauto_composed, Vauto_composition_function, | |
| 1287 Qauto_composition_function): Extern them. | |
| 1288 | |
| 1289 * composite.c (Vcomposition_function_table, | |
| 1290 Qcomposition_function_table): Delete variables. | |
| 1291 (Qauto_composed, Vauto_composition_function, | |
| 1292 Qauto_composition_function): New variables. | |
| 1293 (run_composition_function): Don't call | |
| 1294 compose-chars-after-function. | |
| 1295 (update_compositions): Clear `auto-composed' text property. | |
| 1296 (compose_chars_in_text): Delete this function. | |
| 1297 (syms_of_composite): Staticpro Qauto_composed and | |
| 1298 Qauto_composition_function. Declare Vauto_composition_function as | |
| 1299 a Lisp variable. | |
| 1300 | |
| 1301 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
| 1302 | |
| 1303 * xdisp.c (it_props): Add an entry for Qauto_composed. | |
| 1304 (handle_auto_composed_prop): New function. | |
| 1305 | |
| 1306 * xselect.c (selection_data_to_lisp_data): Don't call | |
| 1307 compose_chars_in_text. | |
| 1308 | |
| 1309 2002-11-06 Dave Love <fx@gnu.org> | |
| 1310 | |
| 1311 * keyboard.c (read_char): Modify checking around use of | |
| 1312 Vkeyboard_translate_table. | |
| 1313 | |
| 1314 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
| 1315 and fix C types. | |
| 1316 | |
| 1317 2002-11-06 Kenichi Handa <handa@m17n.org> | |
| 1318 | |
| 1319 * coding.c (decode_coding_utf_8): When eol_type is Qdos, handle | |
| 1320 the case that the last byte is '\r' correctly. | |
| 1321 (decode_coding_emacs_mule): Likewise. | |
| 1322 (decode_coding_iso_2022): Likewise. | |
| 1323 (decode_coding_sjis): Likewise. | |
| 1324 (decode_coding_big5): Likewise. | |
| 1325 (decode_coding_charset): Likewise. | |
| 1326 (produce_chars): Likewise. | |
| 1327 (decode_coding): Flushing out the unprocessed data correctly. | |
| 1328 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of | |
| 1329 coding->mode. | |
| 1330 | |
| 1331 2002-10-31 Dave Love <fx@gnu.org> | |
| 1332 | |
| 1333 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add | |
| 1334 XK_ISO... case. | |
| 1335 (xaw_scroll_callback): Revert last change. | |
| 1336 | |
| 1337 2002-10-30 Kenichi Handa <handa@m17n.org> | |
| 1338 | |
| 1339 * charset.c (Fset_charset_priority): Update | |
| 1340 Viso_2022_charset_list. | |
| 1341 | |
| 1342 2002-10-29 Kenichi Handa <handa@m17n.org> | |
| 1343 | |
| 1344 * xfaces.c (Vface_resizing_fonts): New variable. | |
| 1345 (struct font_name): New member `resizing_ratio'. | |
| 1346 (font_resizing_ratio): New function. | |
| 1347 (split_font_name): Set font->resizing_ratio. | |
| 1348 (better_font_p): Pay attention to font->resizing_ratio. | |
| 1349 (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
| 1350 RESX, and RESY fields. | |
| 1351 (try_alternative_families): Try scalable fonts if | |
| 1352 Vscalable_fonts_allowed is not Qt. | |
| 1353 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
| 1354 | |
| 1355 2002-10-29 Dave Love <fx@gnu.org> | |
| 1356 | |
| 1357 * xterm.c (xaw_scroll_callback): Cast correctly. | |
| 1358 | |
| 1359 2002-10-28 Dave Love <fx@gnu.org> | |
| 1360 | |
| 1361 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
| 1362 (lispy_kana_keys): Comment out. | |
| 1363 (make_lispy_event) [XK_kana_A]: Comment out. | |
| 1364 | |
| 1365 * xterm.c (xaw_scroll_callback): Cast call_data. | |
| 1366 (XTread_socket): Deal with ASCII keysyms. | |
| 1367 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
| 1368 | |
| 1369 2002-10-27 Dave Love <fx@gnu.org> | |
| 1370 | |
| 1371 * xterm.c (Vx_keysym_table): New. | |
| 1372 (syms_of_xterm): Initialize it. | |
| 1373 (XTread_socket): Use it. | |
| 1374 From head: Eliminate incorrect optimization that tried to avoid | |
| 1375 decoding the output of X*LookupString. | |
| 1376 (x_get_font_repertory): Delete charset declaration. | |
| 1377 | |
| 1378 2002-10-16 Kenichi Handa <handa@m17n.org> | |
| 1379 | |
| 1380 * coding.c (detect_coding): Fix previous change. | |
| 1381 (detect_coding_charset): If only ASCII bytes are found, return 0. | |
| 1382 (detect_coding_system): Fix previous change. | |
| 1383 (Fdefine_coding_system_internal): Setup CODING_ATTR_ASCII_COMPAT | |
| 1384 (attrs) correctly. | |
| 1385 | |
| 1386 2002-10-15 Dave Love <fx@gnu.org> | |
| 1387 | |
| 1388 * coding.c (Fcheck_coding_system): Doc fix. | |
| 1389 | |
| 1390 * editfns.c (Finsert_byte): Return a proper value. | |
| 1391 | |
| 89872 | 1392 2002-10-14 Kenichi Handa <handa@m17n.org> |
| 89483 | 1393 |
| 1394 * coding.c (decode_coding): Fix args to translate_chars. Pay | |
| 1395 attention to Vstandard_translation_table_for_decode. | |
| 1396 (encode_coding): Fix args to translate_chars. Pay attention to | |
| 1397 Vstandard_translation_table_for_encode. | |
| 1398 | |
| 1399 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
| 1400 SINGLE_BYTE_CHAR_P. | |
| 1401 | |
| 1402 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
| 1403 not by SINGLE_BYTE_CHAR_P. | |
| 1404 | |
| 1405 * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
| 1406 SINGLE_BYTE_CHAR_P. | |
| 1407 | |
| 1408 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
| 1409 SINGLE_BYTE_CHAR_P. | |
| 1410 | |
| 1411 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
| 1412 by SINGLE_BYTE_CHAR_P. | |
| 1413 | |
| 1414 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
| 1415 SINGLE_BYTE_CHAR_P. | |
| 1416 | |
| 1417 2002-10-14 Dave Love <fx@gnu.org> | |
| 1418 | |
| 1419 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
| 1420 | |
| 1421 2002-10-10 Dave Love <fx@gnu.org> | |
| 1422 | |
| 1423 * fns.c (Flanginfo): Fix typo. | |
| 1424 | |
| 1425 * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
| 1426 | |
| 1427 2002-10-10 Kenichi Handa <handa@m17n.org> | |
| 1428 | |
| 1429 * coding.c (detect_coding_utf_8): Check incomplete byte sequence. | |
| 1430 Don't update *mask when correctly detected. | |
| 1431 (detect_coding_utf_16): Likewise. | |
| 1432 (detect_coding_emacs_mule): Likewise. | |
| 1433 (detect_coding_iso_2022): Likewise. | |
| 1434 (detect_coding_sjis): Likewise. | |
| 1435 (detect_coding_big5): Likewise. | |
| 1436 (detect_coding_ccl): Likewise. | |
| 1437 (decode_coding_sjis): Fix decoding of katakana-jisx0201. | |
| 1438 (detect_eol): Delete the argument CODING, and add the argument | |
| 1439 CATEGORY. | |
| 1440 (detect_coding): Adjusted for the changes above. | |
| 1441 (detect_coding_system): Likewise. | |
| 1442 | |
| 1443 2002-10-09 Kenichi Handa <handa@m17n.org> | |
| 1444 | |
| 1445 * character.c (char_string): Renamed from | |
| 1446 char_string_with_unification. Pay attention to | |
| 1447 CHAR_MODIFIER_MASK. | |
| 1448 (string_char): Renamed from string_char. | |
| 1449 | |
| 1450 * character.h (CHAR_STRING): Call char_string if C is greater than | |
| 1451 MAX_3_BYTE_CHAR. | |
| 1452 (CHAR_STRING_ADVANCE): Likewise. | |
| 1453 (STRING_CHAR): Call string_char instead of | |
| 1454 string_char_with_unification. | |
| 1455 (STRING_CHAR_AND_LENGTH): Likewise. | |
| 1456 (STRING_CHAR_ADVANCE): Likewise. | |
| 1457 | |
| 1458 2002-10-09 Dave Love <fx@gnu.org> | |
| 1459 | |
| 1460 * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
| 1461 | |
| 1462 2002-10-07 Kenichi Handa <handa@m17n.org> | |
| 1463 | |
| 1464 * keymap.c (push_key_description): Pay attention to | |
| 1465 force_multibyte. | |
| 1466 | |
| 1467 * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
| 1468 | |
| 1469 2002-10-06 Dave Love <fx@gnu.org> | |
| 1470 | |
| 1471 * charset.c (define_charset_internal): Rename `supprementary'. | |
| 1472 | |
| 1473 * Makefile.in (lisp, shortlisp): Remove latin-N. | |
| 1474 | |
| 1475 2002-10-05 Dave Love <fx@gnu.org> | |
| 1476 | |
| 1477 * xfns.c (x_window, x_window): Use use_xim. | |
| 1478 | |
| 1479 * xterm.c (use_xim): Initialize. | |
| 1480 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
| 1481 (x_term_init): Maybe set use_xim. | |
| 1482 | |
| 1483 * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
| 1484 | |
| 1485 2002-10-01 Kenichi Handa <handa@m17n.org> | |
| 1486 | |
| 1487 * search.c (search_buffer): Fix case-fold-search of multibyte | |
| 1488 characters. | |
| 1489 (boyer_moore): Rename the last argument to char_high_bits. | |
| 1490 | |
| 89872 | 1491 2002-09-27 Kenichi Handa <handa@m17n.org> |
| 89483 | 1492 |
| 1493 * xdisp.c (display_string): Fix for the case of zero width glyph. | |
| 1494 | |
| 1495 * xfns.c (x_set_font): Change the error message of the case that | |
| 1496 x_new_fontset returns Qt. | |
| 1497 | |
| 1498 * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
| 1499 (Finternal_set_lisp_face_attribute): Use signal_error for the | |
| 1500 error of invalid fontset. | |
| 1501 | |
| 1502 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
| 1503 fontset, return Qt. | |
| 1504 | |
| 89872 | 1505 2002-09-19 Kenichi Handa <handa@m17n.org> |
| 89483 | 1506 |
| 1507 * regex.c (re_search_2): Fix previous change. | |
| 1508 | |
| 89872 | 1509 2002-09-18 Kenichi Handa <handa@m17n.org> |
| 89483 | 1510 |
| 1511 * syntax.c (skip_syntaxes): Fix previous change. | |
| 1512 | |
| 89872 | 1513 2002-09-13 Kenichi Handa <handa@m17n.org> |
| 89483 | 1514 |
| 1515 * syntax.c (skip_chars): Fix previous change. | |
| 1516 (skip_syntaxes): Fix previous change. | |
| 1517 | |
| 1518 2002-09-06 Dave Love <fx@gnu.org> | |
| 1519 | |
| 1520 * config.in: Restore it. | |
| 1521 | |
| 1522 2002-09-05 Dave Love <fx@gnu.org> | |
| 1523 | |
| 1524 * config.in: Removed (now auto-generated). | |
| 1525 | |
| 1526 * s/usg5-4.h: Fix last change. | |
| 1527 | |
| 1528 * unexelf.c (unexec): Make .got handling not SGI-specific. | |
| 1529 | |
| 1530 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
| 1531 | |
| 1532 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
| 1533 | |
| 1534 * keyboard.c (read_key_sequence): Fix type error. | |
| 1535 | |
| 1536 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
| 1537 type error. | |
| 1538 | |
| 1539 * fontset.c (fontset_add): Return Lisp_Object. | |
| 1540 | |
| 1541 2002-09-03 Dave Love <fx@gnu.org> | |
| 1542 | |
| 1543 * charset.h (charset_ordered_list_tick): Declare extern. | |
| 1544 | |
| 89872 | 1545 2002-09-03 Kenichi Handa <handa@m17n.org> |
| 89483 | 1546 |
| 1547 The following changes (and some of 2002-08-20 changes of mine) are | |
| 1548 for handling syntax, category, and case conversion for unibyte | |
| 1549 characters by converting them to multibyte on the fly. With these | |
| 1550 changes, we don't have to setup syntax and case tables for unibyte | |
| 1551 characters in each language environment. | |
| 1552 | |
| 1553 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
| 1554 multibyte if necessary. | |
| 1555 | |
| 1556 * bytecode.c (Fbyte_code): Likewise. | |
| 1557 | |
| 1558 * character.h (LEADING_CODE_LATIN_1_MIN) | |
| 1559 (LEADING_CODE_LATIN_1_MAX): New macros. | |
| 1560 (unibyte_to_multibyte_table): Extern it. | |
| 1561 (unibyte_char_to_multibyte): New macro. | |
| 1562 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
| 1563 (CHAR_LEADING_CODE): New macro. | |
| 1564 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
| 1565 | |
| 1566 * character.c (unibyte_to_multibyte_table): New variable. | |
| 1567 (unibyte_char_to_multibyte): Move to character.h and defined as | |
| 1568 macro. | |
| 1569 (multibyte_char_to_unibyte): If C is an eight-bit character, | |
| 1570 convert it to the corresponding byte value. | |
| 1571 | |
| 1572 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
| 1573 not 1, singals an error. Update the elements of | |
| 1574 unibyte_to_multibyte_table. | |
| 1575 (init_charset_once): Initialize unibyte_to_multibyte_table. | |
| 1576 (syms_of_charset): Define the charset `iso-8859-1'. | |
| 1577 | |
| 1578 * casefiddle.c (casify_object): Fix previous change. | |
| 1579 | |
| 1580 * cmds.c (internal_self_insert): In a multibyte buffer, insert C | |
| 1581 as is without converting it to unibyte. In a unibyte buffer, | |
| 1582 convert C to multibyte before checking the syntax. | |
| 1583 | |
| 1584 * lisp.h (unibyte_char_to_multibyte): Extern deleted. | |
| 1585 | |
| 1586 * minibuf.c (Fminibuffer_complete_word): Use the macro | |
| 1587 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
| 1588 | |
| 1589 * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
| 1590 | |
| 1591 * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
| 1592 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
| 1593 that is zero, convert an eight-bit char to multibyte. | |
| 1594 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
| 1595 non-emacs case. | |
| 1596 (PATFETCH): Convert an eight-bit char to multibyte. | |
| 1597 (HANDLE_UNIBYTE_RANGE): New macro. | |
| 1598 (regex_compile): Setup the compiled pattern for multibyte chars | |
| 1599 even if the given regex string is unibyte. Use PATFETCH_RAW | |
| 1600 instead of PATFETCH in many places. To handle `charset' | |
| 1601 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap | |
| 1602 only for ASCII chars. | |
| 1603 (analyse_first) <exactn>: Simplified because the compiled pattern | |
| 1604 is multibyte. | |
| 1605 <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
| 1606 <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
| 1607 <categoryspec>: If multibyte, setup fastmap only for ASCII chars | |
| 1608 here. | |
| 1609 (re_compile_fastmap) [emacs]: Call analyse_first with the arg | |
| 1610 multibyte always 1. | |
| 1611 (re_search_2) In emacs, set the locale variable multibyte to 1, | |
| 1612 otherwise to 0. New local variable target_multibyte. Check it | |
| 1613 to decide the multibyteness of STR1 and STR2. If | |
| 1614 target_multibyte is zero, convert unibyte chars to multibyte | |
| 1615 before translating and checking fastmap. | |
| 1616 (TARGET_CHAR_AND_LENGTH): New macro. | |
| 1617 (re_match_2_internal): In emacs, set the locale variable multibyte | |
| 1618 to 1, otherwise to 0. New local variable target_multibyte. Check | |
| 1619 it to decide the multibyteness of STR1 and STR2. Use | |
| 1620 TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
| 1621 <charset, charset_not>: If multibyte is nonzero, check fastmap | |
| 1622 only for ASCII chars. Call bcmp_translate with | |
| 1623 target_multibyte, not with multibyte. | |
| 1624 <begline>: Declare the local variable C as `unsigned'. | |
| 1625 (bcmp_translate): Change the last arg name to target_multibyte. | |
| 1626 | |
| 1627 * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
| 1628 the regexp pattern and the matching target. Set cp->buf.multibyte | |
| 1629 to the multibyteness of the regexp pattern. Set | |
| 1630 cp->but.target_multibyte to the multibyteness of the matching | |
| 1631 target. | |
| 1632 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of | |
| 1633 FETCH_STRING_CHAR_ADVANCE. | |
| 1634 (Freplace_match): Convert unibyte chars to multibyte. | |
| 1635 | |
| 1636 * syntax.c (char_quoted): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
| 1637 unibyte chars to multibyte. | |
| 1638 (back_comment): Likewise. | |
| 1639 (scan_words): Likewise. | |
| 1640 (skip_chars): The arg syntaxp is deleted, and the code for | |
| 1641 handling syntaxes is moved to skip_syntaxes. Callers changed. | |
| 1642 Fix the case that the multibyteness of STRING and the current | |
| 1643 buffer doesn't match. | |
| 1644 (skip_syntaxes): New function. | |
| 1645 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
| 1646 SINGLE_BYTE_CHAR_P. | |
| 1647 (Fforward_comment): Use FETCH_CHAR_AS_MULTIBYTE to convert unibyte | |
| 1648 chars to multibyte. | |
| 1649 (scan_lists): Likewise. | |
| 1650 (Fbackward_prefix_chars): Likewise. | |
| 1651 (scan_sexps_forward): Likewise. | |
| 1652 | |
| 89872 | 1653 2002-08-23 Kenichi Handa <handa@m17n.org> |
| 89483 | 1654 |
| 1655 * xfaces.c (QCfontset): New variable. | |
| 1656 (LFACE_FONTSET): New macro. | |
| 1657 (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
| 1658 (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
| 1659 (Finternal_set_lisp_face_attribute): Handle QCfontset. | |
| 1660 (Finternal_get_lisp_face_attribute): Likewise. | |
| 1661 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, | |
| 1662 check also LFACE_FONTSET_INDEX. | |
| 1663 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
| 1664 attrs[LFACE_FONT_INDEX]. | |
| 1665 (syms_of_xfaces): Intern and staticpro QCfontset. | |
| 1666 | |
| 1667 * dispextern.h (enum lface_attribute_index): New member | |
| 1668 LFACE_FONTSET_INDEX. | |
| 1669 | |
| 1670 * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
| 1671 | |
| 89872 | 1672 2002-08-21 Kenichi Handa <handa@m17n.org> |
| 89483 | 1673 |
| 1674 * coding.c (coding_set_destination): Fix coding->destination for | |
| 1675 the case converting a region. | |
| 1676 (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
| 1677 (encode_coding_object): Fix coding->dst_pos and | |
| 1678 coding->dst_pos_byte for the case converting a region. | |
| 1679 | |
| 1680 * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
| 1681 | |
| 1682 * character.h (BYTE8_STRING): New macro. | |
| 1683 | |
| 1684 * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
| 1685 | |
| 89872 | 1686 2002-08-20 Kenichi Handa <handa@m17n.org> |
| 89483 | 1687 |
| 1688 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
| 1689 characters by octal form. | |
| 1690 | |
| 1691 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
| 1692 | |
| 1693 * buffer.h (_fetch_multibyte_char_len): Extern deleted. | |
| 1694 (FETCH_MULTIBYTE_CHAR): Don't use _fetch_multibyte_char_len. | |
| 1695 (BUF_FETCH_MULTIBYTE_CHAR): Likewise. | |
| 1696 (FETCH_CHAR_AS_MULTIBYTE): New macro. | |
| 1697 | |
| 1698 * casetab.c (set_canon, set_identity, shuffle): Simplified. | |
| 1699 | |
| 1700 * casefiddle.c (casify_object): Simplified. Handle the case that | |
| 1701 the case conversion change the byte length. | |
| 1702 (casify_region): Likewise | |
| 1703 | |
| 1704 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New | |
| 1705 macros. | |
| 1706 | |
| 1707 * character.c (_fetch_multibyte_char_len): This variable deleted. | |
| 1708 (syms_of_character): Setup Vprintable_chars. | |
| 1709 | |
| 1710 * editfns.c (Fchar_equal): Fix for the unibyte case. | |
| 1711 (Finsert_byte): New function. | |
| 1712 (syms_of_editfns): Defsubr it. | |
| 1713 | |
| 1714 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
| 1715 of direct code 0x3ffff. | |
| 1716 | |
| 1717 * search.c (Freplace_match): Fix for the unibyte case. | |
| 1718 | |
| 89872 | 1719 2002-08-19 Kenichi Handa <handa@m17n.org> |
| 89483 | 1720 |
| 1721 * lread.c (safe_to_load_p): Fix the logic. | |
| 1722 | |
| 1723 * syntax.c (scan_words): Don't treat characters belonging to | |
| 1724 different scripts as constituting a word. | |
| 1725 | |
| 1726 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1727 | |
| 1728 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not | |
| 1729 script. | |
| 1730 | |
| 1731 * emacs.c (main): In the case of --unibyte, instead of aborting on | |
| 1732 finding non-empty buffer, make it unibyte. | |
| 1733 | |
| 89872 | 1734 2002-08-18 Kenichi Handa <handa@m17n.org> |
| 89483 | 1735 |
| 1736 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
| 1737 to create a fontset. | |
| 1738 | |
| 1739 2002-08-18 Dave Love <fx@gnu.org> | |
| 1740 | |
| 1741 * character.c (Funibyte_char_to_multibyte): Doc fix. | |
| 1742 | |
| 1743 * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
| 1744 | |
| 89872 | 1745 2002-08-15 Kenichi Handa <handa@m17n.org> |
| 89483 | 1746 |
| 1747 * fontset.c (fontset_add): Make the type `int'. | |
| 1748 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
| 1749 | |
| 1750 * character.c (unibyte_char_to_multibyte): Refer to | |
| 1751 charset_unibyte, not charset_primary. | |
| 1752 (multibyte_char_to_unibyte): Likewise. | |
| 1753 (Funibyte_char_to_multibyte): Likewise. | |
| 1754 | |
| 1755 * charset.h: (charset_unibyte): Extern it instead of | |
| 1756 charset_primary. | |
| 1757 | |
| 1758 * charset.c (charset_unibyte): Renamed from charset_primary. | |
| 1759 (Funibyte_charset): Renamed from Fprimary_charset. | |
| 1760 (Fset_unibyte_charset): Renamed from Fset_primary_charset. | |
| 1761 (syms_of_charset): Adjusted for the above changes. | |
| 1762 | |
| 1763 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
| 1764 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
| 1765 it->multibyte_p is zero. | |
| 1766 | |
| 1767 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
| 1768 Extern deleted. | |
| 1769 | |
| 89872 | 1770 2002-08-08 Kenichi Handa <handa@m17n.org> |
| 89483 | 1771 |
| 1772 * coding.c (Fdefine_coding_system_internal): Fix category setting | |
| 1773 for a coding system of type iso-2022. | |
| 1774 | |
| 89872 | 1775 2002-08-02 Kenichi Handa <handa@m17n.org> |
| 89483 | 1776 |
| 1777 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET | |
| 1778 -1. | |
| 1779 | |
| 89872 | 1780 2002-08-01 Kenichi Handa <handa@m17n.org> |
| 89483 | 1781 |
| 1782 * syntax.c (Vnext_word_boundary_function_table): New variable. | |
| 1783 (syms_of_syntax): Declare it as a Lisp variable. | |
| 1784 (scan_words): Call functions in Vnext_word_boundary_function_table | |
| 1785 if any. | |
| 1786 | |
| 1787 * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
| 1788 | |
| 1789 * fontset.c (fs_load_font): If fontp->charset is not negative, | |
| 1790 return fontp without setting its members. | |
| 1791 | |
| 1792 2002-07-31 Dave Love <fx@gnu.org> | |
| 1793 | |
| 1794 * config.in: Generated with autoheader. | |
| 1795 | |
| 1796 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). | |
| 1797 | |
| 1798 * m/sparc.h (HAVE_ALLOCA): Delete. | |
| 1799 | |
| 1800 * s/irix6-5.h: Don't include strings.h. | |
| 1801 (bcopy, bzero, bcmp): Don't undef. | |
| 1802 | |
| 1803 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
| 1804 | |
| 1805 * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
| 1806 (TIOCSIGSEND): Don't test IRIX6. | |
| 1807 (bcopy, bzero, bcmp): Define conditionally. | |
| 1808 | |
| 89872 | 1809 2002-07-31 Kenichi Handa <handa@m17n.org> |
| 89483 | 1810 |
| 1811 * buffer.c (Qas, Qmake, Qto): New variables. | |
| 1812 (Fset_buffer_multibyte): New optional arg METHOD. Caller changed. | |
| 1813 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. | |
| 1814 | |
| 1815 * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
| 1816 we are inserting a process output into a multibyte buffer. | |
| 1817 | |
| 1818 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
| 1819 multibyte_char_to_unibyte. | |
| 1820 | |
| 1821 * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
| 1822 by the primary charset, make it eight-bit char. | |
| 1823 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
| 1824 | |
| 1825 * charset.c: (charset_eight_bit, Qeight_bit_control): New | |
| 1826 variables. | |
| 1827 (charset_8_bit__control, charset_8_bit_graphic, | |
| 1828 Qeight_bit_control, Qeight_bit_graphic): These variables deleted. | |
| 1829 (define_charset_internal): New function. | |
| 1830 (syms_of_charset): Call define_charset_internal for pre-defined | |
| 1831 charsets. | |
| 1832 | |
| 1833 * charset.h (charset_8_bit): Extern it. | |
| 1834 | |
| 1835 * coding.c (make_conversion_work_buffer): Adjusted for the change | |
| 1836 of Fset_buffer_multibyte. | |
| 1837 (encode_coding_raw_text): Increment p0 in the loop. | |
| 1838 | |
| 1839 * lisp.h (Fset_buffer_multibyte): Prototype adjusted. | |
| 1840 | |
| 1841 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjusted | |
| 1842 for the change of Fset_buffer_multibyte. | |
| 1843 | |
| 1844 * fns.c (Fstring_to_multibyte): New function. | |
| 1845 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
| 1846 | |
| 1847 2002-07-30 Dave Love <fx@gnu.org> | |
| 1848 | |
| 1849 * xfns.c (x_put_x_image): Declare args. | |
| 1850 | |
| 1851 * xfaces.c (font_name_registry, choose_face_font): Delete unused | |
| 1852 vars. | |
| 1853 (try_font_list): Declare an arg. | |
| 1854 | |
| 1855 * xdisp.c (message2_nolog, set_message): Declare an arg. | |
| 1856 | |
| 1857 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
| 1858 | |
| 1859 * syntax.c (scan_sexps_forward): Declare an arg. | |
| 1860 | |
| 1861 * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
| 1862 Declare an arg. | |
| 1863 | |
| 1864 * lisp.h (Fnew_fontset): Declare. | |
| 1865 | |
| 1866 * keymap.c (push_key_description): Call CHARACTERP correctly. | |
| 1867 | |
| 1868 * fontset.c (fontset_add): Declare args. Call make_number | |
| 1869 correctly. | |
| 1870 (face_for_char): Delete unused vars. | |
| 1871 (Fset_fontset_font): Doc fix. Delete unused vars. | |
| 1872 | |
| 1873 * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
| 1874 | |
| 1875 * composite.c (update_compositions): Declare arg. | |
| 1876 | |
| 1877 * cm.c (calccost, cmgoto): Declare args. | |
| 1878 | |
| 1879 * charset.c: Remove `emacs' conditional. Doc fixes. | |
| 1880 (map_char_table_for_charset): Declare. | |
| 1881 | |
| 1882 * character.c (syms_of_character) <translation-table-vector>: Doc | |
| 1883 fix. | |
| 1884 | |
| 1885 * ccl.c: Remove `emacs' conditional. Include hash table stuff | |
| 1886 from trunk. | |
| 1887 | |
| 89872 | 1888 2002-07-26 Kenichi Handa <handa@m17n.org> |
| 89483 | 1889 |
| 1890 The following changes are to allow specifying multiple font | |
| 1891 patterns for a character range (specified by script or charset). | |
| 1892 | |
| 1893 * Makefile.in (abbrev.o): Depend on syntax.h. | |
| 1894 (xfaces.o): Depend on charset.h. | |
| 1895 | |
| 1896 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
| 1897 SINGLE_BYTE_CHAR_P. | |
| 1898 | |
| 1899 * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
| 1900 | |
| 1901 * character.h (Vchar_script_table): Extern it. | |
| 1902 | |
| 1903 * character.c (Vscript_alist): This variable deleted. | |
| 1904 (Vchar_script_table, Qchar_script_table): New variable. | |
| 1905 (syms_of_character): Declare Vchar_script_table as a lisp variable | |
| 1906 and initialize it. | |
| 1907 | |
| 1908 * chartab.c (Fmake_char_table): Doc fixed. If PURPOSE doesn't | |
| 1909 have property char-table-extra-slots, make no extra slot. | |
| 1910 | |
| 1911 * dispextern.h (struct face): Member `charset' deleted. | |
| 1912 (FACE_SUITABLE_FOR_CHAR_P): Use ASCII_CHAR_P, not | |
| 1913 SINGLE_BYTE_CHAR_P. | |
| 1914 (FACE_FOR_CHAR): Likewise. | |
| 1915 (choose_face_font, lookup_non_ascii_face, font_name_registry): Add | |
| 1916 prototypes | |
| 1917 (lookup_face, lookup_named_face, lookup_derived_face): Prototype | |
| 1918 fixed. | |
| 1919 (generate_ascii_font_name): Renamed from generate_ascii_font. | |
| 1920 | |
| 1921 * fontset.h (get_font_repertory_func): New prototype. | |
| 1922 (make_fontset_for_ascii_face, fs_load_font): Prototypes fixed. | |
| 1923 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. | |
| 1924 | |
| 1925 * fontset.c (Qprepend, Qappend): New variables. | |
| 1926 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): These macros deleted. | |
| 1927 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. | |
| 1928 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
| 1929 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
| 1930 (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
| 1931 (load_font_get_repertory): New functions. | |
| 1932 (fontset_set): This function deleted. | |
| 1933 (fontset_face): New arg FACE. Return face ID, not face. | |
| 1934 Completely re-written to handle new fontset structure. Caller | |
| 1935 changed. | |
| 1936 (free_face_fontset): Use ASET istead of AREF (X) = Y. | |
| 1937 (face_for_char): Don't call lookup_face. | |
| 1938 (make_fontset_for_ascii_face): New arg FACE. | |
| 1939 (fs_load_font): New arg CHARSET_ID. Don't check | |
| 1940 Vfont_encoding_alist here. | |
| 1941 (find_font_encoding): New function. | |
| 1942 (list_fontsets): Use STRINGP, not ! NILP. | |
| 1943 (accumulate_script_ranges): New function. | |
| 1944 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
| 1945 re-written to handle new fontset structure. | |
| 1946 (Ffontset_font): Return a copy of element. | |
| 1947 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
| 1948 docstring of font-encoding-alist. | |
| 1949 | |
| 1950 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
| 1951 (Fset_fotset_font): Fix arguments to 5. | |
| 1952 | |
| 1953 * msdos.c (XMenuActivate): Adjuted for the change of | |
| 1954 lookup_derived_face. | |
| 1955 | |
| 1956 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
| 1957 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1958 (highlight_trailing_whitespace): Adjusted for the change of | |
| 1959 lookup_named_face. | |
| 1960 | |
| 1961 * xfaces.c: Include charset.h. | |
| 1962 (load_face_font): Argument C deleted. Caller changed. | |
| 1963 (generate_ascii_font_name): Renamed from generate_ascii_font. | |
| 1964 (font_name_registry): New function. | |
| 1965 (cache_face): Store ascii faces before non-ascii faces in buckets. | |
| 1966 (lookup_face): Arguments C and BASE_FACE deleted. Caller changed. | |
| 1967 Lookup only ascii faces. | |
| 1968 (lookup_non_ascii_face): New function. | |
| 1969 (lookup_named_face): Argument C deleted. Caller changed. | |
| 1970 (lookup_derived_face): Argument C deleted. Caller changed. | |
| 1971 (try_font_list): New arg PATTERN. Caller changed. If PATTERN is | |
| 1972 a string, just call font_list with it. | |
| 1973 (choose_face_font): Arguments FACE and C deleted. New arg | |
| 1974 FONT_SPEC. Caller changed. | |
| 1975 (realize_face): Arguments C and BASE_FACE deleted. Caller | |
| 1976 (realize_x_face): Likewise. | |
| 1977 (realize_non_ascii_face): New function. | |
| 1978 (realize_x_face): Call load_face_font here. | |
| 1979 (realize_tty_face): Argument C deleted. Caller changed. | |
| 1980 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to | |
| 1981 get a face ID. | |
| 1982 (dump_realized_face): Don't print charset of FACE. | |
| 1983 | |
| 1984 * xfns.c (x_set_font): Always call x_new_fontset and | |
| 1985 store_frame_parameter. | |
| 1986 (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
| 1987 (syms_of_xfns): Set get_font_repertory_func to | |
| 1988 x_get_font_repertory. | |
| 1989 | |
| 1990 * xterm.h (x_get_font_repertory): Extern it. | |
| 1991 | |
| 1992 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
| 1993 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
| 1994 it->multibyte_p is zero. | |
| 1995 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1996 (x_new_fontset): If FONTSETNAME doesn't match any existing | |
| 1997 fontsets, create a new one. | |
| 1998 (x_get_font_repertory): New function. | |
| 1999 | |
| 89872 | 2000 2002-07-25 Kenichi Handa <handa@m17n.org> |
| 89483 | 2001 |
| 2002 * coding.c (Ffind_coding_systems_region_internal): Detect an | |
| 2003 ASCII only string correctly. | |
| 2004 | |
| 2005 * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
| 2006 version is 0. | |
| 2007 | |
| 89872 | 2008 2002-07-24 Kenichi Handa <handa@m17n.org> |
| 89483 | 2009 |
| 2010 * lread.c: Include "coding.h". | |
| 2011 (Qget_emacs_mule_file_char, Qload_force_doc_strings, | |
| 2012 load_each_byte, unread_char): New variables. | |
| 2013 (readchar_backlog): This variable deleted. | |
| 2014 (readchar): Return a character unless load_each_byte is nonzero. | |
| 2015 Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
| 2016 cons. If unread_char is not -1, simply return it. | |
| 2017 (unreadchar): Handle the case that readcharfun is | |
| 2018 Qget_emacs_mule_file_char or a cons. Set unread_char if | |
| 2019 necessary. | |
| 2020 (read_multibyte): This function deleted. | |
| 2021 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) | |
| 2022 (read_emacs_mule_char): New functions. | |
| 2023 (Fload): Even if the file doesn't have the extention ".elc", if | |
| 2024 safe_to_load_p returns a positive version number, assume that the | |
| 2025 file contains bytecompiled code. If the version is less than 22, | |
| 2026 load the file while decoding multibyte sequences by emacs-mule. | |
| 2027 (readevalloop): Don't use readchar_backlog. | |
| 2028 (Fread): Likewise. Pay attention to the case that STREAM is a | |
| 2029 cons. | |
| 2030 (Fread_from_string): Pay attention to the case that STREAM is a | |
| 2031 cons. | |
| 2032 (read_escape): The arg BYTEREP deleted. | |
| 2033 (read1): Set load_each_byte to 1 temporarily while handling | |
| 2034 #@NUMBER. Don't call read_multibyte. | |
| 2035 (read_vector): Call Fread with a cons. If readcharfun is | |
| 2036 Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
| 2037 (read_list): If doc_reference is 2, make the cdr part string as | |
| 2038 unibyte. | |
| 2039 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char | |
| 2040 and Qload_force_doc_strings. | |
| 2041 | |
| 89872 | 2042 2002-07-23 Kenichi Handa <handa@m17n.org> |
| 89483 | 2043 |
| 2044 * xdisp.c (face_before_or_after_it_pos): Call | |
| 2045 FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
| 2046 | |
| 89872 | 2047 2002-07-22 Kenichi Handa <handa@m17n.org> |
| 89483 | 2048 |
| 2049 * character.h (TRAILING_CODE_P): New macro. | |
| 2050 (MAYBE_UNIFY_CHAR): Adjusted for the change of Funify_charset. | |
| 2051 (string_char_with_unification): Fix prototype. | |
| 2052 (Vscript_alist): Extern it. | |
| 2053 | |
| 2054 * character.c (Vscript_alist): New variable. | |
| 2055 (string_char_with_unification): Add `const' to local variables. | |
| 2056 (str_as_unibyte): Likewise. | |
| 2057 (string_escape_byte8): Likewise. | |
| 2058 (syms_of_character): Declare script-alist as a Lisp variable. | |
| 2059 | |
| 2060 * charset.h (Vcharset_ordered_list): Extern it. | |
| 2061 (charset_ordered_list_tick): Extern it. | |
| 2062 (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
| 2063 (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
| 2064 (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
| 2065 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros | |
| 2066 (Funify_charset): Adjusted for the change of Funify_charset. | |
| 2067 | |
| 2068 * charset.c (charset_ordered_list_tick): New variable. | |
| 2069 (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
| 2070 (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
| 2071 deunify intead of unify a charset. | |
| 2072 (string_xstring_p): Add `const' to local variables. | |
| 2073 (find_charsets_in_text): Add `const' to arguemnts and local | |
| 2074 variables. | |
| 2075 (encode_char): Adjusted for the change of Funify_charset. Fix | |
| 2076 detecting of invalid code. | |
| 2077 (Fset_charset_priority): Increment charset_ordered_list_tick. | |
| 2078 (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
| 2079 and TO_CODE. | |
| 2080 | |
| 2081 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
| 2082 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Macros | |
| 2083 deleted. Callers changed to use | |
| 2084 EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
| 2085 (decode_coding_ccl): Add `const' to local variables. | |
| 2086 (consume_chars): Likewise. | |
| 2087 (Ffind_coding_systems_region_internal): Likewise. | |
| 2088 (Fcheck_coding_systems_region): Likewise. | |
| 2089 | |
| 2090 * print.c (print_object): Use octal form for printing the | |
| 2091 contents of a bool vector. | |
| 2092 | |
| 2093 2002-07-18 Dave Love <fx@gnu.org> | |
| 2094 | |
| 2095 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
| 2096 <version == 20>: Refuse to load. | |
| 2097 | |
| 2098 2002-07-17 Dave Love <fx@gnu.org> | |
| 2099 | |
| 2100 * fns.c: Move coding.h. | |
| 2101 (Qcodeset, Qdays, Qmonths): New. | |
| 2102 (concat): Use CHARACTERP instead of INTERGERP. | |
| 2103 (Flocale_codeset): Deleted. | |
| 2104 (Flanginfo): New function. | |
| 2105 (syms_of_fns): Changed accordingly. | |
| 2106 | |
| 2107 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
| 2108 | |
| 2109 2002-07-16 Dave Love <fx@gnu.org> | |
| 2110 | |
| 2111 * casetab.c (init_casetab_once, init_casetab_once): Fix | |
| 2112 CHAR_TABLE_SET call. | |
| 2113 | |
| 2114 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
| 2115 | |
| 2116 * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
| 2117 | |
| 2118 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
| 2119 (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
| 2120 (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
| 2121 | |
| 2122 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
| 2123 | |
| 2124 * coding.c (ENCODE_DESIGNATION, decode_eol) | |
| 2125 (make_conversion_work_buffer, code_conversion_restore) | |
| 2126 (Fdefine_coding_system_internal): Convert Lisp types. | |
| 2127 (code_conversion_restore): Use EQ, not ==. | |
| 2128 (Fencode_coding_string): Fix code_convert_string call. | |
| 2129 | |
| 2130 * coding.h (code_convert_region): Fix prototype. | |
| 2131 | |
| 2132 * dispextern.h (redraw_frame, redraw_garbaged_frames): Removed. | |
| 2133 | |
| 2134 * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
| 2135 (Ffontset_info): Convert Lisp types. | |
| 2136 | |
| 2137 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
| 2138 | |
| 2139 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
| 2140 | |
| 2141 * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
| 2142 | |
| 2143 * chartab.c: Include "...h", not <...h> in some cases. | |
| 2144 | |
| 2145 * callproc.c (Fcall_process): Remove unused variables. | |
| 2146 | |
| 2147 2002-07-12 Dave Love <fx@gnu.org> | |
| 2148 | |
| 2149 * coding.c (Fset_coding_system_priority): Allow null arg list. | |
| 2150 | |
| 2151 2002-07-03 Dave Love <fx@gnu.org> | |
| 2152 | |
| 2153 * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
| 2154 (Fself_insert_and_exit): Use CHARACTERP. | |
| 2155 | |
| 2156 * callproc.c (Fcall_process): Remove unused vars. | |
| 2157 | |
| 2158 * xterm.c (XTread_socket): Add extra dead keysyms. | |
| 2159 | |
| 2160 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
| 2161 | |
| 2162 * dispextern.h: Remove prototypes for redraw_frame, | |
| 2163 redraw_garbaged_frames. | |
| 2164 | |
| 2165 * cmds.c (Fself_insert_command): Use CHARACTERP. | |
| 2166 | |
| 2167 * chartab.c (make_sub_char_table): Remove unused var. | |
| 2168 (Fset_char_table_default, Fmap_char_table): Doc fix. | |
| 2169 | |
| 2170 * keymap.c (access_keymap): Remove generic char code. | |
| 2171 (push_key_description): Use CHARACTERP. | |
| 2172 | |
| 2173 2002-07-01 Dave Love <fx@gnu.org> | |
| 2174 | |
| 2175 * charset.c: Doc fixes. | |
| 2176 (Funify_charset): Extra checking. | |
| 2177 | |
| 2178 2002-06-24 Dave Love <fx@gnu.org> | |
| 2179 | |
| 2180 * lread.c: Remove some unused variables. | |
| 2181 (safe_to_load_p): If safe, return the magic number version byte. | |
| 2182 (Fload): Maybe use load-with-code-conversion. | |
| 2183 | |
| 89872 | 2184 2002-06-12 Kenichi Handa <handa@m17n.org> |
| 89483 | 2185 |
| 2186 * category.c (Fmodify_category_entry): Don't modify the contents | |
| 2187 of category_set for characters out of the range. Avoid | |
| 2188 unnecessary modification. | |
| 2189 | |
| 2190 * character.h (MAYBE_UNIFY_CHAR): Adjusted for the change of | |
| 2191 Vchar_unify_table. The default value of the table is now nil. | |
| 2192 | |
| 2193 * character.c (syms_of_character): Setup Vchar_width_table for | |
| 2194 eight-bit-control and raw-byte chars. | |
| 2195 | |
| 2196 * charset.h (enum define_charset_arg_index): Delete | |
| 2197 charset_arg_parents and add charset_arg_subset and | |
| 2198 charset_arg_superset. | |
| 2199 (enum charset_attr_index): Delete charset_parents and add | |
| 2200 charset_subset and charset_superset. | |
| 2201 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
| 2202 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
| 2203 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Macros deleted. | |
| 2204 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) | |
| 2205 (CHARSET_SUPERSET): New macros. | |
| 2206 (charset_work): Extern it. | |
| 2207 (ENCODE_CHAR): Use charset_work. | |
| 2208 (CHAR_CHARSET_P): Adjusted for the change of encoder format. | |
| 2209 (map_charset_chars): Extern it. | |
| 2210 | |
| 2211 * charset.c (load_charset_map): Set the default value of encoder | |
| 2212 and deunifier char-tables to nil. | |
| 2213 (map_charset_chars): Argument changed. Callers changed. Use | |
| 2214 map_char_table_for_charset instead of map_char_table. | |
| 2215 (Fmap_charset_chars): New optional args from_code and to_code. | |
| 2216 (Fdefine_charset_internal): Adjusted for the change of | |
| 2217 `define-charset' (:parents -> :subset or :superset). | |
| 2218 (charset_work): New variable. | |
| 2219 (encode_char): Adjusted for the change of | |
| 2220 Fdefine_charset_internal. | |
| 2221 (syms_of_charset): Likewise. | |
| 2222 (Ffind_charset_string): Setup the vector `charsets' correctly. | |
| 2223 | |
| 2224 * chartab.c (sub_char_table_ref_and_range): New arg defalt. Fix | |
| 2225 the previous change. | |
| 2226 (char_table_ref_and_range): Adjusted for the above change. | |
| 2227 (map_sub_char_table_for_charset): New function. | |
| 2228 (map_char_table_for_charset): New function. | |
| 2229 | |
| 2230 * keymap.c (describe_vector): Handle a char-table directly here. | |
| 2231 (describe_char_table): Deleted. | |
| 2232 | |
| 2233 * lisp.h (map_charset_chars): Deleted. | |
| 2234 | |
| 2235 2002-06-11 Dave Love <fx@gnu.org> | |
| 2236 | |
| 2237 * fns.c (count_combining): Comment out (unused). | |
| 2238 (Flocale_codeset): New. | |
| 2239 (syms_of_fns): Defsubr it. | |
| 2240 | |
| 2241 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
| 2242 (size_t): Removed. | |
| 2243 | |
| 2244 2002-06-06 Dave Love <fx@gnu.org> | |
| 2245 | |
| 2246 * Makefile.in (chartab.o): Depend on charset.h | |
| 2247 | |
| 89872 | 2248 2002-06-03 Kenichi Handa <handa@m17n.org> |
| 89483 | 2249 |
| 2250 * character.c (syms_of_character): Set the default value of | |
| 2251 Vprintable_chars to Qnil. | |
| 2252 | |
| 2253 2002-05-31 Dave Love <fx@gnu.org> | |
| 2254 | |
| 2255 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
| 2256 | |
| 89872 | 2257 2002-05-31 Kenichi Handa <handa@m17n.org> |
| 89483 | 2258 |
| 2259 * charset.c (load_charset_map): Handle the case that from < to | |
| 2260 correctly. | |
| 2261 | |
| 2262 * coding.c (encode_coding_emacs_mule): Pay attention to raw-8-bit | |
| 2263 chars. | |
| 2264 (encode_coding_iso_2022): Likewise. | |
| 2265 (encode_coding_sjis): Likewise. | |
| 2266 (encode_coding_big5): Likewise. | |
| 2267 (encode_coding_charset): Likewise. | |
| 2268 | |
| 89872 | 2269 2002-05-30 Kenichi Handa <handa@m17n.org> |
| 89483 | 2270 |
| 2271 * Makefile.in (lisp): Change chinese.elc to chinese.el. They are | |
| 2272 not bytecompiled now. | |
| 2273 (shortlisp): Likewise. | |
| 2274 | |
| 2275 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
| 2276 (charset_jisx0208): New variables. | |
| 2277 (Fdefine_charset_internal): Setup them if appropriate. | |
| 2278 (init_charset_once): Initialize them to -1. | |
| 2279 | |
| 2280 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978, | |
| 2281 charset_jisx0208): Extern them. | |
| 2282 | |
| 2283 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | |
| 2284 (CODING_ISO_FLAG_USE_OLDJIS): New macro. | |
| 2285 (CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed. | |
| 2286 (setup_iso_safe_charsets): Fix arguemtns to Fassq. | |
| 2287 (DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN | |
| 2288 and CODING_ISO_FLAG_USE_OLDJIS. | |
| 2289 (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise. | |
| 2290 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. | |
| 2291 (encode_coding_iso_2022): Change the 1st arg to | |
| 2292 ENCODE_ISO_CHARACTER to a variable. | |
| 2293 | |
| 89872 | 2294 2002-05-29 Kenichi Handa <handa@m17n.org> |
| 89483 | 2295 |
| 2296 * charset.h (enum define_charset_arg_index): New enums | |
| 2297 charset_arg_min_code and charset_arg_max_code. | |
| 2298 (struct charset): New member char_index_offset. | |
| 2299 | |
| 2300 * charset.c (CODE_POINT_TO_INDEX): Take charset->char_index_offset | |
| 2301 into account. | |
| 2302 (INDEX_TO_CODE_POINT): Likewise. | |
| 2303 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and | |
| 2304 args[charset_arg_max_code]. Setup charset.char_index_offset. | |
| 2305 (syms_of_charset): Fix args to Fdefine_charset_internal. | |
| 2306 | |
| 2307 2002-05-27 Dave Love <fx@gnu.org> | |
| 2308 | |
| 2309 * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
| 2310 | |
| 2311 2002-05-26 Dave Love <fx@gnu.org> | |
| 2312 | |
| 2313 * coding.c: Doc fixes. | |
| 2314 (Fcoding_system_aliases): Fix return value. | |
| 2315 (Qmac): Remove (duplicated) definition. | |
| 2316 | |
| 2317 2002-05-25 Dave Love <fx@gnu.org> | |
| 2318 | |
| 2319 * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
| 2320 functions. | |
| 2321 | |
| 2322 * character.c (Fstring): Doc fix. | |
| 2323 | |
| 2324 * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
| 2325 | |
| 2326 * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
| 2327 ids. | |
| 2328 (font-encoding-alist): Doc fix. | |
| 2329 | |
| 2330 2002-05-24 Dave Love <fx@gnu.org> | |
| 2331 | |
| 2332 * term.c (costs_set): Declare static, non-initialized for pcc. | |
| 2333 (encode_terminal_code): Remove ensued var. | |
| 2334 | |
| 2335 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
| 2336 for K&R. | |
| 2337 | |
| 2338 * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
| 2339 | |
| 2340 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
| 2341 (suffixes): Moved out of make_subsidiaries for K&R. | |
| 2342 | |
| 2343 * charset.c (map_charset_chars): Fix c_function declaration for | |
| 2344 K&R. | |
| 2345 | |
| 2346 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
| 2347 | |
| 2348 2002-05-23 Dave Love <fx@gnu.org> | |
| 2349 | |
| 2350 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
| 2351 | |
| 2352 * category.c (Fmodify_category_entry): Doc fix. Remove unused | |
| 2353 vars. | |
| 2354 | |
| 2355 2002-05-23 Yong Lu <lyongu@asia-infonet.com> | |
| 2356 | |
| 2357 * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
| 2358 | |
| 2359 * coding.c (Fdefine_coding_system_internal): Fix previous change. | |
| 2360 (decode_coding_charset): Workaround for the bug of GCC 2.96. | |
| 2361 | |
| 89872 | 2362 2002-05-23 Kenichi Handa <handa@m17n.org> |
| 89483 | 2363 |
| 2364 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el, | |
| 2365 vietnamese.elc to vietnamese.el. They are not bytecompiled now. | |
| 2366 (shortlisp): Likewise. | |
| 2367 | |
| 89872 | 2368 2002-05-22 Kenichi Handa <handa@m17n.org> |
| 89483 | 2369 |
| 2370 * coding.c (decode_coding_charset): Adjusted for the change of | |
| 2371 Fdefine_coding_system_internal. | |
| 2372 (Fdefine_coding_system_internal): For a coding system of | |
| 2373 `charset' type, store a list of charset IDs in | |
| 2374 `charset_attr_charset_valids' element of coding attributes. | |
| 2375 | |
| 2376 * charset.c (Fmake_char): Fix previous change. | |
| 2377 | |
| 89872 | 2378 2002-05-21 Kenichi Handa <handa@m17n.org> |
| 89483 | 2379 |
| 2380 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
| 2381 (emacs_mule_char): New arg src. Delete arg `composition'. Caller | |
| 2382 changed. Handle 2-byte and 3-byte charsets correctly. | |
| 2383 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from | |
| 2384 DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed. | |
| 2385 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. | |
| 2386 (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
| 2387 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
| 2388 sequence. | |
| 2389 (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
| 2390 `src' and `consumed_chars' correctly before calling | |
| 2391 emacs_mule_char. | |
| 2392 (DECODE_COMPOSITION_START): Correctly handle the case of altchar | |
| 2393 and alt&rule composition. | |
| 2394 (decode_coding_iso_2022): Handle composition correctly. | |
| 2395 (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
| 2396 | |
| 2397 * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
| 2398 re-defining a charset. If the charset has :emacs-mule-id, setup | |
| 2399 emacs_mule_bytes. | |
| 2400 (Fmake_char): If CODE1 is nil, use the minimum code of the | |
| 2401 charset. | |
| 2402 | |
| 89872 | 2403 2002-05-20 Kenichi Handa <handa@m17n.org> |
| 89483 | 2404 |
| 2405 * coding.c (encode_coding_iso_2022): If coding requires safe | |
| 2406 encoding, produce a character specified by | |
| 2407 CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
| 2408 (encode_coding_sjis): Likewise. | |
| 2409 (encode_coding_big5): Likewise. | |
| 2410 (encode_coding_charset): Likewise. | |
| 2411 | |
| 2412 2002-05-17 Dave Love <fx@gnu.org> | |
| 2413 | |
| 2414 * xterm.c (XSetIMValues): Declare. | |
| 2415 | |
| 2416 * process.c: Conditionally include sys/wait.h, pty.h. | |
| 2417 | |
| 2418 * print.c (print_object): Fix print format for 64-bit | |
| 2419 systems. | |
| 2420 | |
| 2421 * keyboard.c (modify_event_symbol): Fix print format for 64-bit | |
| 2422 systems. | |
| 2423 | |
| 2424 * buffer.c (emacs_strerror): Declare. | |
| 2425 (MMAP_ALLOCATED_P, mmap_enlarge, syms_of_buffer): Import changes | |
| 2426 from trunk. | |
| 2427 | |
| 2428 * fontset.c (Fclear_face_cache): Declare. | |
| 2429 (accumulate_font_info): Commented-out (unused). | |
| 2430 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused | |
| 2431 variables. | |
| 2432 | |
| 2433 * character.h (string_escape_byte8): Declare. | |
| 2434 | |
| 2435 * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
| 2436 unused vars. | |
| 2437 (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
| 2438 (Fmap_charset_chars): Doc fix. | |
| 2439 | |
| 2440 * coding.c (Vchar_coding_system_table, Qchar_coding_system): | |
| 2441 Removed. | |
| 2442 (Fset_coding_system_priority, Fset_coding_system_priority) | |
| 2443 (Fdefine_coding_system_internal): Doc fix. | |
| 2444 | |
| 2445 2002-05-16 Dave Love <fx@gnu.org> | |
| 2446 | |
| 2447 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
| 2448 | |
| 89872 | 2449 2002-05-16 Kenichi Handa <handa@m17n.org> |
| 89483 | 2450 |
| 2451 * character.c (string_escape_byte8): Make multibyte string with | |
| 2452 correct size. | |
| 2453 | |
| 2454 * charset.c (Fmake_char): Delete unnecessary code. | |
| 2455 | |
| 89872 | 2456 2002-05-14 Kenichi Handa <handa@m17n.org> |
| 89483 | 2457 |
| 2458 * xfns.c (x_encode_text): Allocate coding.destination here, and | |
| 2459 call encode_coding_object with dst_object Qnil. | |
| 2460 | |
| 2461 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
| 2462 multibyte form correctly. | |
| 2463 | |
| 2464 * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
| 2465 against Vfont_encoding_alist. | |
| 2466 | |
| 2467 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
| 2468 handling of charset list. | |
| 2469 (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
| 2470 (decode_coding_object): Move point to coding->dst_pos before | |
| 2471 calling post-read-conversion function. | |
| 2472 (encode_coding_object): Give correct arguments to | |
| 2473 pre-write-conversion. Ignore the return value of | |
| 2474 pre-write-conversion function. Pay attention to the case that | |
| 2475 pre-write-conversion changes the current buffer. If dst_object is | |
| 2476 Qt, even if coding->src_bytes is zero, allocate at least one byte | |
| 2477 to coding->destination. | |
| 2478 | |
| 2479 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
| 2480 | |
| 2481 * charset.c (Fmake_char): Make it more backward compatible. | |
| 2482 (Fmap_charset_chars): Fix docstring. | |
| 2483 | |
| 2484 2002-05-13 Dave Love <fx@gnu.org> | |
| 2485 | |
| 2486 * coding.c: Doc fixes. | |
| 2487 (Fdefine_coding_system_alias): Use names, not symbols, in | |
| 2488 coding-system-alist. | |
| 2489 | |
| 89872 | 2490 2002-05-13 Kenichi Handa <handa@m17n.org> |
| 89483 | 2491 |
| 2492 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
| 2493 of calling free_realized_face. | |
| 2494 | |
| 2495 2002-05-10 Yong Lu <lyongu@asia-infonet.com> | |
| 2496 | |
| 2497 * charset.c (load_charset_map): Fix previous change. | |
| 2498 (read_hex): Don't treat SPC as a comment starter. | |
| 2499 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return | |
| 2500 -1. | |
| 2501 (Fdecode_char): Fix typo. | |
| 2502 | |
| 89872 | 2503 2002-05-10 Kenichi Handa <handa@m17n.org> |
| 89483 | 2504 |
| 2505 * charset.h (struct charset): New member `code_space_mask'. | |
| 2506 | |
| 2507 * coding.c (coding_set_source): Delete the local variable | |
| 2508 beg_byte. | |
| 2509 (encode_coding_charset): Delete the local variable charset. | |
| 2510 (Fdefine_coding_system_internal): Likewise. | |
| 2511 (Fdefine_coding_system_internal): Setup | |
| 2512 attrs[coding_attr_charset_valids] correctly. | |
| 2513 | |
| 2514 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
| 2515 member to check if CODE is valid or not. | |
| 2516 (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
| 2517 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
| 2518 is within the range of charset->min_code and carset->max_code. | |
| 2519 | |
| 2520 2002-05-09 Dave Love <fx@gnu.org> | |
| 2521 | |
| 2522 * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
| 2523 | |
| 2524 * dispextern.h (generate_ascii_font): Fix return type. | |
| 2525 | |
| 2526 * xfaces.c (generate_ascii_font): Fix arg declaration. | |
| 2527 | |
| 2528 * coding.c (coding_inherit_eol_type) | |
| 2529 (Fset_terminal_coding_system_internal) | |
| 2530 (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
| 2531 | |
| 89872 | 2532 2002-05-08 Kenichi Handa <handa@m17n.org> |
| 89483 | 2533 |
| 2534 * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
| 2535 multiple charsets correctly. | |
| 2536 | |
| 89872 | 2537 2002-05-07 Kenichi Handa <handa@m17n.org> |
| 89483 | 2538 |
| 2539 * search.c (boyer_moore): Fix handling of mulitbyte character | |
| 2540 translation. | |
| 2541 | |
| 2542 * xdisp.c (display_mode_element): When the variable `elt' is | |
| 2543 changed, update `this' and `lisp_string'. | |
| 2544 | |
| 89872 | 2545 2002-05-07 Kenichi Handa <handa@m17n.org> |
| 89483 | 2546 |
| 2547 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
| 2548 | |
| 2549 * callproc.c (Fcall_process): Be sure to give the current buffer | |
| 2550 to decode_coding_c_string. Update PT and PT_BYTE after the | |
| 2551 insertion. | |
| 2552 | |
| 2553 * charset.c (struct charset_map_entries): New struct. | |
| 2554 (load_charset_map): Renamed from parse_charset_map. New args | |
| 2555 entries and n_entries. Caller changed. | |
| 2556 (load_charset_map_from_file): Renamed from load_charset_map. | |
| 2557 Caller changed. New arg control_flag. Call load_charset_map at | |
| 2558 the tail. | |
| 2559 (load_charset_map_from_vector): New function. | |
| 2560 (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
| 2561 (encode_char): If the charset is compact, change a character index | |
| 2562 to a code point. | |
| 2563 | |
| 2564 * coding.c (coding_alloc_by_making_gap): Check the case that the | |
| 2565 source and destination are the same correctly. | |
| 2566 (decode_coding_raw_text): Set coding->consumed_char and | |
| 2567 coding->consumed to 0. | |
| 2568 (produce_chars): If coding->chars_at_source is nonzero, update | |
| 2569 coding->consumed_char and coding->consumed before calling | |
| 2570 alloc_destination. | |
| 2571 (Fdefine_coding_system_alias): Register ALIAS in | |
| 2572 Vcoding_system_alist. | |
| 2573 (syms_of_coding): Define `no-convesion' coding system at the tail. | |
| 2574 | |
| 2575 * fileio.c (Finsert_file_contents): Set coding_system instead of | |
| 2576 val. If the current buffer is multibyte, always call | |
| 2577 decode_coding_gap. | |
| 2578 | |
| 2579 * xfaces.c (try_font_list): Give higher priority to fontset's | |
| 2580 family than face's family. | |
| 2581 | |
| 89872 | 2582 2002-04-18 Kenichi Handa <handa@m17n.org> |
| 89483 | 2583 |
| 2584 * callproc.c (Fcall_process): Be sure to give the current buffer | |
| 2585 to decode_coding_c_string. | |
| 2586 | |
| 2587 * xfaces.c (try_font_list): Give a family specified in a fontset | |
| 2588 higher priority than a family specified in a face. | |
| 2589 | |
| 89872 | 2590 2002-04-09 Kenichi Handa <handa@m17n.org> |
| 89483 | 2591 |
| 2592 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
| 2593 Fix arguments to insert_from_buffer. | |
| 2594 | |
| 2595 * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
| 2596 | |
| 89872 | 2597 2002-03-11 Kenichi Handa <handa@m17n.org> |
| 89483 | 2598 |
| 2599 * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
| 2600 (decode_coding_gap): Set coding->dst_multibyte correctly. | |
| 2601 | |
| 89872 | 2602 2002-03-07 Kenichi Handa <handa@m17n.org> |
| 89483 | 2603 |
| 2604 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
| 2605 (decode_coding_utf_16): Fix converting high and low bytes to | |
| 2606 code-point. | |
| 2607 (encode_coding_utf_16): Substitute coding->default_char for | |
| 2608 non-Unicode characters. | |
| 2609 (decode_coding): Don't call record_insert here. | |
| 2610 (setup_coding_system): Initialize `surrogate' of | |
| 2611 coding->spec.utf_16 to 0. | |
| 2612 (EMIT_ONE_BYTE): Fix for multibyte case. | |
| 2613 | |
| 2614 * insdel.c (insert_from_gap): Call record_insert. | |
| 2615 | |
| 89872 | 2616 2002-03-04 Kenichi Handa <handa@m17n.org> |
| 89483 | 2617 |
| 2618 * casefiddle.c (casify_region): Fix multibyte case. | |
| 2619 | |
| 2620 * character.c (c_string_width): Add return type `int'. | |
| 2621 (char_string_with_unification): Arg ADVANCED deleted. | |
| 2622 | |
| 2623 * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
| 2624 (CHAR_STRING): Adjusted for the change of | |
| 2625 char_string_with_unification. | |
| 2626 (CHAR_STRING_ADVANCE): Make it do-while statement. | |
| 2627 | |
| 2628 * chartab.c (sub_char_table_set_range): Optimized for the case | |
| 2629 DEPTH == 3. Add workaround code for a GCC optimization bug. | |
| 2630 | |
| 2631 * charset.c (parse_charset_map): Remove an unused variable. | |
| 2632 | |
| 2633 * coding.c: Delete unused variables. | |
| 2634 | |
| 2635 * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
| 2636 earlier. If inserted is zero and the coding system doesn't | |
| 2637 require flushing, don't call decode_coding_gap. | |
| 2638 | |
| 2639 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
| 2640 | |
| 89872 | 2641 2002-03-01 Kenichi Handa <handa@m17n.org> |
| 89483 | 2642 |
| 2643 The following changes are for using Unicode as an internal | |
| 2644 character model, and use UTF-8 format for buffer/string | |
| 2645 representation. | |
| 2646 | |
| 2647 * .gdbinit (xchartable): Adjusted for the change of char table | |
| 2648 structure. | |
| 2649 (xsubchartable, xcoding, xcharset, xcurbuf): New commands. | |
| 2650 | |
| 2651 * Makefile.in (obj): Add character.o and chartab.o. | |
| 2652 (lisp, shortlisp): Remove utf-8.elc: | |
| 2653 (*.o): For many files, change dependency on charset.h to | |
| 2654 character.h, and add dependency on character.h. | |
| 2655 (character.o, chartab.o): New targets. | |
| 2656 | |
| 2657 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c, | |
| 2658 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c, | |
| 2659 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
| 2660 of "charset.h". | |
| 2661 | |
| 2662 * dired.c, filelock.c: Include "character.h". | |
| 2663 | |
| 2664 * alloc.c: Include "character.h" instead of "charset.h". | |
| 2665 (Fmake_char_table): Moved to chartab.c. | |
| 2666 (make_sub_char_table): Likewise. | |
| 2667 (syms_of_alloc): Remove defsubr for Smake_char_table. | |
| 2668 | |
| 2669 * buffer.c: Include "character.h" instead of "charset.h", don't | |
| 2670 include "coding.h". | |
| 2671 (Fset_buffer_multibyte): Adjuted for UTF-8. | |
| 2672 | |
| 2673 * buffer.h: EXFUN Fbuffer_live_p. | |
| 2674 | |
| 2675 * callproc.c: Include "character.h" instead of "charset.h". | |
| 2676 (Fcall_process): Big change for the new code-conversion APIs. | |
| 2677 | |
| 2678 * casetab.c: Include "character.h" instead of "charset.h". | |
| 2679 (set_canon, set_identity, shuffle): Adjusted for the new | |
| 2680 map_char_table spec. | |
| 2681 (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
| 2682 accessing the char table structure. | |
| 2683 | |
| 2684 * chartab.c: New file that implements char table. | |
| 2685 | |
| 2686 * category.c: Include "character.h". | |
| 2687 (copy_category_entry): New function. | |
| 2688 (copy_category_table): Call map_char_table and copy_category_entry. | |
| 2689 (Fmake_category_table): Initialize all top-vel slots. | |
| 2690 (char_category_set): New function. | |
| 2691 (modify_lower_category_set): Deleted. | |
| 2692 (Fmodify_category_entry): Call char_table_ref_and_range. | |
| 2693 | |
| 2694 * category.h (CATEGORY_SET): Just call char_category_set. | |
| 2695 | |
| 2696 * ccl.c: Include "character.h". | |
| 2697 (Qccl, Qcclp): New variables. | |
| 2698 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
| 2699 it's less than 256. | |
| 2700 (CCL_WRITE_MULTIBYTE_CHAR): Deleted. | |
| 2701 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC | |
| 2702 and DST type. | |
| 2703 (ccl_driver): Types of arguments changed. Code adjusted for that. | |
| 2704 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of | |
| 2705 ccl_driver. | |
| 2706 (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
| 2707 | |
| 2708 * ccl.h (struct ccl_program): Members eol_type and multibyte | |
| 2709 deleted. New members src_multibyte, dst_multibyte, consumed, and | |
| 2710 produced. | |
| 2711 (struct ccl_spec): Members decoder and encoder deleted. New | |
| 2712 memeber ccl. | |
| 2713 (CODING_SPEC_CCL_PROGRAM): New macro. | |
| 2714 (ccl_driver): Prototype updated. | |
| 2715 (Qccl, Qcclp, Fccl_program_p): Extern them. | |
| 2716 (CHECK_CCL_PROGRAM): New macro. | |
| 2717 | |
| 2718 * character.c, character.h, chartab.c: New files. | |
| 2719 | |
| 2720 * charset.c: Mostly re-written. Character and multibyte sequence | |
| 2721 handling codes are moved to character.c. | |
| 2722 | |
| 2723 * charset.h: Mostly re-written. Character and multibyte sequence | |
| 2724 handling codes are moved to character.h. | |
| 2725 | |
| 2726 * coding.c, coding.h: Mostly re-written. | |
| 2727 | |
| 2728 * composite.c: Include "character.h" instead of "charset.h". | |
| 2729 (CHAR_WIDTH): Moved to character.h. | |
| 2730 (HASH_KEY, HASH_VALUE): Deleted. | |
| 2731 | |
| 2732 * composite.h (enum composition_method): Order of enumeration | |
| 2733 symbols changed. | |
| 2734 | |
| 2735 * data.c: Include "character.h" instead of "charset.h". | |
| 2736 (Faref): Call CHAR_TABLE_REF for a char table. | |
| 2737 (Faset): Call CHAR_TABLE_SET for a char table. | |
| 2738 | |
| 2739 * dispextern.h (free_realized_face, check_face_attribytes, | |
| 2740 generate_ascii_font): Extern them. | |
| 2741 (free_realized_multibyte_face): Extern deleted. | |
| 2742 | |
| 2743 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char | |
| 2744 table structure. | |
| 2745 | |
| 2746 * editfns.c: Include "character.h" instead of "charset.h". | |
| 2747 (Fchar_to_string): Always call CHAR_STRING. | |
| 2748 | |
| 2749 * emacs.c (main): Call init_charset_once, init_charset, | |
| 2750 syms_of_chartab, and syms_of_character. | |
| 2751 | |
| 2752 * fileio.c: Include "character.h" instead of "charset.h". | |
| 2753 (Finsert_file_contents): Big change for the new code-conversion | |
| 2754 API. | |
| 2755 (choose_write_coding_system): Likewise. | |
| 2756 (Fwrite_region): Likewise. | |
| 2757 (build_annotations_2): Deleted. | |
| 2758 (e_write): Big change for the new code-conversion API. | |
| 2759 | |
| 2760 * fns.c: Include "character.h" instead of "charset.h". | |
| 2761 (copy_sub_char_table): Moved to chartab.c. | |
| 2762 (Fcopy_sequence): Call copy_char_table for a char table. | |
| 2763 (concat): Delete codes calling count_multibyte. | |
| 2764 (string_char_to_byte): Adjusted for the new multibyte form. | |
| 2765 (string_byte_to_char): Likewise. | |
| 2766 (internal_equal): Adjusted for the change of char table structure. | |
| 2767 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent, | |
| 2768 Fchar_table_extra_slot, Fset_char_table_extra_slot, | |
| 2769 Fchar_table_range, Fset_char_table_range, Fset_char_table_default, | |
| 2770 char_table_translate, optimize_sub_char_table, | |
| 2771 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to | |
| 2772 chartab.c. | |
| 2773 (char_table_ref_and_index): Deleted. | |
| 2774 (HASH_KEY, HASH_VALUE): Moved to lisp.h. | |
| 2775 (Fmd5): Call preferred_coding_system instead of accessing | |
| 2776 Vcoding_category_list. Adjusted for the new code-conversion API. | |
| 2777 (syms_of_fns): Defsubr for char table related functions moved to | |
| 2778 chartab.c. | |
| 2779 | |
| 2780 * fontset.c: Mostly re-written. | |
| 2781 | |
| 2782 * fontset.h (struct font_info): Type of the member encoding_type | |
| 2783 changed. | |
| 2784 (enum FONT_SPEC_INDEX): New enum. | |
| 2785 (fontset_font_pattern, fs_load_font): Prototype updated. | |
| 2786 (FS_LOAD_FONT): Adjusted for the change of fs_load_font. | |
| 2787 | |
| 2788 * indent.c: Include "character.h" instead of "charset.h". | |
| 2789 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of | |
| 2790 WIDTH_BY_CHAR_HEAD. | |
| 2791 | |
| 2792 * insdel.c: Include "character.h" instead of "charset.h". | |
| 2793 (copy_text): Don't refer to Vnonascii_translation_table. | |
| 2794 (insert_from_gap): New function. | |
| 2795 | |
| 2796 * keyboard.c: Include "character.h" instead of "charset.h". | |
| 2797 (command_loop_1): Never call direct_output_forward_char before | |
| 2798 a non-ASCII character. | |
| 2799 (read_char): If Vkeyboard_translate_table is a char table, always | |
| 2800 translated a character. | |
| 2801 | |
| 2802 * keymap.c: Include "character.h". | |
| 2803 (store_in_keymap): Handle the case that IDX is a cons. | |
| 2804 (Fdefine_key): Handle the case that KEY is a cons and the car part | |
| 2805 is also a cons (range). | |
| 2806 (push_key_description): Adjusted for the new character code. | |
| 2807 (describe_vector): Call describe_char_table for a char table. | |
| 2808 (describe_char_table): New function. | |
| 2809 | |
| 2810 * keymap.h (describe_char_table): Extern it. | |
| 2811 | |
| 2812 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
| 2813 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
| 2814 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS, | |
| 2815 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
| 2816 Deleted. | |
| 2817 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table | |
| 2818 structure. | |
| 2819 (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
| 2820 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2, | |
| 2821 CHARTAB_SIZE_BITS_3): New macros. | |
| 2822 (chartab_size): Extern it. | |
| 2823 (struct Lisp_Char_Table): Re-designed. | |
| 2824 (struct Lisp_Sub_Char_Table): New structure. | |
| 2825 (HASH_KEY, HASH_VALUE): Moved from fns.c. | |
| 2826 (CHARACTERBITS): Defined as 22. | |
| 2827 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change. | |
| 2828 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. | |
| 2829 (GC_SUB_CHAR_TABLE_P): New macro. | |
| 2830 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated. | |
| 2831 (code_convert_string_norecord): Extern deleted. | |
| 2832 (init_character_once, syms_of_character, init_charset, | |
| 2833 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
| 2834 | |
| 2835 * lread.c: Include "character.h". | |
| 2836 (read_multibyte): New arg NBYTES. | |
| 2837 (read_escape): The meaning of returned *BYTEREP changed. | |
| 2838 (to_multibyte): Deleted. | |
| 2839 (read1): Adjuted the handling of char table and string. | |
| 2840 | |
| 2841 * print.c: Include "character.h" instead of "charset.h". | |
| 2842 (print_string): Convert 8-bit raw bytes to octal form by | |
| 2843 string_escape_byte8. | |
| 2844 (print_object): Adjusted for the new multibyte form. Print 8-bit | |
| 2845 raw bytes always in octal form. Handle sub char table correctly. | |
| 2846 | |
| 2847 * process.c: Include "character.h" instead of "charset.h". | |
| 2848 (read_process_output): Adjusted for the new code-conversion API. | |
| 2849 (send_process): Likewise. | |
| 2850 | |
| 2851 * puresize.h (BASE_PURESIZE): Increased. | |
| 2852 | |
| 2853 * regex.c: Include "character.h" instead of "charset.h". | |
| 2854 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
| 2855 (regex_compile): Accept a range whose starting and ending | |
| 2856 character have different leading bytes. | |
| 2857 (analyse_first): Adjusted for the above change. | |
| 2858 | |
| 2859 * search.c: Include "character.h" instead of "charset.h". | |
| 2860 (search_buffer, boyer_moore): Adjusted for the new multibyte form. | |
| 2861 (Freplace_match): Adjusted for the change of | |
| 2862 multibyte_char_to_unibyte. | |
| 2863 | |
| 2864 * syntax.c: Include "character.h" instead of "charset.h". | |
| 2865 (syntax_parent_lookup): Deleted. | |
| 2866 (Fmodify_syntax_entry): Accept a cons as CHAR. | |
| 2867 (skip_chars): Adjusted for the new multibyte form. | |
| 2868 (init_syntax_once): Call char_table_set_range instead of directly | |
| 2869 accessing the structure of a char table. | |
| 2870 | |
| 2871 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
| 2872 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted. | |
| 2873 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. | |
| 2874 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
| 2875 | |
| 2876 * term.c: Include "buffer.h" and "character.h". | |
| 2877 (encode_terminal_code): Adjusted for the new code-conversion API. | |
| 2878 (write_glyphs): Likewise. | |
| 2879 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. | |
| 2880 | |
| 2881 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT. | |
| 2882 | |
| 2883 * xdisp.c: Include "character.h". | |
| 2884 (get_next_display_element): Adjusted for the new multibyte form. | |
| 2885 (disp_char_vector): Adjusted for the new char table structure. | |
| 2886 (decode_mode_spec_coding): Adjusted for the new structure of | |
| 2887 coding system. | |
| 2888 (decode_mode_spec): Adjusted for the new code-conversion API. | |
| 2889 | |
| 2890 * xfaces.c: Include "character.h" instead of "charset.h". | |
| 2891 (load_face_font): Adjusted for the change of choose_face_font and | |
| 2892 FS_LOAD_FONT. | |
| 2893 (generate_ascii_font): New function. | |
| 2894 (set_lface_from_font_name): Adjusted for the change of | |
| 2895 FS_LOAD_FONT. | |
| 2896 (set_font_frame_param): Adjusted for the change of | |
| 2897 choose_face_font. | |
| 2898 (free_realized_face): Make it public. | |
| 2899 (free_realized_faces_for_fontset): Renamed from | |
| 2900 free_realized_multibyte_face. Free also faces realized for ASCII. | |
| 2901 (choose_face_font): Argments changed. Adjusted for the change of | |
| 2902 fontset_font_pattern and FS_LOAD_FONT. | |
| 2903 | |
| 2904 * xfns.c: Include "character.h". | |
| 2905 (x_encode_text): Adjusted for the new code-conversion API. | |
| 2906 | |
| 2907 * xselect.c: Don't include "charset.h". | |
| 2908 (selection_data_to_lisp_data): Adjusted for the new code | |
| 2909 covnersion API. | |
| 2910 | |
| 2911 * xterm.c: Include "character.h". | |
| 2912 (x_encode_char): New argument CHARSET. Caller changed. | |
| 2913 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of | |
| 2914 SPLIT_CHAR. | |
| 2915 (x_get_glyph_face_and_encoding): Likewise. | |
| 2916 (x_produce_glyphs): Don't check Vnonascii_translation_table Call | |
| 2917 CHAR_WIDTH instead of CHARSET_WIDTH. | |
| 2918 (XTread_socket): Adjusted for the new code-conversion API. | |
| 2919 (x_new_font): Adjusted for the change of FS_LOAD_FONT. | |
| 2920 (x_load_font): Adjusted for the change of struct font. | |
| 2921 | |
| 2922 ;; Local Variables: | |
| 2923 ;; coding: iso-2022-7bit | |
| 2924 ;; End: | |
| 2925 | |
| 2926 Copyright (C) 2002 Free Software Foundation, Inc. | |
| 2927 Copying and distribution of this file, with or without modification, | |
| 2928 are permitted provided the copyright notice and this notice are preserved. | |
| 89911 | 2929 |
| 2930 ;;; arch-tag: 1bff38bd-2030-46ae-9d18-f15e6006b665 |
