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