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