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