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