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