Mercurial > emacs
annotate src/ChangeLog.22 @ 89580:fa5b8317a0bb
Add character.h dependancies.
(character.o, chartab.o): New targets.
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Sat, 11 Oct 2003 22:00:53 +0000 |
| parents | e9b543429bfb |
| children | 95e439370b93 |
| rev | line source |
|---|---|
| 89578 | 1 2003-10-10 Kenichi Handa <handa@m17n.org> |
| 2 | |
| 3 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro | |
| 4 CODING_ID_EOL_TYPE.. | |
| 5 | |
|
89576
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
6 2003-10-07 Andreas Schwab <schwab@suse.de> |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
7 |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
8 * coding.c (produce_chars): Revert last change. |
|
c4e90e6721e8
*** empty log message ***
Andreas Schwab <schwab@suse.de>
parents:
89574
diff
changeset
|
9 |
| 89574 | 10 2003-10-06 Kenichi Handa <handa@m17n.org> |
| 11 | |
| 12 * charset.h (charset_unicode): Extern it. | |
| 13 | |
| 14 * charset.c (string_xstring_p): Check by (C >= 0x100). | |
| 15 (find_charsets_in_text): Format of the arc CHARSETS changed. New | |
| 16 arg MULTIBYTE. | |
| 17 (Ffind_charset_region, Ffind_charset_string): Adjusted for the | |
| 18 change of find_charsets_in_text. | |
| 19 (Fsplit_char): Fix doc. Never return unknown. | |
| 20 | |
| 21 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP. | |
| 22 | |
| 23 * coding.c (Fdefine_coding_system_alias): Update | |
| 24 Vcoding_system_list. | |
| 25 | |
| 26 * fontset.c (load_font_get_repertory): Pay attention to the case | |
| 27 that ENCODING of a font is specified by a char-table. | |
| 28 | |
| 29 * xterm.c (x_get_font_repertory): Handle the case that the | |
| 30 encoding of font is other than Unicode. | |
| 31 | |
| 89567 | 32 2003-10-02 Kenichi Handa <handa@m17n.org> |
| 33 | |
| 34 * term.c (encode_terminal_code): Don't handle glyph-table. Check | |
| 35 if a character is encodable by the terminal coding system. If | |
| 36 not, produces proper number of `?'s. Update | |
| 37 terminal_encode_buffer and terminal_encode_buf_size if necessary. | |
| 38 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. | |
| 39 | |
| 89565 | 40 2003-10-01 Kenichi Handa <handa@m17n.org> |
| 41 | |
| 42 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New | |
| 43 variables. | |
| 44 (encode_terminal_code): Argument changed. Encode multiple | |
| 45 characters at once. Store the result of encoding in | |
| 46 terminal_encode_buffer. | |
| 47 (write_glyphs): Adjusted for the change of encode_terminal_code. | |
| 48 (insert_glyphs): Likewise. | |
| 49 (term_init): Initialize terminal_encode_buffer and | |
| 50 terminal_encode_buf_size. | |
| 51 | |
| 52 * coding.c (consume_chars): If coding->src_object is nil, don't | |
| 53 check annotation. | |
| 54 | |
| 89561 | 55 2003-09-30 Kenichi Handa <handa@m17n.org> |
| 56 | |
| 57 * character.c (char_string): Use ASCII_CHAR_P instead of | |
| 58 SINGLE_BYTE_CHAR_P. | |
| 59 | |
| 89560 | 60 2003-09-30 Kenichi Handa <handa@m17n.org> |
| 61 | |
| 62 * xdisp.c (handle_auto_composed_prop): Check if the last | |
| 63 characters of auto-composed region is newly composed with the | |
| 64 following characters. | |
| 65 (handle_composition_prop): Fix checking of point being inside | |
| 66 composition. | |
| 67 | |
| 68 2003-09-26 Kenichi Handa <handa@m17n.org> | |
| 69 | |
| 70 * fns.c (concat): Don't change multibyteness of the result by | |
| 71 concatenating an 8-bit character. | |
| 72 | |
| 73 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change | |
| 74 multibyteness of the result when newelt is an 8-bit character. | |
| 75 | |
| 89557 | 76 2003-09-29 Dave Love <fx@gnu.org> |
| 77 | |
| 78 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used | |
| 79 EMACS_INT. | |
| 80 | |
| 81 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. | |
| 82 | |
| 83 * xfaces.c (face_numeric_value): Declare dim size_t. | |
| 84 (Finternal_lisp_face_equal_p): Remove unused f. | |
| 85 | |
| 86 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor) | |
| 87 (MATRIX_ROW): Remove unused vars. | |
| 88 (draw_glyphs, x_insert_glyphs, fast_find_position) | |
| 89 (fast_find_position, fast_find_string_pos): Use EMACS_INT for | |
| 90 byte/char counts. | |
| 91 | |
| 92 * regex.c (regex_compile): Remove unused var. | |
| 93 | |
| 94 * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
| 95 | |
| 96 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap) | |
| 97 (Faccessible_keymaps, where_is_internal): Remove unused vars. | |
| 98 | |
| 99 * keyboard.c (cancel_hourglass_unwind): Return Qnil. | |
| 100 | |
| 101 * frame.c (frame_name_fnn_p): Make len EMACS_INT. | |
| 102 | |
| 103 * fileio.c (Fwrite_region): Remove unused var. | |
| 104 | |
| 105 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay) | |
| 106 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim. | |
| 107 | |
| 108 * composite.c (Fremove_list_of_text_properties): Declare. | |
| 109 | |
| 110 * coding.c (inhibit_pre_post_conversion): Removed (unused). | |
| 111 (alloc_destination, produce_chars): Use EMACS_INT for byte/char | |
| 112 counts. | |
| 113 (coding_inherit_eol_type): Remove unused attrs. | |
| 114 (detect_coding): Cast arg of detect_eol. | |
| 115 | |
| 116 * charset.c (syms_of_charset): Remove unused var p. | |
| 117 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for | |
| 118 byte/char counts. | |
| 119 | |
| 120 * casetab.c (set_case_table): Remove unused var. | |
| 121 | |
| 122 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove | |
| 123 unsued vars. | |
| 124 | |
| 89561 | 125 >>>>>>> 1.1.2.8 |
| 89536 | 126 2003-09-26 Dave Love <fx@gnu.org> |
| 127 | |
| 128 * xterm.c (x_bitmap_mask): Declare. | |
| 129 | |
| 89516 | 130 2003-09-17 Dave Love <fx@gnu.org> |
| 131 | |
| 89523 | 132 * xterm.c (x_term_init): Fix type error. |
| 133 | |
| 134 * lisp.h: Add Funibyte_char_to_multibyte. | |
| 135 | |
| 136 * coding.c (Fread_coding_system): Fix arg of XSETSTRING. | |
| 137 (Fset_coding_system_priority): Doc fix. | |
| 138 | |
| 139 * alloc.c: Sync with HEAD version. | |
| 140 | |
| 141 * ccl.c (ccl_driver): Fix arg of CHARACTERP. | |
| 142 | |
| 89516 | 143 * indent.c (check_composition): Make start and end EMACS_INT. |
| 144 | |
| 145 * character.c (lisp_string_width): Make ignore and end EMACS_INT. | |
| 146 | |
| 147 * xdisp.c (handle_composition_prop, check_point_in_composition): | |
| 148 Make buffer positions EMACS_INT. | |
| 149 | |
| 150 * composite.c (find_composition, run_composition_function) | |
| 151 (update_compositions, Ffind_composition_internal): Make buffer | |
| 152 positions EMACS_INT. | |
| 153 | |
| 154 * composite.h (find_composition, update_compositions): Make | |
| 155 position args EMACS_INT. | |
| 156 | |
| 157 * keyboard.c (adjust_point_for_property): Make beg and end | |
| 158 EMACS_INT. | |
| 159 | |
| 160 * intervals.c (get_property_and_range) | |
| 161 * intervals.h (get_property_and_range): Make start and end EMACS_INT. | |
| 162 | |
| 163 * unexalpha.c: Don't include varargs.h. | |
| 164 | |
| 89508 | 165 2003-09-16 Dave Love <fx@gnu.org> |
| 166 | |
| 167 * coding.h (ENCODE_UTF_8): New. | |
| 168 | |
| 169 * Makefile.in (gtkutil.o): Depend on coding.h. | |
| 170 | |
| 171 * coding.c (Fset_coding_system_priority): Doc fix. | |
| 172 | |
| 89505 | 173 2003-09-16 Kenichi Handa <handa@m17n.org> |
| 174 | |
| 175 * fileio.c (Finsert_file_contents): Call setup_coding_system in | |
| 176 the case of auto saving. | |
| 177 | |
| 89560 | 178 2003-09-10 Andreas Schwab <schwab@suse.de> |
| 179 | |
| 180 * chartab.c (map_char_table): Protect `range' from GC. | |
| 181 (map_char_table_for_charset): Likewise. | |
| 182 | |
| 89483 | 183 2003-07-09 Kenichi Handa <handa@m17n.org> |
| 184 | |
| 185 * coding.c (decode_coding_sjis): Check bytes more rigidly. | |
| 186 | |
| 187 2003-06-26 Kenichi Handa <handa@m17n.org> | |
| 188 | |
| 189 * fileio.c (choose_write_coding_system): Return a decided coding | |
| 190 system. | |
| 191 (Fwrite_region): Set Vlast_coding_system_used to the return value | |
| 192 of choose_write_coding_system. | |
| 193 | |
| 194 2003-06-06 Kenichi Handa <handa@m17n.org> | |
| 195 | |
| 196 * charset.c (Fset_charset_priority): Pay attention to duplicated | |
| 197 arguments. | |
| 198 | |
| 199 * coding.c (QCcategory): New variable. | |
| 200 (syms_of_coding): Defsym it. Set all elements of | |
| 201 Vcoding_category_table and their symbol values. | |
| 202 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of | |
| 203 coding-category-XXX, and coding-category-list. | |
| 204 (Fdefine_coding_system_internal): Add category in the plist. | |
| 205 | |
| 206 2003-06-05 Kenichi Handa <handa@m17n.org> | |
| 207 | |
| 208 * callproc.c (Fcall_process): Handle carryover correctly. | |
| 209 | |
| 210 * coding.c (decode_coding_iso_2022): Fix handling of invalid | |
| 211 bytes. | |
| 212 (raw_text_coding_system): Check NILP (coding_system). | |
| 213 (coding_inherit_eol_type): Check NILP (coding_system) and | |
| 214 NILP (parent). | |
| 215 (consume_chars): Fix for the case of raw-text. | |
| 216 | |
| 217 * process.c (read_process_output): Handle carryover correctly. | |
| 218 | |
| 219 2003-06-02 Dave Love <fx@gnu.org> | |
| 220 | |
| 221 * regex.c (re_search_2): Fix last change. | |
| 222 | |
| 223 2003-05-30 Kenichi Handa <handa@m17n.org> | |
| 224 | |
| 225 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not | |
| 226 target_multibyte. Even in a unibyte case, return a converted | |
| 227 multibyte char. | |
| 228 (GET_CHAR_AFTER): New macro. | |
| 229 (PATFETCH): Translate via multibyte char. | |
| 230 (HANDLE_UNIBYTE_RANGE): Delete this macro. | |
| 231 (SETUP_MULTIBYTE_RANGE): New macro. | |
| 232 (regex_compile): Setup compiled code so that its multibyteness | |
| 233 matches that of a target. Fix the handling of "[X-YZ]" using | |
| 234 SETUP_MULTIBYTE_RANGE. | |
| 235 (analyse_first) <charset>: For filling fastmap for all multibyte | |
| 236 characters, don't check by BASE_LEADING_CODE_P. | |
| 237 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is | |
| 238 the same as RE_MULTIBYTE_P (bufp) now. | |
| 239 (mutually_exclusive_p): Check by (! multibyte || | |
| 240 IS_REAL_ASCII (c)). | |
| 241 (TARGET_CHAR_AND_LENGTH): Delete this macro. | |
| 242 (TRANSLATE_VIA_MULTIBYTE): New macro. | |
| 243 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp). | |
| 244 It is the same as RE_MULTIBYTE_P (bufp) now. | |
| 245 <exactn>: Translate via multibyte. | |
| 246 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't | |
| 247 translate it. | |
| 248 <charset, charset_not>: Fetch a character by | |
| 249 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte. | |
| 250 <duplicate>: Call bcmp_translate with the last arg `multibyte'. | |
| 251 <wordbound, notwordbound, wordbeg, wordend, syntaxspec, | |
| 252 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character | |
| 253 by GET_CHAR_AFTER. | |
| 254 (bcmp_translate): Likewise. | |
| 255 | |
| 256 * search.c (compile_pattern): Check the member target_multibyte, | |
| 257 not the member multibyte of buf. | |
| 258 | |
| 259 * lread.c (read1): While reading a string, set force_singlebyte | |
| 260 and force_multibyte correctly. | |
| 261 | |
| 262 * charset.c (Fset_unibyte_charset): Fix setting up of | |
| 263 unibyte_to_multibyte_table. | |
| 264 (init_charset_once): Likewise. | |
| 265 | |
| 266 2003-05-29 Kenichi Handa <handa@m17n.org> | |
| 267 | |
| 268 * coding.c (setup_coding_system): If coding has | |
| 269 post-read-conversion or pre-write-conversion, set | |
| 270 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK | |
| 271 respectively. | |
| 272 (decode_coding_gap): Run post-read-conversion if any. | |
| 273 | |
| 274 * fileio.c (Finsert_file_contents): Even if we read into a | |
| 275 unibyte buffer, check if we must decode the result or not. | |
| 276 | |
| 277 2003-05-29 Kenichi Handa <handa@m17n.org> | |
| 278 | |
| 279 * coding.c (make_conversion_work_buffer): Change the work buffer | |
| 280 name to the same one as that of Emacs 21. | |
| 281 | |
| 282 2003-05-28 Kenichi Handa <handa@m17n.org> | |
| 283 | |
| 284 * coding.h (make_conversion_work_buffer): Prototype adjusted. | |
| 285 (code_conversion_restore): Don't extern it. | |
| 286 | |
| 287 * coding.c (detected_mask): Delete unused variable. | |
| 288 (decode_coding_iso_2022): Pay attention to the byte sequence of | |
| 289 CTEXT extended segment, and retain those bytes as is. | |
| 290 (decode_coding_ccl): Delete unused variable `valids'. | |
| 291 (setup_coding_system): Delete unused variable `category'. | |
| 292 (consume_chars): Delete unused variable `category'. Make it work | |
| 293 for non-multibyte case. | |
| 294 (make_conversion_work_buffer): Argument changed. | |
| 295 (saved_coding): Delete unused variable. | |
| 296 (code_conversion_restore): Don't check saved_coding->destination. | |
| 297 (code_conversion_save): New function. | |
| 298 (decode_coding_gap, encode_coding_gap): Call code_conversion_save | |
| 299 instead of record_unwind_protect. | |
| 300 (decode_coding_object, encode_coding_object): Likewise. Recover | |
| 301 PT. | |
| 302 (detect_coding_system): Delete unused variable `mask'. | |
| 303 (Fdefine_coding_system_internal): Delete unsed vaiable id; | |
| 304 | |
| 305 * fileio.c (kill_workbuf_unwind): New function. | |
| 306 (Finsert_file_contents): On replacing, call | |
| 307 make_conversion_work_buffer with correct args, and call | |
| 308 record_unwind_protect with the first arg kill_workbuf_unwind. | |
| 309 | |
| 310 * lisp.h (Fgenerate_new_buffer_name): EXFUN it. | |
| 311 | |
| 312 2003-05-20 Kenichi Handa <handa@m17n.org> | |
| 313 | |
| 314 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not | |
| 315 FONTSET_NAME. | |
| 316 (fontset_add): Fix for the case that TO is less than TO1. | |
| 317 (Ffontset_info): Don't use fallback fontset on checking the | |
| 318 default fontset. | |
| 319 (dump_fontset): New function for debugging. | |
| 320 | |
| 321 * coding.c (Fdefine_coding_system_internal): Fix for the case that | |
| 322 coding_type is Qcharset. | |
| 323 | |
| 324 2003-05-07 Kenichi Handa <handa@m17n.org> | |
| 325 | |
| 326 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. | |
| 327 (map_char_table): Don't inherit the value from the parent on | |
| 328 initializing VAL. Adjusted for the above change. | |
| 329 | |
| 330 2003-05-06 Kenichi Handa <handa@m17n.org> | |
| 331 | |
| 332 * coding.c (Qsignature, Qendian): Delete these variables. | |
| 333 (syms_of_coding): Don't initialize them. | |
| 334 (CATEGORY_MASK_UTF_16_AUTO): New macro. | |
| 335 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in | |
| 336 detect_info->found. | |
| 337 (decode_coding_utf_16): Don't detect BOM here. | |
| 338 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding) | |
| 339 is NOT utf_16_without_bom. | |
| 340 (setup_coding_system): For a coding system of type utf-16, check | |
| 341 if the attribute :endian is Qbig or not (not nil or not), and set | |
| 342 CODING_REQUIRE_DETECTION_MASK if BOM detection is required. | |
| 343 (detect_coding): If coding type is utf-16 and BOM detection is | |
| 344 required, detect it. | |
| 345 (Fdefine_coding_system_internal): For a coding system of type | |
| 346 utf-16, check if the attribute :endian is Qbig or not (not nil or | |
| 347 not). | |
| 348 | |
| 349 2003-05-06 Kenichi Handa <handa@m17n.org> | |
| 350 | |
| 351 * coding.c (coding_set_source): Fix for the case that the current | |
| 352 buffer is different from coding->src_object. | |
| 353 (decode_coding_object): Don't use the conversion work buffer if | |
| 354 DST_OBJECT is a buffer. | |
| 355 | |
| 356 2003-05-04 Dave Love <fx@gnu.org> | |
| 357 | |
| 358 * lread.c (read_emacs_mule_char) [len==2]: Index | |
| 359 emacs_mule_charset correctly. | |
| 360 | |
| 361 2003-02-16 Dave Love <fx@gnu.org> | |
| 362 | |
| 363 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) | |
| 364 (detect_coding_big5, decode_coding_big5, encode_coding_big5) | |
| 365 (Fdecode_big5_char, Fencode_big5_char): Deleted. (Big5 no longer | |
| 366 treated specially.) | |
| 367 (setup_coding_system, coding_category, CATEGORY_MASK_ANY) | |
| 368 (detected_mask): Remove Big5 bits. | |
| 369 | |
| 370 2003-04-09 Kenichi Handa <handa@m17n.org> | |
| 371 | |
| 372 The following changes are to make the font rescaling facility | |
| 373 compatible with Emacs 21. | |
| 374 | |
| 375 * xfaces.c (Vface_font_rescale_alist): Renamed from | |
| 376 Vface_resizing_fonts. | |
| 377 (struct font_name): Rename member resizing_ratio to rescale_ratio. | |
| 378 (font_rescale_ratio): Renamed from font_resizing_ratio. | |
| 379 (split_font_name): Set font->rescale_ratio. | |
| 380 (better_font_p): Pay attention to font->rescale_ratio. | |
| 381 (build_scalable_font_name): Likewise. Change RESX, and RESY | |
| 382 fields. | |
| 383 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp | |
| 384 variable. | |
| 385 | |
| 386 2003-03-28 Kenichi Handa <handa@m17n.org> | |
| 387 | |
| 388 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) | |
| 389 (Qutf_16_le): Remove these variables. | |
| 390 (syms_of_coding): Don't DEFSYM them. | |
| 391 (decode_coding_utf_16): Fix handling of BOM. | |
| 392 (encode_coding_utf_16): Fix handling of BOM. | |
| 393 | |
| 394 2003-03-14 Kenichi Handa <handa@m17n.org> | |
| 395 | |
| 396 * fileio.c (Finsert_file_contents): On replacing, before decoding | |
| 397 the file into the work buffer, set point of the work buffer to the | |
| 398 end. | |
| 399 | |
| 400 2003-02-13 Dave Love <fx@gnu.org> | |
| 401 | |
| 402 * coding.c (Fcheck_coding_systems_region): Fix type errors. | |
| 403 | |
| 404 2003-02-04 Dave Love <fx@gnu.org> | |
| 405 | |
| 406 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
| 407 and fix C types. | |
| 408 | |
| 409 2003-01-31 Kenichi Handa <handa@m17n.org> | |
| 410 | |
| 411 * xdisp.c (SKIP_GLYPHS): New macro. | |
| 412 (set_cursor_from_row): Pay attention to string display properties. | |
| 413 | |
| 414 * category.c (copy_category_entry): Fix for the case that RANGE | |
| 415 is an integer. | |
| 416 | |
| 417 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. | |
| 418 | |
| 419 * w32term.c (w32_encode_char): Call ccl_driver with the last arg | |
| 420 Qnil. | |
| 421 | |
| 422 2003-01-30 Kenichi Handa <handa@m17n.org> | |
| 423 | |
| 424 * charset.c (Fcharset_id_internal): New function. | |
| 425 (syms_of_charset): Defsubr it. | |
| 426 | |
| 427 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver | |
| 428 with the last arg charset_list acquired from coding. | |
| 429 (Fdefine_coding_system_internal): For ccl-based coding system, fix | |
| 430 the attribute coding_attr_ccl_valids. | |
| 431 | |
| 432 * coding.h (enum define_coding_ccl_arg_index): Set the first | |
| 433 member coding_arg_ccl_decoder to coding_arg_max. | |
| 434 | |
| 435 * ccl.h (ccl_driver): Prototype adjusted. | |
| 436 | |
| 437 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros. | |
| 438 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead | |
| 439 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. | |
| 440 (Fccl_execute): Call ccl_driver with the last arg Qnil. | |
| 441 (Fccl_execute_on_string): Likewise. | |
| 442 | |
| 443 2003-01-11 Kenichi Handa <handa@m17n.org> | |
| 444 | |
| 445 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, | |
| 446 call encode_char. | |
| 447 | |
| 448 * charset.c (encode_char): Fix handling of methods SUBSET and | |
| 449 SUPERSET. | |
| 450 | |
| 451 * xterm.c (x_new_fontset): Fix previous change. | |
| 452 | |
| 453 2003-01-10 Dave Love <fx@gnu.org> | |
| 454 | |
| 455 * composite.c (syms_of_composite): Make composition_hash_table | |
| 456 weak. | |
| 457 | |
| 458 2003-01-10 Kenichi Handa <handa@m17n.org> | |
| 459 | |
| 460 * dispextern.h (check_face_attributes, generate_ascii_font_name) | |
| 461 (font_name_registry): Don't extern them. | |
| 462 (split_font_name_into_vector, build_font_name_from_vector): Extern | |
| 463 them. | |
| 464 | |
| 465 * fontset.h (Qfontset): Don't extern it. | |
| 466 (new_fontset_from_font_name): Extern it. | |
| 467 | |
| 468 * fontset.c: Give 8 extra slots to fontset objects. | |
| 469 (Qfontset_info): New variable. | |
| 470 (syms_of_fontset): Defsym it. | |
| 471 (FONTSET_FALLBACK): New macro. | |
| 472 (fontset_face): Try also the default fontset. | |
| 473 (make_fontset): Realize a fallback fontset from the default | |
| 474 fontset. | |
| 475 (generate_ascii_font_name): Moved from xfaces.c. Rewritten by | |
| 476 using split_font_name_into_vector and build_font_name_from_vector. | |
| 477 (Fset_fontset_font): Access the elements of font_spec by enum | |
| 478 FONT_SPEC_INDEX. If font_spec is a string, extract the registry | |
| 479 name by using split_font_name_into_vector. | |
| 480 (Fnew_fontset): If no ASCII font is specified in FONTLIST, | |
| 481 generate a proper font name from the fontset name. Update | |
| 482 Vfontset_alias_alist. | |
| 483 (n_auto_fontsets): New variable. | |
| 484 (new_fontset_from_font_name): New function. | |
| 485 (Ffont_info): Store the information about fonts generated from the | |
| 486 default fontset in the first extra slot of the returned | |
| 487 char-table. | |
| 488 | |
| 489 * xfaces.c (generate_ascii_font_name): Moved to fontset.c. | |
| 490 (font_name_registry): Function deleted. | |
| 491 (split_font_name_into_vector): New function. | |
| 492 (build_font_name_from_vector): New function. | |
| 493 (font_list): The argument REGISTRY is now a list of registry | |
| 494 names. | |
| 495 (choose_face_font): If we are choosing an ASCII font, and ATTRS | |
| 496 specifies an explicit font name, return the name as is. Make a | |
| 497 list of registy names. | |
| 498 | |
| 499 * xfns.c (x_set_font, x_create_tip_frame): Adjusted to the change | |
| 500 of x_new_fontset. | |
| 501 (Fx_create_frame): Don't call x_new_fontset here. Just use | |
| 502 x_list_fonts to check the existence of fonts. | |
| 503 | |
| 504 * xterm.h (x_new_fontset): Prototype adjusted. | |
| 505 | |
| 506 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp | |
| 507 string. Use new_fontset_from_font_name to create a fontset from a | |
| 508 font name. | |
| 509 | |
| 510 2003-01-07 Dave Love <fx@gnu.org> | |
| 511 | |
| 512 * Makefile.in: Fix some dependencies. | |
| 513 | |
| 514 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but | |
| 515 set it to nil before returning. | |
| 516 | |
| 517 * composite.c (update_compositions): Fix type error. | |
| 518 | |
| 519 * syntax.c (skip_chars, skip_syntaxes): Fix type errors. | |
| 520 | |
| 521 2003-01-07 Kenichi Handa <handa@etl.go.jp> | |
| 522 | |
| 523 * xterm.c (x_new_font): Optimize for the case that the font is | |
| 524 already set for the frame. | |
| 525 | |
| 526 2003-01-06 Kenichi Handa <handa@m17n.org> | |
| 527 | |
| 528 * chartab.c (char_table_ascii): Check if the char table contents | |
| 529 is sub-char-table or not. | |
| 530 (char_table_set): Fix argument to char_table_ascii. | |
| 531 (char_table_set_range): Likewise. | |
| 532 | |
| 533 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro. | |
| 534 (detect_coding_utf_8, detect_coding_utf_16) | |
| 535 (detect_coding_emacs_mule, detect_coding_iso_2022) | |
| 536 (detect_coding_sjis, detect_coding_big5) | |
| 537 (detect_coding_ccl, detect_coding_charset): Change argument MASK | |
| 538 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte | |
| 539 sequence is valid in this coding system. Callers changed. | |
| 540 (MAX_ANNOTATION_LENGTH): New macro. | |
| 541 (ADD_ANNOTATION_DATA): New macro. | |
| 542 (ADD_COMPOSITION_DATA): Argument changed. Callers changed. Call | |
| 543 ADD_ANNOTATION_DATA. The format of annotation data changed. | |
| 544 (ADD_CHARSET_DATA): New macro. | |
| 545 (emacs_mule_char): New argument ID. Callers changed. | |
| 546 (decode_coding_emacs_mule, decode_coding_iso_2022) | |
| 547 (decode_coding_sjis, decode_coding_big5, decode_coding_charset): | |
| 548 Produce charset annotation data in coding->charbuf. | |
| 549 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention | |
| 550 to charset annotation data in coding->charbuf. | |
| 551 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK | |
| 552 coding->common_flags if the coding system is iso-2022 based and | |
| 553 uses designation. | |
| 554 (produce_composition): Adjusted for the new annotation data | |
| 555 format. | |
| 556 (produce_charset): New function. | |
| 557 (produce_annotation): Handle charset annotation. | |
| 558 (handle_composition_annotation, handle_charset_annotation): New | |
| 559 functions. | |
| 560 (consume_chars): Handle charset annotation. Utilize the above two | |
| 561 functions. | |
| 562 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same | |
| 563 buffer, get the deleted text as a string and set | |
| 564 coding->src_object to that string. | |
| 565 (detect_coding, detect_coding_system): Use the new struct | |
| 566 coding_detection_info. | |
| 567 | |
| 568 * coding.h (struct coding_detection_info): New structure. | |
| 569 (struct coding_system): Prototype of the member `detector' | |
| 570 adjusted. | |
| 571 (CODING_ANNOTATE_CHARSET_MASK): New macro. | |
| 572 | |
| 573 2003-01-06 Kenichi Handa <handa@etl.go.jp> | |
| 574 | |
| 575 * insdel.c (insert_from_gap): Fix argument to offset_intervals. | |
| 576 | |
| 577 2003-01-03 Dave Love <fx@gnu.org> | |
| 578 | |
| 579 * keymap.c (apropos_predicate, apropos_accumulate): Declare | |
| 580 static. | |
| 581 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result | |
| 582 to new local and nullify apropos_accumulate before returning. | |
| 583 (syms_of_keymap): Staticpro and initialize apropos_accumulate. | |
| 584 | |
| 585 2002-12-05 Kenichi Handa <handa@m17n.org> | |
| 586 | |
| 587 * charset.c (Fdefine_charset_internal): Setup charset.fast_map | |
| 588 correctly. | |
| 589 | |
| 590 2002-11-26 Dave Love <fx@gnu.org> | |
| 591 | |
| 592 * fns.c (Flanginfo): Call synchronize_system_time_locale. | |
| 593 | |
| 594 2002-11-07 Kenichi Handa <handa@m17n.org> | |
| 595 | |
| 596 The following changes are to make character composition happen | |
| 597 automatically on displaying. | |
| 598 | |
| 599 * Makefile.in (lisp, shortlisp): Add composite.elc | |
| 600 | |
| 601 * composite.h (Qauto_composed, Vauto_composition_function, | |
| 602 Qauto_composition_function): Extern them. | |
| 603 | |
| 604 * composite.c (Vcomposition_function_table, | |
| 605 Qcomposition_function_table): Delete variables. | |
| 606 (Qauto_composed, Vauto_composition_function, | |
| 607 Qauto_composition_function): New variables. | |
| 608 (run_composition_function): Don't call | |
| 609 compose-chars-after-function. | |
| 610 (update_compositions): Clear `auto-composed' text property. | |
| 611 (compose_chars_in_text): Delete this function. | |
| 612 (syms_of_composite): Staticpro Qauto_composed and | |
| 613 Qauto_composition_function. Declare Vauto_composition_function as | |
| 614 a Lisp variable. | |
| 615 | |
| 616 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX. | |
| 617 | |
| 618 * xdisp.c (it_props): Add an entry for Qauto_composed. | |
| 619 (handle_auto_composed_prop): New function. | |
| 620 | |
| 621 * xselect.c (selection_data_to_lisp_data): Don't call | |
| 622 compose_chars_in_text. | |
| 623 | |
| 624 2002-11-06 Dave Love <fx@gnu.org> | |
| 625 | |
| 626 * keyboard.c (read_char): Modify checking around use of | |
| 627 Vkeyboard_translate_table. | |
| 628 | |
| 629 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table | |
| 630 and fix C types. | |
| 631 | |
| 632 2002-11-06 Kenichi Handa <handa@m17n.org> | |
| 633 | |
| 634 * coding.c (decode_coding_utf_8): When eol_type is Qdos, handle | |
| 635 the case that the last byte is '\r' correctly. | |
| 636 (decode_coding_emacs_mule): Likewise. | |
| 637 (decode_coding_iso_2022): Likewise. | |
| 638 (decode_coding_sjis): Likewise. | |
| 639 (decode_coding_big5): Likewise. | |
| 640 (decode_coding_charset): Likewise. | |
| 641 (produce_chars): Likewise. | |
| 642 (decode_coding): Flushing out the unprocessed data correctly. | |
| 643 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of | |
| 644 coding->mode. | |
| 645 | |
| 646 2002-10-31 Dave Love <fx@gnu.org> | |
| 647 | |
| 648 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add | |
| 649 XK_ISO... case. | |
| 650 (xaw_scroll_callback): Revert last change. | |
| 651 | |
| 652 2002-10-30 Kenichi Handa <handa@m17n.org> | |
| 653 | |
| 654 * charset.c (Fset_charset_priority): Update | |
| 655 Viso_2022_charset_list. | |
| 656 | |
| 657 2002-10-29 Kenichi Handa <handa@m17n.org> | |
| 658 | |
| 659 * xfaces.c (Vface_resizing_fonts): New variable. | |
| 660 (struct font_name): New member `resizing_ratio'. | |
| 661 (font_resizing_ratio): New function. | |
| 662 (split_font_name): Set font->resizing_ratio. | |
| 663 (better_font_p): Pay attention to font->resizing_ratio. | |
| 664 (build_scalable_font_name): Likewise. Don't change POINT_SIZE, | |
| 665 RESX, and RESY fields. | |
| 666 (try_alternative_families): Try scalable fonts if | |
| 667 Vscalable_fonts_allowed is not Qt. | |
| 668 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. | |
| 669 | |
| 670 2002-10-29 Dave Love <fx@gnu.org> | |
| 671 | |
| 672 * xterm.c (xaw_scroll_callback): Cast correctly. | |
| 673 | |
| 674 2002-10-28 Dave Love <fx@gnu.org> | |
| 675 | |
| 676 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. | |
| 677 (lispy_kana_keys): Comment out. | |
| 678 (make_lispy_event) [XK_kana_A]: Comment out. | |
| 679 | |
| 680 * xterm.c (xaw_scroll_callback): Cast call_data. | |
| 681 (XTread_socket): Deal with ASCII keysyms. | |
| 682 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. | |
| 683 | |
| 684 2002-10-27 Dave Love <fx@gnu.org> | |
| 685 | |
| 686 * xterm.c (Vx_keysym_table): New. | |
| 687 (syms_of_xterm): Initialize it. | |
| 688 (XTread_socket): Use it. | |
| 689 From head: Eliminate incorrect optimization that tried to avoid | |
| 690 decoding the output of X*LookupString. | |
| 691 (x_get_font_repertory): Delete charset declaration. | |
| 692 | |
| 693 2002-10-16 Kenichi Handa <handa@m17n.org> | |
| 694 | |
| 695 * coding.c (detect_coding): Fix previous change. | |
| 696 (detect_coding_charset): If only ASCII bytes are found, return 0. | |
| 697 (detect_coding_system): Fix previous change. | |
| 698 (Fdefine_coding_system_internal): Setup CODING_ATTR_ASCII_COMPAT | |
| 699 (attrs) correctly. | |
| 700 | |
| 701 2002-10-15 Dave Love <fx@gnu.org> | |
| 702 | |
| 703 * coding.c (Fcheck_coding_system): Doc fix. | |
| 704 | |
| 705 * editfns.c (Finsert_byte): Return a proper value. | |
| 706 | |
| 707 2002-10-14 Kenichi Handa <handa@etl.go.jp> | |
| 708 | |
| 709 * coding.c (decode_coding): Fix args to translate_chars. Pay | |
| 710 attention to Vstandard_translation_table_for_decode. | |
| 711 (encode_coding): Fix args to translate_chars. Pay attention to | |
| 712 Vstandard_translation_table_for_encode. | |
| 713 | |
| 714 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by | |
| 715 SINGLE_BYTE_CHAR_P. | |
| 716 | |
| 717 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P, | |
| 718 not by SINGLE_BYTE_CHAR_P. | |
| 719 | |
| 720 * fns.c (concat): Check CH by ASCII_CHAR_P, not by | |
| 721 SINGLE_BYTE_CHAR_P. | |
| 722 | |
| 723 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by | |
| 724 SINGLE_BYTE_CHAR_P. | |
| 725 | |
| 726 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not | |
| 727 by SINGLE_BYTE_CHAR_P. | |
| 728 | |
| 729 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by | |
| 730 SINGLE_BYTE_CHAR_P. | |
| 731 | |
| 732 2002-10-14 Dave Love <fx@gnu.org> | |
| 733 | |
| 734 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. | |
| 735 | |
| 736 2002-10-10 Dave Love <fx@gnu.org> | |
| 737 | |
| 738 * fns.c (Flanginfo): Fix typo. | |
| 739 | |
| 740 * unexelf.c (unexec): Make last change conditional on Irix 6.5. | |
| 741 | |
| 742 2002-10-10 Kenichi Handa <handa@m17n.org> | |
| 743 | |
| 744 * coding.c (detect_coding_utf_8): Check incomplete byte sequence. | |
| 745 Don't update *mask when correctly detected. | |
| 746 (detect_coding_utf_16): Likewise. | |
| 747 (detect_coding_emacs_mule): Likewise. | |
| 748 (detect_coding_iso_2022): Likewise. | |
| 749 (detect_coding_sjis): Likewise. | |
| 750 (detect_coding_big5): Likewise. | |
| 751 (detect_coding_ccl): Likewise. | |
| 752 (decode_coding_sjis): Fix decoding of katakana-jisx0201. | |
| 753 (detect_eol): Delete the argument CODING, and add the argument | |
| 754 CATEGORY. | |
| 755 (detect_coding): Adjusted for the changes above. | |
| 756 (detect_coding_system): Likewise. | |
| 757 | |
| 758 2002-10-09 Kenichi Handa <handa@m17n.org> | |
| 759 | |
| 760 * character.c (char_string): Renamed from | |
| 761 char_string_with_unification. Pay attention to | |
| 762 CHAR_MODIFIER_MASK. | |
| 763 (string_char): Renamed from string_char. | |
| 764 | |
| 765 * character.h (CHAR_STRING): Call char_string if C is greater than | |
| 766 MAX_3_BYTE_CHAR. | |
| 767 (CHAR_STRING_ADVANCE): Likewise. | |
| 768 (STRING_CHAR): Call string_char instead of | |
| 769 string_char_with_unification. | |
| 770 (STRING_CHAR_AND_LENGTH): Likewise. | |
| 771 (STRING_CHAR_ADVANCE): Likewise. | |
| 772 | |
| 773 2002-10-09 Dave Love <fx@gnu.org> | |
| 774 | |
| 775 * coding.c (decode_coding_utf_8): Treat surrogates as invalid. | |
| 776 | |
| 777 2002-10-07 Kenichi Handa <handa@m17n.org> | |
| 778 | |
| 779 * keymap.c (push_key_description): Pay attention to | |
| 780 force_multibyte. | |
| 781 | |
| 782 * regex.c (re_search_2): Fix for the case of unibyte buffer. | |
| 783 | |
| 784 2002-10-06 Dave Love <fx@gnu.org> | |
| 785 | |
| 786 * charset.c (define_charset_internal): Rename `supprementary'. | |
| 787 | |
| 788 * Makefile.in (lisp, shortlisp): Remove latin-N. | |
| 789 | |
| 790 2002-10-05 Dave Love <fx@gnu.org> | |
| 791 | |
| 792 * xfns.c (x_window, x_window): Use use_xim. | |
| 793 | |
| 794 * xterm.c (use_xim): Initialize. | |
| 795 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. | |
| 796 (x_term_init): Maybe set use_xim. | |
| 797 | |
| 798 * xterm.h (use_xim) [HAVE_X_I18N]: Declare. | |
| 799 | |
| 800 2002-10-01 Kenichi Handa <handa@m17n.org> | |
| 801 | |
| 802 * search.c (search_buffer): Fix case-fold-search of multibyte | |
| 803 characters. | |
| 804 (boyer_moore): Rename the last argument to char_high_bits. | |
| 805 | |
| 806 2002-09-27 Kenichi Handa <handa@etl.go.jp> | |
| 807 | |
| 808 * xdisp.c (display_string): Fix for the case of zero width glyph. | |
| 809 | |
| 810 * xfns.c (x_set_font): Change the error message of the case that | |
| 811 x_new_fontset returns Qt. | |
| 812 | |
| 813 * xfaces.c (set_lface_from_font_name): Reject the default fontset. | |
| 814 (Finternal_set_lisp_face_attribute): Use signal_error for the | |
| 815 error of invalid fontset. | |
| 816 | |
| 817 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default | |
| 818 fontset, return Qt. | |
| 819 | |
| 820 2002-09-19 Kenichi Handa <handa@etl.go.jp> | |
| 821 | |
| 822 * regex.c (re_search_2): Fix previous change. | |
| 823 | |
| 824 2002-09-18 Kenichi Handa <handa@etl.go.jp> | |
| 825 | |
| 826 * syntax.c (skip_syntaxes): Fix previous change. | |
| 827 | |
| 828 2002-09-13 Kenichi Handa <handa@etl.go.jp> | |
| 829 | |
| 830 * syntax.c (skip_chars): Fix previous change. | |
| 831 (skip_syntaxes): Fix previous change. | |
| 832 | |
| 833 2002-09-06 Dave Love <fx@gnu.org> | |
| 834 | |
| 835 * config.in: Restore it. | |
| 836 | |
| 837 2002-09-05 Dave Love <fx@gnu.org> | |
| 838 | |
| 839 * config.in: Removed (now auto-generated). | |
| 840 | |
| 841 * s/usg5-4.h: Fix last change. | |
| 842 | |
| 843 * unexelf.c (unexec): Make .got handling not SGI-specific. | |
| 844 | |
| 845 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix. | |
| 846 | |
| 847 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'. | |
| 848 | |
| 849 * keyboard.c (read_key_sequence): Fix type error. | |
| 850 | |
| 851 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix | |
| 852 type error. | |
| 853 | |
| 854 * fontset.c (fontset_add): Return Lisp_Object. | |
| 855 | |
| 856 2002-09-03 Dave Love <fx@gnu.org> | |
| 857 | |
| 858 * charset.h (charset_ordered_list_tick): Declare extern. | |
| 859 | |
| 860 2002-09-03 Kenichi Handa <handa@etl.go.jp> | |
| 861 | |
| 862 The following changes (and some of 2002-08-20 changes of mine) are | |
| 863 for handling syntax, category, and case conversion for unibyte | |
| 864 characters by converting them to multibyte on the fly. With these | |
| 865 changes, we don't have to setup syntax and case tables for unibyte | |
| 866 characters in each language environment. | |
| 867 | |
| 868 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to | |
| 869 multibyte if necessary. | |
| 870 | |
| 871 * bytecode.c (Fbyte_code): Likewise. | |
| 872 | |
| 873 * character.h (LEADING_CODE_LATIN_1_MIN) | |
| 874 (LEADING_CODE_LATIN_1_MAX): New macros. | |
| 875 (unibyte_to_multibyte_table): Extern it. | |
| 876 (unibyte_char_to_multibyte): New macro. | |
| 877 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table. | |
| 878 (CHAR_LEADING_CODE): New macro. | |
| 879 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro. | |
| 880 | |
| 881 * character.c (unibyte_to_multibyte_table): New variable. | |
| 882 (unibyte_char_to_multibyte): Move to character.h and defined as | |
| 883 macro. | |
| 884 (multibyte_char_to_unibyte): If C is an eight-bit character, | |
| 885 convert it to the corresponding byte value. | |
| 886 | |
| 887 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is | |
| 888 not 1, singals an error. Update the elements of | |
| 889 unibyte_to_multibyte_table. | |
| 890 (init_charset_once): Initialize unibyte_to_multibyte_table. | |
| 891 (syms_of_charset): Define the charset `iso-8859-1'. | |
| 892 | |
| 893 * casefiddle.c (casify_object): Fix previous change. | |
| 894 | |
| 895 * cmds.c (internal_self_insert): In a multibyte buffer, insert C | |
| 896 as is without converting it to unibyte. In a unibyte buffer, | |
| 897 convert C to multibyte before checking the syntax. | |
| 898 | |
| 899 * lisp.h (unibyte_char_to_multibyte): Extern deleted. | |
| 900 | |
| 901 * minibuf.c (Fminibuffer_complete_word): Use the macro | |
| 902 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE. | |
| 903 | |
| 904 * regex.h (struct re_pattern_buffer): New member target_multibyte. | |
| 905 | |
| 906 * regex.c (RE_TARGET_MULTIBYTE_P): New macro. | |
| 907 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If | |
| 908 that is zero, convert an eight-bit char to multibyte. | |
| 909 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for | |
| 910 non-emacs case. | |
| 911 (PATFETCH): Convert an eight-bit char to multibyte. | |
| 912 (HANDLE_UNIBYTE_RANGE): New macro. | |
| 913 (regex_compile): Setup the compiled pattern for multibyte chars | |
| 914 even if the given regex string is unibyte. Use PATFETCH_RAW | |
| 915 instead of PATFETCH in many places. To handle `charset' | |
| 916 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap | |
| 917 only for ASCII chars. | |
| 918 (analyse_first) <exactn>: Simplified because the compiled pattern | |
| 919 is multibyte. | |
| 920 <charset_not>: Setup fastmap from bitmap only for ASCII chars. | |
| 921 <charset>: Use CHAR_LEADING_CODE to get leading codes. | |
| 922 <categoryspec>: If multibyte, setup fastmap only for ASCII chars | |
| 923 here. | |
| 924 (re_compile_fastmap) [emacs]: Call analyse_first with the arg | |
| 925 multibyte always 1. | |
| 926 (re_search_2) In emacs, set the locale variable multibyte to 1, | |
| 927 otherwise to 0. New local variable target_multibyte. Check it | |
| 928 to decide the multibyteness of STR1 and STR2. If | |
| 929 target_multibyte is zero, convert unibyte chars to multibyte | |
| 930 before translating and checking fastmap. | |
| 931 (TARGET_CHAR_AND_LENGTH): New macro. | |
| 932 (re_match_2_internal): In emacs, set the locale variable multibyte | |
| 933 to 1, otherwise to 0. New local variable target_multibyte. Check | |
| 934 it to decide the multibyteness of STR1 and STR2. Use | |
| 935 TARGET_CHAR_AND_LENGTH to fetch a character from D. | |
| 936 <charset, charset_not>: If multibyte is nonzero, check fastmap | |
| 937 only for ASCII chars. Call bcmp_translate with | |
| 938 target_multibyte, not with multibyte. | |
| 939 <begline>: Declare the local variable C as `unsigned'. | |
| 940 (bcmp_translate): Change the last arg name to target_multibyte. | |
| 941 | |
| 942 * search.c (compile_pattern_1): Don't adjust the multibyteness of | |
| 943 the regexp pattern and the matching target. Set cp->buf.multibyte | |
| 944 to the multibyteness of the regexp pattern. Set | |
| 945 cp->but.target_multibyte to the multibyteness of the matching | |
| 946 target. | |
| 947 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of | |
| 948 FETCH_STRING_CHAR_ADVANCE. | |
| 949 (Freplace_match): Convert unibyte chars to multibyte. | |
| 950 | |
| 951 * syntax.c (char_quoted): Use FETCH_CHAR_AS_MULTIBYTE to convert | |
| 952 unibyte chars to multibyte. | |
| 953 (back_comment): Likewise. | |
| 954 (scan_words): Likewise. | |
| 955 (skip_chars): The arg syntaxp is deleted, and the code for | |
| 956 handling syntaxes is moved to skip_syntaxes. Callers changed. | |
| 957 Fix the case that the multibyteness of STRING and the current | |
| 958 buffer doesn't match. | |
| 959 (skip_syntaxes): New function. | |
| 960 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by | |
| 961 SINGLE_BYTE_CHAR_P. | |
| 962 (Fforward_comment): Use FETCH_CHAR_AS_MULTIBYTE to convert unibyte | |
| 963 chars to multibyte. | |
| 964 (scan_lists): Likewise. | |
| 965 (Fbackward_prefix_chars): Likewise. | |
| 966 (scan_sexps_forward): Likewise. | |
| 967 | |
| 968 2002-08-23 Kenichi Handa <handa@etl.go.jp> | |
| 969 | |
| 970 * xfaces.c (QCfontset): New variable. | |
| 971 (LFACE_FONTSET): New macro. | |
| 972 (check_lface_attrs): Check also LFACE_FONTSET_INDEX. | |
| 973 (set_lface_from_font_name): Setup LFACE_FONTSET (lface). | |
| 974 (Finternal_set_lisp_face_attribute): Handle QCfontset. | |
| 975 (Finternal_get_lisp_face_attribute): Likewise. | |
| 976 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX, | |
| 977 check also LFACE_FONTSET_INDEX. | |
| 978 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not | |
| 979 attrs[LFACE_FONT_INDEX]. | |
| 980 (syms_of_xfaces): Intern and staticpro QCfontset. | |
| 981 | |
| 982 * dispextern.h (enum lface_attribute_index): New member | |
| 983 LFACE_FONTSET_INDEX. | |
| 984 | |
| 985 * fns.c (base64_encode_1): Handle eight-bit chars correctly. | |
| 986 | |
| 987 2002-08-21 Kenichi Handa <handa@etl.go.jp> | |
| 988 | |
| 989 * coding.c (coding_set_destination): Fix coding->destination for | |
| 990 the case converting a region. | |
| 991 (encode_coding_utf_8): Encode eight-bit chars as single byte. | |
| 992 (encode_coding_object): Fix coding->dst_pos and | |
| 993 coding->dst_pos_byte for the case converting a region. | |
| 994 | |
| 995 * insdel.c (insert_from_gap): Make it work even if PT != GTP. | |
| 996 | |
| 997 * character.h (BYTE8_STRING): New macro. | |
| 998 | |
| 999 * fns.c (base64_decode_1): Insert eight-bit chars correctly. | |
| 1000 | |
| 1001 2002-08-20 Kenichi Handa <handa@etl.go.jp> | |
| 1002 | |
| 1003 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit | |
| 1004 characters by octal form. | |
| 1005 | |
| 1006 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. | |
| 1007 | |
| 1008 * buffer.h (_fetch_multibyte_char_len): Extern deleted. | |
| 1009 (FETCH_MULTIBYTE_CHAR): Don't use _fetch_multibyte_char_len. | |
| 1010 (BUF_FETCH_MULTIBYTE_CHAR): Likewise. | |
| 1011 (FETCH_CHAR_AS_MULTIBYTE): New macro. | |
| 1012 | |
| 1013 * casetab.c (set_canon, set_identity, shuffle): Simplified. | |
| 1014 | |
| 1015 * casefiddle.c (casify_object): Simplified. Handle the case that | |
| 1016 the case conversion change the byte length. | |
| 1017 (casify_region): Likewise | |
| 1018 | |
| 1019 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New | |
| 1020 macros. | |
| 1021 | |
| 1022 * character.c (_fetch_multibyte_char_len): This variable deleted. | |
| 1023 (syms_of_character): Setup Vprintable_chars. | |
| 1024 | |
| 1025 * editfns.c (Fchar_equal): Fix for the unibyte case. | |
| 1026 (Finsert_byte): New function. | |
| 1027 (syms_of_editfns): Defsubr it. | |
| 1028 | |
| 1029 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead | |
| 1030 of direct code 0x3ffff. | |
| 1031 | |
| 1032 * search.c (Freplace_match): Fix for the unibyte case. | |
| 1033 | |
| 1034 2002-08-19 Kenichi Handa <handa@etl.go.jp> | |
| 1035 | |
| 1036 * lread.c (safe_to_load_p): Fix the logic. | |
| 1037 | |
| 1038 * syntax.c (scan_words): Don't treat characters belonging to | |
| 1039 different scripts as constituting a word. | |
| 1040 | |
| 1041 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1042 | |
| 1043 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not | |
| 1044 script. | |
| 1045 | |
| 1046 * emacs.c (main): In the case of --unibyte, instead of aborting on | |
| 1047 finding non-empty buffer, make it unibyte. | |
| 1048 | |
| 1049 2002-08-18 Kenichi Handa <handa@etl.go.jp> | |
| 1050 | |
| 1051 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' | |
| 1052 to create a fontset. | |
| 1053 | |
| 1054 2002-08-18 Dave Love <fx@gnu.org> | |
| 1055 | |
| 1056 * character.c (Funibyte_char_to_multibyte): Doc fix. | |
| 1057 | |
| 1058 * xfns.c [HAVE_STDLIB_H]: Fix last change. | |
| 1059 | |
| 1060 2002-08-15 Kenichi Handa <handa@etl.go.jp> | |
| 1061 | |
| 1062 * fontset.c (fontset_add): Make the type `int'. | |
| 1063 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. | |
| 1064 | |
| 1065 * character.c (unibyte_char_to_multibyte): Refer to | |
| 1066 charset_unibyte, not charset_primary. | |
| 1067 (multibyte_char_to_unibyte): Likewise. | |
| 1068 (Funibyte_char_to_multibyte): Likewise. | |
| 1069 | |
| 1070 * charset.h: (charset_unibyte): Extern it instead of | |
| 1071 charset_primary. | |
| 1072 | |
| 1073 * charset.c (charset_unibyte): Renamed from charset_primary. | |
| 1074 (Funibyte_charset): Renamed from Fprimary_charset. | |
| 1075 (Fset_unibyte_charset): Renamed from Fset_primary_charset. | |
| 1076 (syms_of_charset): Adjusted for the above changes. | |
| 1077 | |
| 1078 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
| 1079 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
| 1080 it->multibyte_p is zero. | |
| 1081 | |
| 1082 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): | |
| 1083 Extern deleted. | |
| 1084 | |
| 1085 2002-08-08 Kenichi Handa <handa@etl.go.jp> | |
| 1086 | |
| 1087 * coding.c (Fdefine_coding_system_internal): Fix category setting | |
| 1088 for a coding system of type iso-2022. | |
| 1089 | |
| 1090 2002-08-02 Kenichi Handa <handa@etl.go.jp> | |
| 1091 | |
| 1092 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET | |
| 1093 -1. | |
| 1094 | |
| 1095 2002-08-01 Kenichi Handa <handa@etl.go.jp> | |
| 1096 | |
| 1097 * syntax.c (Vnext_word_boundary_function_table): New variable. | |
| 1098 (syms_of_syntax): Declare it as a Lisp variable. | |
| 1099 (scan_words): Call functions in Vnext_word_boundary_function_table | |
| 1100 if any. | |
| 1101 | |
| 1102 * xterm.c (x_load_font): Initialize fontp->fontset to -1. | |
| 1103 | |
| 1104 * fontset.c (fs_load_font): If fontp->charset is not negative, | |
| 1105 return fontp without setting its members. | |
| 1106 | |
| 1107 2002-07-31 Dave Love <fx@gnu.org> | |
| 1108 | |
| 1109 * config.in: Generated with autoheader. | |
| 1110 | |
| 1111 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). | |
| 1112 | |
| 1113 * m/sparc.h (HAVE_ALLOCA): Delete. | |
| 1114 | |
| 1115 * s/irix6-5.h: Don't include strings.h. | |
| 1116 (bcopy, bzero, bcmp): Don't undef. | |
| 1117 | |
| 1118 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef. | |
| 1119 | |
| 1120 * s/usg5-4.h (NO_SIOCTL_H): Don't define. | |
| 1121 (TIOCSIGSEND): Don't test IRIX6. | |
| 1122 (bcopy, bzero, bcmp): Define conditionally. | |
| 1123 | |
| 1124 2002-07-31 Kenichi Handa <handa@etl.go.jp> | |
| 1125 | |
| 1126 * buffer.c (Qas, Qmake, Qto): New variables. | |
| 1127 (Fset_buffer_multibyte): New optional arg METHOD. Caller changed. | |
| 1128 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. | |
| 1129 | |
| 1130 * callproc.c (Fcall_process): Don't call insert_1_both directly if | |
| 1131 we are inserting a process output into a multibyte buffer. | |
| 1132 | |
| 1133 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call | |
| 1134 multibyte_char_to_unibyte. | |
| 1135 | |
| 1136 * character.c (Funibyte_char_to_multibyte): If C can't be decoded | |
| 1137 by the primary charset, make it eight-bit char. | |
| 1138 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8. | |
| 1139 | |
| 1140 * charset.c: (charset_eight_bit, Qeight_bit_control): New | |
| 1141 variables. | |
| 1142 (charset_8_bit__control, charset_8_bit_graphic, | |
| 1143 Qeight_bit_control, Qeight_bit_graphic): These variables deleted. | |
| 1144 (define_charset_internal): New function. | |
| 1145 (syms_of_charset): Call define_charset_internal for pre-defined | |
| 1146 charsets. | |
| 1147 | |
| 1148 * charset.h (charset_8_bit): Extern it. | |
| 1149 | |
| 1150 * coding.c (make_conversion_work_buffer): Adjusted for the change | |
| 1151 of Fset_buffer_multibyte. | |
| 1152 (encode_coding_raw_text): Increment p0 in the loop. | |
| 1153 | |
| 1154 * lisp.h (Fset_buffer_multibyte): Prototype adjusted. | |
| 1155 | |
| 1156 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjusted | |
| 1157 for the change of Fset_buffer_multibyte. | |
| 1158 | |
| 1159 * fns.c (Fstring_to_multibyte): New function. | |
| 1160 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. | |
| 1161 | |
| 1162 2002-07-30 Dave Love <fx@gnu.org> | |
| 1163 | |
| 1164 * xfns.c (x_put_x_image): Declare args. | |
| 1165 | |
| 1166 * xfaces.c (font_name_registry, choose_face_font): Delete unused | |
| 1167 vars. | |
| 1168 (try_font_list): Declare an arg. | |
| 1169 | |
| 1170 * xdisp.c (message2_nolog, set_message): Declare an arg. | |
| 1171 | |
| 1172 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm. | |
| 1173 | |
| 1174 * syntax.c (scan_sexps_forward): Declare an arg. | |
| 1175 | |
| 1176 * scroll.c (calculate_scrolling, calculate_direct_scrolling): | |
| 1177 Declare an arg. | |
| 1178 | |
| 1179 * lisp.h (Fnew_fontset): Declare. | |
| 1180 | |
| 1181 * keymap.c (push_key_description): Call CHARACTERP correctly. | |
| 1182 | |
| 1183 * fontset.c (fontset_add): Declare args. Call make_number | |
| 1184 correctly. | |
| 1185 (face_for_char): Delete unused vars. | |
| 1186 (Fset_fontset_font): Doc fix. Delete unused vars. | |
| 1187 | |
| 1188 * doc.c (Fsubstitute_command_keys): Delete unused vars. | |
| 1189 | |
| 1190 * composite.c (update_compositions): Declare arg. | |
| 1191 | |
| 1192 * cm.c (calccost, cmgoto): Declare args. | |
| 1193 | |
| 1194 * charset.c: Remove `emacs' conditional. Doc fixes. | |
| 1195 (map_char_table_for_charset): Declare. | |
| 1196 | |
| 1197 * character.c (syms_of_character) <translation-table-vector>: Doc | |
| 1198 fix. | |
| 1199 | |
| 1200 * ccl.c: Remove `emacs' conditional. Include hash table stuff | |
| 1201 from trunk. | |
| 1202 | |
| 1203 2002-07-26 Kenichi Handa <handa@etl.go.jp> | |
| 1204 | |
| 1205 The following changes are to allow specifying multiple font | |
| 1206 patterns for a character range (specified by script or charset). | |
| 1207 | |
| 1208 * Makefile.in (abbrev.o): Depend on syntax.h. | |
| 1209 (xfaces.o): Depend on charset.h. | |
| 1210 | |
| 1211 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not | |
| 1212 SINGLE_BYTE_CHAR_P. | |
| 1213 | |
| 1214 * ccl.c (Fccl_execute_on_string): Add `const' to local variables. | |
| 1215 | |
| 1216 * character.h (Vchar_script_table): Extern it. | |
| 1217 | |
| 1218 * character.c (Vscript_alist): This variable deleted. | |
| 1219 (Vchar_script_table, Qchar_script_table): New variable. | |
| 1220 (syms_of_character): Declare Vchar_script_table as a lisp variable | |
| 1221 and initialize it. | |
| 1222 | |
| 1223 * chartab.c (Fmake_char_table): Doc fixed. If PURPOSE doesn't | |
| 1224 have property char-table-extra-slots, make no extra slot. | |
| 1225 | |
| 1226 * dispextern.h (struct face): Member `charset' deleted. | |
| 1227 (FACE_SUITABLE_FOR_CHAR_P): Use ASCII_CHAR_P, not | |
| 1228 SINGLE_BYTE_CHAR_P. | |
| 1229 (FACE_FOR_CHAR): Likewise. | |
| 1230 (choose_face_font, lookup_non_ascii_face, font_name_registry): Add | |
| 1231 prototypes | |
| 1232 (lookup_face, lookup_named_face, lookup_derived_face): Prototype | |
| 1233 fixed. | |
| 1234 (generate_ascii_font_name): Renamed from generate_ascii_font. | |
| 1235 | |
| 1236 * fontset.h (get_font_repertory_func): New prototype. | |
| 1237 (make_fontset_for_ascii_face, fs_load_font): Prototypes fixed. | |
| 1238 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii. | |
| 1239 | |
| 1240 * fontset.c (Qprepend, Qappend): New variables. | |
| 1241 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): These macros deleted. | |
| 1242 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros. | |
| 1243 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset. | |
| 1244 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros. | |
| 1245 (fontset_ref_and_range, fontset_add, reorder_font_vector) | |
| 1246 (load_font_get_repertory): New functions. | |
| 1247 (fontset_set): This function deleted. | |
| 1248 (fontset_face): New arg FACE. Return face ID, not face. | |
| 1249 Completely re-written to handle new fontset structure. Caller | |
| 1250 changed. | |
| 1251 (free_face_fontset): Use ASET istead of AREF (X) = Y. | |
| 1252 (face_for_char): Don't call lookup_face. | |
| 1253 (make_fontset_for_ascii_face): New arg FACE. | |
| 1254 (fs_load_font): New arg CHARSET_ID. Don't check | |
| 1255 Vfont_encoding_alist here. | |
| 1256 (find_font_encoding): New function. | |
| 1257 (list_fontsets): Use STRINGP, not ! NILP. | |
| 1258 (accumulate_script_ranges): New function. | |
| 1259 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely | |
| 1260 re-written to handle new fontset structure. | |
| 1261 (Ffontset_font): Return a copy of element. | |
| 1262 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix | |
| 1263 docstring of font-encoding-alist. | |
| 1264 | |
| 1265 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0). | |
| 1266 (Fset_fotset_font): Fix arguments to 5. | |
| 1267 | |
| 1268 * msdos.c (XMenuActivate): Adjuted for the change of | |
| 1269 lookup_derived_face. | |
| 1270 | |
| 1271 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line): | |
| 1272 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1273 (highlight_trailing_whitespace): Adjusted for the change of | |
| 1274 lookup_named_face. | |
| 1275 | |
| 1276 * xfaces.c: Include charset.h. | |
| 1277 (load_face_font): Argument C deleted. Caller changed. | |
| 1278 (generate_ascii_font_name): Renamed from generate_ascii_font. | |
| 1279 (font_name_registry): New function. | |
| 1280 (cache_face): Store ascii faces before non-ascii faces in buckets. | |
| 1281 (lookup_face): Arguments C and BASE_FACE deleted. Caller changed. | |
| 1282 Lookup only ascii faces. | |
| 1283 (lookup_non_ascii_face): New function. | |
| 1284 (lookup_named_face): Argument C deleted. Caller changed. | |
| 1285 (lookup_derived_face): Argument C deleted. Caller changed. | |
| 1286 (try_font_list): New arg PATTERN. Caller changed. If PATTERN is | |
| 1287 a string, just call font_list with it. | |
| 1288 (choose_face_font): Arguments FACE and C deleted. New arg | |
| 1289 FONT_SPEC. Caller changed. | |
| 1290 (realize_face): Arguments C and BASE_FACE deleted. Caller | |
| 1291 (realize_x_face): Likewise. | |
| 1292 (realize_non_ascii_face): New function. | |
| 1293 (realize_x_face): Call load_face_font here. | |
| 1294 (realize_tty_face): Argument C deleted. Caller changed. | |
| 1295 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to | |
| 1296 get a face ID. | |
| 1297 (dump_realized_face): Don't print charset of FACE. | |
| 1298 | |
| 1299 * xfns.c (x_set_font): Always call x_new_fontset and | |
| 1300 store_frame_parameter. | |
| 1301 (Fx_create_frame): Call x_new_fontset, not x_new_font. | |
| 1302 (syms_of_xfns): Set get_font_repertory_func to | |
| 1303 x_get_font_repertory. | |
| 1304 | |
| 1305 * xterm.h (x_get_font_repertory): Extern it. | |
| 1306 | |
| 1307 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not | |
| 1308 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when | |
| 1309 it->multibyte_p is zero. | |
| 1310 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. | |
| 1311 (x_new_fontset): If FONTSETNAME doesn't match any existing | |
| 1312 fontsets, create a new one. | |
| 1313 (x_get_font_repertory): New function. | |
| 1314 | |
| 1315 2002-07-25 Kenichi Handa <handa@etl.go.jp> | |
| 1316 | |
| 1317 * coding.c (Ffind_coding_systems_region_internal): Detect an | |
| 1318 ASCII only string correctly. | |
| 1319 | |
| 1320 * lread.c (Fload): Don't load with Qload_force_doc_strings t if | |
| 1321 version is 0. | |
| 1322 | |
| 1323 2002-07-24 Kenichi Handa <handa@etl.go.jp> | |
| 1324 | |
| 1325 * lread.c: Include "coding.h". | |
| 1326 (Qget_emacs_mule_file_char, Qload_force_doc_strings, | |
| 1327 load_each_byte, unread_char): New variables. | |
| 1328 (readchar_backlog): This variable deleted. | |
| 1329 (readchar): Return a character unless load_each_byte is nonzero. | |
| 1330 Handle the case that readcharfun is Qget_emacs_mule_file_char or a | |
| 1331 cons. If unread_char is not -1, simply return it. | |
| 1332 (unreadchar): Handle the case that readcharfun is | |
| 1333 Qget_emacs_mule_file_char or a cons. Set unread_char if | |
| 1334 necessary. | |
| 1335 (read_multibyte): This function deleted. | |
| 1336 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string) | |
| 1337 (read_emacs_mule_char): New functions. | |
| 1338 (Fload): Even if the file doesn't have the extention ".elc", if | |
| 1339 safe_to_load_p returns a positive version number, assume that the | |
| 1340 file contains bytecompiled code. If the version is less than 22, | |
| 1341 load the file while decoding multibyte sequences by emacs-mule. | |
| 1342 (readevalloop): Don't use readchar_backlog. | |
| 1343 (Fread): Likewise. Pay attention to the case that STREAM is a | |
| 1344 cons. | |
| 1345 (Fread_from_string): Pay attention to the case that STREAM is a | |
| 1346 cons. | |
| 1347 (read_escape): The arg BYTEREP deleted. | |
| 1348 (read1): Set load_each_byte to 1 temporarily while handling | |
| 1349 #@NUMBER. Don't call read_multibyte. | |
| 1350 (read_vector): Call Fread with a cons. If readcharfun is | |
| 1351 Qget_emacs_mule_file_char, decode the read string by emacs-mule. | |
| 1352 (read_list): If doc_reference is 2, make the cdr part string as | |
| 1353 unibyte. | |
| 1354 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char | |
| 1355 and Qload_force_doc_strings. | |
| 1356 | |
| 1357 2002-07-23 Kenichi Handa <handa@etl.go.jp> | |
| 1358 | |
| 1359 * xdisp.c (face_before_or_after_it_pos): Call | |
| 1360 FETCH_MULTIBYTE_CHAR with byte postion, not char position. | |
| 1361 | |
| 1362 2002-07-22 Kenichi Handa <handa@etl.go.jp> | |
| 1363 | |
| 1364 * character.h (TRAILING_CODE_P): New macro. | |
| 1365 (MAYBE_UNIFY_CHAR): Adjusted for the change of Funify_charset. | |
| 1366 (string_char_with_unification): Fix prototype. | |
| 1367 (Vscript_alist): Extern it. | |
| 1368 | |
| 1369 * character.c (Vscript_alist): New variable. | |
| 1370 (string_char_with_unification): Add `const' to local variables. | |
| 1371 (str_as_unibyte): Likewise. | |
| 1372 (string_escape_byte8): Likewise. | |
| 1373 (syms_of_character): Declare script-alist as a Lisp variable. | |
| 1374 | |
| 1375 * charset.h (Vcharset_ordered_list): Extern it. | |
| 1376 (charset_ordered_list_tick): Extern it. | |
| 1377 (EMACS_MULE_LEADING_CODE_PRIVATE_11) | |
| 1378 (EMACS_MULE_LEADING_CODE_PRIVATE_12) | |
| 1379 (EMACS_MULE_LEADING_CODE_PRIVATE_21) | |
| 1380 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros | |
| 1381 (Funify_charset): Adjusted for the change of Funify_charset. | |
| 1382 | |
| 1383 * charset.c (charset_ordered_list_tick): New variable. | |
| 1384 (Fdefine_charset_internal): Increment charset_ordered_list_tick. | |
| 1385 (Funify_charset): New optional arg DEUNIFY. If it is non-nil, | |
| 1386 deunify intead of unify a charset. | |
| 1387 (string_xstring_p): Add `const' to local variables. | |
| 1388 (find_charsets_in_text): Add `const' to arguemnts and local | |
| 1389 variables. | |
| 1390 (encode_char): Adjusted for the change of Funify_charset. Fix | |
| 1391 detecting of invalid code. | |
| 1392 (Fset_charset_priority): Increment charset_ordered_list_tick. | |
| 1393 (Fmap_charset_chars): Fix handling of default value for FROM_CODE | |
| 1394 and TO_CODE. | |
| 1395 | |
| 1396 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12) | |
| 1397 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Macros | |
| 1398 deleted. Callers changed to use | |
| 1399 EMACS_MULE_LEADING_CODE_PRIVATE_11, etc. | |
| 1400 (decode_coding_ccl): Add `const' to local variables. | |
| 1401 (consume_chars): Likewise. | |
| 1402 (Ffind_coding_systems_region_internal): Likewise. | |
| 1403 (Fcheck_coding_systems_region): Likewise. | |
| 1404 | |
| 1405 * print.c (print_object): Use octal form for printing the | |
| 1406 contents of a bool vector. | |
| 1407 | |
| 1408 2002-07-18 Dave Love <fx@gnu.org> | |
| 1409 | |
| 1410 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. | |
| 1411 <version == 20>: Refuse to load. | |
| 1412 | |
| 1413 2002-07-17 Dave Love <fx@gnu.org> | |
| 1414 | |
| 1415 * fns.c: Move coding.h. | |
| 1416 (Qcodeset, Qdays, Qmonths): New. | |
| 1417 (concat): Use CHARACTERP instead of INTERGERP. | |
| 1418 (Flocale_codeset): Deleted. | |
| 1419 (Flanginfo): New function. | |
| 1420 (syms_of_fns): Changed accordingly. | |
| 1421 | |
| 1422 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. | |
| 1423 | |
| 1424 2002-07-16 Dave Love <fx@gnu.org> | |
| 1425 | |
| 1426 * casetab.c (init_casetab_once, init_casetab_once): Fix | |
| 1427 CHAR_TABLE_SET call. | |
| 1428 | |
| 1429 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. | |
| 1430 | |
| 1431 * character.c (syms_of_character): Fix CHAR_TABLE_SET call. | |
| 1432 | |
| 1433 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types. | |
| 1434 (load_charset_map, Fdeclare_equiv_charset, Fencode_char) | |
| 1435 (Fset_charset_priority, syms_of_charset): Convert Lisp types. | |
| 1436 | |
| 1437 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result. | |
| 1438 | |
| 1439 * coding.c (ENCODE_DESIGNATION, decode_eol) | |
| 1440 (make_conversion_work_buffer, code_conversion_restore) | |
| 1441 (Fdefine_coding_system_internal): Convert Lisp types. | |
| 1442 (code_conversion_restore): Use EQ, not ==. | |
| 1443 (Fencode_coding_string): Fix code_convert_string call. | |
| 1444 | |
| 1445 * coding.h (code_convert_region): Fix prototype. | |
| 1446 | |
| 1447 * dispextern.h (redraw_frame, redraw_garbaged_frames): Removed. | |
| 1448 | |
| 1449 * fontset.c (fontset_ref, fontset_set, fs_load_font) | |
| 1450 (Ffontset_info): Convert Lisp types. | |
| 1451 | |
| 1452 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number. | |
| 1453 | |
| 1454 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates. | |
| 1455 | |
| 1456 * xdisp.c (display_mode_element): Fix call of Fset_text_properties. | |
| 1457 | |
| 1458 * chartab.c: Include "...h", not <...h> in some cases. | |
| 1459 | |
| 1460 * callproc.c (Fcall_process): Remove unused variables. | |
| 1461 | |
| 1462 2002-07-12 Dave Love <fx@gnu.org> | |
| 1463 | |
| 1464 * coding.c (Fset_coding_system_priority): Allow null arg list. | |
| 1465 | |
| 1466 2002-07-03 Dave Love <fx@gnu.org> | |
| 1467 | |
| 1468 * minibuf.c (Fminibuffer_complete_word): Remove unused var. | |
| 1469 (Fself_insert_and_exit): Use CHARACTERP. | |
| 1470 | |
| 1471 * callproc.c (Fcall_process): Remove unused vars. | |
| 1472 | |
| 1473 * xterm.c (XTread_socket): Add extra dead keysyms. | |
| 1474 | |
| 1475 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP. | |
| 1476 | |
| 1477 * dispextern.h: Remove prototypes for redraw_frame, | |
| 1478 redraw_garbaged_frames. | |
| 1479 | |
| 1480 * cmds.c (Fself_insert_command): Use CHARACTERP. | |
| 1481 | |
| 1482 * chartab.c (make_sub_char_table): Remove unused var. | |
| 1483 (Fset_char_table_default, Fmap_char_table): Doc fix. | |
| 1484 | |
| 1485 * keymap.c (access_keymap): Remove generic char code. | |
| 1486 (push_key_description): Use CHARACTERP. | |
| 1487 | |
| 1488 2002-07-01 Dave Love <fx@gnu.org> | |
| 1489 | |
| 1490 * charset.c: Doc fixes. | |
| 1491 (Funify_charset): Extra checking. | |
| 1492 | |
| 1493 2002-06-24 Dave Love <fx@gnu.org> | |
| 1494 | |
| 1495 * lread.c: Remove some unused variables. | |
| 1496 (safe_to_load_p): If safe, return the magic number version byte. | |
| 1497 (Fload): Maybe use load-with-code-conversion. | |
| 1498 | |
| 1499 2002-06-12 Kenichi Handa <handa@etl.go.jp> | |
| 1500 | |
| 1501 * category.c (Fmodify_category_entry): Don't modify the contents | |
| 1502 of category_set for characters out of the range. Avoid | |
| 1503 unnecessary modification. | |
| 1504 | |
| 1505 * character.h (MAYBE_UNIFY_CHAR): Adjusted for the change of | |
| 1506 Vchar_unify_table. The default value of the table is now nil. | |
| 1507 | |
| 1508 * character.c (syms_of_character): Setup Vchar_width_table for | |
| 1509 eight-bit-control and raw-byte chars. | |
| 1510 | |
| 1511 * charset.h (enum define_charset_arg_index): Delete | |
| 1512 charset_arg_parents and add charset_arg_subset and | |
| 1513 charset_arg_superset. | |
| 1514 (enum charset_attr_index): Delete charset_parents and add | |
| 1515 charset_subset and charset_superset. | |
| 1516 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add | |
| 1517 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. | |
| 1518 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Macros deleted. | |
| 1519 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET) | |
| 1520 (CHARSET_SUPERSET): New macros. | |
| 1521 (charset_work): Extern it. | |
| 1522 (ENCODE_CHAR): Use charset_work. | |
| 1523 (CHAR_CHARSET_P): Adjusted for the change of encoder format. | |
| 1524 (map_charset_chars): Extern it. | |
| 1525 | |
| 1526 * charset.c (load_charset_map): Set the default value of encoder | |
| 1527 and deunifier char-tables to nil. | |
| 1528 (map_charset_chars): Argument changed. Callers changed. Use | |
| 1529 map_char_table_for_charset instead of map_char_table. | |
| 1530 (Fmap_charset_chars): New optional args from_code and to_code. | |
| 1531 (Fdefine_charset_internal): Adjusted for the change of | |
| 1532 `define-charset' (:parents -> :subset or :superset). | |
| 1533 (charset_work): New variable. | |
| 1534 (encode_char): Adjusted for the change of | |
| 1535 Fdefine_charset_internal. | |
| 1536 (syms_of_charset): Likewise. | |
| 1537 (Ffind_charset_string): Setup the vector `charsets' correctly. | |
| 1538 | |
| 1539 * chartab.c (sub_char_table_ref_and_range): New arg defalt. Fix | |
| 1540 the previous change. | |
| 1541 (char_table_ref_and_range): Adjusted for the above change. | |
| 1542 (map_sub_char_table_for_charset): New function. | |
| 1543 (map_char_table_for_charset): New function. | |
| 1544 | |
| 1545 * keymap.c (describe_vector): Handle a char-table directly here. | |
| 1546 (describe_char_table): Deleted. | |
| 1547 | |
| 1548 * lisp.h (map_charset_chars): Deleted. | |
| 1549 | |
| 1550 2002-06-11 Dave Love <fx@gnu.org> | |
| 1551 | |
| 1552 * fns.c (count_combining): Comment out (unused). | |
| 1553 (Flocale_codeset): New. | |
| 1554 (syms_of_fns): Defsubr it. | |
| 1555 | |
| 1556 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. | |
| 1557 (size_t): Removed. | |
| 1558 | |
| 1559 2002-06-06 Dave Love <fx@gnu.org> | |
| 1560 | |
| 1561 * Makefile.in (chartab.o): Depend on charset.h | |
| 1562 | |
| 1563 2002-06-03 Kenichi Handa <handa@etl.go.jp> | |
| 1564 | |
| 1565 * character.c (syms_of_character): Set the default value of | |
| 1566 Vprintable_chars to Qnil. | |
| 1567 | |
| 1568 2002-05-31 Dave Love <fx@gnu.org> | |
| 1569 | |
| 1570 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. | |
| 1571 | |
| 1572 2002-05-31 Kenichi Handa <handa@etl.go.jp> | |
| 1573 | |
| 1574 * charset.c (load_charset_map): Handle the case that from < to | |
| 1575 correctly. | |
| 1576 | |
| 1577 * coding.c (encode_coding_emacs_mule): Pay attention to raw-8-bit | |
| 1578 chars. | |
| 1579 (encode_coding_iso_2022): Likewise. | |
| 1580 (encode_coding_sjis): Likewise. | |
| 1581 (encode_coding_big5): Likewise. | |
| 1582 (encode_coding_charset): Likewise. | |
| 1583 | |
| 1584 2002-05-30 Kenichi Handa <handa@etl.go.jp> | |
| 1585 | |
| 1586 * Makefile.in (lisp): Change chinese.elc to chinese.el. They are | |
| 1587 not bytecompiled now. | |
| 1588 (shortlisp): Likewise. | |
| 1589 | |
| 1590 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978) | |
| 1591 (charset_jisx0208): New variables. | |
| 1592 (Fdefine_charset_internal): Setup them if appropriate. | |
| 1593 (init_charset_once): Initialize them to -1. | |
| 1594 | |
| 1595 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978, | |
| 1596 charset_jisx0208): Extern them. | |
| 1597 | |
| 1598 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro | |
| 1599 (CODING_ISO_FLAG_USE_OLDJIS): New macro. | |
| 1600 (CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed. | |
| 1601 (setup_iso_safe_charsets): Fix arguemtns to Fassq. | |
| 1602 (DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN | |
| 1603 and CODING_ISO_FLAG_USE_OLDJIS. | |
| 1604 (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise. | |
| 1605 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. | |
| 1606 (encode_coding_iso_2022): Change the 1st arg to | |
| 1607 ENCODE_ISO_CHARACTER to a variable. | |
| 1608 | |
| 1609 2002-05-29 Kenichi Handa <handa@etl.go.jp> | |
| 1610 | |
| 1611 * charset.h (enum define_charset_arg_index): New enums | |
| 1612 charset_arg_min_code and charset_arg_max_code. | |
| 1613 (struct charset): New member char_index_offset. | |
| 1614 | |
| 1615 * charset.c (CODE_POINT_TO_INDEX): Take charset->char_index_offset | |
| 1616 into account. | |
| 1617 (INDEX_TO_CODE_POINT): Likewise. | |
| 1618 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and | |
| 1619 args[charset_arg_max_code]. Setup charset.char_index_offset. | |
| 1620 (syms_of_charset): Fix args to Fdefine_charset_internal. | |
| 1621 | |
| 1622 2002-05-27 Dave Love <fx@gnu.org> | |
| 1623 | |
| 1624 * coding.c (decode_coding_utf_8): Reject overlong sequences. | |
| 1625 | |
| 1626 2002-05-26 Dave Love <fx@gnu.org> | |
| 1627 | |
| 1628 * coding.c: Doc fixes. | |
| 1629 (Fcoding_system_aliases): Fix return value. | |
| 1630 (Qmac): Remove (duplicated) definition. | |
| 1631 | |
| 1632 2002-05-25 Dave Love <fx@gnu.org> | |
| 1633 | |
| 1634 * charset.c (Fcharset_priority_list, Fset_charset_priority): New | |
| 1635 functions. | |
| 1636 | |
| 1637 * character.c (Fstring): Doc fix. | |
| 1638 | |
| 1639 * charset.c (Fdefine_charset_alias): Update Vcharset_list. | |
| 1640 | |
| 1641 * fontset.c (Ffontset_info): Doc fix. Return charset names, not | |
| 1642 ids. | |
| 1643 (font-encoding-alist): Doc fix. | |
| 1644 | |
| 1645 2002-05-24 Dave Love <fx@gnu.org> | |
| 1646 | |
| 1647 * term.c (costs_set): Declare static, non-initialized for pcc. | |
| 1648 (encode_terminal_code): Remove ensued var. | |
| 1649 | |
| 1650 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl | |
| 1651 for K&R. | |
| 1652 | |
| 1653 * xterm.c (xlwmenu_window_p): Fix prototype for K&R. | |
| 1654 | |
| 1655 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R. | |
| 1656 (suffixes): Moved out of make_subsidiaries for K&R. | |
| 1657 | |
| 1658 * charset.c (map_charset_chars): Fix c_function declaration for | |
| 1659 K&R. | |
| 1660 | |
| 1661 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. | |
| 1662 | |
| 1663 2002-05-23 Dave Love <fx@gnu.org> | |
| 1664 | |
| 1665 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. | |
| 1666 | |
| 1667 * category.c (Fmodify_category_entry): Doc fix. Remove unused | |
| 1668 vars. | |
| 1669 | |
| 1670 2002-05-23 Yong Lu <lyongu@asia-infonet.com> | |
| 1671 | |
| 1672 * charset.c (Fdefine_charset_internal): Fix argument to bzero. | |
| 1673 | |
| 1674 * coding.c (Fdefine_coding_system_internal): Fix previous change. | |
| 1675 (decode_coding_charset): Workaround for the bug of GCC 2.96. | |
| 1676 | |
| 1677 2002-05-23 Kenichi Handa <handa@etl.go.jp> | |
| 1678 | |
| 1679 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el, | |
| 1680 vietnamese.elc to vietnamese.el. They are not bytecompiled now. | |
| 1681 (shortlisp): Likewise. | |
| 1682 | |
| 1683 2002-05-22 Kenichi Handa <handa@etl.go.jp> | |
| 1684 | |
| 1685 * coding.c (decode_coding_charset): Adjusted for the change of | |
| 1686 Fdefine_coding_system_internal. | |
| 1687 (Fdefine_coding_system_internal): For a coding system of | |
| 1688 `charset' type, store a list of charset IDs in | |
| 1689 `charset_attr_charset_valids' element of coding attributes. | |
| 1690 | |
| 1691 * charset.c (Fmake_char): Fix previous change. | |
| 1692 | |
| 1693 2002-05-21 Kenichi Handa <handa@etl.go.jp> | |
| 1694 | |
| 1695 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. | |
| 1696 (emacs_mule_char): New arg src. Delete arg `composition'. Caller | |
| 1697 changed. Handle 2-byte and 3-byte charsets correctly. | |
| 1698 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from | |
| 1699 DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed. | |
| 1700 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro. | |
| 1701 (DECODE_EMACS_MULE_21_COMPOSITION): Call | |
| 1702 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation | |
| 1703 sequence. | |
| 1704 (decode_coding_emacs_mule): Handle composition correctly. Rewind | |
| 1705 `src' and `consumed_chars' correctly before calling | |
| 1706 emacs_mule_char. | |
| 1707 (DECODE_COMPOSITION_START): Correctly handle the case of altchar | |
| 1708 and alt&rule composition. | |
| 1709 (decode_coding_iso_2022): Handle composition correctly. | |
| 1710 (init_coding_once): Setup emacs_mule_bytes for private charsets. | |
| 1711 | |
| 1712 * charset.c (Fdefine_charset_internal): Fix bug for the case of | |
| 1713 re-defining a charset. If the charset has :emacs-mule-id, setup | |
| 1714 emacs_mule_bytes. | |
| 1715 (Fmake_char): If CODE1 is nil, use the minimum code of the | |
| 1716 charset. | |
| 1717 | |
| 1718 2002-05-20 Kenichi Handa <handa@etl.go.jp> | |
| 1719 | |
| 1720 * coding.c (encode_coding_iso_2022): If coding requires safe | |
| 1721 encoding, produce a character specified by | |
| 1722 CODING_INHIBIT_CHARACTER_SUBSTITUTION. | |
| 1723 (encode_coding_sjis): Likewise. | |
| 1724 (encode_coding_big5): Likewise. | |
| 1725 (encode_coding_charset): Likewise. | |
| 1726 | |
| 1727 2002-05-17 Dave Love <fx@gnu.org> | |
| 1728 | |
| 1729 * xterm.c (XSetIMValues): Declare. | |
| 1730 | |
| 1731 * process.c: Conditionally include sys/wait.h, pty.h. | |
| 1732 | |
| 1733 * print.c (print_object): Fix print format for 64-bit | |
| 1734 systems. | |
| 1735 | |
| 1736 * keyboard.c (modify_event_symbol): Fix print format for 64-bit | |
| 1737 systems. | |
| 1738 | |
| 1739 * buffer.c (emacs_strerror): Declare. | |
| 1740 (MMAP_ALLOCATED_P, mmap_enlarge, syms_of_buffer): Import changes | |
| 1741 from trunk. | |
| 1742 | |
| 1743 * fontset.c (Fclear_face_cache): Declare. | |
| 1744 (accumulate_font_info): Commented-out (unused). | |
| 1745 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused | |
| 1746 variables. | |
| 1747 | |
| 1748 * character.h (string_escape_byte8): Declare. | |
| 1749 | |
| 1750 * charset.c (load_charset_map, load_charset_map_from_file): Remove | |
| 1751 unused vars. | |
| 1752 (Fdefine_charset_internal, Fsplit_char, syms_of_charset) | |
| 1753 (Fmap_charset_chars): Doc fix. | |
| 1754 | |
| 1755 * coding.c (Vchar_coding_system_table, Qchar_coding_system): | |
| 1756 Removed. | |
| 1757 (Fset_coding_system_priority, Fset_coding_system_priority) | |
| 1758 (Fdefine_coding_system_internal): Doc fix. | |
| 1759 | |
| 1760 2002-05-16 Dave Love <fx@gnu.org> | |
| 1761 | |
| 1762 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. | |
| 1763 | |
| 1764 2002-05-16 Kenichi Handa <handa@etl.go.jp> | |
| 1765 | |
| 1766 * character.c (string_escape_byte8): Make multibyte string with | |
| 1767 correct size. | |
| 1768 | |
| 1769 * charset.c (Fmake_char): Delete unnecessary code. | |
| 1770 | |
| 1771 2002-05-14 Kenichi Handa <handa@etl.go.jp> | |
| 1772 | |
| 1773 * xfns.c (x_encode_text): Allocate coding.destination here, and | |
| 1774 call encode_coding_object with dst_object Qnil. | |
| 1775 | |
| 1776 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to | |
| 1777 multibyte form correctly. | |
| 1778 | |
| 1779 * fontset.c (fs_load_font): Check fontp->full_name (not fontname) | |
| 1780 against Vfont_encoding_alist. | |
| 1781 | |
| 1782 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the | |
| 1783 handling of charset list. | |
| 1784 (encode_coding_iso_2022): Setup coding->safe_charsets in advance. | |
| 1785 (decode_coding_object): Move point to coding->dst_pos before | |
| 1786 calling post-read-conversion function. | |
| 1787 (encode_coding_object): Give correct arguments to | |
| 1788 pre-write-conversion. Ignore the return value of | |
| 1789 pre-write-conversion function. Pay attention to the case that | |
| 1790 pre-write-conversion changes the current buffer. If dst_object is | |
| 1791 Qt, even if coding->src_bytes is zero, allocate at least one byte | |
| 1792 to coding->destination. | |
| 1793 | |
| 1794 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). | |
| 1795 | |
| 1796 * charset.c (Fmake_char): Make it more backward compatible. | |
| 1797 (Fmap_charset_chars): Fix docstring. | |
| 1798 | |
| 1799 2002-05-13 Dave Love <fx@gnu.org> | |
| 1800 | |
| 1801 * coding.c: Doc fixes. | |
| 1802 (Fdefine_coding_system_alias): Use names, not symbols, in | |
| 1803 coding-system-alist. | |
| 1804 | |
| 1805 2002-05-13 Kenichi Handa <handa@etl.go.jp> | |
| 1806 | |
| 1807 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead | |
| 1808 of calling free_realized_face. | |
| 1809 | |
| 1810 2002-05-10 Yong Lu <lyongu@asia-infonet.com> | |
| 1811 | |
| 1812 * charset.c (load_charset_map): Fix previous change. | |
| 1813 (read_hex): Don't treat SPC as a comment starter. | |
| 1814 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return | |
| 1815 -1. | |
| 1816 (Fdecode_char): Fix typo. | |
| 1817 | |
| 1818 2002-05-10 Kenichi Handa <handa@etl.go.jp> | |
| 1819 | |
| 1820 * charset.h (struct charset): New member `code_space_mask'. | |
| 1821 | |
| 1822 * coding.c (coding_set_source): Delete the local variable | |
| 1823 beg_byte. | |
| 1824 (encode_coding_charset): Delete the local variable charset. | |
| 1825 (Fdefine_coding_system_internal): Likewise. | |
| 1826 (Fdefine_coding_system_internal): Setup | |
| 1827 attrs[coding_attr_charset_valids] correctly. | |
| 1828 | |
| 1829 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask' | |
| 1830 member to check if CODE is valid or not. | |
| 1831 (Fdefine_charset_internal): Initialize `code_space_mask' member. | |
| 1832 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE | |
| 1833 is within the range of charset->min_code and carset->max_code. | |
| 1834 | |
| 1835 2002-05-09 Dave Love <fx@gnu.org> | |
| 1836 | |
| 1837 * syntax.h (syntax_temp) [!__GNUC__]: Declare. | |
| 1838 | |
| 1839 * dispextern.h (generate_ascii_font): Fix return type. | |
| 1840 | |
| 1841 * xfaces.c (generate_ascii_font): Fix arg declaration. | |
| 1842 | |
| 1843 * coding.c (coding_inherit_eol_type) | |
| 1844 (Fset_terminal_coding_system_internal) | |
| 1845 (Fset_safe_terminal_coding_system_internal): Fix arg declarations. | |
| 1846 | |
| 1847 2002-05-08 Kenichi Handa <handa@etl.go.jp> | |
| 1848 | |
| 1849 * coding.c (decode_coding_charset, encode_coding_charset): Handle | |
| 1850 multiple charsets correctly. | |
| 1851 | |
| 1852 2002-05-07 Kenichi Handa <handa@etl.go.jp> | |
| 1853 | |
| 1854 * search.c (boyer_moore): Fix handling of mulitbyte character | |
| 1855 translation. | |
| 1856 | |
| 1857 * xdisp.c (display_mode_element): When the variable `elt' is | |
| 1858 changed, update `this' and `lisp_string'. | |
| 1859 | |
| 1860 2002-05-07 Kenichi Handa <handa@etl.go.jp> | |
| 1861 | |
| 1862 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. | |
| 1863 | |
| 1864 * callproc.c (Fcall_process): Be sure to give the current buffer | |
| 1865 to decode_coding_c_string. Update PT and PT_BYTE after the | |
| 1866 insertion. | |
| 1867 | |
| 1868 * charset.c (struct charset_map_entries): New struct. | |
| 1869 (load_charset_map): Renamed from parse_charset_map. New args | |
| 1870 entries and n_entries. Caller changed. | |
| 1871 (load_charset_map_from_file): Renamed from load_charset_map. | |
| 1872 Caller changed. New arg control_flag. Call load_charset_map at | |
| 1873 the tail. | |
| 1874 (load_charset_map_from_vector): New function. | |
| 1875 (Fdefine_charset_internal): Setup charset.compact_codes_p. | |
| 1876 (encode_char): If the charset is compact, change a character index | |
| 1877 to a code point. | |
| 1878 | |
| 1879 * coding.c (coding_alloc_by_making_gap): Check the case that the | |
| 1880 source and destination are the same correctly. | |
| 1881 (decode_coding_raw_text): Set coding->consumed_char and | |
| 1882 coding->consumed to 0. | |
| 1883 (produce_chars): If coding->chars_at_source is nonzero, update | |
| 1884 coding->consumed_char and coding->consumed before calling | |
| 1885 alloc_destination. | |
| 1886 (Fdefine_coding_system_alias): Register ALIAS in | |
| 1887 Vcoding_system_alist. | |
| 1888 (syms_of_coding): Define `no-convesion' coding system at the tail. | |
| 1889 | |
| 1890 * fileio.c (Finsert_file_contents): Set coding_system instead of | |
| 1891 val. If the current buffer is multibyte, always call | |
| 1892 decode_coding_gap. | |
| 1893 | |
| 1894 * xfaces.c (try_font_list): Give higher priority to fontset's | |
| 1895 family than face's family. | |
| 1896 | |
| 1897 2002-04-18 Kenichi Handa <handa@etl.go.jp> | |
| 1898 | |
| 1899 * callproc.c (Fcall_process): Be sure to give the current buffer | |
| 1900 to decode_coding_c_string. | |
| 1901 | |
| 1902 * xfaces.c (try_font_list): Give a family specified in a fontset | |
| 1903 higher priority than a family specified in a face. | |
| 1904 | |
| 1905 2002-04-09 Kenichi Handa <handa@etl.go.jp> | |
| 1906 | |
| 1907 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. | |
| 1908 Fix arguments to insert_from_buffer. | |
| 1909 | |
| 1910 * xdisp.c (display_mode_element): Fix calculation of `bytepos'. | |
| 1911 | |
| 1912 2002-03-11 Kenichi Handa <handa@etl.go.jp> | |
| 1913 | |
| 1914 * coding.c (produce_chars): Set the variable `multibytep' correctly. | |
| 1915 (decode_coding_gap): Set coding->dst_multibyte correctly. | |
| 1916 | |
| 1917 2002-03-07 Kenichi Handa <handa@etl.go.jp> | |
| 1918 | |
| 1919 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. | |
| 1920 (decode_coding_utf_16): Fix converting high and low bytes to | |
| 1921 code-point. | |
| 1922 (encode_coding_utf_16): Substitute coding->default_char for | |
| 1923 non-Unicode characters. | |
| 1924 (decode_coding): Don't call record_insert here. | |
| 1925 (setup_coding_system): Initialize `surrogate' of | |
| 1926 coding->spec.utf_16 to 0. | |
| 1927 (EMIT_ONE_BYTE): Fix for multibyte case. | |
| 1928 | |
| 1929 * insdel.c (insert_from_gap): Call record_insert. | |
| 1930 | |
| 1931 2002-03-04 Kenichi Handa <handa@etl.go.jp> | |
| 1932 | |
| 1933 * casefiddle.c (casify_region): Fix multibyte case. | |
| 1934 | |
| 1935 * character.c (c_string_width): Add return type `int'. | |
| 1936 (char_string_with_unification): Arg ADVANCED deleted. | |
| 1937 | |
| 1938 * character.h (CHAR_VALID_P): Don't call CHARACTERP. | |
| 1939 (CHAR_STRING): Adjusted for the change of | |
| 1940 char_string_with_unification. | |
| 1941 (CHAR_STRING_ADVANCE): Make it do-while statement. | |
| 1942 | |
| 1943 * chartab.c (sub_char_table_set_range): Optimized for the case | |
| 1944 DEPTH == 3. Add workaround code for a GCC optimization bug. | |
| 1945 | |
| 1946 * charset.c (parse_charset_map): Remove an unused variable. | |
| 1947 | |
| 1948 * coding.c: Delete unused variables. | |
| 1949 | |
| 1950 * fileio.c (Finsert_file_contents): Set coding_system to Qnil | |
| 1951 earlier. If inserted is zero and the coding system doesn't | |
| 1952 require flushing, don't call decode_coding_gap. | |
| 1953 | |
| 1954 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. | |
| 1955 | |
| 1956 2002-03-01 Kenichi Handa <handa@etl.go.jp> | |
| 1957 | |
| 1958 The following changes are for using Unicode as an internal | |
| 1959 character model, and use UTF-8 format for buffer/string | |
| 1960 representation. | |
| 1961 | |
| 1962 * .gdbinit (xchartable): Adjusted for the change of char table | |
| 1963 structure. | |
| 1964 (xsubchartable, xcoding, xcharset, xcurbuf): New commands. | |
| 1965 | |
| 1966 * Makefile.in (obj): Add character.o and chartab.o. | |
| 1967 (lisp, shortlisp): Remove utf-8.elc: | |
| 1968 (*.o): For many files, change dependency on charset.h to | |
| 1969 character.h, and add dependency on character.h. | |
| 1970 (character.o, chartab.o): New targets. | |
| 1971 | |
| 1972 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c, | |
| 1973 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c, | |
| 1974 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead | |
| 1975 of "charset.h". | |
| 1976 | |
| 1977 * dired.c, filelock.c: Include "character.h". | |
| 1978 | |
| 1979 * alloc.c: Include "character.h" instead of "charset.h". | |
| 1980 (Fmake_char_table): Moved to chartab.c. | |
| 1981 (make_sub_char_table): Likewise. | |
| 1982 (syms_of_alloc): Remove defsubr for Smake_char_table. | |
| 1983 | |
| 1984 * buffer.c: Include "character.h" instead of "charset.h", don't | |
| 1985 include "coding.h". | |
| 1986 (Fset_buffer_multibyte): Adjuted for UTF-8. | |
| 1987 | |
| 1988 * buffer.h: EXFUN Fbuffer_live_p. | |
| 1989 | |
| 1990 * callproc.c: Include "character.h" instead of "charset.h". | |
| 1991 (Fcall_process): Big change for the new code-conversion APIs. | |
| 1992 | |
| 1993 * casetab.c: Include "character.h" instead of "charset.h". | |
| 1994 (set_canon, set_identity, shuffle): Adjusted for the new | |
| 1995 map_char_table spec. | |
| 1996 (init_casetab_once): Call CHAR_TABLE_SET instead of directly | |
| 1997 accessing the char table structure. | |
| 1998 | |
| 1999 * chartab.c: New file that implements char table. | |
| 2000 | |
| 2001 * category.c: Include "character.h". | |
| 2002 (copy_category_entry): New function. | |
| 2003 (copy_category_table): Call map_char_table and copy_category_entry. | |
| 2004 (Fmake_category_table): Initialize all top-vel slots. | |
| 2005 (char_category_set): New function. | |
| 2006 (modify_lower_category_set): Deleted. | |
| 2007 (Fmodify_category_entry): Call char_table_ref_and_range. | |
| 2008 | |
| 2009 * category.h (CATEGORY_SET): Just call char_category_set. | |
| 2010 | |
| 2011 * ccl.c: Include "character.h". | |
| 2012 (Qccl, Qcclp): New variables. | |
| 2013 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if | |
| 2014 it's less than 256. | |
| 2015 (CCL_WRITE_MULTIBYTE_CHAR): Deleted. | |
| 2016 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC | |
| 2017 and DST type. | |
| 2018 (ccl_driver): Types of arguments changed. Code adjusted for that. | |
| 2019 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of | |
| 2020 ccl_driver. | |
| 2021 (syms_of_ccl): Intern and staticpro Qccl and Qcclp. | |
| 2022 | |
| 2023 * ccl.h (struct ccl_program): Members eol_type and multibyte | |
| 2024 deleted. New members src_multibyte, dst_multibyte, consumed, and | |
| 2025 produced. | |
| 2026 (struct ccl_spec): Members decoder and encoder deleted. New | |
| 2027 memeber ccl. | |
| 2028 (CODING_SPEC_CCL_PROGRAM): New macro. | |
| 2029 (ccl_driver): Prototype updated. | |
| 2030 (Qccl, Qcclp, Fccl_program_p): Extern them. | |
| 2031 (CHECK_CCL_PROGRAM): New macro. | |
| 2032 | |
| 2033 * character.c, character.h, chartab.c: New files. | |
| 2034 | |
| 2035 * charset.c: Mostly re-written. Character and multibyte sequence | |
| 2036 handling codes are moved to character.c. | |
| 2037 | |
| 2038 * charset.h: Mostly re-written. Character and multibyte sequence | |
| 2039 handling codes are moved to character.h. | |
| 2040 | |
| 2041 * coding.c, coding.h: Mostly re-written. | |
| 2042 | |
| 2043 * composite.c: Include "character.h" instead of "charset.h". | |
| 2044 (CHAR_WIDTH): Moved to character.h. | |
| 2045 (HASH_KEY, HASH_VALUE): Deleted. | |
| 2046 | |
| 2047 * composite.h (enum composition_method): Order of enumeration | |
| 2048 symbols changed. | |
| 2049 | |
| 2050 * data.c: Include "character.h" instead of "charset.h". | |
| 2051 (Faref): Call CHAR_TABLE_REF for a char table. | |
| 2052 (Faset): Call CHAR_TABLE_SET for a char table. | |
| 2053 | |
| 2054 * dispextern.h (free_realized_face, check_face_attribytes, | |
| 2055 generate_ascii_font): Extern them. | |
| 2056 (free_realized_multibyte_face): Extern deleted. | |
| 2057 | |
| 2058 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char | |
| 2059 table structure. | |
| 2060 | |
| 2061 * editfns.c: Include "character.h" instead of "charset.h". | |
| 2062 (Fchar_to_string): Always call CHAR_STRING. | |
| 2063 | |
| 2064 * emacs.c (main): Call init_charset_once, init_charset, | |
| 2065 syms_of_chartab, and syms_of_character. | |
| 2066 | |
| 2067 * fileio.c: Include "character.h" instead of "charset.h". | |
| 2068 (Finsert_file_contents): Big change for the new code-conversion | |
| 2069 API. | |
| 2070 (choose_write_coding_system): Likewise. | |
| 2071 (Fwrite_region): Likewise. | |
| 2072 (build_annotations_2): Deleted. | |
| 2073 (e_write): Big change for the new code-conversion API. | |
| 2074 | |
| 2075 * fns.c: Include "character.h" instead of "charset.h". | |
| 2076 (copy_sub_char_table): Moved to chartab.c. | |
| 2077 (Fcopy_sequence): Call copy_char_table for a char table. | |
| 2078 (concat): Delete codes calling count_multibyte. | |
| 2079 (string_char_to_byte): Adjusted for the new multibyte form. | |
| 2080 (string_byte_to_char): Likewise. | |
| 2081 (internal_equal): Adjusted for the change of char table structure. | |
| 2082 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent, | |
| 2083 Fchar_table_extra_slot, Fset_char_table_extra_slot, | |
| 2084 Fchar_table_range, Fset_char_table_range, Fset_char_table_default, | |
| 2085 char_table_translate, optimize_sub_char_table, | |
| 2086 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to | |
| 2087 chartab.c. | |
| 2088 (char_table_ref_and_index): Deleted. | |
| 2089 (HASH_KEY, HASH_VALUE): Moved to lisp.h. | |
| 2090 (Fmd5): Call preferred_coding_system instead of accessing | |
| 2091 Vcoding_category_list. Adjusted for the new code-conversion API. | |
| 2092 (syms_of_fns): Defsubr for char table related functions moved to | |
| 2093 chartab.c. | |
| 2094 | |
| 2095 * fontset.c: Mostly re-written. | |
| 2096 | |
| 2097 * fontset.h (struct font_info): Type of the member encoding_type | |
| 2098 changed. | |
| 2099 (enum FONT_SPEC_INDEX): New enum. | |
| 2100 (fontset_font_pattern, fs_load_font): Prototype updated. | |
| 2101 (FS_LOAD_FONT): Adjusted for the change of fs_load_font. | |
| 2102 | |
| 2103 * indent.c: Include "character.h" instead of "charset.h". | |
| 2104 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of | |
| 2105 WIDTH_BY_CHAR_HEAD. | |
| 2106 | |
| 2107 * insdel.c: Include "character.h" instead of "charset.h". | |
| 2108 (copy_text): Don't refer to Vnonascii_translation_table. | |
| 2109 (insert_from_gap): New function. | |
| 2110 | |
| 2111 * keyboard.c: Include "character.h" instead of "charset.h". | |
| 2112 (command_loop_1): Never call direct_output_forward_char before | |
| 2113 a non-ASCII character. | |
| 2114 (read_char): If Vkeyboard_translate_table is a char table, always | |
| 2115 translated a character. | |
| 2116 | |
| 2117 * keymap.c: Include "character.h". | |
| 2118 (store_in_keymap): Handle the case that IDX is a cons. | |
| 2119 (Fdefine_key): Handle the case that KEY is a cons and the car part | |
| 2120 is also a cons (range). | |
| 2121 (push_key_description): Adjusted for the new character code. | |
| 2122 (describe_vector): Call describe_char_table for a char table. | |
| 2123 (describe_char_table): New function. | |
| 2124 | |
| 2125 * keymap.h (describe_char_table): Extern it. | |
| 2126 | |
| 2127 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE. | |
| 2128 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros. | |
| 2129 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS, | |
| 2130 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS): | |
| 2131 Deleted. | |
| 2132 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table | |
| 2133 structure. | |
| 2134 (CHAR_TABLE_TRANSLATE): Just call char_table_translate. | |
| 2135 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2, | |
| 2136 CHARTAB_SIZE_BITS_3): New macros. | |
| 2137 (chartab_size): Extern it. | |
| 2138 (struct Lisp_Char_Table): Re-designed. | |
| 2139 (struct Lisp_Sub_Char_Table): New structure. | |
| 2140 (HASH_KEY, HASH_VALUE): Moved from fns.c. | |
| 2141 (CHARACTERBITS): Defined as 22. | |
| 2142 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change. | |
| 2143 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE. | |
| 2144 (GC_SUB_CHAR_TABLE_P): New macro. | |
| 2145 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated. | |
| 2146 (code_convert_string_norecord): Extern deleted. | |
| 2147 (init_character_once, syms_of_character, init_charset, | |
| 2148 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them. | |
| 2149 | |
| 2150 * lread.c: Include "character.h". | |
| 2151 (read_multibyte): New arg NBYTES. | |
| 2152 (read_escape): The meaning of returned *BYTEREP changed. | |
| 2153 (to_multibyte): Deleted. | |
| 2154 (read1): Adjuted the handling of char table and string. | |
| 2155 | |
| 2156 * print.c: Include "character.h" instead of "charset.h". | |
| 2157 (print_string): Convert 8-bit raw bytes to octal form by | |
| 2158 string_escape_byte8. | |
| 2159 (print_object): Adjusted for the new multibyte form. Print 8-bit | |
| 2160 raw bytes always in octal form. Handle sub char table correctly. | |
| 2161 | |
| 2162 * process.c: Include "character.h" instead of "charset.h". | |
| 2163 (read_process_output): Adjusted for the new code-conversion API. | |
| 2164 (send_process): Likewise. | |
| 2165 | |
| 2166 * puresize.h (BASE_PURESIZE): Increased. | |
| 2167 | |
| 2168 * regex.c: Include "character.h" instead of "charset.h". | |
| 2169 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros. | |
| 2170 (regex_compile): Accept a range whose starting and ending | |
| 2171 character have different leading bytes. | |
| 2172 (analyse_first): Adjusted for the above change. | |
| 2173 | |
| 2174 * search.c: Include "character.h" instead of "charset.h". | |
| 2175 (search_buffer, boyer_moore): Adjusted for the new multibyte form. | |
| 2176 (Freplace_match): Adjusted for the change of | |
| 2177 multibyte_char_to_unibyte. | |
| 2178 | |
| 2179 * syntax.c: Include "character.h" instead of "charset.h". | |
| 2180 (syntax_parent_lookup): Deleted. | |
| 2181 (Fmodify_syntax_entry): Accept a cons as CHAR. | |
| 2182 (skip_chars): Adjusted for the new multibyte form. | |
| 2183 (init_syntax_once): Call char_table_set_range instead of directly | |
| 2184 accessing the structure of a char table. | |
| 2185 | |
| 2186 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET. | |
| 2187 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted. | |
| 2188 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro. | |
| 2189 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF. | |
| 2190 | |
| 2191 * term.c: Include "buffer.h" and "character.h". | |
| 2192 (encode_terminal_code): Adjusted for the new code-conversion API. | |
| 2193 (write_glyphs): Likewise. | |
| 2194 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH. | |
| 2195 | |
| 2196 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT. | |
| 2197 | |
| 2198 * xdisp.c: Include "character.h". | |
| 2199 (get_next_display_element): Adjusted for the new multibyte form. | |
| 2200 (disp_char_vector): Adjusted for the new char table structure. | |
| 2201 (decode_mode_spec_coding): Adjusted for the new structure of | |
| 2202 coding system. | |
| 2203 (decode_mode_spec): Adjusted for the new code-conversion API. | |
| 2204 | |
| 2205 * xfaces.c: Include "character.h" instead of "charset.h". | |
| 2206 (load_face_font): Adjusted for the change of choose_face_font and | |
| 2207 FS_LOAD_FONT. | |
| 2208 (generate_ascii_font): New function. | |
| 2209 (set_lface_from_font_name): Adjusted for the change of | |
| 2210 FS_LOAD_FONT. | |
| 2211 (set_font_frame_param): Adjusted for the change of | |
| 2212 choose_face_font. | |
| 2213 (free_realized_face): Make it public. | |
| 2214 (free_realized_faces_for_fontset): Renamed from | |
| 2215 free_realized_multibyte_face. Free also faces realized for ASCII. | |
| 2216 (choose_face_font): Argments changed. Adjusted for the change of | |
| 2217 fontset_font_pattern and FS_LOAD_FONT. | |
| 2218 | |
| 2219 * xfns.c: Include "character.h". | |
| 2220 (x_encode_text): Adjusted for the new code-conversion API. | |
| 2221 | |
| 2222 * xselect.c: Don't include "charset.h". | |
| 2223 (selection_data_to_lisp_data): Adjusted for the new code | |
| 2224 covnersion API. | |
| 2225 | |
| 2226 * xterm.c: Include "character.h". | |
| 2227 (x_encode_char): New argument CHARSET. Caller changed. | |
| 2228 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of | |
| 2229 SPLIT_CHAR. | |
| 2230 (x_get_glyph_face_and_encoding): Likewise. | |
| 2231 (x_produce_glyphs): Don't check Vnonascii_translation_table Call | |
| 2232 CHAR_WIDTH instead of CHARSET_WIDTH. | |
| 2233 (XTread_socket): Adjusted for the new code-conversion API. | |
| 2234 (x_new_font): Adjusted for the change of FS_LOAD_FONT. | |
| 2235 (x_load_font): Adjusted for the change of struct font. | |
| 2236 | |
| 2237 ;; Local Variables: | |
| 2238 ;; coding: iso-2022-7bit | |
| 2239 ;; End: | |
| 2240 | |
| 2241 Copyright (C) 2002 Free Software Foundation, Inc. | |
| 2242 Copying and distribution of this file, with or without modification, | |
| 2243 are permitted provided the copyright notice and this notice are preserved. |
