comparison src/ChangeLog @ 91442:aefc429431cf

Adjust dates of unicode merge entries to UTC.
author Glenn Morris <rgm@gnu.org>
date Sat, 02 Feb 2008 04:31:16 +0000
parents 50dad23e3ad2
children afc545f3960e
comparison
equal deleted inserted replaced
91441:6cdf5d4140a1 91442:aefc429431cf
24 * xfaces.c (get_lface_attributes): Function deleted. 24 * xfaces.c (get_lface_attributes): Function deleted.
25 (merge_named_face, lookup_named_face, lookup_derived_face) 25 (merge_named_face, lookup_named_face, lookup_derived_face)
26 (realize_named_face): Call lface_from_face_name directly, and use 26 (realize_named_face): Call lface_from_face_name directly, and use
27 the fact that merge_face_vectors does not alter its FROM argument. 27 the fact that merge_face_vectors does not alter its FROM argument.
28 28
29 2008-02-02 Jason Rumney <jasonr@gnu.org> 29 2008-02-01 Jason Rumney <jasonr@gnu.org>
30 30
31 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode 31 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
32 input in the default locale. Handle non-Unicode multibyte input. 32 input in the default locale. Handle non-Unicode multibyte input.
33 33
34 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 34 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
35 35
36 * fontset.c (reorder_font_vector): Exclude nil elements from the 36 * fontset.c (reorder_font_vector): Exclude nil elements from the
37 font group. Don't try multiple fonts. 37 font group. Don't try multiple fonts.
38 (fontset_font): Adjusted for the above change. 38 (fontset_font): Adjusted for the above change.
39 (Finternal_char_font): Return nil if the found font doesn't 39 (Finternal_char_font): Return nil if the found font doesn't
40 contain the character ch. 40 contain the character ch.
41 41
42 * Makefile.in (lisp): Add cham.el. 42 * Makefile.in (lisp): Add cham.el.
43 (shortlisp): Likewise. 43 (shortlisp): Likewise.
44 44
45 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 45 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
46 46
47 * font.h (FONTP): Make it return 1 also for a font-object. 47 * font.h (FONTP): Make it return 1 also for a font-object.
48 48
49 * .gdbinit (xfontset): New function. 49 * .gdbinit (xfontset): New function.
50 50
61 (face_for_char): Adjusted for the change of RFONT-DEF. 61 (face_for_char): Adjusted for the change of RFONT-DEF.
62 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify 62 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
63 no font for the target. 63 no font for the target.
64 (Finternal_char_font): Adjusted for the change of RFONT-DEF. 64 (Finternal_char_font): Adjusted for the change of RFONT-DEF.
65 65
66 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 66 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
67 67
68 * font.c (font_load_for_face): Handle the case that the font in 68 * font.c (font_load_for_face): Handle the case that the font in
69 face->lface is a string. 69 face->lface is a string.
70 70
71 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 71 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
72 72
73 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in 73 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in
74 lface. 74 lface.
75 75
76 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 76 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
77 77
78 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: 78 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
79 Fix previous change. If the frame is not on a window system, 79 Fix previous change. If the frame is not on a window system,
80 signal an error. 80 signal an error.
81 81
82 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 82 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
83 83
84 * coding.c (decode_coding_object): Adjuste marker positions after 84 * coding.c (decode_coding_object): Adjuste marker positions after
85 conversion. 85 conversion.
86 (encode_coding_object): Likewise. 86 (encode_coding_object): Likewise.
87 87
88 * lisp.h (struct Lisp_Marker): New member need_adjustment. 88 * lisp.h (struct Lisp_Marker): New member need_adjustment.
89 89
90 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 90 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
91 91
92 * font.c (font_find_for_lface): Fix the handling of the return 92 * font.c (font_find_for_lface): Fix the handling of the return
93 value of font_has_char. 93 value of font_has_char.
94 (Ffont_shape_text): Fix previous change. 94 (Ffont_shape_text): Fix previous change.
95 95
100 (make_fontset): Don't setup font groups of Latin here. 100 (make_fontset): Don't setup font groups of Latin here.
101 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII. 101 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
102 (new_fontset_from_font): Make the specified font the default for 102 (new_fontset_from_font): Make the specified font the default for
103 all Latin characters. 103 all Latin characters.
104 104
105 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
106 106
107 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame 107 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
108 is on a window system before accessing the fontset of the frame. 108 is on a window system before accessing the fontset of the frame.
109 109
110 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
111 111
112 * Makefile.in (lisp): Add kherm.el and myanmar.el. 112 * Makefile.in (lisp): Add kherm.el and myanmar.el.
113 (shortlisp): Likewise. 113 (shortlisp): Likewise.
114 114
115 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only 115 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
117 117
118 * font.c (Ffont_shape_text): If the font driver doesn't have a 118 * font.c (Ffont_shape_text): If the font driver doesn't have a
119 shaper function, make zero-width glyphs to have at least one-pixel 119 shaper function, make zero-width glyphs to have at least one-pixel
120 width. Fix setting of `to' field of glyphs. 120 width. Fix setting of `to' field of glyphs.
121 121
122 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 122 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
123 123
124 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of 124 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
125 glyphs. 125 glyphs.
126 126
127 * font.h (struct font_driver): Docstring of member `shape' is 127 * font.h (struct font_driver): Docstring of member `shape' is
128 improved. 128 improved.
129 129
130 2008-02-02 Kenichi Handa <handa@m17n.org> 130 2008-02-01 Kenichi Handa <handa@m17n.org>
131 131
132 * composite.c (syms_of_composite): Fix docstring of 132 * composite.c (syms_of_composite): Fix docstring of
133 auto-composition-function. 133 auto-composition-function.
134 134
135 * font.h (LGLYPH_SIZE): New macro. 135 * font.h (LGLYPH_SIZE): New macro.
150 150
151 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE. 151 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
152 152
153 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE. 153 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
154 154
155 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 155 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
156 156
157 * font.c (Ffont_shape_text): Avoid unnecessary composition. 157 * font.c (Ffont_shape_text): Avoid unnecessary composition.
158 158
159 * fontset.c (Vfont_encoding_charset_alist): New variable. 159 * fontset.c (Vfont_encoding_charset_alist): New variable.
160 (syms_of_fontset): DEFVAR it. 160 (syms_of_fontset): DEFVAR it.
162 reordring. 162 reordring.
163 (fontset_find_font): Likewise. 163 (fontset_find_font): Likewise.
164 (face_for_char): Map the charset property by 164 (face_for_char): Map the charset property by
165 Vfont_encoding_charset_alist. 165 Vfont_encoding_charset_alist.
166 166
167 2008-02-02 Jason Rumney <jasonr@gnu.org> 167 2008-02-01 Jason Rumney <jasonr@gnu.org>
168 168
169 * w32font.c (logfonts_match): Don't check adstyle here. 169 * w32font.c (logfonts_match): Don't check adstyle here.
170 (font_matches_spec): Check here against physical font instead. 170 (font_matches_spec): Check here against physical font instead.
171 (add_font_entity_to_list): Avoid some substitutions. 171 (add_font_entity_to_list): Avoid some substitutions.
172 172
173 * font.c (font_parse_fcname): Default weight and slant to normal. 173 * font.c (font_parse_fcname): Default weight and slant to normal.
174 (font_score): Prefer normal fonts if weight or slant unspecified. 174 (font_score): Prefer normal fonts if weight or slant unspecified.
175 (font_score) [WINDOWSNT]: Scale weight difference down to closer 175 (font_score) [WINDOWSNT]: Scale weight difference down to closer
176 match freetype scores. 176 match freetype scores.
177 177
178 2008-02-02 Jason Rumney <jasonr@gnu.org> 178 2008-02-01 Jason Rumney <jasonr@gnu.org>
179 179
180 * w32font.c (w32font_text_extents): Don't use the frame stored in the 180 * w32font.c (w32font_text_extents): Don't use the frame stored in the
181 font, as it may have been deleted. 181 font, as it may have been deleted.
182 (w32_enumfont_pattern_entity): Map generic family to adstyle using 182 (w32_enumfont_pattern_entity): Map generic family to adstyle using
183 most common hyphenless variation. 183 most common hyphenless variation.
185 (font_matches_spec): Don't check generic family here. 185 (font_matches_spec): Don't check generic family here.
186 (fill_in_logfont): Set generic family based on adstyle. 186 (fill_in_logfont): Set generic family based on adstyle.
187 187
188 * w32font.h (w32font_get_cache): Update declaration. 188 * w32font.h (w32font_get_cache): Update declaration.
189 189
190 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 190 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
191 191
192 * ftfont.c (ftfont_get_cache): Adjust the argument type. 192 * ftfont.c (ftfont_get_cache): Adjust the argument type.
193 193
194 * frame.c (x_set_font_backend): Don't call Fclear_font_cache. If 194 * frame.c (x_set_font_backend): Don't call Fclear_font_cache. If
195 none of the new drivers are available, call font_update_drviers 195 none of the new drivers are available, call font_update_drviers
212 (font_update_drivers): Call font_clear_cache when finishing a 212 (font_update_drivers): Call font_clear_cache when finishing a
213 driver. 213 driver.
214 214
215 * fontset.c (fontset_find_font): Fix previous change. 215 * fontset.c (fontset_find_font): Fix previous change.
216 216
217 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 217 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
218 218
219 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access 219 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
220 dpyinfo->font_table. 220 dpyinfo->font_table.
221 (x_delete_display) [USE_FONT_BACKEND]: Likewise. 221 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
222 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise 222 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise
227 227
228 * xdisp.c (handle_auto_composed_prop): Don't get a character at 228 * xdisp.c (handle_auto_composed_prop): Don't get a character at
229 the position here, and call font_at with the arg C -1. Don't 229 the position here, and call font_at with the arg C -1. Don't
230 check the range of the existing composition at the point. 230 check the range of the existing composition at the point.
231 231
232 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 232 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
233 233
234 * fontset.c (fontset_add): New args charset_id and famliy. Caller 234 * fontset.c (fontset_add): New args charset_id and famliy. Caller
235 changed. 235 changed.
236 (load_font_get_repertory): Assume that font_spec is always a 236 (load_font_get_repertory): Assume that font_spec is always a
237 font-spec object. 237 font-spec object.
239 (Fset_fontset_font): Always store a font-spec object in a fontset. 239 (Fset_fontset_font): Always store a font-spec object in a fontset.
240 240
241 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property 241 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
242 instead of get_property_and_range. 242 instead of get_property_and_range.
243 243
244 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 244 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
245 245
246 * xftfont.c (struct xftfont_info): Delete the member ft_face. 246 * xftfont.c (struct xftfont_info): Delete the member ft_face.
247 (xftfont_open): Don't keep locking face. 247 (xftfont_open): Don't keep locking face.
248 (xftfont_close): Don't unlock face. 248 (xftfont_close): Don't unlock face.
249 (xftfont_anchor_point): Lock and unlock face. 249 (xftfont_anchor_point): Lock and unlock face.
250 (xftfont_shape): Likewise. 250 (xftfont_shape): Likewise.
251 251
252 * fontset.c (fontset_find_font): Don't prefer a font of 252 * fontset.c (fontset_find_font): Don't prefer a font of
253 supplementary charset. 253 supplementary charset.
254 254
255 2008-02-02 Kenichi Handa <handa@m17n.org> 255 2008-02-01 Kenichi Handa <handa@m17n.org>
256 256
257 * ftfont.c (struct OpenTypeSpec): Members script_tag renamed to 257 * ftfont.c (struct OpenTypeSpec): Members script_tag renamed to
258 script, langsys_tag renamed to langsys, new member script. 258 script, langsys_tag renamed to langsys, new member script.
259 (OTF_TAG_STR): Terminate by '\0'. 259 (OTF_TAG_STR): Terminate by '\0'.
260 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the 260 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
261 listing to the script specified in that property. Fix arg to 261 listing to the script specified in that property. Fix arg to
262 OTF_check_features. 262 OTF_check_features.
263 263
264 2008-02-02 Jason Rumney <jasonr@gnu.org> 264 2008-02-01 Jason Rumney <jasonr@gnu.org>
265 265
266 * w32font.h: New file. 266 * w32font.h: New file.
267 267
268 * w32font.c: Include it. 268 * w32font.c: Include it.
269 (struct w32font_info): Add owning_frame field. Move to w32font.h. 269 (struct w32font_info): Add owning_frame field. Move to w32font.h.
282 (w32font_encode_char, w32font_text_extents, w32font_draw): 282 (w32font_encode_char, w32font_text_extents, w32font_draw):
283 Make non-static. 283 Make non-static.
284 284
285 * makefile.w32-in (w32font.o): Depend on w32font.h. 285 * makefile.w32-in (w32font.o): Depend on w32font.h.
286 286
287 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 287 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
288 288
289 * charset.c (Fdefine_charset_internal): Record a supplementary 289 * charset.c (Fdefine_charset_internal): Record a supplementary
290 charset at the tail of Vcharset_order_list. 290 charset at the tail of Vcharset_order_list.
291 291
292 * font.c (Ffont_shape_text): Fix the return value. 292 * font.c (Ffont_shape_text): Fix the return value.
293 293
294 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names. 294 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
295 295
296 * xdisp.c (handle_auto_composed_prop): Fix previous change. 296 * xdisp.c (handle_auto_composed_prop): Fix previous change.
297 297
298 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 298 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
299 299
300 * ftfont.c (struct OpenTypeSpec): New struct. 300 * ftfont.c (struct OpenTypeSpec): New struct.
301 (OTF_SYM_TAG, OTF_TAG_STR): New macros. 301 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
302 (ftfont_get_open_type_spec): New function. 302 (ftfont_get_open_type_spec): New function.
303 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property. 303 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
304 304
305 * lread.c (read1): Redo the previous change with checking 305 * lread.c (read1): Redo the previous change with checking
306 Vpurify_flag. 306 Vpurify_flag.
307 307
308 2008-02-02 Jason Rumney <jasonr@gnu.org> 308 2008-02-01 Jason Rumney <jasonr@gnu.org>
309 309
310 * w32font.c (add_font_entity_to_list): Compare only the beginning 310 * w32font.c (add_font_entity_to_list): Compare only the beginning
311 of full name. 311 of full name.
312 312
313 2008-02-02 Kenichi Handa <handa@m17n.org> 313 2008-02-01 Kenichi Handa <handa@m17n.org>
314 314
315 * xdisp.c (handle_auto_composed_prop): Simplify the code. Never 315 * xdisp.c (handle_auto_composed_prop): Simplify the code. Never
316 return HANDLED_RECOMPUTE_PROPS. 316 return HANDLED_RECOMPUTE_PROPS.
317 317
318 2008-02-02 Kenichi Handa <handa@m17n.org> 318 2008-02-01 Kenichi Handa <handa@m17n.org>
319 319
320 * font.c (font_gstring_produce): Delete it. 320 * font.c (font_gstring_produce): Delete it.
321 321
322 * composite.h (COMPOSITION_METHOD): Handle 322 * composite.h (COMPOSITION_METHOD): Handle
323 COMPOSITION_WITH_GLYPH_STRING. 323 COMPOSITION_WITH_GLYPH_STRING.
324 324
325 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 325 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
326 326
327 * xfont.c (Qx): Deleted. 327 * xfont.c (Qx): Deleted.
328 (syms_of_xfont): Don't initialize Qx. 328 (syms_of_xfont): Don't initialize Qx.
329 329
330 * composite.h (enum composition_method): Define 330 * composite.h (enum composition_method): Define
331 COMPOSITION_WITH_GLYPH_STRING unconditionally. 331 COMPOSITION_WITH_GLYPH_STRING unconditionally.
332 332
333 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 333 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
334 334
335 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally. 335 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
336 (choose_face_font): Accept new form of font-spec. 336 (choose_face_font): Accept new form of font-spec.
337 337
338 * frame.h (font_driver_list): Declare it unconditionally. 338 * frame.h (font_driver_list): Declare it unconditionally.
353 353
354 * ftfont.c (ftfont_open): Set members maybe_otf and otf of 354 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
355 ftfont_info only when HAVE_LIBOTF is defined. 355 ftfont_info only when HAVE_LIBOTF is defined.
356 356
357 >>>>>>> 1.1.2.202 357 >>>>>>> 1.1.2.202
358 2008-02-02 Andreas Schwab <schwab@suse.de> 358 2008-02-01 Andreas Schwab <schwab@suse.de>
359 359
360 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg 360 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
361 and end. 361 and end.
362 362
363 2008-02-02 Jason Rumney <jasonr@gnu.org> 363 2008-02-01 Jason Rumney <jasonr@gnu.org>
364 364
365 * w32font.c (w32font_driver): Add new fields. 365 * w32font.c (w32font_driver): Add new fields.
366 366
367 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 367 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
368 368
369 * config.in: Re-generated. 369 * config.in: Re-generated.
370 370
371 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@. 371 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
372 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally. 372 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
459 xftfont_driver.shape to xftfont_shape. 459 xftfont_driver.shape to xftfont_shape.
460 460
461 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for 461 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
462 the change of lispy gstring. 462 the change of lispy gstring.
463 463
464 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 464 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
465 465
466 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error. 466 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
467 467
468 2008-02-02 Jason Rumney <jasonr@gnu.org> 468 2008-02-01 Jason Rumney <jasonr@gnu.org>
469 469
470 * w32font.c (w32font_draw): Fill background manually. 470 * w32font.c (w32font_draw): Fill background manually.
471 471
472 2008-02-02 Jason Rumney <jasonr@gnu.org> 472 2008-02-01 Jason Rumney <jasonr@gnu.org>
473 473
474 * font.c (Qfontp): Remove unused symbol. 474 * font.c (Qfontp): Remove unused symbol.
475 (QCantialias): New symbol. 475 (QCantialias): New symbol.
476 (syms_of_font): Define it. 476 (syms_of_font): Define it.
477 (font_property_table): Set a validator for QCantialias. 477 (font_property_table): Set a validator for QCantialias.
484 (w32_antialias_type, lispy_antialias_type): New functions. 484 (w32_antialias_type, lispy_antialias_type): New functions.
485 (w32_enumfont_pattern_entity): New arg requested_font. 485 (w32_enumfont_pattern_entity): New arg requested_font.
486 Set antialias parameter if non-default was requested. 486 Set antialias parameter if non-default was requested.
487 (fill_in_logfont): Fill in lfQuality if :antialias specified. 487 (fill_in_logfont): Fill in lfQuality if :antialias specified.
488 488
489 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 489 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
490 490
491 * lread.c (read1): Undo the previous change. 491 * lread.c (read1): Undo the previous change.
492 492
493 2008-02-02 CHENG Gao <chenggao@gmail.com> (tiny change) 493 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
494 494
495 * frame.c (Fdelete_frame): Call font_update_drivers only when 495 * frame.c (Fdelete_frame): Call font_update_drivers only when
496 USE_FONT_BACKEND is defined.. 496 USE_FONT_BACKEND is defined..
497 497
498 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 498 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
499 499
500 * font.h (struct font_bitmap): New member bits_per_pixel. 500 * font.h (struct font_bitmap): New member bits_per_pixel.
501 (struct font_driver): New members start_for_frame and end_for_frame. 501 (struct font_driver): New members start_for_frame and end_for_frame.
502 (struct font_data_list): New struct. 502 (struct font_data_list): New struct.
503 (font_put_frame_data, font_get_frame_data): Extern them. 503 (font_put_frame_data, font_get_frame_data): Extern them.
530 (ftxfont_end_for_frame): New function. 530 (ftxfont_end_for_frame): New function.
531 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame. 531 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
532 532
533 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel. 533 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
534 534
535 2008-02-02 Kenichi Handa <handa@m17n.org> 535 2008-02-01 Kenichi Handa <handa@m17n.org>
536 536
537 * xselect.c (Vselection_coding_system) 537 * xselect.c (Vselection_coding_system)
538 (Vnext_selection_coding_system): Delete them. 538 (Vnext_selection_coding_system): Delete them.
539 (syms_of_xselect): Don't declare selection-coding-system and 539 (syms_of_xselect): Don't declare selection-coding-system and
540 next-selection-coding-system. They are declared in select.el. 540 next-selection-coding-system. They are declared in select.el.
541 541
542 2008-02-02 Jason Rumney <jasonr@gnu.org> 542 2008-02-01 Jason Rumney <jasonr@gnu.org>
543 543
544 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already. 544 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
545 545
546 * w32fns.c: Include imm.h. 546 * w32fns.c: Include imm.h.
547 (get_composition_string_fn, get_ime_context_fn): New optional 547 (get_composition_string_fn, get_ime_context_fn): New optional
552 WM_IME_ENDCOMPOSITION messages. 552 WM_IME_ENDCOMPOSITION messages.
553 553
554 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as 554 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
555 MULTIBYTE_CHAR_KEYSTROKE_EVENT. 555 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
556 556
557 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 557 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
558 558
559 * lread.c (READCHAR): Call readchar with the 2nd arg NULL. 559 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
560 (READCHAR_REPORT_MULTIBYTE): New macro. 560 (READCHAR_REPORT_MULTIBYTE): New macro.
561 (readchar): New 2nd arg MULTIBYTE. 561 (readchar): New 2nd arg MULTIBYTE.
562 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. Make 562 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read. Make
563 symbol's name multibyte according to the multibyteness of the 563 symbol's name multibyte according to the multibyteness of the
564 source. 564 source.
565 565
566 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 566 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
567 567
568 * xfaces.c (face_for_overlay_string): Call lookup_face with 568 * xfaces.c (face_for_overlay_string): Call lookup_face with
569 correct arguments (fix of synching with the trunk). 569 correct arguments (fix of synching with the trunk).
570 570
571 2008-02-02 Kenichi Handa <handa@m17n.org> 571 2008-02-01 Kenichi Handa <handa@m17n.org>
572 572
573 * font.c (font_prop_validate_symbol): The argument prop_index is 573 * font.c (font_prop_validate_symbol): The argument prop_index is
574 deleted. 574 deleted.
575 (font_prop_validate_style, font_prop_validate_non_neg) 575 (font_prop_validate_style, font_prop_validate_non_neg)
576 (font_prop_validate_spacing): Likewise. 576 (font_prop_validate_spacing): Likewise.
577 (font_property_table): Arguments to validater changed. Callers 577 (font_property_table): Arguments to validater changed. Callers
578 changed. 578 changed.
579 (font_lispy_object): Deleted. 579 (font_lispy_object): Deleted.
580 (font_at): Use font_find_object instead fo font_lispy_object. 580 (font_at): Use font_find_object instead fo font_lispy_object.
581 581
582 2008-02-02 Kenichi Handa <handa@ni.aist.go.jp> 582 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
583 583
584 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory 584 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
585 and file names. 585 and file names.
586 586
587 2008-02-02 Jason Rumney <jasonr@gnu.org> 587 2008-02-01 Jason Rumney <jasonr@gnu.org>
588 588
589 * w32font.c (add_font_name_to_list): Avoid vertical fonts. 589 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
590 (font_matches_spec): Remove debug output. 590 (font_matches_spec): Remove debug output.
591 (add_font_entity_to_list): Avoid using substituted fonts. 591 (add_font_entity_to_list): Avoid using substituted fonts.
592 592
593 2008-02-02 Jason Rumney <jasonr@gnu.org> 593 2008-02-01 Jason Rumney <jasonr@gnu.org>
594 594
595 * doc.c (Fsnarf_documentation): 595 * doc.c (Fsnarf_documentation):
596 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change. 596 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
597 597
598 2008-02-02 Miles Bader <miles@gnu.org> 598 2008-02-01 Miles Bader <miles@gnu.org>
599 599
600 * src/dispextern.h (struct glyph_row): Only define "clip" field if 600 * src/dispextern.h (struct glyph_row): Only define "clip" field if
601 HAVE_WINDOW_SYSTEM is defined. 601 HAVE_WINDOW_SYSTEM is defined.
602 602
603 2008-02-02 Stefan Monnier <monnier@iro.umontreal.ca> 603 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
604 604
605 Fix up multi-tty merge. 605 Fix up multi-tty merge.
606 606
607 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting 607 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
608 and indentation. 608 and indentation.
647 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from 647 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
648 src to etc. 648 src to etc.
649 649
650 * ChangeLog.10: Add mistakenly removed entry. 650 * ChangeLog.10: Add mistakenly removed entry.
651 651
652 2008-02-02 Dan Nicolaescu <dann@ics.uci.edu> 652 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
653 653
654 * Makefile.in (fringe.o, minibuf.o): Fix dependencies. 654 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
655 655
656 2008-02-02 Miles Bader <miles@gnu.org> 656 2008-02-01 Miles Bader <miles@gnu.org>
657 657
658 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition. 658 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
659 Add extra args to FACE_FOR_CHAR. 659 Add extra args to FACE_FOR_CHAR.
660 660
661 2008-02-02 Kenichi Handa <handa@m17n.org> 661 2008-02-01 Kenichi Handa <handa@m17n.org>
662 662
663 * keymap.c (where_is_internal_1): If key is a cons, store the copy 663 * keymap.c (where_is_internal_1): If key is a cons, store the copy
664 in sequence. 664 in sequence.
665 665
666 * chartab.c (map_sub_char_table): If the range contains just one 666 * chartab.c (map_sub_char_table): If the range contains just one
667 character, call the function with that character even if the depth 667 character, call the function with that character even if the depth
668 is not 3. 668 is not 3.
669 (map_char_table): Likewise. 669 (map_char_table): Likewise.
670 670
671 2008-02-02 Jason Rumney <jasonr@gnu.org> 671 2008-02-01 Jason Rumney <jasonr@gnu.org>
672 672
673 * w32font.c (w32font_text_extents): Calculate metrics for the 673 * w32font.c (w32font_text_extents): Calculate metrics for the
674 whole string. 674 whole string.
675 675
676 2008-02-02 Jason Rumney <jasonr@gnu.org> 676 2008-02-01 Jason Rumney <jasonr@gnu.org>
677 677
678 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages. 678 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
679 679
680 2008-02-02 Jason Rumney <jasonr@gnu.org> 680 2008-02-01 Jason Rumney <jasonr@gnu.org>
681 681
682 * w32term.c (x_set_glyph_string_clipping): Use 682 * w32term.c (x_set_glyph_string_clipping): Use
683 get_glyph_string_clip_rects. 683 get_glyph_string_clip_rects.
684 (x_set_glyph_string_clipping_exactly): Adjusted for the change of 684 (x_set_glyph_string_clipping_exactly): Adjusted for the change of
685 struct glyph_string. 685 struct glyph_string.
686 (x_draw_glyph_string): Likewise. 686 (x_draw_glyph_string): Likewise.
687 687
688 * w32font.c (w32font_draw): Do clipping here. 688 * w32font.c (w32font_draw): Do clipping here.
689 689
690 2008-02-02 Kenichi Handa <handa@m17n.org> 690 2008-02-01 Kenichi Handa <handa@m17n.org>
691 691
692 * xftfont.c (xftfont_draw): Adjusted for the change of struct 692 * xftfont.c (xftfont_draw): Adjusted for the change of struct
693 glyph_string. 693 glyph_string.
694 694
695 * xterm.c (x_set_glyph_string_clipping): Use 695 * xterm.c (x_set_glyph_string_clipping): Use
706 706
707 * dispextern.h (struct glyph_row): New member clip. 707 * dispextern.h (struct glyph_row): New member clip.
708 (struct glyph_string): Delete members clip_x, clip_y, clip_width, 708 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
709 clip_height, new member clip, and num_clips. 709 clip_height, new member clip, and num_clips.
710 710
711 2008-02-02 Kenichi Handa <handa@m17n.org> 711 2008-02-01 Kenichi Handa <handa@m17n.org>
712 712
713 * data.c (Fchar_or_string_p): Fix docstring. 713 * data.c (Fchar_or_string_p): Fix docstring.
714 714
715 2008-02-02 Kenichi Handa <handa@m17n.org> 715 2008-02-01 Kenichi Handa <handa@m17n.org>
716 716
717 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info, 717 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
718 create a temporal XftDraw object. 718 create a temporal XftDraw object.
719 719
720 2008-02-02 Kenichi Handa <handa@m17n.org> 720 2008-02-01 Kenichi Handa <handa@m17n.org>
721 721
722 * font.c (Ffontp): Fix docstring. 722 * font.c (Ffontp): Fix docstring.
723 723
724 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a 724 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
725 strong evidence of ISO-2022. 725 strong evidence of ISO-2022.
726 726
727 2008-02-02 Kenichi Handa <handa@m17n.org> 727 2008-02-01 Kenichi Handa <handa@m17n.org>
728 728
729 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not 729 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
730 SYNTAX_ENTRY_FOLLOW_PARENT. 730 SYNTAX_ENTRY_FOLLOW_PARENT.
731 731
732 2008-02-02 Stefan Monnier <monnier@iro.umontreal.ca> 732 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
733 733
734 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change 734 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
735 its type. 735 its type.
736 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns): 736 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
737 Update to the new type of weak_hash_tables and next_weak. 737 Update to the new type of weak_hash_tables and next_weak.
767 * src/w32term.c: 767 * src/w32term.c:
768 * src/xfns.c: 768 * src/xfns.c:
769 * src/xmenu.c: 769 * src/xmenu.c:
770 * src/xterm.c: Replace uses of GC_* macros with the non-GC_ versions. 770 * src/xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
771 771
772 2008-02-02 Kenichi Handa <handa@m17n.org> 772 2008-02-01 Kenichi Handa <handa@m17n.org>
773 773
774 * chartab.c (map_sub_char_table): Make it work for the top-level 774 * chartab.c (map_sub_char_table): Make it work for the top-level
775 char-table. Fix handling of parent char-table. 775 char-table. Fix handling of parent char-table.
776 (map_char_table): Adjust for the above change. 776 (map_char_table): Adjust for the above change.
777 777
778 2008-02-02 Jason Rumney <jasonr@gnu.org> 778 2008-02-01 Jason Rumney <jasonr@gnu.org>
779 779
780 * w32font.c (Qgdi): Rename from Qw32. 780 * w32font.c (Qgdi): Rename from Qw32.
781 781
782 2008-02-02 Jason Rumney <jasonr@gnu.org> 782 2008-02-01 Jason Rumney <jasonr@gnu.org>
783 783
784 * w32bdf.c (get_quoted_string): Make function static. 784 * w32bdf.c (get_quoted_string): Make function static.
785 785
786 2008-02-02 Kenichi Handa <handa@m17n.org> 786 2008-02-01 Kenichi Handa <handa@m17n.org>
787 787
788 * xftfont.c (xftfont_open): If one of font's ASCII glyph has 788 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
789 bigger ascent and descent than those of the font, use them as 789 bigger ascent and descent than those of the font, use them as
790 font's ascent and descent. 790 font's ascent and descent.
791 791
792 2008-02-02 Kenichi Handa <handa@m17n.org> 792 2008-02-01 Kenichi Handa <handa@m17n.org>
793 793
794 * Makefile.in (${lispsource}international/charprop.el): Move this 794 * Makefile.in (${lispsource}international/charprop.el): Move this
795 target within "#ifdef HAVE_UNIDATA" and "#endif". 795 target within "#ifdef HAVE_UNIDATA" and "#endif".
796 796
797 2008-02-02 Kenichi Handa <handa@m17n.org> 797 2008-02-01 Kenichi Handa <handa@m17n.org>
798 798
799 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el. 799 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
800 (shortlisp): Add ../lisp/language/tai-viet.el. 800 (shortlisp): Add ../lisp/language/tai-viet.el.
801 801
802 2008-02-02 Ulrich Mueller <ulm@gentoo.org> (tiny change) 802 2008-02-01 Ulrich Mueller <ulm@gentoo.org> (tiny change)
803 803
804 * Makefile.in (${lispsource}international/charprop.el): Depend on 804 * Makefile.in (${lispsource}international/charprop.el): Depend on
805 temacs${EXEEXT}. 805 temacs${EXEEXT}.
806 806
807 2008-02-02 Jason Rumney <jasonr@gnu.org> 807 2008-02-01 Jason Rumney <jasonr@gnu.org>
808 808
809 * w32font.c (w32font_close): Delete the GDI font object. 809 * w32font.c (w32font_close): Delete the GDI font object.
810 810
811 * w32menu.c: Include character.h 811 * w32menu.c: Include character.h
812 812
814 814
815 * w32select.c: Likewise. 815 * w32select.c: Likewise.
816 816
817 * makefile.w32-in (w32proc.o): Depend on character.h 817 * makefile.w32-in (w32proc.o): Depend on character.h
818 818
819 2008-02-02 Jason Rumney <jasonr@gnu.org> 819 2008-02-01 Jason Rumney <jasonr@gnu.org>
820 820
821 * w32fns.c (syms_of_w32fns): Use DEFSYM macro. 821 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
822 822
823 * w32menu.c (syms_of_w32menu): Likewise. 823 * w32menu.c (syms_of_w32menu): Likewise.
824 824
826 826
827 * w32select.c (syms_of_w32select): Likewise. 827 * w32select.c (syms_of_w32select): Likewise.
828 828
829 * w32term.c (syms_of_w32term): Likewise. 829 * w32term.c (syms_of_w32term): Likewise.
830 830
831 2008-02-02 Jason Rumney <jasonr@gnu.org> 831 2008-02-01 Jason Rumney <jasonr@gnu.org>
832 832
833 * w32font.c (w32font_draw): Delete brush after using it. 833 * w32font.c (w32font_draw): Delete brush after using it.
834 834
835 2008-02-02 Jason Rumney <jasonr@gnu.org> 835 2008-02-01 Jason Rumney <jasonr@gnu.org>
836 836
837 * w32font.c (w32font_open): Don't set font_idx. 837 * w32font.c (w32font_open): Don't set font_idx.
838 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting 838 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
839 to font settings. 839 to font settings.
840 (w32font_draw): Fill background explicitly. 840 (w32font_draw): Fill background explicitly.
841 841
842 2008-02-02 Jason Rumney <jasonr@gnu.org> 842 2008-02-01 Jason Rumney <jasonr@gnu.org>
843 843
844 * w32term.c (w32_initialize): Don't call w32font_initialize. 844 * w32term.c (w32_initialize): Don't call w32font_initialize.
845 845
846 * w32font.c (w32font_info): Remove subranges. 846 * w32font.c (w32font_info): Remove subranges.
847 (QCsubranges, Qmodern, Qswiss, Qroman): Remove. 847 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
883 (unicode_range_for_char): Remove. 883 (unicode_range_for_char): Remove.
884 (font_supported_scripts): New function. 884 (font_supported_scripts): New function.
885 (w32font_initialize): Remove. 885 (w32font_initialize): Remove.
886 (syms_of_w32font): Update which symbols are defined. 886 (syms_of_w32font): Update which symbols are defined.
887 887
888 2008-02-02 Jason Rumney <jasonr@gnu.org> 888 2008-02-01 Jason Rumney <jasonr@gnu.org>
889 889
890 * font.c (font_pixel_size): Reverse assq_no_quit args. 890 * font.c (font_pixel_size): Reverse assq_no_quit args.
891 891
892 * w32term.h (FONT_WIDTH): Report max width, not average. 892 * w32term.h (FONT_WIDTH): Report max width, not average.
893 (FONT_MAX_WIDTH): Remove. 893 (FONT_MAX_WIDTH): Remove.
899 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH. 899 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
900 (w32_cache_char_metrics): Use FONT_WIDTH. 900 (w32_cache_char_metrics): Use FONT_WIDTH.
901 901
902 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH. 902 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
903 903
904 2008-02-02 Jason Rumney <jasonr@gnu.org> 904 2008-02-01 Jason Rumney <jasonr@gnu.org>
905 905
906 * w32font.c (w32font_open): Make lfHeight negative. 906 * w32font.c (w32font_open): Make lfHeight negative.
907 907
908 * w32fns.c (x_default_font_parameter): Use new style font name. 908 * w32fns.c (x_default_font_parameter): Use new style font name.
909 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy. 909 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
910 910
911 2008-02-02 Jason Rumney <jasonr@gnu.org> 911 2008-02-01 Jason Rumney <jasonr@gnu.org>
912 912
913 * w32font.c (QCsubranges): New symbol. 913 * w32font.c (QCsubranges): New symbol.
914 (w32font_open, w32font_has_char): Get subranges from subproperty 914 (w32font_open, w32font_has_char): Get subranges from subproperty
915 of extra. 915 of extra.
916 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra. 916 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
959 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c. 959 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
960 (x_to_w32_charset, w32_to_x_charset): Expose externally. 960 (x_to_w32_charset, w32_to_x_charset): Expose externally.
961 961
962 * w32font.c: New file for w32 font backend. 962 * w32font.c: New file for w32 font backend.
963 963
964 2008-02-02 Kenichi Handa <handa@m17n.org> 964 2008-02-01 Kenichi Handa <handa@m17n.org>
965 965
966 * term.c: Don't include "buffer.h" twice. 966 * term.c: Don't include "buffer.h" twice.
967 967
968 2008-02-02 Kenichi Handa <handa@m17n.org> 968 2008-02-01 Kenichi Handa <handa@m17n.org>
969 969
970 * syntax.c (skip_syntaxes): Synch with the trunk. 970 * syntax.c (skip_syntaxes): Synch with the trunk.
971 971
972 2008-02-02 Kenichi Handa <handa@m17n.org> 972 2008-02-01 Kenichi Handa <handa@m17n.org>
973 973
974 * character.c (Funibyte_string): New function. 974 * character.c (Funibyte_string): New function.
975 (syms_of_character): Defsubr it. 975 (syms_of_character): Defsubr it.
976 976
977 2008-02-02 Jason Rumney <jasonr@gnu.org> 977 2008-02-01 Jason Rumney <jasonr@gnu.org>
978 978
979 * w32term.c [USE_FONT_BACKEND]: 979 * w32term.c [USE_FONT_BACKEND]:
980 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc): 980 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc):
981 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly): 981 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly):
982 (x_draw_glyph_string, x_draw_glyph_string_foreground): 982 (x_draw_glyph_string, x_draw_glyph_string_foreground):
983 (x_draw_composite_glyph_string_foreground, x_new_fontset2): 983 (x_draw_composite_glyph_string_foreground, x_new_fontset2):
984 (x_free_frame_resources): Sync with xterm.c. 984 (x_free_frame_resources): Sync with xterm.c.
985 985
986 2008-02-02 Andreas Schwab <schwab@suse.de> 986 2008-02-01 Andreas Schwab <schwab@suse.de>
987 987
988 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate 988 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
989 char-table size. 989 char-table size.
990 990
991 2008-02-02 Kenichi Handa <handa@m17n.org> 991 2008-02-01 Kenichi Handa <handa@m17n.org>
992 992
993 * font.c (check_otf_features): Define it regardless of 993 * font.c (check_otf_features): Define it regardless of
994 HAVE_LIBOTF. 994 HAVE_LIBOTF.
995 995
996 2008-02-02 Kenichi Handa <handa@m17n.org> 996 2008-02-01 Kenichi Handa <handa@m17n.org>
997 997
998 * ftfont.c (ftfont_driver): Delete font_otf_gsub and 998 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
999 font_otf_gpos, add font_drive_otf. 999 font_otf_gpos, add font_drive_otf.
1000 1000
1001 * fontset.c (fontset_find_font): Pay attention to font size 1001 * fontset.c (fontset_find_font): Pay attention to font size
1026 (struct font_driver): Delete members otf_gsub and otf_gpos, add 1026 (struct font_driver): Delete members otf_gsub and otf_gpos, add
1027 member otf_drive. 1027 member otf_drive.
1028 (font_otf_gsub, font_otf_gpos): Delete externs. 1028 (font_otf_gsub, font_otf_gpos): Delete externs.
1029 (font_drive_otf): Extern it. 1029 (font_drive_otf): Extern it.
1030 1030
1031 2008-02-02 Kenichi Handa <handa@m17n.org> 1031 2008-02-01 Kenichi Handa <handa@m17n.org>
1032 1032
1033 * font.c (font_at): If the window W is not on a window system, 1033 * font.c (font_at): If the window W is not on a window system,
1034 return Qnil. 1034 return Qnil.
1035 1035
1036 * coding.c (produce_chars): Don't call insert_from_gap if no 1036 * coding.c (produce_chars): Don't call insert_from_gap if no
1037 characters to produce. 1037 characters to produce.
1038 (encode_coding): Likewise. 1038 (encode_coding): Likewise.
1039 1039
1040 2008-02-02 Kenichi Handa <handa@m17n.org> 1040 2008-02-01 Kenichi Handa <handa@m17n.org>
1041 1041
1042 * fontset.c (free_realized_fontsets): Avoid unnecessary call of 1042 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
1043 Fclear_face_cache. 1043 Fclear_face_cache.
1044 1044
1045 * xfaces.c (face_for_font): Check also face->font==font->font.font. 1045 * xfaces.c (face_for_font): Check also face->font==font->font.font.
1046 1046
1047 2008-02-02 Miles Bader <miles@gnu.org> 1047 2008-02-01 Miles Bader <miles@gnu.org>
1048 1048
1049 * emacs.c (main): Change default value of `enable_font_backend' to 1. 1049 * emacs.c (main): Change default value of `enable_font_backend' to 1.
1050 Parse "--disable-font-backend" option. 1050 Parse "--disable-font-backend" option.
1051 (standard_args): Add "--disable-font-backend" option. 1051 (standard_args): Add "--disable-font-backend" option.
1052 1052
1053 2008-02-02 Kenichi Handa <handa@m17n.org> 1053 2008-02-01 Kenichi Handa <handa@m17n.org>
1054 1054
1055 * fontset.c (fontset_find_font): New function. 1055 * fontset.c (fontset_find_font): New function.
1056 (fontset_font): Use fontset_find_font. 1056 (fontset_font): Use fontset_find_font.
1057 (make_fontset_for_ascii_face): Don't set face ID in rfont_def. 1057 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
1058 Register the specified font for all Latin characters. 1058 Register the specified font for all Latin characters.
1059 (new_fontset_from_font): Register the specified font for all Latin 1059 (new_fontset_from_font): Register the specified font for all Latin
1060 characters. 1060 characters.
1061 (dump_fontset): For a realized fontset, include the base fontset 1061 (dump_fontset): For a realized fontset, include the base fontset
1062 name in the returned vector. 1062 name in the returned vector.
1063 1063
1064 2008-02-02 Kenichi Handa <handa@m17n.org> 1064 2008-02-01 Kenichi Handa <handa@m17n.org>
1065 1065
1066 * character.h (CHAR_STRING): Cast C to unsigned on calling 1066 * character.h (CHAR_STRING): Cast C to unsigned on calling
1067 char_string. 1067 char_string.
1068 1068
1069 * character.c (char_string): Type of arg C changed to unsigned. 1069 * character.c (char_string): Type of arg C changed to unsigned.
1070 Signal an error if C is an invalid character code. 1070 Signal an error if C is an invalid character code.
1071 1071
1072 * editfns.c (general_insert_function): Use CHARACTERP, not INTEGERP. 1072 * editfns.c (general_insert_function): Use CHARACTERP, not INTEGERP.
1073 (Fchar_to_string): Likewise. 1073 (Fchar_to_string): Likewise.
1074 1074
1075 2008-02-02 Kenichi Handa <handa@m17n.org> 1075 2008-02-01 Kenichi Handa <handa@m17n.org>
1076 1076
1077 * character.h (MIN_MULTIBYTE_LEADING_CODE) 1077 * character.h (MIN_MULTIBYTE_LEADING_CODE)
1078 (MAX_MULTIBYTE_LEADING_CODE): New macros. 1078 (MAX_MULTIBYTE_LEADING_CODE): New macros.
1079 1079
1080 * regex.c (analyse_first): Fix for multibyte characters in "case 1080 * regex.c (analyse_first): Fix for multibyte characters in "case
1081 charset:" and "case categoryspec:". 1081 charset:" and "case categoryspec:".
1082 1082
1083 2008-02-02 Andreas Schwab <schwab@suse.de> 1083 2008-02-01 Andreas Schwab <schwab@suse.de>
1084 1084
1085 * Makefile.in (LIBES): Move standard libraries to the end. 1085 * Makefile.in (LIBES): Move standard libraries to the end.
1086 1086
1087 2008-02-02 Kenichi Handa <handa@m17n.org> 1087 2008-02-01 Kenichi Handa <handa@m17n.org>
1088 1088
1089 * process.c: Cancel the change done by sync with HEAD. 1089 * process.c: Cancel the change done by sync with HEAD.
1090 1090
1091 2008-02-02 Kenichi Handa <handa@m17n.org> 1091 2008-02-01 Kenichi Handa <handa@m17n.org>
1092 1092
1093 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is 1093 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
1094 nonzero, don't shrink the buffer nextb. 1094 nonzero, don't shrink the buffer nextb.
1095 1095
1096 * buffer.h (struct buffer_text): New member inhibit_shrinking. 1096 * buffer.h (struct buffer_text): New member inhibit_shrinking.
1100 offset. 1100 offset.
1101 (decode_coding_iso_2022): Update coding->safe_charsets. 1101 (decode_coding_iso_2022): Update coding->safe_charsets.
1102 (decode_coding_gap): Temporarily set 1102 (decode_coding_gap): Temporarily set
1103 current_buffer->text->inhibit_shrinking to 1. 1103 current_buffer->text->inhibit_shrinking to 1.
1104 1104
1105 2008-02-02 Kenichi Handa <handa@m17n.org> 1105 2008-02-01 Kenichi Handa <handa@m17n.org>
1106 1106
1107 * xterm.c (x_draw_composite_glyph_string_foreground): Fix 1107 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
1108 indexing into elements of s->cmp and s->char2b. 1108 indexing into elements of s->cmp and s->char2b.
1109 1109
1110 2008-02-02 Juanma Barranquero <lekktu@gmail.com> 1110 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
1111 1111
1112 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'. 1112 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
1113 1113
1114 2008-02-02 Kenichi Handa <handa@m17n.org> 1114 2008-02-01 Kenichi Handa <handa@m17n.org>
1115 1115
1116 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable 1116 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
1117 target_multibyte instead of multibyte. 1117 target_multibyte instead of multibyte.
1118 (re_match_2_internal): Call bcmp_translate with target_multibyte. 1118 (re_match_2_internal): Call bcmp_translate with target_multibyte.
1119 (bcmp_translate): Change the argument name from multibyte to 1119 (bcmp_translate): Change the argument name from multibyte to
1120 target_multibyte. 1120 target_multibyte.
1121 1121
1122 2008-02-02 Kenichi Handa <handa@m17n.org> 1122 2008-02-01 Kenichi Handa <handa@m17n.org>
1123 1123
1124 These changes are to compile a regexp into a pattern that can be 1124 These changes are to compile a regexp into a pattern that can be
1125 used both for multibyte and unibyte targets. 1125 used both for multibyte and unibyte targets.
1126 1126
1127 * Makefile.in (search.o): Depend on charset.h. 1127 * Makefile.in (search.o): Depend on charset.h.
1153 unibyte targets. 1153 unibyte targets.
1154 (TRANSLATE_VIA_MULTIBYTE): Deleted. 1154 (TRANSLATE_VIA_MULTIBYTE): Deleted.
1155 (re_match_2_internal): Pay attention to the case that the 1155 (re_match_2_internal): Pay attention to the case that the
1156 multibyteness of bufp and target may be different. 1156 multibyteness of bufp and target may be different.
1157 1157
1158 2008-02-02 Kenichi Handa <handa@m17n.org> 1158 2008-02-01 Kenichi Handa <handa@m17n.org>
1159 1159
1160 * xdisp.c (x_produce_glyphs): When a font is not found, make the 1160 * xdisp.c (x_produce_glyphs): When a font is not found, make the
1161 empty box occupy at least one column width. 1161 empty box occupy at least one column width.
1162 1162
1163 2008-02-02 Miles Bader <miles@gnu.org> 1163 2008-02-01 Miles Bader <miles@gnu.org>
1164 1164
1165 * Makefile.in: Remove redundant HAVE_XFT clause. 1165 * Makefile.in: Remove redundant HAVE_XFT clause.
1166 1166
1167 2008-02-02 Kenichi Handa <handa@m17n.org> 1167 2008-02-01 Kenichi Handa <handa@m17n.org>
1168 1168
1169 * xrdb.c (x_load_resources): Setup the default fontSet X reource. 1169 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
1170 1170
1171 2008-02-02 Kenichi Handa <handa@m17n.org> 1171 2008-02-01 Kenichi Handa <handa@m17n.org>
1172 1172
1173 * regex.c (regex_compile): Synch with HEAD. 1173 * regex.c (regex_compile): Synch with HEAD.
1174 1174
1175 2008-02-02 Kenichi Handa <handa@m17n.org> 1175 2008-02-01 Kenichi Handa <handa@m17n.org>
1176 1176
1177 * fontset.c (Finternal_char_font): Fix previous change. 1177 * fontset.c (Finternal_char_font): Fix previous change.
1178 1178
1179 2008-02-02 Kenichi Handa <handa@m17n.org> 1179 2008-02-01 Kenichi Handa <handa@m17n.org>
1180 1180
1181 * fontset.c (Finternal_char_font): Fix for the case of POSITION 1181 * fontset.c (Finternal_char_font): Fix for the case of POSITION
1182 being nil. 1182 being nil.
1183 1183
1184 2008-02-02 Kenichi Handa <handa@m17n.org> 1184 2008-02-01 Kenichi Handa <handa@m17n.org>
1185 1185
1186 * xftfont.c (xftfont_open): Call FcConfigSubstitute. 1186 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
1187 1187
1188 2008-02-02 Kenichi Handa <handa@m17n.org> 1188 2008-02-01 Kenichi Handa <handa@m17n.org>
1189 1189
1190 * xftfont.c (xftfont_open): Don't enable antialias explicitly. 1190 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
1191 1191
1192 2008-02-02 Kenichi Handa <handa@m17n.org> 1192 2008-02-01 Kenichi Handa <handa@m17n.org>
1193 1193
1194 * search.c (simple_search): Fix previous change. 1194 * search.c (simple_search): Fix previous change.
1195 1195
1196 2008-02-02 Kenichi Handa <handa@m17n.org> 1196 2008-02-01 Kenichi Handa <handa@m17n.org>
1197 1197
1198 * xftfont.c (ftfont_font_format): Extern declaration. 1198 * xftfont.c (ftfont_font_format): Extern declaration.
1199 1199
1200 * frame.c (x_set_font): Fix the second arg to fs_query_fontset. 1200 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
1201 1201
1212 1212
1213 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function. 1213 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
1214 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2. 1214 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
1215 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise. 1215 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
1216 1216
1217 2008-02-02 Kenichi Handa <handa@m17n.org> 1217 2008-02-01 Kenichi Handa <handa@m17n.org>
1218 1218
1219 * ftfont.c (ftfont_pattern_entity): Check if FC_FONTFORMAT is 1219 * ftfont.c (ftfont_pattern_entity): Check if FC_FONTFORMAT is
1220 defined. 1220 defined.
1221 (ftfont_list_generic_family, ftfont_list, ftfont_font_format): 1221 (ftfont_list_generic_family, ftfont_list, ftfont_font_format):
1222 Likewise. 1222 Likewise.
1223 1223
1224 2008-02-02 Kenichi Handa <handa@m17n.org> 1224 2008-02-01 Kenichi Handa <handa@m17n.org>
1225 1225
1226 * xfont.c (xfont_open): Set font->format. 1226 * xfont.c (xfont_open): Set font->format.
1227 1227
1228 * xftfont.c (xftfont_open): Set font->format. 1228 * xftfont.c (xftfont_open): Set font->format.
1229 1229
1237 * font.c (Qopentype): New variable. 1237 * font.c (Qopentype): New variable.
1238 (syms_of_font): Defsym it. 1238 (syms_of_font): Defsym it.
1239 (Fquery_font): Change the format of the last element of the return 1239 (Fquery_font): Change the format of the last element of the return
1240 value. 1240 value.
1241 1241
1242 2008-02-02 Kenichi Handa <handa@m17n.org> 1242 2008-02-01 Kenichi Handa <handa@m17n.org>
1243 1243
1244 * search.c (simple_search): Fix sync with HEAD. 1244 * search.c (simple_search): Fix sync with HEAD.
1245 1245
1246 2008-02-02 Kenichi Handa <handa@m17n.org> 1246 2008-02-01 Kenichi Handa <handa@m17n.org>
1247 1247
1248 * xfns.c (xic_create_xfontset): Try the default fontset name as a 1248 * xfns.c (xic_create_xfontset): Try the default fontset name as a
1249 last resort. 1249 last resort.
1250 1250
1251 2008-02-02 Kenichi Handa <handa@m17n.org> 1251 2008-02-01 Kenichi Handa <handa@m17n.org>
1252 1252
1253 * coding.c (detect_coding_charset): Fix detection of multi-byte 1253 * coding.c (detect_coding_charset): Fix detection of multi-byte
1254 charset. 1254 charset.
1255 1255
1256 2008-02-02 Bob Halley <halley@play-bow.org> (tiny change) 1256 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
1257 1257
1258 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0. 1258 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
1259 1259
1260 2008-02-02 Kenichi Handa <handa@m17n.org> 1260 2008-02-01 Kenichi Handa <handa@m17n.org>
1261 1261
1262 * xdisp.c (get_next_display_element): Set it->face_id for the 1262 * xdisp.c (get_next_display_element): Set it->face_id for the
1263 first component of a composition. 1263 first component of a composition.
1264 (x_produce_glyphs): Check if the font is changed or not for 1264 (x_produce_glyphs): Check if the font is changed or not for
1265 composition. 1265 composition.
1266 1266
1267 2008-02-02 Kenichi Handa <handa@m17n.org> 1267 2008-02-01 Kenichi Handa <handa@m17n.org>
1268 1268
1269 (get_next_display_element): Set it->face_id for the 1269 (get_next_display_element): Set it->face_id for the
1270 first component of a composition. 1270 first component of a composition.
1271 (x_produce_glyphs): Check if the font is changed or not for 1271 (x_produce_glyphs): Check if the font is changed or not for
1272 composition. 1272 composition.
1273 1273
1274 2008-02-02 Kenichi Handa <handa@m17n.org> 1274 2008-02-01 Kenichi Handa <handa@m17n.org>
1275 1275
1276 * fontset.c (Qlatin): New variable. 1276 * fontset.c (Qlatin): New variable.
1277 (syms_of_fontset): Define it as a lisp symbol. 1277 (syms_of_fontset): Define it as a lisp symbol.
1278 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for 1278 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for
1279 ASCII. 1279 ASCII.
1280 1280
1281 2008-02-02 Kenichi Handa <handa@m17n.org> 1281 2008-02-01 Kenichi Handa <handa@m17n.org>
1282 1282
1283 * font.c (font_unparse_fcname): Pay attention to the case that 1283 * font.c (font_unparse_fcname): Pay attention to the case that
1284 some of font property is a null string. 1284 some of font property is a null string.
1285 1285
1286 2008-02-02 Kenichi Handa <handa@m17n.org> 1286 2008-02-01 Kenichi Handa <handa@m17n.org>
1287 1287
1288 * term.c: Include "composite.h". 1288 * term.c: Include "composite.h".
1289 (encode_terminal_code): Output all components of composition. 1289 (encode_terminal_code): Output all components of composition.
1290 Check the size of encode_terminal_src. 1290 Check the size of encode_terminal_src.
1291 (produce_glyphs): For compostion, call produce_composite_glyph. 1291 (produce_glyphs): For compostion, call produce_composite_glyph.
1292 (append_composite_glyph, produce_composite_glyph): New functions. 1292 (append_composite_glyph, produce_composite_glyph): New functions.
1293 1293
1294 * xdisp.c (x_produce_glyphs): In handling composition, if a font 1294 * xdisp.c (x_produce_glyphs): In handling composition, if a font
1295 is not found, get font_info from the current ascii face. 1295 is not found, get font_info from the current ascii face.
1296 1296
1297 2008-02-02 Kenichi Handa <handa@m17n.org> 1297 2008-02-01 Kenichi Handa <handa@m17n.org>
1298 1298
1299 * fileio.c (Finsert_file_contents): On replacing, temporarily bind 1299 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
1300 buffer-file-name to Qnil before calling insert_from_buffer. 1300 buffer-file-name to Qnil before calling insert_from_buffer.
1301 1301
1302 * font.c (font_unparse_fcname): Pay attention to the case that 1302 * font.c (font_unparse_fcname): Pay attention to the case that
1303 foundry is a null string. 1303 foundry is a null string.
1304 1304
1305 2008-02-02 Kenichi Handa <handa@m17n.org> 1305 2008-02-01 Kenichi Handa <handa@m17n.org>
1306 1306
1307 * ftfont.c (ftfont_list): Allow registry "unicode-sip". 1307 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
1308 1308
1309 * font.c (Qunicode_sip): New variable. 1309 * font.c (Qunicode_sip): New variable.
1310 (syms_of_font): Declare it as a Lisp symbol. 1310 (syms_of_font): Declare it as a Lisp symbol.
1311 1311
1312 * font.h (Qunicode_sip): Extern it. 1312 * font.h (Qunicode_sip): Extern it.
1313 1313
1314 2008-02-02 Kenichi Handa <handa@m17n.org> 1314 2008-02-01 Kenichi Handa <handa@m17n.org>
1315 1315
1316 * composite.c (get_composition_id): Pay attention to TAB 1316 * composite.c (get_composition_id): Pay attention to TAB
1317 component. 1317 component.
1318 1318
1319 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw 1319 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1327 non-TAB component. 1327 non-TAB component.
1328 (fill_composite_glyph_string): Argument changed. 1328 (fill_composite_glyph_string): Argument changed.
1329 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the above change. 1329 (BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the above change.
1330 (x_produce_glyphs): Fix handling of left/right padding. 1330 (x_produce_glyphs): Fix handling of left/right padding.
1331 1331
1332 2008-02-02 Kenichi Handa <handa@m17n.org> 1332 2008-02-01 Kenichi Handa <handa@m17n.org>
1333 1333
1334 * regex.c (analyse_first): Cancel the change for synching with 1334 * regex.c (analyse_first): Cancel the change for synching with
1335 HEAD. 1335 HEAD.
1336 1336
1337 2008-02-02 Kenichi Handa <handa@m17n.org> 1337 2008-02-01 Kenichi Handa <handa@m17n.org>
1338 1338
1339 * coding.c (detect_coding_system): Fix for handling off 1339 * coding.c (detect_coding_system): Fix for handling off
1340 inhibit_iso_escape_detection. Fix for the case that no coding 1340 inhibit_iso_escape_detection. Fix for the case that no coding
1341 system is defined for a specific coding category. 1341 system is defined for a specific coding category.
1342 1342
1343 2008-02-02 Kenichi Handa <handa@m17n.org> 1343 2008-02-01 Kenichi Handa <handa@m17n.org>
1344 1344
1345 * font.c (font_matching_entity): Dolete unused local var. 1345 * font.c (font_matching_entity): Dolete unused local var.
1346 1346
1347 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before 1347 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
1348 opening a font. 1348 opening a font.
1355 * coding.c (setup_coding_system): Fix setting of 1355 * coding.c (setup_coding_system): Fix setting of
1356 coding->common_flags based on eol_type. 1356 coding->common_flags based on eol_type.
1357 (coding_inherit_eol_type): If PARENT is not nil, be sure to 1357 (coding_inherit_eol_type): If PARENT is not nil, be sure to
1358 inherit from it. 1358 inherit from it.
1359 1359
1360 2008-02-02 Kenichi Handa <handa@m17n.org> 1360 2008-02-01 Kenichi Handa <handa@m17n.org>
1361 1361
1362 * alloc.c (NSTATICS): Increased to 0x600. 1362 * alloc.c (NSTATICS): Increased to 0x600.
1363 1363
1364 2008-02-02 Kenichi Handa <handa@m17n.org> 1364 2008-02-01 Kenichi Handa <handa@m17n.org>
1365 1365
1366 * ftfont.c (ftfont_driver): Set ftfont_driver.match to 1366 * ftfont.c (ftfont_driver): Set ftfont_driver.match to
1367 ftfont_match. 1367 ftfont_match.
1368 (ftfont_list): Don't check :name property. 1368 (ftfont_list): Don't check :name property.
1369 (ftfont_match): New function. 1369 (ftfont_match): New function.
1403 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match. 1403 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
1404 1404
1405 * xftfont.c (xftfont_match): New function. 1405 * xftfont.c (xftfont_match): New function.
1406 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match. 1406 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
1407 1407
1408 2008-02-02 Kenichi Handa <handa@m17n.org> 1408 2008-02-01 Kenichi Handa <handa@m17n.org>
1409 1409
1410 * font.h (struct font): New member scalable. 1410 * font.h (struct font): New member scalable.
1411 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub. 1411 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1412 (font_otf_gsub): Prototype adjusted. 1412 (font_otf_gsub): Prototype adjusted.
1413 1413
1449 Clip to src->width, etc (not src->clip_XXX). 1449 Clip to src->width, etc (not src->clip_XXX).
1450 1450
1451 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle 1451 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
1452 FontBackend frame parameter. 1452 FontBackend frame parameter.
1453 1453
1454 2008-02-02 Kenichi Handa <handa@m17n.org> 1454 2008-02-01 Kenichi Handa <handa@m17n.org>
1455 1455
1456 * font.h (struct font_driver_list): New member `on'. 1456 * font.h (struct font_driver_list): New member `on'.
1457 (Fclear_font_cache): EXFUN it. 1457 (Fclear_font_cache): EXFUN it.
1458 (font_update_drivers): Extern it. 1458 (font_update_drivers): Extern it.
1459 1459
1476 x_set_font_backend. 1476 x_set_font_backend.
1477 1477
1478 * xfont.c (xfont_list): Don't try listing by :name property if the 1478 * xfont.c (xfont_list): Don't try listing by :name property if the
1479 name is not for XLFD. 1479 name is not for XLFD.
1480 1480
1481 2008-02-02 Kenichi Handa <handa@m17n.org> 1481 2008-02-01 Kenichi Handa <handa@m17n.org>
1482 1482
1483 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM) 1483 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
1484 (LGLYPH_SET_TO): New macros. 1484 (LGLYPH_SET_TO): New macros.
1485 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment 1485 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
1486 element of G is vector or not. 1486 element of G is vector or not.
1513 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]: 1513 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
1514 Check if adjustment is vector or not. 1514 Check if adjustment is vector or not.
1515 1515
1516 * Makefile.in (font.o): Make it depends on window.h. 1516 * Makefile.in (font.o): Make it depends on window.h.
1517 1517
1518 2008-02-02 Kenichi Handa <handa@m17n.org> 1518 2008-02-01 Kenichi Handa <handa@m17n.org>
1519 1519
1520 * xterm.c (x_draw_composite_glyph_string_foreground): Check if 1520 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
1521 adjustment is vector or not. 1521 adjustment is vector or not.
1522 1522
1523 2008-02-02 Kenichi Handa <handa@m17n.org> 1523 2008-02-01 Kenichi Handa <handa@m17n.org>
1524 1524
1525 * casefiddle.c (casify_object): Sync with HEAD. 1525 * casefiddle.c (casify_object): Sync with HEAD.
1526 1526
1527 2008-02-02 Miles Bader <miles@gnu.org> 1527 2008-02-01 Miles Bader <miles@gnu.org>
1528 1528
1529 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE. 1529 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
1530 1530
1531 2008-02-02 Kenichi Handa <handa@m17n.org> 1531 2008-02-01 Kenichi Handa <handa@m17n.org>
1532 1532
1533 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST) 1533 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
1534 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format. 1534 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
1535 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros. 1535 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
1536 1536
1541 (font_prepare_composition): Likewise. 1541 (font_prepare_composition): Likewise.
1542 1542
1543 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for 1543 * xterm.c (x_draw_composite_glyph_string_foreground): Adjusted for
1544 the change of LGLYPH format. 1544 the change of LGLYPH format.
1545 1545
1546 2008-02-02 Kenichi Handa <handa@m17n.org> 1546 2008-02-01 Kenichi Handa <handa@m17n.org>
1547 1547
1548 * ftfont.c (ftfont_list): Fix typo. 1548 * ftfont.c (ftfont_list): Fix typo.
1549 (ftfont_build_basic_charsets): Don't include letters with 1549 (ftfont_build_basic_charsets): Don't include letters with
1550 diactrics. 1550 diactrics.
1551 1551
1552 2008-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 1552 2008-02-01 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1553 1553
1554 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL. 1554 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
1555 1555
1556 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if 1556 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
1557 xftface_info is non-NULL. 1557 xftface_info is non-NULL.
1558 1558
1559 2008-02-02 Kenichi Handa <handa@m17n.org> 1559 2008-02-01 Kenichi Handa <handa@m17n.org>
1560 1560
1561 * ftfont.c (ftfont_list): Fix typo. 1561 * ftfont.c (ftfont_list): Fix typo.
1562 (ftfont_build_basic_charsets): Don't include letters with 1562 (ftfont_build_basic_charsets): Don't include letters with
1563 diactrics. 1563 diactrics.
1564 1564
1565 2008-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 1565 2008-02-01 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1566 1566
1567 * ftfont.c (ftfont_list): Move misplaced #endif 1567 * ftfont.c (ftfont_list): Move misplaced #endif
1568 1568
1569 2008-02-02 Kenichi Handa <handa@m17n.org> 1569 2008-02-01 Kenichi Handa <handa@m17n.org>
1570 1570
1571 * ftfont.c (ftfont_list): Pay attention to the case that 1571 * ftfont.c (ftfont_list): Pay attention to the case that
1572 FC_CAPABILITY is not defined. 1572 FC_CAPABILITY is not defined.
1573 1573
1574 2008-02-02 Kenichi Handa <handa@m17n.org> 1574 2008-02-01 Kenichi Handa <handa@m17n.org>
1575 1575
1576 * xftfont.c (xftfont_open): Set charset related members to -1. 1576 * xftfont.c (xftfont_open): Set charset related members to -1.
1577 1577
1578 * ftfont.c (ftfont_list): Handle QCotf property. Handling of 1578 * ftfont.c (ftfont_list): Handle QCotf property. Handling of
1579 QCname fixed. 1579 QCname fixed.
1587 1587
1588 * font.c (font_find_for_lface): Code optimized. 1588 * font.c (font_find_for_lface): Code optimized.
1589 1589
1590 * font.h (font_close_object, font_merge_old_spec): Extern them. 1590 * font.h (font_close_object, font_merge_old_spec): Extern them.
1591 1591
1592 2008-02-02 Kenichi Handa <handa@m17n.org> 1592 2008-02-01 Kenichi Handa <handa@m17n.org>
1593 1593
1594 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables. 1594 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
1595 (syms_of_font): Initialize them. 1595 (syms_of_font): Initialize them.
1596 (font_pixel_size): Allow float value in dpi. 1596 (font_pixel_size): Allow float value in dpi.
1597 (font_prop_validate_type): Deleted. 1597 (font_prop_validate_type): Deleted.
1632 (xfont_list): Use xfont_list_pattern. 1632 (xfont_list): Use xfont_list_pattern.
1633 1633
1634 * xftfont.c (xftfont_prepare_face): Cancel previous change. 1634 * xftfont.c (xftfont_prepare_face): Cancel previous change.
1635 (xftfont_done_face): Likewise. 1635 (xftfont_done_face): Likewise.
1636 1636
1637 2008-02-02 Kenichi Handa <handa@m17n.org> 1637 2008-02-01 Kenichi Handa <handa@m17n.org>
1638 1638
1639 * font.h (Flist_fonts): EXFUN it. 1639 * font.h (Flist_fonts): EXFUN it.
1640 1640
1641 2008-02-02 Jason Rumney <jasonr@gnu.org> 1641 2008-02-01 Jason Rumney <jasonr@gnu.org>
1642 1642
1643 * w32term.c (w32_initialize): Add back smoothing_type and 1643 * w32term.c (w32_initialize): Add back smoothing_type and
1644 smoothing_enabled definitions. 1644 smoothing_enabled definitions.
1645 1645
1646 2008-02-02 Kenichi Handa <handa@m17n.org> 1646 2008-02-01 Kenichi Handa <handa@m17n.org>
1647 1647
1648 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check 1648 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
1649 s->face->font on determining underline position. 1649 s->face->font on determining underline position.
1650 1650
1651 2008-02-02 Kenichi Handa <handa@m17n.org> 1651 2008-02-01 Kenichi Handa <handa@m17n.org>
1652 1652
1653 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field. 1653 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
1654 (font_has_char): Accept font-object too. 1654 (font_has_char): Accept font-object too.
1655 (font_find_for_lface): Try at first with a size specified in face. 1655 (font_find_for_lface): Try at first with a size specified in face.
1656 1656
1657 * xftfont.c (xftfont_prepare_face): Make non-ascii face share 1657 * xftfont.c (xftfont_prepare_face): Make non-ascii face share
1658 face->extra with ascii face. 1658 face->extra with ascii face.
1659 (xftfont_done_face): Don't free face->extra of non-ascii face. 1659 (xftfont_done_face): Don't free face->extra of non-ascii face.
1660 1660
1661 2008-02-02 Kenichi Handa <handa@m17n.org> 1661 2008-02-01 Kenichi Handa <handa@m17n.org>
1662 1662
1663 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to 1663 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
1664 font_open_by_name. 1664 font_open_by_name.
1665 1665
1666 2008-02-02 Kenichi Handa <handa@m17n.org> 1666 2008-02-01 Kenichi Handa <handa@m17n.org>
1667 1667
1668 * font.h (QCspacing, QCdpi): Extern them. 1668 * font.h (QCspacing, QCdpi): Extern them.
1669 (enum font_spacing): New enum. 1669 (enum font_spacing): New enum.
1670 (FONT_PIXEL_SIZE_QUANTUM): New macro. 1670 (FONT_PIXEL_SIZE_QUANTUM): New macro.
1671 1671
1692 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't 1692 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
1693 include weight in listing pattern, instead check weight of each 1693 include weight in listing pattern, instead check weight of each
1694 listed font. Don't include scalable in pattern. Pay attention to 1694 listed font. Don't include scalable in pattern. Pay attention to
1695 FONT_PIXEL_SIZE_QUANTUM. 1695 FONT_PIXEL_SIZE_QUANTUM.
1696 1696
1697 2008-02-02 Kenichi Handa <handa@m17n.org> 1697 2008-02-01 Kenichi Handa <handa@m17n.org>
1698 1698
1699 * lread.c (read_escape): Fix the code synched with HEAD. 1699 * lread.c (read_escape): Fix the code synched with HEAD.
1700 1700
1701 * font.c (font_parse_fcname): Fix parsing of point-size. 1701 * font.c (font_parse_fcname): Fix parsing of point-size.
1702 (font_unparse_fcname): Produce symbolic names for style 1702 (font_unparse_fcname): Produce symbolic names for style
1713 pattern. Don't force scalable. 1713 pattern. Don't force scalable.
1714 1714
1715 * xftfont.c (xftfont_open): For generating a name, start from 1715 * xftfont.c (xftfont_open): For generating a name, start from
1716 96-byte buffer. 1716 96-byte buffer.
1717 1717
1718 2008-02-02 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 1718 2008-02-01 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
1719 1719
1720 * frame.h (x_new_fontset2): Fix prototype. 1720 * frame.h (x_new_fontset2): Fix prototype.
1721 1721
1722 2008-02-02 Kenichi Handa <handa@m17n.org> 1722 2008-02-01 Kenichi Handa <handa@m17n.org>
1723 1723
1724 * font.h (struct font_driver): Member parse_name deleted. 1724 * font.h (struct font_driver): Member parse_name deleted.
1725 (font_match_p, font_get_spec, font_parse_fcname) 1725 (font_match_p, font_get_spec, font_parse_fcname)
1726 (font_unparse_fcname): Extern them. 1726 (font_unparse_fcname): Extern them.
1727 (font_get_name): Prototype adjusted. 1727 (font_get_name): Prototype adjusted.
1790 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro. 1790 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
1791 1791
1792 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments. 1792 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
1793 Both args FONTSET and FONT_OBJECT must be existing ones. 1793 Both args FONTSET and FONT_OBJECT must be existing ones.
1794 1794
1795 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 1795 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1796 1796
1797 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR. 1797 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
1798 1798
1799 2008-02-02 Kenichi Handa <handa@m17n.org> 1799 2008-02-01 Kenichi Handa <handa@m17n.org>
1800 1800
1801 * xfont.c (xfont_open, xfont_encode_char): Fix typo. 1801 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
1802 1802
1803 * font.h (struct font): Fix typo. 1803 * font.h (struct font): Fix typo.
1804 1804
1814 1814
1815 * ftfont.c (ftfont_pattern_entity): Fix typo. 1815 * ftfont.c (ftfont_pattern_entity): Fix typo.
1816 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of 1816 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
1817 locale. 1817 locale.
1818 1818
1819 2008-02-02 Kenichi Handa <handa@m17n.org> 1819 2008-02-01 Kenichi Handa <handa@m17n.org>
1820 1820
1821 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them. 1821 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
1822 1822
1823 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Moved from 1823 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Moved from
1824 ftfont.c. 1824 ftfont.c.
1860 name, set LFACE_FONT (lface) to nil. 1860 name, set LFACE_FONT (lface) to nil.
1861 1861
1862 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded, 1862 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
1863 return Qnil. 1863 return Qnil.
1864 1864
1865 2008-02-02 Jason Rumney <jasonr@gnu.org> 1865 2008-02-01 Jason Rumney <jasonr@gnu.org>
1866 1866
1867 * w32term.c (w32_initialize): Manually sync 2008-02-02 change from 1867 * w32term.c (w32_initialize): Manually sync 2008-02-01 change from
1868 HEAD. 1868 HEAD.
1869 1869
1870 2008-02-02 Kenichi Handa <handa@m17n.org> 1870 2008-02-01 Kenichi Handa <handa@m17n.org>
1871 1871
1872 * emacs.c (main): Check -enable-font-backend arg after the check 1872 * emacs.c (main): Check -enable-font-backend arg after the check
1873 of -nl. 1873 of -nl.
1874 (standard_args): Add "-enable-font-backend". 1874 (standard_args): Add "-enable-font-backend".
1875 1875
1877 1877
1878 * callproc.c (Fcall_process): Sync with HEAD. 1878 * callproc.c (Fcall_process): Sync with HEAD.
1879 1879
1880 * coding.h (CODING_REQUIRE_ENCODING): Comment sync with HEAD. 1880 * coding.h (CODING_REQUIRE_ENCODING): Comment sync with HEAD.
1881 1881
1882 2008-02-02 Kenichi Handa <handa@m17n.org> 1882 2008-02-01 Kenichi Handa <handa@m17n.org>
1883 1883
1884 * xftfont.c (xftfont_default_fid): Set fid_known to 1. 1884 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
1885 (struct xftdraw_list, xftdraw_list): Delete them. 1885 (struct xftdraw_list, xftdraw_list): Delete them.
1886 (register_xftdraw, check_xftdraw): Delete them. 1886 (register_xftdraw, check_xftdraw): Delete them.
1887 (xftfont_prepare_face): Don't call register_xftdraw. 1887 (xftfont_prepare_face): Don't call register_xftdraw.
1889 (xftfont_draw): Get backroudn color only when with_background is 1889 (xftfont_draw): Get backroudn color only when with_background is
1890 nonzero. 1890 nonzero.
1891 1891
1892 * xfont.c (xfont_encode_char): Fix calculation of char2b. 1892 * xfont.c (xfont_encode_char): Fix calculation of char2b.
1893 1893
1894 2008-02-02 Kenichi Handa <handa@m17n.org> 1894 2008-02-01 Kenichi Handa <handa@m17n.org>
1895 1895
1896 These changes are for the new font handling codes. 1896 These changes are for the new font handling codes.
1897 1897
1898 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@, 1898 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
1899 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@. 1899 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
1997 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string) 1997 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
1998 (x_free_frame_resources) [USE_FONT_BACKEND]: If 1998 (x_free_frame_resources) [USE_FONT_BACKEND]: If
1999 enable_font_backend is nonzero, use font-backend mechanism. 1999 enable_font_backend is nonzero, use font-backend mechanism.
2000 (x_new_fontset2) [USE_FONT_BACKEND]: New function. 2000 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
2001 2001
2002 2008-02-02 Kenichi Handa <handa@m17n.org> 2002 2008-02-01 Kenichi Handa <handa@m17n.org>
2003 2003
2004 * coding.h (system_eol_type): Fix synching with HEAD. 2004 * coding.h (system_eol_type): Fix synching with HEAD.
2005 2005
2006 * coding.c (system_eol_type): Sync with HEAD. 2006 * coding.c (system_eol_type): Sync with HEAD.
2007 (coding_inherit_eol_type): If PARENT is nil, inherit from 2007 (coding_inherit_eol_type): If PARENT is nil, inherit from
2018 2018
2019 * fileio.c (choose_write_coding_system): Fix synching with HEAD. 2019 * fileio.c (choose_write_coding_system): Fix synching with HEAD.
2020 2020
2021 * keymap.c (push_key_description): Fix synching with HEAD. 2021 * keymap.c (push_key_description): Fix synching with HEAD.
2022 2022
2023 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2023 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2024 2024
2025 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch. 2025 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
2026 2026
2027 2008-02-02 Kenichi Handa <handa@m17n.org> 2027 2008-02-01 Kenichi Handa <handa@m17n.org>
2028 2028
2029 * coding.c (decode_eol): Pay attention to buffer relocation in 2029 * coding.c (decode_eol): Pay attention to buffer relocation in
2030 del_range_2. 2030 del_range_2.
2031 (decode_coding): Call decode_eol before restoring undo_list. 2031 (decode_coding): Call decode_eol before restoring undo_list.
2032 2032
2033 2008-02-02 Kenichi Handa <handa@m17n.org> 2033 2008-02-01 Kenichi Handa <handa@m17n.org>
2034 2034
2035 * charset.c (Fdefine_charset_internal): Fix setting of 2035 * charset.c (Fdefine_charset_internal): Fix setting of
2036 emacs_mule_bytes. 2036 emacs_mule_bytes.
2037 2037
2038 2008-02-02 Kenichi Handa <handa@m17n.org> 2038 2008-02-01 Kenichi Handa <handa@m17n.org>
2039 2039
2040 * keyboard.c (read_char): Check if C is a character or not before 2040 * keyboard.c (read_char): Check if C is a character or not before
2041 looking up Vkeyboard_translate_table. 2041 looking up Vkeyboard_translate_table.
2042 2042
2043 2008-02-02 Kenichi Handa <handa@m17n.org> 2043 2008-02-01 Kenichi Handa <handa@m17n.org>
2044 2044
2045 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix 2045 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
2046 condition to terminate the loop. 2046 condition to terminate the loop.
2047 2047
2048 2008-02-02 Kenichi Handa <handa@m17n.org> 2048 2008-02-01 Kenichi Handa <handa@m17n.org>
2049 2049
2050 * coding.c (produce_composition): Compare charbuf[i] instead of 2050 * coding.c (produce_composition): Compare charbuf[i] instead of
2051 args[i] against 0. 2051 args[i] against 0.
2052 (Fterminal_coding_system): Use EQ to compare Lisp objects. 2052 (Fterminal_coding_system): Use EQ to compare Lisp objects.
2053 2053
2054 2008-02-02 Kenichi Handa <handa@m17n.org> 2054 2008-02-01 Kenichi Handa <handa@m17n.org>
2055 2055
2056 * coding.c (DECODE_COMPOSITION_START): If the source is short, set 2056 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
2057 coding->result to CODING_RESULT_INSUFFICIENT_SRC. 2057 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
2058 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of 2058 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
2059 detect_coding. 2059 detect_coding.
2062 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Fix parsing a composition 2062 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Fix parsing a composition
2063 rule. 2063 rule.
2064 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise. 2064 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2065 (decode_coding_emacs_mule): Handle invalid bytes correctly. 2065 (decode_coding_emacs_mule): Handle invalid bytes correctly.
2066 2066
2067 2008-02-02 Kenichi Handa <handa@m17n.org> 2067 2008-02-01 Kenichi Handa <handa@m17n.org>
2068 2068
2069 * coding.c (encode_coding_ccl): Allocate destination dynamically 2069 * coding.c (encode_coding_ccl): Allocate destination dynamically
2070 when necessary. 2070 when necessary.
2071 2071
2072 2008-02-02 Kenichi Handa <handa@m17n.org> 2072 2008-02-01 Kenichi Handa <handa@m17n.org>
2073 2073
2074 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating 2074 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
2075 the loop. When quitted, show a proper error message. 2075 the loop. When quitted, show a proper error message.
2076 2076
2077 2008-02-02 Kenichi Handa <handa@m17n.org> 2077 2008-02-01 Kenichi Handa <handa@m17n.org>
2078 2078
2079 * coding.c (decode_coding): Fix previous change. 2079 * coding.c (decode_coding): Fix previous change.
2080 2080
2081 * xterm.c (x_set_glyph_string_clipping_exactly): Set 2081 * xterm.c (x_set_glyph_string_clipping_exactly): Set
2082 src->clip_head and src->clip_tail temporarily instead of src->hl. 2082 src->clip_head and src->clip_tail temporarily instead of src->hl.
2083 2083
2084 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte 2084 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
2085 character sequence. 2085 character sequence.
2086 (Fccl_execute_on_string): Use ASET, not XSET. 2086 (Fccl_execute_on_string): Use ASET, not XSET.
2087 2087
2088 2008-02-02 Kenichi Handa <handa@m17n.org> 2088 2008-02-01 Kenichi Handa <handa@m17n.org>
2089 2089
2090 * search.c (search_buffer): Fix handling of "\\" in a trivial 2090 * search.c (search_buffer): Fix handling of "\\" in a trivial
2091 regexp. 2091 regexp.
2092 2092
2093 2008-02-02 Kenichi Handa <handa@m17n.org> 2093 2008-02-01 Kenichi Handa <handa@m17n.org>
2094 2094
2095 * coding.c (decode_coding): Fix the condition of terminating the 2095 * coding.c (decode_coding): Fix the condition of terminating the
2096 decoding loop. 2096 decoding loop.
2097 2097
2098 2008-02-02 Kenichi Handa <handa@m17n.org> 2098 2008-02-01 Kenichi Handa <handa@m17n.org>
2099 2099
2100 * data.c (Faset): On setting a character bigger than 255 in a 2100 * data.c (Faset): On setting a character bigger than 255 in a
2101 unibyte string, signal an error instead of make the string 2101 unibyte string, signal an error instead of make the string
2102 multibyte. 2102 multibyte.
2103 2103
2104 2008-02-02 Kenichi Handa <handa@m17n.org> 2104 2008-02-01 Kenichi Handa <handa@m17n.org>
2105 2105
2106 * charset.c (map_charset_chars): Fix for ascii-compatible charset 2106 * charset.c (map_charset_chars): Fix for ascii-compatible charset
2107 made by a mapping table. 2107 made by a mapping table.
2108 2108
2109 2008-02-02 Kenichi Handa <handa@m17n.org> 2109 2008-02-01 Kenichi Handa <handa@m17n.org>
2110 2110
2111 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or 2111 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
2112 not. 2112 not.
2113 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL. 2113 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
2114 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly. 2114 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
2115 2115
2116 * xterm.c (x_draw_composite_glyph_string_foreground): Check 2116 * xterm.c (x_draw_composite_glyph_string_foreground): Check
2117 s->face is NULL or not. 2117 s->face is NULL or not.
2118 2118
2119 2008-02-02 Kenichi Handa <handa@m17n.org> 2119 2008-02-01 Kenichi Handa <handa@m17n.org>
2120 2120
2121 * xterm.c (x_set_glyph_string_clipping_exactly): New function. 2121 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
2122 (x_draw_glyph_string): Fix drawing of right_overhang and 2122 (x_draw_glyph_string): Fix drawing of right_overhang and
2123 left_overhang around/on cursor. 2123 left_overhang around/on cursor.
2124 2124
2125 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting 2125 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting
2126 glyphs. 2126 glyphs.
2127 2127
2128 * term.c (produce_glyphs): Sync to HEAD. 2128 * term.c (produce_glyphs): Sync to HEAD.
2129 2129
2130 2008-02-02 Kenichi Handa <handa@m17n.org> 2130 2008-02-01 Kenichi Handa <handa@m17n.org>
2131 2131
2132 * xdisp.c (x_produce_glyphs): Handle composition with TAB. 2132 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
2133 2133
2134 2008-02-02 Kenichi Handa <handa@m17n.org> 2134 2008-02-01 Kenichi Handa <handa@m17n.org>
2135 2135
2136 * coding.c: Cancel incorrect synching with HEAD. 2136 * coding.c: Cancel incorrect synching with HEAD.
2137 2137
2138 2008-02-02 Kenichi Handa <handa@m17n.org> 2138 2008-02-01 Kenichi Handa <handa@m17n.org>
2139 2139
2140 * coding.c (Fdefine_coding_system_internal): Avoid a duplicated 2140 * coding.c (Fdefine_coding_system_internal): Avoid a duplicated
2141 element in Vcoding_system_alist. 2141 element in Vcoding_system_alist.
2142 (Fdefine_coding_system_alias): Likewise. 2142 (Fdefine_coding_system_alias): Likewise.
2143 2143
2144 2008-02-02 Kenichi Handa <handa@m17n.org> 2144 2008-02-01 Kenichi Handa <handa@m17n.org>
2145 2145
2146 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF. 2146 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
2147 2147
2148 * coding.c: Sync to HEAD for handling autoload-coding-system. 2148 * coding.c: Sync to HEAD for handling autoload-coding-system.
2149 (Qcoding_system_define_form): New variable. 2149 (Qcoding_system_define_form): New variable.
2157 (CHECK_CODING_SYSTEM): If ID is not available, call 2157 (CHECK_CODING_SYSTEM): If ID is not available, call
2158 Fcheck_coding_system. 2158 Fcheck_coding_system.
2159 (CHECK_CODING_SYSTEM_GET_SPEC): Try also Fcheck_coding_system. 2159 (CHECK_CODING_SYSTEM_GET_SPEC): Try also Fcheck_coding_system.
2160 (CHECK_CODING_SYSTEM_GET_ID): Likewise. 2160 (CHECK_CODING_SYSTEM_GET_ID): Likewise.
2161 2161
2162 2008-02-02 Kenichi Handa <handa@m17n.org> 2162 2008-02-01 Kenichi Handa <handa@m17n.org>
2163 2163
2164 * xterm.c (handle_one_xevent): Delete unnecessary code inserted by 2164 * xterm.c (handle_one_xevent): Delete unnecessary code inserted by
2165 sync with HEAD. 2165 sync with HEAD.
2166 2166
2167 * coding.c (code_conversion_restore): GCPRO arg. 2167 * coding.c (code_conversion_restore): GCPRO arg.
2168 2168
2169 2008-02-02 Kenichi Handa <handa@m17n.org> 2169 2008-02-01 Kenichi Handa <handa@m17n.org>
2170 2170
2171 * character.c (lisp_string_width): Check multibyteness of STRING. 2171 * character.c (lisp_string_width): Check multibyteness of STRING.
2172 2172
2173 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2173 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2174 2174
2175 * macterm.c (mac_encode_char): Call ccl_driver with the last arg 2175 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
2176 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS. 2176 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
2177 (decode_mac_font_name): Use decode_coding_c_string instead of 2177 (decode_mac_font_name): Use decode_coding_c_string instead of
2178 decode_coding. 2178 decode_coding.
2179 (x_load_font): Initialize fontp->fontset to -1. Set 2179 (x_load_font): Initialize fontp->fontset to -1. Set
2180 fontp->encoding_type. 2180 fontp->encoding_type.
2181 2181
2182 2008-02-02 Kenichi Handa <handa@m17n.org> 2182 2008-02-01 Kenichi Handa <handa@m17n.org>
2183 2183
2184 * search.c (search_buffer): Give up BM search on case-fold-search 2184 * search.c (search_buffer): Give up BM search on case-fold-search
2185 if one of a target character has a case-equivalence of different 2185 if one of a target character has a case-equivalence of different
2186 byte length even if that target charcter is an ASCII. 2186 byte length even if that target charcter is an ASCII.
2187 (simple_search): Fix culculation of byte length of matched text. 2187 (simple_search): Fix culculation of byte length of matched text.
2188 (boyer_moore): Fix handling of case-equivalent multibyte 2188 (boyer_moore): Fix handling of case-equivalent multibyte
2189 characters. 2189 characters.
2190 2190
2191 2008-02-02 Kenichi Handa <handa@m17n.org> 2191 2008-02-01 Kenichi Handa <handa@m17n.org>
2192 2192
2193 * coding.c (decode_coding): Fix handling of invalid bytes. 2193 * coding.c (decode_coding): Fix handling of invalid bytes.
2194 2194
2195 2008-02-02 Kenichi Handa <handa@m17n.org> 2195 2008-02-01 Kenichi Handa <handa@m17n.org>
2196 2196
2197 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to 2197 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
2198 Unicode characters. 2198 Unicode characters.
2199 2199
2200 2008-02-02 Kenichi Handa <handa@m17n.org> 2200 2008-02-01 Kenichi Handa <handa@m17n.org>
2201 2201
2202 * coding.c (encode_coding_object): If a pre-write-conversion 2202 * coding.c (encode_coding_object): If a pre-write-conversion
2203 function makes a new buffer, kill it. 2203 function makes a new buffer, kill it.
2204 2204
2205 2008-02-02 Kenichi Handa <handa@m17n.org> 2205 2008-02-01 Kenichi Handa <handa@m17n.org>
2206 2206
2207 * coding.c (QCascii_compatible_p): New variable. 2207 * coding.c (QCascii_compatible_p): New variable.
2208 (syms_of_coding): Initialize it. 2208 (syms_of_coding): Initialize it.
2209 (ONE_MORE_BYTE): Decrement `src' before calling string_char. 2209 (ONE_MORE_BYTE): Decrement `src' before calling string_char.
2210 (ONE_MORE_BYTE_NO_CHECK): Likewise. 2210 (ONE_MORE_BYTE_NO_CHECK): Likewise.
2212 (coding_charset_list): Delete unused variable `coding_type'. 2212 (coding_charset_list): Delete unused variable `coding_type'.
2213 (Fdefine_coding_system_internal): Add `ascii-compatible-p' 2213 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
2214 property in the plist of the coding system. 2214 property in the plist of the coding system.
2215 (Fcoding_system_put): Check QCascii_compatible_p. 2215 (Fcoding_system_put): Check QCascii_compatible_p.
2216 2216
2217 2008-02-02 Kenichi Handa <handa@m17n.org> 2217 2008-02-01 Kenichi Handa <handa@m17n.org>
2218 2218
2219 * xdisp.c (get_next_display_element): Sync with the change in 2219 * xdisp.c (get_next_display_element): Sync with the change in
2220 HEAD (2008-02-02). 2220 HEAD (2008-02-01).
2221 2221
2222 2008-02-02 Kenichi Handa <handa@m17n.org> 2222 2008-02-01 Kenichi Handa <handa@m17n.org>
2223 2223
2224 * callproc.c (Fcall_process): Sync with the change in 2224 * callproc.c (Fcall_process): Sync with the change in
2225 HEAD (2008-02-02). 2225 HEAD (2008-02-01).
2226 2226
2227 2008-02-02 Miles Bader <miles@gnu.org> 2227 2008-02-01 Miles Bader <miles@gnu.org>
2228 2228
2229 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously 2229 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
2230 removed calculation of frame `f', as it's now used. 2230 removed calculation of frame `f', as it's now used.
2231 2231
2232 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2232 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2233 2233
2234 * macterm.c (x_font_name_to_mac_font_name): Sync with trunk 2234 * macterm.c (x_font_name_to_mac_font_name): Sync with trunk
2235 for the case that does not require code conversion. 2235 for the case that does not require code conversion.
2236 2236
2237 2008-02-02 Kenichi Handa <handa@m17n.org> 2237 2008-02-01 Kenichi Handa <handa@m17n.org>
2238 2238
2239 * Makefile.in (shortlisp): Cancel previous change. 2239 * Makefile.in (shortlisp): Cancel previous change.
2240 (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined. 2240 (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
2241 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally. 2241 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
2242 (UNIDATA): New variable. 2242 (UNIDATA): New variable.
2243 (${lispsource}international/charprop.el): Depends on ${UNIDATA}. 2243 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
2244 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run 2244 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
2245 $(RUN_TEMACS) unconditionally. 2245 $(RUN_TEMACS) unconditionally.
2246 2246
2247 2008-02-02 Kenichi Handa <handa@m17n.org> 2247 2008-02-01 Kenichi Handa <handa@m17n.org>
2248 2248
2249 * Makefile.in (shortlisp): Add ../lisp/international/charprop.el. 2249 * Makefile.in (shortlisp): Add ../lisp/international/charprop.el.
2250 (temacs${EXEEXT}): Build charprop.el if necessary. 2250 (temacs${EXEEXT}): Build charprop.el if necessary.
2251 (admindir): New variable. 2251 (admindir): New variable.
2252 ($(lispsource)international/charprop.el): New target. 2252 ($(lispsource)international/charprop.el): New target.
2253 2253
2254 2008-02-02 Miles Bader <miles@gnu.org> 2254 2008-02-01 Miles Bader <miles@gnu.org>
2255 2255
2256 * character.c (chars-in-region): Obsolete function removed. 2256 * character.c (chars-in-region): Obsolete function removed.
2257 (syms_of_character): Remove its initialization. 2257 (syms_of_character): Remove its initialization.
2258 2258
2259 2008-02-02 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net> 2259 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
2260 2260
2261 * w32select.c (validate_coding_system) 2261 * w32select.c (validate_coding_system)
2262 (setup_windows_coding_system): New functions. 2262 (setup_windows_coding_system): New functions.
2263 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use 2263 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
2264 setup_windows_coding_system. 2264 setup_windows_coding_system.
2268 were signals are allowed. 2268 were signals are allowed.
2269 2269
2270 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type) 2270 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
2271 (Fcheck_coding_system): Add declarations. 2271 (Fcheck_coding_system): Add declarations.
2272 2272
2273 2008-02-02 Kenichi Handa <handa@m17n.org> 2273 2008-02-01 Kenichi Handa <handa@m17n.org>
2274 2274
2275 * s/ms-w32.h (STDC_HEADERS): Sync with the change in 2275 * s/ms-w32.h (STDC_HEADERS): Sync with the change in
2276 HEAD (2008-02-02). 2276 HEAD (2008-02-01).
2277 2277
2278 2008-02-02 Kenichi Handa <handa@m17n.org> 2278 2008-02-01 Kenichi Handa <handa@m17n.org>
2279 2279
2280 * charset.c (load_charset_map_from_vector): Fix for the first 2280 * charset.c (load_charset_map_from_vector): Fix for the first
2281 iteration. 2281 iteration.
2282 2282
2283 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2283 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2284 2284
2285 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp 2285 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
2286 string as the second argument for x_new_fontset. 2286 string as the second argument for x_new_fontset.
2287 2287
2288 2008-02-02 Kenichi Handa <handa@m17n.org> 2288 2008-02-01 Kenichi Handa <handa@m17n.org>
2289 2289
2290 * fns.c (Fstring_as_multibyte): Fix the change for syncing with 2290 * fns.c (Fstring_as_multibyte): Fix the change for syncing with
2291 CVS head. 2291 CVS head.
2292 2292
2293 2008-02-02 Kenichi Handa <handa@m17n.org> 2293 2008-02-01 Kenichi Handa <handa@m17n.org>
2294 2294
2295 * search.c (search_buffer): Fix the change for syncing with CVS 2295 * search.c (search_buffer): Fix the change for syncing with CVS
2296 head. 2296 head.
2297 (search_buffer): Likewise. 2297 (search_buffer): Likewise.
2298 2298
2299 2008-02-02 Kenichi Handa <handa@m17n.org> 2299 2008-02-01 Kenichi Handa <handa@m17n.org>
2300 2300
2301 * xdisp.c (get_next_display_element): Sync with CVS head. 2301 * xdisp.c (get_next_display_element): Sync with CVS head.
2302 2302
2303 2008-02-02 Kenichi Handa <handa@m17n.org> 2303 2008-02-01 Kenichi Handa <handa@m17n.org>
2304 2304
2305 * coding.c (decode_coding_object): Use safe_call1 instead of call1. 2305 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
2306 (encode_coding_object): Use safe_call instead of call2. 2306 (encode_coding_object): Use safe_call instead of call2.
2307 2307
2308 2008-02-02 Kenichi Handa <handa@m17n.org> 2308 2008-02-01 Kenichi Handa <handa@m17n.org>
2309 2309
2310 * fontset.c (set_default_ascii_font): Fix the change for 2310 * fontset.c (set_default_ascii_font): Fix the change for
2311 syncing with CVS head. 2311 syncing with CVS head.
2312 2312
2313 2008-02-02 Kenichi Handa <handa@m17n.org> 2313 2008-02-01 Kenichi Handa <handa@m17n.org>
2314 2314
2315 * fontset.c (Fset_fontset_font): Check family element of a given 2315 * fontset.c (Fset_fontset_font): Check family element of a given
2316 vector. 2316 vector.
2317 2317
2318 * Makefile.in (lisp): Include charprop.el. 2318 * Makefile.in (lisp): Include charprop.el.
2319 2319
2320 2008-02-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 2320 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2321 2321
2322 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash. 2322 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
2323 Not sure if it's unnecessary. 2323 Not sure if it's unnecessary.
2324 2324
2325 2008-02-02 Steven Tamm <steventamm@mac.com> 2325 2008-02-01 Steven Tamm <steventamm@mac.com>
2326 2326
2327 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out 2327 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
2328 some possibly unnecessary fontset checking code that crashed 2328 some possibly unnecessary fontset checking code that crashed
2329 when creating a new frame 2329 when creating a new frame
2330 2330
2331 2008-02-02 Kenichi Handa <handa@m17n.org> 2331 2008-02-01 Kenichi Handa <handa@m17n.org>
2332 2332
2333 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and 2333 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
2334 lookup_face. 2334 lookup_face.
2335 2335
2336 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face. 2336 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
2337 2337
2338 * fringe.c (draw_fringe_bitmap_1): Fix argument to 2338 * fringe.c (draw_fringe_bitmap_1): Fix argument to
2339 lookup_named_face. 2339 lookup_named_face.
2340 2340
2341 2008-02-02 Kenichi Handa <handa@m17n.org> 2341 2008-02-01 Kenichi Handa <handa@m17n.org>
2342 2342
2343 * xdisp.c (get_next_display_element): Sync to the change in HEAD 2343 * xdisp.c (get_next_display_element): Sync to the change in HEAD
2344 on 2008-02-02. 2344 on 2008-02-01.
2345 2345
2346 2008-02-02 Kenichi Handa <handa@m17n.org> 2346 2008-02-01 Kenichi Handa <handa@m17n.org>
2347 2347
2348 * search.c: Sync to the change in HEAD on 2008-02-02, 20. 2348 * search.c: Sync to the change in HEAD on 2008-02-01, 20.
2349 2349
2350 * w32console.c: Sync to the change in HEAD on 2008-02-02. 2350 * w32console.c: Sync to the change in HEAD on 2008-02-01.
2351 2351
2352 * coding.c: Cancel the change done in HEAD on 2008-02-02. 2352 * coding.c: Cancel the change done in HEAD on 2008-02-01.
2353 (coding_charset_list): New function. 2353 (coding_charset_list): New function.
2354 2354
2355 * coding.h (coding_charset_list): Extern it. 2355 * coding.h (coding_charset_list): Extern it.
2356 2356
2357 * term.c: Sync to the change in HEAD on 2008-02-02. 2357 * term.c: Sync to the change in HEAD on 2008-02-01.
2358 2358
2359 2008-02-02 Kenichi Handa <handa@m17n.org> 2359 2008-02-01 Kenichi Handa <handa@m17n.org>
2360 2360
2361 * fontset.c (Fset_fontset_font): Call find_font_encoding with 2361 * fontset.c (Fset_fontset_font): Call find_font_encoding with
2362 concatenation of family and registry. 2362 concatenation of family and registry.
2363 2363
2364 2008-02-02 Kenichi Handa <handa@m17n.org> 2364 2008-02-01 Kenichi Handa <handa@m17n.org>
2365 2365
2366 * character.h (BYTE8_STRING): Fix typo. 2366 * character.h (BYTE8_STRING): Fix typo.
2367 2367
2368 * editfns.c (Ftranslate_region_internal): Don't convert unibyte 2368 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
2369 string to multibyte (sync to HEAD). 2369 string to multibyte (sync to HEAD).
2370 2370
2371 * casefiddle.c (casify_region): Handle changes in byte-length 2371 * casefiddle.c (casify_region): Handle changes in byte-length
2372 using replace_range_2 (sync to HEAD). 2372 using replace_range_2 (sync to HEAD).
2373 2373
2374 2008-02-02 Andreas Schwab <schwab@suse.de> 2374 2008-02-01 Andreas Schwab <schwab@suse.de>
2375 2375
2376 * chartab.c (map_char_table): GCPRO table and arg. 2376 * chartab.c (map_char_table): GCPRO table and arg.
2377 2377
2378 2008-02-02 Kenichi Handa <handa@m17n.org> 2378 2008-02-01 Kenichi Handa <handa@m17n.org>
2379 2379
2380 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is 2380 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
2381 already at limit. 2381 already at limit.
2382 2382
2383 2008-02-02 Kenichi Handa <handa@m17n.org> 2383 2008-02-01 Kenichi Handa <handa@m17n.org>
2384 2384
2385 * fontset.c (fs_load_font): Use fast_string_match_ignore_case 2385 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
2386 instead of fast_c_string_match_ignore_case. 2386 instead of fast_c_string_match_ignore_case.
2387 (find_font_encoding): Argument changed to Lisp_Object. Use 2387 (find_font_encoding): Argument changed to Lisp_Object. Use
2388 fast_string_match_ignore_case instead of 2388 fast_string_match_ignore_case instead of
2389 fast_c_string_match_ignore_case. Caller changed. 2389 fast_c_string_match_ignore_case. Caller changed.
2390 2390
2391 2008-02-02 Kenichi Handa <handa@m17n.org> 2391 2008-02-01 Kenichi Handa <handa@m17n.org>
2392 2392
2393 * xdisp.c (get_next_display_element): In unibyte case, decide to 2393 * xdisp.c (get_next_display_element): In unibyte case, decide to
2394 display in octal form by checking a chacter by 2394 display in octal form by checking a chacter by
2395 UNIBYTE_CHAR_HAS_MULTIBYTE_P. 2395 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
2396 2396
2400 * character.c (unibyte_has_multibyte_table): New variable. 2400 * character.c (unibyte_has_multibyte_table): New variable.
2401 2401
2402 * character.h (unibyte_has_multibyte_table): Extern it. 2402 * character.h (unibyte_has_multibyte_table): Extern it.
2403 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro. 2403 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
2404 2404
2405 2008-02-02 Kenichi Handa <handa@m17n.org> 2405 2008-02-01 Kenichi Handa <handa@m17n.org>
2406 2406
2407 * callproc.c (Fcall_process): Fix merging of 2008-02-02 change. 2407 * callproc.c (Fcall_process): Fix merging of 2008-02-01 change.
2408 2408
2409 2008-02-02 Kenichi Handa <handa@m17n.org> 2409 2008-02-01 Kenichi Handa <handa@m17n.org>
2410 2410
2411 * coding.c (encode_coding_iso_2022): Fix handling of charset 2411 * coding.c (encode_coding_iso_2022): Fix handling of charset
2412 annotation. 2412 annotation.
2413 2413
2414 2008-02-02 Kenichi Handa <handa@m17n.org> 2414 2008-02-01 Kenichi Handa <handa@m17n.org>
2415 2415
2416 * coding.c (setup_coding_system): If coding_system is nil, use 2416 * coding.c (setup_coding_system): If coding_system is nil, use
2417 Qundecided. 2417 Qundecided.
2418 (Fterminal_coding_system): Return nil if terminal coding system is 2418 (Fterminal_coding_system): Return nil if terminal coding system is
2419 `undecided'. 2419 `undecided'.
2420 (syms_of_coding): Define coding-system `undecided' here. Setup 2420 (syms_of_coding): Define coding-system `undecided' here. Setup
2421 terminal_coding as `undecided'. 2421 terminal_coding as `undecided'.
2422 2422
2423 2008-02-02 Kenichi Handa <handa@m17n.org> 2423 2008-02-01 Kenichi Handa <handa@m17n.org>
2424 2424
2425 * xdisp.c (message_dolog, set_message_1): Call 2425 * xdisp.c (message_dolog, set_message_1): Call
2426 unibyte_char_to_multibyte with arg type int. 2426 unibyte_char_to_multibyte with arg type int.
2427 2427
2428 * fileio.c (Fsubstitute_in_file_name): Fix previous change. 2428 * fileio.c (Fsubstitute_in_file_name): Fix previous change.
2430 * lread.c (read1): Fix reading of a char-table. 2430 * lread.c (read1): Fix reading of a char-table.
2431 2431
2432 * print.c (print_object): Include sub char-table in cicularities 2432 * print.c (print_object): Include sub char-table in cicularities
2433 detection. 2433 detection.
2434 2434
2435 2008-02-02 Kenichi Handa <handa@m17n.org> 2435 2008-02-01 Kenichi Handa <handa@m17n.org>
2436 2436
2437 * keymap.c (where_is_internal_2): Fix for the case that KEY is a 2437 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
2438 cons. Append the found sequences in car of ARGS instead of 2438 cons. Append the found sequences in car of ARGS instead of
2439 prepending. 2439 prepending.
2440 2440
2441 2008-02-02 Kenichi Handa <handa@m17n.org> 2441 2008-02-01 Kenichi Handa <handa@m17n.org>
2442 2442
2443 * fileio.c (report_file_error): Make a unibyte string from 2443 * fileio.c (report_file_error): Make a unibyte string from
2444 strerror (errorno). 2444 strerror (errorno).
2445 (Fsubstitute_in_file_name): Fix the arg to 2445 (Fsubstitute_in_file_name): Fix the arg to
2446 unibyte_char_to_multibyte. It is evaluated twice. 2446 unibyte_char_to_multibyte. It is evaluated twice.
2447 2447
2448 2008-02-02 Kenichi Handa <handa@m17n.org> 2448 2008-02-01 Kenichi Handa <handa@m17n.org>
2449 2449
2450 * charset.h (CHAR_CHARSET): Shortcut for ASCII case. 2450 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
2451 2451
2452 2008-02-02 Kenichi Handa <handa@m17n.org> 2452 2008-02-01 Kenichi Handa <handa@m17n.org>
2453 2453
2454 * coding.c (detect_coding): Fix previous change. 2454 * coding.c (detect_coding): Fix previous change.
2455 2455
2456 2008-02-02 Kenichi Handa <handa@m17n.org> 2456 2008-02-01 Kenichi Handa <handa@m17n.org>
2457 2457
2458 * coding.c (detect_coding_utf_16): Don't set detect_info->found if 2458 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
2459 BOM is not found. 2459 BOM is not found.
2460 (detect_coding): Optimization for ISO-2022 when no 8-bit data is 2460 (detect_coding): Optimization for ISO-2022 when no 8-bit data is
2461 found. 2461 found.
2462 (detect_coding_system): Likewise. 2462 (detect_coding_system): Likewise.
2463 2463
2464 2008-02-02 Jason Rumney <jasonr@gnu.org> 2464 2008-02-01 Jason Rumney <jasonr@gnu.org>
2465 2465
2466 * w32fns.c (x_to_w32_font): Update to use new coding struct. 2466 * w32fns.c (x_to_w32_font): Update to use new coding struct.
2467 2467
2468 2008-02-02 Kenichi Handa <handa@m17n.org> 2468 2008-02-01 Kenichi Handa <handa@m17n.org>
2469 2469
2470 * charset.c (Fdeclare_equiv_charset): Fix handing of CHARS. 2470 * charset.c (Fdeclare_equiv_charset): Fix handing of CHARS.
2471 (Fiso_charset): Likewise. 2471 (Fiso_charset): Likewise.
2472 2472
2473 2008-02-02 Steven Tamm <steventamm@mac.com> 2473 2008-02-01 Steven Tamm <steventamm@mac.com>
2474 2474
2475 * macterm.c (mac_encode_char): Add charset argument and update 2475 * macterm.c (mac_encode_char): Add charset argument and update
2476 to use encoding_type. 2476 to use encoding_type.
2477 (x_new_font,x_new_fontset): Merge in changes from xterm.c; 2477 (x_new_font,x_new_fontset): Merge in changes from xterm.c;
2478 switch to pure fontset 2478 switch to pure fontset
2479 (decode_mac_font_name): Temporarily remove decoding 2479 (decode_mac_font_name): Temporarily remove decoding
2480 (x_font_name_to_mac_font_name): Temporarily remove encoding 2480 (x_font_name_to_mac_font_name): Temporarily remove encoding
2481 (x_load_font): Temporarily remove encoding 2481 (x_load_font): Temporarily remove encoding
2482 2482
2483 2008-02-02 Kenichi Handa <handa@m17n.org> 2483 2008-02-01 Kenichi Handa <handa@m17n.org>
2484 2484
2485 * xfaces.c (Fface_font): If frame is not on a window system, 2485 * xfaces.c (Fface_font): If frame is not on a window system,
2486 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't 2486 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
2487 refer to face->font. 2487 refer to face->font.
2488 (split_font_name_into_vector, build_font_name_from_vector) 2488 (split_font_name_into_vector, build_font_name_from_vector)
2489 (lookup_non_ascii_face, realize_non_ascii_face): Define them only 2489 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
2490 whne HAVE_WINDOW_SYSTEM is defined. 2490 whne HAVE_WINDOW_SYSTEM is defined.
2491 2491
2492 2008-02-02 Kenichi Handa <handa@m17n.org> 2492 2008-02-01 Kenichi Handa <handa@m17n.org>
2493 2493
2494 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL. 2494 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
2495 (x_produce_glyphs): Fix setting of members of cmp in case 2495 (x_produce_glyphs): Fix setting of members of cmp in case
2496 cmp->glyph_len is zero, 2496 cmp->glyph_len is zero,
2497 2497
2498 * fontset.c (Fset_fontset_font): Docstring fixed. 2498 * fontset.c (Fset_fontset_font): Docstring fixed.
2499 (Ffontset_info): Make it backward compatible. New arg ALL. 2499 (Ffontset_info): Make it backward compatible. New arg ALL.
2500 2500
2501 2008-02-02 Kim F. Storm <storm@cua.dk> 2501 2008-02-01 Kim F. Storm <storm@cua.dk>
2502 2502
2503 * process.c (read_process_output): Grow decoding_buf when needed; 2503 * process.c (read_process_output): Grow decoding_buf when needed;
2504 this could cause a crash in allocate_string and compact_small_strings. 2504 this could cause a crash in allocate_string and compact_small_strings.
2505 2505
2506 2008-02-02 Kenichi Handa <handa@m17n.org> 2506 2008-02-01 Kenichi Handa <handa@m17n.org>
2507 2507
2508 * fileio.c (WRITE_BUF_SIZE): This macro deleted. 2508 * fileio.c (WRITE_BUF_SIZE): This macro deleted.
2509 (e_write): Fix previous change. 2509 (e_write): Fix previous change.
2510 2510
2511 2008-02-02 Kenichi Handa <handa@m17n.org> 2511 2008-02-01 Kenichi Handa <handa@m17n.org>
2512 2512
2513 * coding.c (setup_coding_system): Set coding->common_flags 2513 * coding.c (setup_coding_system): Set coding->common_flags
2514 correctly for raw-text. 2514 correctly for raw-text.
2515 (consume_chars): On encoding unibyte text by raw-text, don't check 2515 (consume_chars): On encoding unibyte text by raw-text, don't check
2516 multibyte form. 2516 multibyte form.
2517 (encode_coding): On encoding by raw-text, never use translation 2517 (encode_coding): On encoding by raw-text, never use translation
2518 tables. 2518 tables.
2519 2519
2520 * fileio.c (e_write): Short cut for the case of no encoding. 2520 * fileio.c (e_write): Short cut for the case of no encoding.
2521 2521
2522 2008-02-02 Kenichi Handa <handa@m17n.org> 2522 2008-02-01 Kenichi Handa <handa@m17n.org>
2523 2523
2524 * coding.c (detect_coding): Delete unused variables. 2524 * coding.c (detect_coding): Delete unused variables.
2525 (detect_coding_system): Likewise. 2525 (detect_coding_system): Likewise.
2526 2526
2527 2008-02-02 Kenichi Handa <handa@m17n.org> 2527 2008-02-01 Kenichi Handa <handa@m17n.org>
2528 2528
2529 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char. 2529 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
2530 (consume_chars): Fix handling of 8-bit bytes in unibyte source. 2530 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
2531 2531
2532 2008-02-02 Kenichi Handa <handa@m17n.org> 2532 2008-02-01 Kenichi Handa <handa@m17n.org>
2533 2533
2534 Sync all files to HEAD. 2534 Sync all files to HEAD.
2535 2535
2536 2008-02-02 Kenichi Handa <handa@m17n.org> 2536 2008-02-01 Kenichi Handa <handa@m17n.org>
2537 2537
2538 * coding.c (Ffind_coding_systems_region_internal): Include 2538 * coding.c (Ffind_coding_systems_region_internal): Include
2539 raw-text and no-conversion in the result. 2539 raw-text and no-conversion in the result.
2540 2540
2541 * fontset.h: Sync to HEAD. 2541 * fontset.h: Sync to HEAD.
2542 2542
2543 * fontset.c: Sync to HEAD. 2543 * fontset.c: Sync to HEAD.
2544 2544
2545 2008-02-02 Kenichi Handa <handa@m17n.org> 2545 2008-02-01 Kenichi Handa <handa@m17n.org>
2546 2546
2547 * fontset.c (find_font_encoding): Return `ascii' for unknown 2547 * fontset.c (find_font_encoding): Return `ascii' for unknown
2548 encoding. 2548 encoding.
2549 (load_font_get_repertory): Delete unnecessary check of ENCODING of 2549 (load_font_get_repertory): Delete unnecessary check of ENCODING of
2550 FONT_DEF. 2550 FONT_DEF.
2552 (set_fontset_font): Argument changed. 2552 (set_fontset_font): Argument changed.
2553 (Fset_fontset_font): Fix for the case that TARGET is a script 2553 (Fset_fontset_font): Fix for the case that TARGET is a script
2554 name and charset name. 2554 name and charset name.
2555 (new_fontset_from_font_name): Fix argument to Fnew_fontset. 2555 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
2556 2556
2557 2008-02-02 Kenichi Handa <handa@m17n.org> 2557 2008-02-01 Kenichi Handa <handa@m17n.org>
2558 2558
2559 * fontset.c (fontset_font): Renamed from fontset_face. Return 2559 * fontset.c (fontset_font): Renamed from fontset_face. Return
2560 value changed. 2560 value changed.
2561 (face_suitable_for_char_p): Adjusted for the change of 2561 (face_suitable_for_char_p): Adjusted for the change of
2562 fontset_font. 2562 fontset_font.
2581 * charset.h: Sync to HEAD. 2581 * charset.h: Sync to HEAD.
2582 2582
2583 * character.h (LEADING_CODE_LATIN_1_MIN) 2583 * character.h (LEADING_CODE_LATIN_1_MIN)
2584 (LEADING_CODE_LATIN_1_MAX): Delete these macros. 2584 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
2585 2585
2586 2008-02-02 Kenichi Handa <handa@m17n.org> 2586 2008-02-01 Kenichi Handa <handa@m17n.org>
2587 2587
2588 * category.h: Sync to HEAD. 2588 * category.h: Sync to HEAD.
2589 2589
2590 * category.c: Sync to HEAD. 2590 * category.c: Sync to HEAD.
2591 2591
2595 2595
2596 * regex.h: Sync to HEAD. 2596 * regex.h: Sync to HEAD.
2597 2597
2598 * regex.c: Sync to HEAD. 2598 * regex.c: Sync to HEAD.
2599 2599
2600 2008-02-02 Kenichi Handa <handa@m17n.org> 2600 2008-02-01 Kenichi Handa <handa@m17n.org>
2601 2601
2602 * editfns.c: Sync to HEAD. 2602 * editfns.c: Sync to HEAD.
2603 (check_translation): New function. 2603 (check_translation): New function.
2604 (Ftranslate_region_internal): Handle M:N mapping. 2604 (Ftranslate_region_internal): Handle M:N mapping.
2605 2605
2606 2008-02-02 Kenichi Handa <handa@m17n.org> 2606 2008-02-01 Kenichi Handa <handa@m17n.org>
2607 2607
2608 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE]. 2608 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
2609 2609
2610 2008-02-02 Kenichi Handa <handa@m17n.org> 2610 2008-02-01 Kenichi Handa <handa@m17n.org>
2611 2611
2612 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of 2612 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
2613 goto invalid_code. 2613 goto invalid_code.
2614 (decode_coding_iso_2022): Fix handling of invalid designation. 2614 (decode_coding_iso_2022): Fix handling of invalid designation.
2615 2615
2616 * fileio.c (Finsert_file_contents): Be sure to call unbind_to 2616 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
2617 after calling code_conversion_save. 2617 after calling code_conversion_save.
2618 2618
2619 2008-02-02 Kenichi Handa <handa@m17n.org> 2619 2008-02-01 Kenichi Handa <handa@m17n.org>
2620 2620
2621 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup. 2621 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
2622 2622
2623 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup. 2623 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
2624 2624
2634 (decode_coding): Call get_translation_table with max_lookup NULL. 2634 (decode_coding): Call get_translation_table with max_lookup NULL.
2635 (Ffind_coding_systems_region_internal): Likewise. 2635 (Ffind_coding_systems_region_internal): Likewise.
2636 (Funencodable_char_position, Fcheck_coding_systems_region): 2636 (Funencodable_char_position, Fcheck_coding_systems_region):
2637 Likewise. 2637 Likewise.
2638 2638
2639 2008-02-02 Kenichi Handa <handa@m17n.org> 2639 2008-02-01 Kenichi Handa <handa@m17n.org>
2640 2640
2641 * coding.c (get_translation_table): Declare it as Lisp_Object. 2641 * coding.c (get_translation_table): Declare it as Lisp_Object.
2642 (LOOKUP_TRANSLATION_TABLE): New macro. 2642 (LOOKUP_TRANSLATION_TABLE): New macro.
2643 (produce_chars): Use LOOKUP_TRANSLATION_TABLE instead of 2643 (produce_chars): Use LOOKUP_TRANSLATION_TABLE instead of
2644 CHAR_TABLE_REF. 2644 CHAR_TABLE_REF.
2645 (consume_chars): Likewise. 2645 (consume_chars): Likewise.
2646 2646
2647 2008-02-02 Kenichi Handa <handa@m17n.org> 2647 2008-02-01 Kenichi Handa <handa@m17n.org>
2648 2648
2649 * coding.c (MAX_ANNOTATION_LENGTH): Adjusted for the change of 2649 * coding.c (MAX_ANNOTATION_LENGTH): Adjusted for the change of
2650 annotation data format. 2650 annotation data format.
2651 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA): 2651 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
2652 Change arguments FROM and TO to single argument NCHARS. Caller 2652 Change arguments FROM and TO to single argument NCHARS. Caller
2666 (consume_chars): New arg translation_table. Caller changed. 2666 (consume_chars): New arg translation_table. Caller changed.
2667 (translate_chars): Deleted. 2667 (translate_chars): Deleted.
2668 (syms_of_coding): Make translation-table's number of extra slots 2668 (syms_of_coding): Make translation-table's number of extra slots
2669 2. 2669 2.
2670 2670
2671 2008-02-02 Kenichi Handa <handa@m17n.org> 2671 2008-02-01 Kenichi Handa <handa@m17n.org>
2672 2672
2673 * search.c (simple_search): Fix setting this_pos_byte in backward 2673 * search.c (simple_search): Fix setting this_pos_byte in backward
2674 search. 2674 search.
2675 2675
2676 * coding.c (detect_coding_emacs_mule): Fix counting of encoded 2676 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
2677 byte sequence. 2677 byte sequence.
2678 (detect_coding_ccl): Fix setting of the variable valids. 2678 (detect_coding_ccl): Fix setting of the variable valids.
2679 2679
2680 2008-02-02 Kenichi Handa <handa@m17n.org> 2680 2008-02-01 Kenichi Handa <handa@m17n.org>
2681 2681
2682 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font. 2682 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
2683 2683
2684 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair. 2684 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
2685 2685
2693 a specific size, don't change that size. 2693 a specific size, don't change that size.
2694 (try_font_list): Try a scalable font also in the case that a 2694 (try_font_list): Try a scalable font also in the case that a
2695 pattern string is specified, 2695 pattern string is specified,
2696 2696
2697 2697
2698 2008-02-02 Kenichi Handa <handa@m17n.org> 2698 2008-02-01 Kenichi Handa <handa@m17n.org>
2699 2699
2700 * xfaces.c (Fface_font): New optional arg CHARACTER. 2700 * xfaces.c (Fface_font): New optional arg CHARACTER.
2701 2701
2702 2008-02-02 Kenichi Handa <handa@m17n.org> 2702 2008-02-01 Kenichi Handa <handa@m17n.org>
2703 2703
2704 * charset.h (CHARSET_OFFSET): New macro. 2704 * charset.h (CHARSET_OFFSET): New macro.
2705 2705
2706 2008-02-02 Kenichi Handa <handa@m17n.org> 2706 2008-02-01 Kenichi Handa <handa@m17n.org>
2707 2707
2708 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset. 2708 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
2709 2709
2710 * fontset.c (fontset_face): Handle the case that repertory is a 2710 * fontset.c (fontset_face): Handle the case that repertory is a
2711 char-table. 2711 char-table.
2712 (find_font_encoding): Return nil for unknown encoding. 2712 (find_font_encoding): Return nil for unknown encoding.
2713 (Fset_fontset_font): Ignore a font of unknown encoding. 2713 (Fset_fontset_font): Ignore a font of unknown encoding.
2714 2714
2715 2008-02-02 Kenichi Handa <handa@m17n.org> 2715 2008-02-01 Kenichi Handa <handa@m17n.org>
2716 2716
2717 * keymap.c (describe_vector): Handle default value of a char 2717 * keymap.c (describe_vector): Handle default value of a char
2718 table. 2718 table.
2719 2719
2720 * fontset.c (fontset_face): Handle fallback fonts correctly. 2720 * fontset.c (fontset_face): Handle fallback fonts correctly.
2721 (Ffontset_info): Return infomation about fallback fonts. 2721 (Ffontset_info): Return infomation about fallback fonts.
2722 2722
2723 2008-02-02 Kenichi Handa <handa@m17n.org> 2723 2008-02-01 Kenichi Handa <handa@m17n.org>
2724 2724
2725 * fontset.c (FONTSET_DEFAULT): New macro. 2725 * fontset.c (FONTSET_DEFAULT): New macro.
2726 (FONTSET_ADD): Handle the case that range is nil. 2726 (FONTSET_ADD): Handle the case that range is nil.
2727 (fontset_add): Likewise. 2727 (fontset_add): Likewise.
2728 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle 2728 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
2732 to 9. 2732 to 9.
2733 2733
2734 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is 2734 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
2735 subset or superset. 2735 subset or superset.
2736 2736
2737 2008-02-02 Kenichi Handa <handa@m17n.org> 2737 2008-02-01 Kenichi Handa <handa@m17n.org>
2738 2738
2739 * emacs.c (main): Call init_charset after syms_of_XXX. 2739 * emacs.c (main): Call init_charset after syms_of_XXX.
2740 2740
2741 * charset.c (Vcharset_map_directory): Deleted. 2741 * charset.c (Vcharset_map_directory): Deleted.
2742 (Vcharset_map_path): New variable 2742 (Vcharset_map_path): New variable
2743 (load_charset_map_from_file): Use Vcharset_map_path instead. 2743 (load_charset_map_from_file): Use Vcharset_map_path instead.
2744 (init_charset): Initialize Vcharset_map_path. 2744 (init_charset): Initialize Vcharset_map_path.
2745 (syms_of_charset): Delete declaration of "charset-map-directory", 2745 (syms_of_charset): Delete declaration of "charset-map-directory",
2746 add declaration of "charset-map-path". 2746 add declaration of "charset-map-path".
2747 2747
2748 2008-02-02 Kenichi Handa <handa@m17n.org> 2748 2008-02-01 Kenichi Handa <handa@m17n.org>
2749 2749
2750 * fns.c (string_char_to_byte): Optimize for ASCII only string. 2750 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2751 (string_byte_to_char): Likewise. 2751 (string_byte_to_char): Likewise.
2752 2752
2753 * fileio.c (Finsert_file_contents): Avoid detecting a code twice. 2753 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
2754 2754
2755 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3. 2755 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
2756 (detect_coding): Treat '\0' as normal ASCII byte.. 2756 (detect_coding): Treat '\0' as normal ASCII byte..
2757 (detect_coding_system): Likewise. 2757 (detect_coding_system): Likewise.
2758 2758
2759 2008-02-02 Kenichi Handa <handa@m17n.org> 2759 2008-02-01 Kenichi Handa <handa@m17n.org>
2760 2760
2761 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros. 2761 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
2762 2762
2763 * coding.c (QCmnemonic, QCdefalut_char) 2763 * coding.c (QCmnemonic, QCdefalut_char)
2764 (QCdecode_translation_table, QCencode_translation_table) 2764 (QCdecode_translation_table, QCencode_translation_table)
2779 * charset.c (map_charset_chars): Fix arg to map_charset_chars in 2779 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
2780 when the charset is superset type. 2780 when the charset is superset type.
2781 2781
2782 * character.c (translate_char): Accept list of translation tables. 2782 * character.c (translate_char): Accept list of translation tables.
2783 2783
2784 2008-02-02 Kenichi Handa <handa@m17n.org> 2784 2008-02-01 Kenichi Handa <handa@m17n.org>
2785 2785
2786 * coding.h (enum coding_attr_index): New member 2786 * coding.h (enum coding_attr_index): New member
2787 coding_attr_trans_tbl. 2787 coding_attr_trans_tbl.
2788 (CODING_ATTR_TRANS_TBL): New macro. 2788 (CODING_ATTR_TRANS_TBL): New macro.
2789 2789
2797 for encode in a coding system attribute vector in advance. 2797 for encode in a coding system attribute vector in advance.
2798 (Fcheck_coding_systems_region): Likewise. 2798 (Fcheck_coding_systems_region): Likewise.
2799 (Fdefine_coding_system_internal): Allow a symbol as translation 2799 (Fdefine_coding_system_internal): Allow a symbol as translation
2800 table. For shift-jis type coding system, allow 4th charset. 2800 table. For shift-jis type coding system, allow 4th charset.
2801 2801
2802 2008-02-02 Kenichi Handa <handa@m17n.org> 2802 2008-02-01 Kenichi Handa <handa@m17n.org>
2803 2803
2804 * coding.c (decode_coding_sjis): Check the first byte rigidly. 2804 * coding.c (decode_coding_sjis): Check the first byte rigidly.
2805 2805
2806 * xdisp.c (get_next_display_element): Pass -1 as POS to 2806 * xdisp.c (get_next_display_element): Pass -1 as POS to
2807 FACE_FOR_CHAR if displaying a C-string. 2807 FACE_FOR_CHAR if displaying a C-string.
2808 2808
2809 2008-02-02 Kenichi Handa <handa@m17n.org> 2809 2008-02-01 Kenichi Handa <handa@m17n.org>
2810 2810
2811 * composite.c (get_composition_id): Handle xoff and yoff in a 2811 * composite.c (get_composition_id): Handle xoff and yoff in a
2812 composition rule. 2812 composition rule.
2813 2813
2814 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff. 2814 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
2820 glyph. 2820 glyph.
2821 2821
2822 * xterm.c (x_compute_glyph_string_overhangs): Handle also a 2822 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
2823 composition glyph. 2823 composition glyph.
2824 2824
2825 2008-02-02 Kenichi Handa <handa@m17n.org> 2825 2008-02-01 Kenichi Handa <handa@m17n.org>
2826 2826
2827 * print.c: Include charset.h. 2827 * print.c: Include charset.h.
2828 (Vprint_charset_text_property): New variable. 2828 (Vprint_charset_text_property): New variable.
2829 (Qdefault): Extern it. 2829 (Qdefault): Extern it.
2830 (PRINT_STRING_NON_CHARSET_FOUND) 2830 (PRINT_STRING_NON_CHARSET_FOUND)
2837 Vprint_charset_text_property is not t. 2837 Vprint_charset_text_property is not t.
2838 (print_interval): Print nothing if itnerval->plist is nil. 2838 (print_interval): Print nothing if itnerval->plist is nil.
2839 (syms_of_print): Declare Vprint_charset_text_property as a lisp 2839 (syms_of_print): Declare Vprint_charset_text_property as a lisp
2840 variable. Init and staticpro print_prune_charset_plist. 2840 variable. Init and staticpro print_prune_charset_plist.
2841 2841
2842 2008-02-02 Kenichi Handa <handa@m17n.org> 2842 2008-02-01 Kenichi Handa <handa@m17n.org>
2843 2843
2844 * fontset.c (new_fontset_from_font_name): Use the specified font 2844 * fontset.c (new_fontset_from_font_name): Use the specified font
2845 for all characters in the new fontset. 2845 for all characters in the new fontset.
2846 2846
2847 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and 2847 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
2851 OBJECT args for composition too. 2851 OBJECT args for composition too.
2852 2852
2853 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and 2853 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
2854 OBJECT args. 2854 OBJECT args.
2855 2855
2856 2008-02-02 Kenichi Handa <handa@m17n.org> 2856 2008-02-01 Kenichi Handa <handa@m17n.org>
2857 2857
2858 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT. 2858 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
2859 2859
2860 * fontset.c (reorder_font_vector): Adjusted for the change of 2860 * fontset.c (reorder_font_vector): Adjusted for the change of
2861 FONT_DEF format. 2861 FONT_DEF format.
2882 POS and OBJECT args. 2882 POS and OBJECT args.
2883 2883
2884 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with 2884 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
2885 POS and OBJECT args. 2885 POS and OBJECT args.
2886 2886
2887 2008-02-02 Jason Rumney <jasonr@gnu.org> 2887 2008-02-01 Jason Rumney <jasonr@gnu.org>
2888 2888
2889 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc 2889 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
2890 of GlobalAlloc'ed memory. 2890 of GlobalAlloc'ed memory.
2891 2891
2892 2008-02-02 Kenichi Handa <handa@m17n.org> 2892 2008-02-01 Kenichi Handa <handa@m17n.org>
2893 2893
2894 * ccl.c (Fccl_execute_on_string): Fix the condition of loop. 2894 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
2895 2895
2896 * charset.h (charset_table_used): Delete extern. 2896 * charset.h (charset_table_used): Delete extern.
2897 2897
2932 2932
2933 * process.c (send_process): Be sure to set coding->src_multibyte. 2933 * process.c (send_process): Be sure to set coding->src_multibyte.
2934 2934
2935 * xdisp.c (handle_auto_composed_prop): Fix setting of limit. 2935 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
2936 2936
2937 2008-02-02 Kenichi Handa <handa@m17n.org> 2937 2008-02-01 Kenichi Handa <handa@m17n.org>
2938 2938
2939 * xdisp.c (handle_auto_composed_prop): Give limit to 2939 * xdisp.c (handle_auto_composed_prop): Give limit to
2940 Fnext_single_char_property_change. 2940 Fnext_single_char_property_change.
2941 2941
2942 2008-02-02 Kenichi Handa <handa@m17n.org> 2942 2008-02-01 Kenichi Handa <handa@m17n.org>
2943 2943
2944 * coding.c (detect_coding): Fix previous change. 2944 * coding.c (detect_coding): Fix previous change.
2945 (detect_coding_system): Likewise. 2945 (detect_coding_system): Likewise.
2946 2946
2947 2008-02-02 Kenichi Handa <handa@m17n.org> 2947 2008-02-01 Kenichi Handa <handa@m17n.org>
2948 2948
2949 * composite.c (syms_of_composite): Don't make the compostion hash 2949 * composite.c (syms_of_composite): Don't make the compostion hash
2950 table week. 2950 table week.
2951 2951
2952 * fontset.c (Fset_fontset_font): Fix docstring. 2952 * fontset.c (Fset_fontset_font): Fix docstring.
2992 Fix for utf-16 detection. 2992 Fix for utf-16 detection.
2993 (init_coding_once): Don't use ISO_carriage_return. 2993 (init_coding_once): Don't use ISO_carriage_return.
2994 (syms_of_coding): Initialized Vcode_conversion_workbuf_name and 2994 (syms_of_coding): Initialized Vcode_conversion_workbuf_name and
2995 reused_workbuf_in_use. 2995 reused_workbuf_in_use.
2996 2996
2997 2008-02-02 Kenichi Handa <handa@m17n.org> 2997 2008-02-01 Kenichi Handa <handa@m17n.org>
2998 2998
2999 * keymap.c (store_in_keymap): Pay attention to the case that idx 2999 * keymap.c (store_in_keymap): Pay attention to the case that idx
3000 is a cons specifying a character range. 3000 is a cons specifying a character range.
3001 3001
3002 * coding.c (Fdefine_coding_system_internal): Fix previous change. 3002 * coding.c (Fdefine_coding_system_internal): Fix previous change.
3003 3003
3004 2008-02-02 Kenichi Handa <handa@m17n.org> 3004 2008-02-01 Kenichi Handa <handa@m17n.org>
3005 3005
3006 * xdisp.c (handle_auto_composed_prop): Fix the case of returning 3006 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
3007 HANDLED_RECOMPUTE_PROPS. 3007 HANDLED_RECOMPUTE_PROPS.
3008 3008
3009 * coding.c (Fdefine_coding_system_internal): Fix checking of 3009 * coding.c (Fdefine_coding_system_internal): Fix checking of
3010 ascii compatibility. 3010 ascii compatibility.
3011 3011
3012 2008-02-02 Kenichi Handa <handa@m17n.org> 3012 2008-02-01 Kenichi Handa <handa@m17n.org>
3013 3013
3014 * charset.c (find_charsets_in_text): Delete unused locale 3014 * charset.c (find_charsets_in_text): Delete unused locale
3015 variable. 3015 variable.
3016 (Fset_charset_priority): Update Vemacs_mule_charset_list too. 3016 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
3017 3017
3019 Resync charset_list to Vemacs_mule_charset_list. 3019 Resync charset_list to Vemacs_mule_charset_list.
3020 3020
3021 * keymap.c (store_in_keymap): Pay attention to the case that idx 3021 * keymap.c (store_in_keymap): Pay attention to the case that idx
3022 is a cons specifying a character range. 3022 is a cons specifying a character range.
3023 3023
3024 2008-02-02 Kenichi Handa <handa@m17n.org> 3024 2008-02-01 Kenichi Handa <handa@m17n.org>
3025 3025
3026 * composite.c (update_compositions): Bind inhibit-read-only, etc 3026 * composite.c (update_compositions): Bind inhibit-read-only, etc
3027 to t before calling remove-list-of-text-properties. 3027 to t before calling remove-list-of-text-properties.
3028 3028
3029 * print.c (print_object): Always print ASCII chars as is. 3029 * print.c (print_object): Always print ASCII chars as is.
3030 3030
3031 2008-02-02 Kenichi Handa <handa@m17n.org> 3031 2008-02-01 Kenichi Handa <handa@m17n.org>
3032 3032
3033 * keymap.c (Fdefine_key): Fix handling of Lucid style event type 3033 * keymap.c (Fdefine_key): Fix handling of Lucid style event type
3034 list. 3034 list.
3035 3035
3036 * fns.c (Fmapconcat): Signal an error if SEQUENCE is a char table. 3036 * fns.c (Fmapconcat): Signal an error if SEQUENCE is a char table.
3037 (Fmapcar): Likewise. 3037 (Fmapcar): Likewise.
3038 (Fmapc): Likewise. 3038 (Fmapc): Likewise.
3039 3039
3040 2008-02-02 Kenichi Handa <handa@m17n.org> 3040 2008-02-01 Kenichi Handa <handa@m17n.org>
3041 3041
3042 * syntax.c (skip_chars): Be sure to alloca char_ranges when 3042 * syntax.c (skip_chars): Be sure to alloca char_ranges when
3043 necessary. 3043 necessary.
3044 3044
3045 2008-02-02 Kenichi Handa <handa@m17n.org> 3045 2008-02-01 Kenichi Handa <handa@m17n.org>
3046 3046
3047 * xfaces.c (set_lface_from_font_name): Fix for the case that 3047 * xfaces.c (set_lface_from_font_name): Fix for the case that
3048 FONTNAME is not fontset name. 3048 FONTNAME is not fontset name.
3049 3049
3050 2008-02-02 Kenichi Handa <handa@m17n.org> 3050 2008-02-01 Kenichi Handa <handa@m17n.org>
3051 3051
3052 * fns.c (base64_encode_1): Fix previous change. 3052 * fns.c (base64_encode_1): Fix previous change.
3053 3053
3054 2008-02-02 Kenichi Handa <handa@m17n.org> 3054 2008-02-01 Kenichi Handa <handa@m17n.org>
3055 3055
3056 * fontset.c (set_fontset_font): New function. 3056 * fontset.c (set_fontset_font): New function.
3057 (Fset_fontset_font): If a font is specified for a charset, use 3057 (Fset_fontset_font): If a font is specified for a charset, use
3058 map_charset_chars to store the font spec in a fontset. 3058 map_charset_chars to store the font spec in a fontset.
3059 3059
3060 2008-02-02 Kenichi Handa <handa@m17n.org> 3060 2008-02-01 Kenichi Handa <handa@m17n.org>
3061 3061
3062 * fontset.c (fontset_face): Create a fallback fontset on demand 3062 * fontset.c (fontset_face): Create a fallback fontset on demand
3063 (make_fontset): Don't create a fallback fontset here. 3063 (make_fontset): Don't create a fallback fontset here.
3064 (free_face_fontset): Free a fallback fontset (if any) too. 3064 (free_face_fontset): Free a fallback fontset (if any) too.
3065 (n_auto_fontsets): Delete this variable. 3065 (n_auto_fontsets): Delete this variable.
3068 (dump_fontset) [FONTSET_DEBUG]: Fully re-written. 3068 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
3069 (Ffontset_list_all) [FONTSET_DEBUG]: New function. 3069 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
3070 (syms_of_fontset): Initialize and staticpro auto_fontset_alist. 3070 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
3071 Defsubr Sfontset_list_all. 3071 Defsubr Sfontset_list_all.
3072 3072
3073 2008-02-02 Kenichi Handa <handa@m17n.org> 3073 2008-02-01 Kenichi Handa <handa@m17n.org>
3074 3074
3075 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts. 3075 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3076 3076
3077 2008-02-02 Kenichi Handa <handa@m17n.org> 3077 2008-02-01 Kenichi Handa <handa@m17n.org>
3078 3078
3079 * fontset.c (Fnew_fontset): Check NAME more rigidly. 3079 * fontset.c (Fnew_fontset): Check NAME more rigidly.
3080 3080
3081 2008-02-02 Kenichi Handa <handa@m17n.org> 3081 2008-02-01 Kenichi Handa <handa@m17n.org>
3082 3082
3083 * editfns.c (Fgoto_char): Fix docstring. 3083 * editfns.c (Fgoto_char): Fix docstring.
3084 3084
3085 2008-02-02 Kenichi Handa <handa@m17n.org> 3085 2008-02-01 Kenichi Handa <handa@m17n.org>
3086 3086
3087 * insdel.c (insert_from_gap): Adjust intervals correctly. 3087 * insdel.c (insert_from_gap): Adjust intervals correctly.
3088 3088
3089 2008-02-02 Jason Rumney <jasonr@gnu.org> 3089 2008-02-01 Jason Rumney <jasonr@gnu.org>
3090 3090
3091 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't. 3091 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
3092 (pfnGetFontUnicodeRanges): New dynamically loaded function. 3092 (pfnGetFontUnicodeRanges): New dynamically loaded function.
3093 (w32_initialize): Try to load it. 3093 (w32_initialize): Try to load it.
3094 (x_get_font_repertory): Use it if available. 3094 (x_get_font_repertory): Use it if available.
3103 (w32_to_x_font): Match charset to real charset. 3103 (w32_to_x_font): Match charset to real charset.
3104 (enum_font_cb2): Always list unicode versions. 3104 (enum_font_cb2): Always list unicode versions.
3105 3105
3106 * makefile.w32-in (temacs): Increase EMHEAP. 3106 * makefile.w32-in (temacs): Increase EMHEAP.
3107 3107
3108 2008-02-02 Jason Rumney <jasonr@gnu.org> 3108 2008-02-01 Jason Rumney <jasonr@gnu.org>
3109 3109
3110 * w32term.c (w32_encode_char): New charset parameter. 3110 * w32term.c (w32_encode_char): New charset parameter.
3111 font_info.encoding becomes encoding_type. 3111 font_info.encoding becomes encoding_type.
3112 (x_get_font_repertory): New function. Warning: stub only! 3112 (x_get_font_repertory): New function. Warning: stub only!
3113 (x_new_font): Return quickly if font already set. 3113 (x_new_font): Return quickly if font already set.
3144 * term.c (terminal_encode_buffer): Make externally visible. 3144 * term.c (terminal_encode_buffer): Make externally visible.
3145 3145
3146 * makefile.w32-in: Add character.h dependancies. 3146 * makefile.w32-in: Add character.h dependancies.
3147 (character.o, chartab.o): New targets. 3147 (character.o, chartab.o): New targets.
3148 3148
3149 2008-02-02 Kenichi Handa <handa@m17n.org> 3149 2008-02-01 Kenichi Handa <handa@m17n.org>
3150 3150
3151 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro 3151 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
3152 CODING_ID_EOL_TYPE.. 3152 CODING_ID_EOL_TYPE..
3153 3153
3154 2008-02-02 Andreas Schwab <schwab@suse.de> 3154 2008-02-01 Andreas Schwab <schwab@suse.de>
3155 3155
3156 * coding.c (produce_chars): Revert last change. 3156 * coding.c (produce_chars): Revert last change.
3157 3157
3158 2008-02-02 Kenichi Handa <handa@m17n.org> 3158 2008-02-01 Kenichi Handa <handa@m17n.org>
3159 3159
3160 * charset.h (charset_unicode): Extern it. 3160 * charset.h (charset_unicode): Extern it.
3161 3161
3162 * charset.c (string_xstring_p): Check by (C >= 0x100). 3162 * charset.c (string_xstring_p): Check by (C >= 0x100).
3163 (find_charsets_in_text): Format of the arc CHARSETS changed. New 3163 (find_charsets_in_text): Format of the arc CHARSETS changed. New
3175 that ENCODING of a font is specified by a char-table. 3175 that ENCODING of a font is specified by a char-table.
3176 3176
3177 * xterm.c (x_get_font_repertory): Handle the case that the 3177 * xterm.c (x_get_font_repertory): Handle the case that the
3178 encoding of font is other than Unicode. 3178 encoding of font is other than Unicode.
3179 3179
3180 2008-02-02 Kenichi Handa <handa@m17n.org> 3180 2008-02-01 Kenichi Handa <handa@m17n.org>
3181 3181
3182 * term.c (encode_terminal_code): Don't handle glyph-table. Check 3182 * term.c (encode_terminal_code): Don't handle glyph-table. Check
3183 if a character is encodable by the terminal coding system. If 3183 if a character is encodable by the terminal coding system. If
3184 not, produces proper number of `?'s. Update 3184 not, produces proper number of `?'s. Update
3185 terminal_encode_buffer and terminal_encode_buf_size if necessary. 3185 terminal_encode_buffer and terminal_encode_buf_size if necessary.
3186 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P. 3186 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
3187 3187
3188 2008-02-02 Kenichi Handa <handa@m17n.org> 3188 2008-02-01 Kenichi Handa <handa@m17n.org>
3189 3189
3190 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New 3190 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
3191 variables. 3191 variables.
3192 (encode_terminal_code): Argument changed. Encode multiple 3192 (encode_terminal_code): Argument changed. Encode multiple
3193 characters at once. Store the result of encoding in 3193 characters at once. Store the result of encoding in
3198 terminal_encode_buf_size. 3198 terminal_encode_buf_size.
3199 3199
3200 * coding.c (consume_chars): If coding->src_object is nil, don't 3200 * coding.c (consume_chars): If coding->src_object is nil, don't
3201 check annotation. 3201 check annotation.
3202 3202
3203 2008-02-02 Kenichi Handa <handa@m17n.org> 3203 2008-02-01 Kenichi Handa <handa@m17n.org>
3204 3204
3205 * character.c (char_string): Use ASCII_CHAR_P instead of 3205 * character.c (char_string): Use ASCII_CHAR_P instead of
3206 SINGLE_BYTE_CHAR_P. 3206 SINGLE_BYTE_CHAR_P.
3207 3207
3208 2008-02-02 Kenichi Handa <handa@m17n.org> 3208 2008-02-01 Kenichi Handa <handa@m17n.org>
3209 3209
3210 * xdisp.c (handle_auto_composed_prop): Check if the last 3210 * xdisp.c (handle_auto_composed_prop): Check if the last
3211 characters of auto-composed region is newly composed with the 3211 characters of auto-composed region is newly composed with the
3212 following characters. 3212 following characters.
3213 (handle_composition_prop): Fix checking of point being inside 3213 (handle_composition_prop): Fix checking of point being inside
3214 composition. 3214 composition.
3215 3215
3216 2008-02-02 Kenichi Handa <handa@m17n.org> 3216 2008-02-01 Kenichi Handa <handa@m17n.org>
3217 3217
3218 * fns.c (concat): Don't change multibyteness of the result by 3218 * fns.c (concat): Don't change multibyteness of the result by
3219 concatenating an 8-bit character. 3219 concatenating an 8-bit character.
3220 3220
3221 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change 3221 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
3222 multibyteness of the result when newelt is an 8-bit character. 3222 multibyteness of the result when newelt is an 8-bit character.
3223 3223
3224 2008-02-02 Dave Love <fx@gnu.org> 3224 2008-02-01 Dave Love <fx@gnu.org>
3225 3225
3226 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used 3226 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
3227 EMACS_INT. 3227 EMACS_INT.
3228 3228
3229 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars. 3229 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
3268 * casetab.c (set_case_table): Remove unused var. 3268 * casetab.c (set_case_table): Remove unused var.
3269 3269
3270 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove 3270 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
3271 unsued vars. 3271 unsued vars.
3272 3272
3273 2008-02-02 Dave Love <fx@gnu.org> 3273 2008-02-01 Dave Love <fx@gnu.org>
3274 3274
3275 * xterm.c (x_bitmap_mask): Declare. 3275 * xterm.c (x_bitmap_mask): Declare.
3276 3276
3277 2008-02-02 Dave Love <fx@gnu.org> 3277 2008-02-01 Dave Love <fx@gnu.org>
3278 3278
3279 * xterm.c (x_term_init): Fix type error. 3279 * xterm.c (x_term_init): Fix type error.
3280 3280
3281 * lisp.h: Add Funibyte_char_to_multibyte. 3281 * lisp.h: Add Funibyte_char_to_multibyte.
3282 3282
3307 * intervals.c (get_property_and_range): 3307 * intervals.c (get_property_and_range):
3308 * intervals.h (get_property_and_range): Make start and end EMACS_INT. 3308 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
3309 3309
3310 * unexalpha.c: Don't include varargs.h. 3310 * unexalpha.c: Don't include varargs.h.
3311 3311
3312 2008-02-02 Dave Love <fx@gnu.org> 3312 2008-02-01 Dave Love <fx@gnu.org>
3313 3313
3314 * coding.h (ENCODE_UTF_8): New. 3314 * coding.h (ENCODE_UTF_8): New.
3315 3315
3316 * Makefile.in (gtkutil.o): Depend on coding.h. 3316 * Makefile.in (gtkutil.o): Depend on coding.h.
3317 3317
3318 * coding.c (Fset_coding_system_priority): Doc fix. 3318 * coding.c (Fset_coding_system_priority): Doc fix.
3319 3319
3320 2008-02-02 Kenichi Handa <handa@m17n.org> 3320 2008-02-01 Kenichi Handa <handa@m17n.org>
3321 3321
3322 * fileio.c (Finsert_file_contents): Call setup_coding_system in 3322 * fileio.c (Finsert_file_contents): Call setup_coding_system in
3323 the case of auto saving. 3323 the case of auto saving.
3324 3324
3325 2008-02-02 Andreas Schwab <schwab@suse.de> 3325 2008-02-01 Andreas Schwab <schwab@suse.de>
3326 3326
3327 * chartab.c (map_char_table): Protect `range' from GC. 3327 * chartab.c (map_char_table): Protect `range' from GC.
3328 (map_char_table_for_charset): Likewise. 3328 (map_char_table_for_charset): Likewise.
3329 3329
3330 2008-02-02 Kenichi Handa <handa@m17n.org> 3330 2008-02-01 Kenichi Handa <handa@m17n.org>
3331 3331
3332 * coding.c (decode_coding_sjis): Check bytes more rigidly. 3332 * coding.c (decode_coding_sjis): Check bytes more rigidly.
3333 3333
3334 2008-02-02 Kenichi Handa <handa@m17n.org> 3334 2008-02-01 Kenichi Handa <handa@m17n.org>
3335 3335
3336 * fileio.c (choose_write_coding_system): Return a decided coding 3336 * fileio.c (choose_write_coding_system): Return a decided coding
3337 system. 3337 system.
3338 (Fwrite_region): Set Vlast_coding_system_used to the return value 3338 (Fwrite_region): Set Vlast_coding_system_used to the return value
3339 of choose_write_coding_system. 3339 of choose_write_coding_system.
3340 3340
3341 2008-02-02 Kenichi Handa <handa@m17n.org> 3341 2008-02-01 Kenichi Handa <handa@m17n.org>
3342 3342
3343 * charset.c (Fset_charset_priority): Pay attention to duplicated 3343 * charset.c (Fset_charset_priority): Pay attention to duplicated
3344 arguments. 3344 arguments.
3345 3345
3346 * coding.c (QCcategory): New variable. 3346 * coding.c (QCcategory): New variable.
3348 Vcoding_category_table and their symbol values. 3348 Vcoding_category_table and their symbol values.
3349 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of 3349 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
3350 coding-category-XXX, and coding-category-list. 3350 coding-category-XXX, and coding-category-list.
3351 (Fdefine_coding_system_internal): Add category in the plist. 3351 (Fdefine_coding_system_internal): Add category in the plist.
3352 3352
3353 2008-02-02 Kenichi Handa <handa@m17n.org> 3353 2008-02-01 Kenichi Handa <handa@m17n.org>
3354 3354
3355 * callproc.c (Fcall_process): Handle carryover correctly. 3355 * callproc.c (Fcall_process): Handle carryover correctly.
3356 3356
3357 * coding.c (decode_coding_iso_2022): Fix handling of invalid 3357 * coding.c (decode_coding_iso_2022): Fix handling of invalid
3358 bytes. 3358 bytes.
3361 NILP (parent). 3361 NILP (parent).
3362 (consume_chars): Fix for the case of raw-text. 3362 (consume_chars): Fix for the case of raw-text.
3363 3363
3364 * process.c (read_process_output): Handle carryover correctly. 3364 * process.c (read_process_output): Handle carryover correctly.
3365 3365
3366 2008-02-02 Dave Love <fx@gnu.org> 3366 2008-02-01 Dave Love <fx@gnu.org>
3367 3367
3368 * regex.c (re_search_2): Fix last change. 3368 * regex.c (re_search_2): Fix last change.
3369 3369
3370 2008-02-02 Kenichi Handa <handa@m17n.org> 3370 2008-02-01 Kenichi Handa <handa@m17n.org>
3371 3371
3372 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not 3372 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
3373 target_multibyte. Even in a unibyte case, return a converted 3373 target_multibyte. Even in a unibyte case, return a converted
3374 multibyte char. 3374 multibyte char.
3375 (GET_CHAR_AFTER): New macro. 3375 (GET_CHAR_AFTER): New macro.
3408 3408
3409 * charset.c (Fset_unibyte_charset): Fix setting up of 3409 * charset.c (Fset_unibyte_charset): Fix setting up of
3410 unibyte_to_multibyte_table. 3410 unibyte_to_multibyte_table.
3411 (init_charset_once): Likewise. 3411 (init_charset_once): Likewise.
3412 3412
3413 2008-02-02 Kenichi Handa <handa@m17n.org> 3413 2008-02-01 Kenichi Handa <handa@m17n.org>
3414 3414
3415 * coding.c (setup_coding_system): If coding has 3415 * coding.c (setup_coding_system): If coding has
3416 post-read-conversion or pre-write-conversion, set 3416 post-read-conversion or pre-write-conversion, set
3417 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK 3417 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
3418 respectively. 3418 respectively.
3419 (decode_coding_gap): Run post-read-conversion if any. 3419 (decode_coding_gap): Run post-read-conversion if any.
3420 3420
3421 * fileio.c (Finsert_file_contents): Even if we read into a 3421 * fileio.c (Finsert_file_contents): Even if we read into a
3422 unibyte buffer, check if we must decode the result or not. 3422 unibyte buffer, check if we must decode the result or not.
3423 3423
3424 2008-02-02 Kenichi Handa <handa@m17n.org> 3424 2008-02-01 Kenichi Handa <handa@m17n.org>
3425 3425
3426 * coding.c (make_conversion_work_buffer): Change the work buffer 3426 * coding.c (make_conversion_work_buffer): Change the work buffer
3427 name to the same one as that of Emacs 21. 3427 name to the same one as that of Emacs 21.
3428 3428
3429 2008-02-02 Kenichi Handa <handa@m17n.org> 3429 2008-02-01 Kenichi Handa <handa@m17n.org>
3430 3430
3431 * coding.h (make_conversion_work_buffer): Prototype adjusted. 3431 * coding.h (make_conversion_work_buffer): Prototype adjusted.
3432 (code_conversion_restore): Don't extern it. 3432 (code_conversion_restore): Don't extern it.
3433 3433
3434 * coding.c (detected_mask): Delete unused variable. 3434 * coding.c (detected_mask): Delete unused variable.
3454 make_conversion_work_buffer with correct args, and call 3454 make_conversion_work_buffer with correct args, and call
3455 record_unwind_protect with the first arg kill_workbuf_unwind. 3455 record_unwind_protect with the first arg kill_workbuf_unwind.
3456 3456
3457 * lisp.h (Fgenerate_new_buffer_name): EXFUN it. 3457 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
3458 3458
3459 2008-02-02 Kenichi Handa <handa@m17n.org> 3459 2008-02-01 Kenichi Handa <handa@m17n.org>
3460 3460
3461 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not 3461 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not
3462 FONTSET_NAME. 3462 FONTSET_NAME.
3463 (fontset_add): Fix for the case that TO is less than TO1. 3463 (fontset_add): Fix for the case that TO is less than TO1.
3464 (Ffontset_info): Don't use fallback fontset on checking the 3464 (Ffontset_info): Don't use fallback fontset on checking the
3466 (dump_fontset): New function for debugging. 3466 (dump_fontset): New function for debugging.
3467 3467
3468 * coding.c (Fdefine_coding_system_internal): Fix for the case that 3468 * coding.c (Fdefine_coding_system_internal): Fix for the case that
3469 coding_type is Qcharset. 3469 coding_type is Qcharset.
3470 3470
3471 2008-02-02 Kenichi Handa <handa@m17n.org> 3471 2008-02-01 Kenichi Handa <handa@m17n.org>
3472 3472
3473 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL. 3473 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
3474 (map_char_table): Don't inherit the value from the parent on 3474 (map_char_table): Don't inherit the value from the parent on
3475 initializing VAL. Adjusted for the above change. 3475 initializing VAL. Adjusted for the above change.
3476 3476
3477 2008-02-02 Kenichi Handa <handa@m17n.org> 3477 2008-02-01 Kenichi Handa <handa@m17n.org>
3478 3478
3479 * coding.c (Qsignature, Qendian): Delete these variables. 3479 * coding.c (Qsignature, Qendian): Delete these variables.
3480 (syms_of_coding): Don't initialize them. 3480 (syms_of_coding): Don't initialize them.
3481 (CATEGORY_MASK_UTF_16_AUTO): New macro. 3481 (CATEGORY_MASK_UTF_16_AUTO): New macro.
3482 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in 3482 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
3491 required, detect it. 3491 required, detect it.
3492 (Fdefine_coding_system_internal): For a coding system of type 3492 (Fdefine_coding_system_internal): For a coding system of type
3493 utf-16, check if the attribute :endian is Qbig or not (not nil or 3493 utf-16, check if the attribute :endian is Qbig or not (not nil or
3494 not). 3494 not).
3495 3495
3496 2008-02-02 Kenichi Handa <handa@m17n.org> 3496 2008-02-01 Kenichi Handa <handa@m17n.org>
3497 3497
3498 * coding.c (coding_set_source): Fix for the case that the current 3498 * coding.c (coding_set_source): Fix for the case that the current
3499 buffer is different from coding->src_object. 3499 buffer is different from coding->src_object.
3500 (decode_coding_object): Don't use the conversion work buffer if 3500 (decode_coding_object): Don't use the conversion work buffer if
3501 DST_OBJECT is a buffer. 3501 DST_OBJECT is a buffer.
3502 3502
3503 2008-02-02 Dave Love <fx@gnu.org> 3503 2008-02-01 Dave Love <fx@gnu.org>
3504 3504
3505 * lread.c (read_emacs_mule_char) [len==2]: Index 3505 * lread.c (read_emacs_mule_char) [len==2]: Index
3506 emacs_mule_charset correctly. 3506 emacs_mule_charset correctly.
3507 3507
3508 2008-02-02 Dave Love <fx@gnu.org> 3508 2008-02-01 Dave Love <fx@gnu.org>
3509 3509
3510 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5) 3510 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
3511 (detect_coding_big5, decode_coding_big5, encode_coding_big5) 3511 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
3512 (Fdecode_big5_char, Fencode_big5_char): Deleted. (Big5 no longer 3512 (Fdecode_big5_char, Fencode_big5_char): Deleted. (Big5 no longer
3513 treated specially.) 3513 treated specially.)
3514 (setup_coding_system, coding_category, CATEGORY_MASK_ANY) 3514 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
3515 (detected_mask): Remove Big5 bits. 3515 (detected_mask): Remove Big5 bits.
3516 3516
3517 2008-02-02 Kenichi Handa <handa@m17n.org> 3517 2008-02-01 Kenichi Handa <handa@m17n.org>
3518 3518
3519 The following changes are to make the font rescaling facility 3519 The following changes are to make the font rescaling facility
3520 compatible with Emacs 21. 3520 compatible with Emacs 21.
3521 3521
3522 * xfaces.c (Vface_font_rescale_alist): Renamed from 3522 * xfaces.c (Vface_font_rescale_alist): Renamed from
3528 (build_scalable_font_name): Likewise. Change RESX, and RESY 3528 (build_scalable_font_name): Likewise. Change RESX, and RESY
3529 fields. 3529 fields.
3530 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp 3530 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp
3531 variable. 3531 variable.
3532 3532
3533 2008-02-02 Kenichi Handa <handa@m17n.org> 3533 2008-02-01 Kenichi Handa <handa@m17n.org>
3534 3534
3535 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig) 3535 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
3536 (Qutf_16_le): Remove these variables. 3536 (Qutf_16_le): Remove these variables.
3537 (syms_of_coding): Don't DEFSYM them. 3537 (syms_of_coding): Don't DEFSYM them.
3538 (decode_coding_utf_16): Fix handling of BOM. 3538 (decode_coding_utf_16): Fix handling of BOM.
3539 (encode_coding_utf_16): Fix handling of BOM. 3539 (encode_coding_utf_16): Fix handling of BOM.
3540 3540
3541 2008-02-02 Kenichi Handa <handa@m17n.org> 3541 2008-02-01 Kenichi Handa <handa@m17n.org>
3542 3542
3543 * fileio.c (Finsert_file_contents): On replacing, before decoding 3543 * fileio.c (Finsert_file_contents): On replacing, before decoding
3544 the file into the work buffer, set point of the work buffer to the 3544 the file into the work buffer, set point of the work buffer to the
3545 end. 3545 end.
3546 3546
3547 2008-02-02 Dave Love <fx@gnu.org> 3547 2008-02-01 Dave Love <fx@gnu.org>
3548 3548
3549 * coding.c (Fcheck_coding_systems_region): Fix type errors. 3549 * coding.c (Fcheck_coding_systems_region): Fix type errors.
3550 3550
3551 2008-02-02 Dave Love <fx@gnu.org> 3551 2008-02-01 Dave Love <fx@gnu.org>
3552 3552
3553 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table 3553 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
3554 and fix C types. 3554 and fix C types.
3555 3555
3556 2008-02-02 Kenichi Handa <handa@m17n.org> 3556 2008-02-01 Kenichi Handa <handa@m17n.org>
3557 3557
3558 * xdisp.c (SKIP_GLYPHS): New macro. 3558 * xdisp.c (SKIP_GLYPHS): New macro.
3559 (set_cursor_from_row): Pay attention to string display properties. 3559 (set_cursor_from_row): Pay attention to string display properties.
3560 3560
3561 * category.c (copy_category_entry): Fix for the case that RANGE 3561 * category.c (copy_category_entry): Fix for the case that RANGE
3564 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil. 3564 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
3565 3565
3566 * w32term.c (w32_encode_char): Call ccl_driver with the last arg 3566 * w32term.c (w32_encode_char): Call ccl_driver with the last arg
3567 Qnil. 3567 Qnil.
3568 3568
3569 2008-02-02 Kenichi Handa <handa@m17n.org> 3569 2008-02-01 Kenichi Handa <handa@m17n.org>
3570 3570
3571 * charset.c (Fcharset_id_internal): New function. 3571 * charset.c (Fcharset_id_internal): New function.
3572 (syms_of_charset): Defsubr it. 3572 (syms_of_charset): Defsubr it.
3573 3573
3574 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver 3574 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
3585 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead 3585 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
3586 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET. 3586 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
3587 (Fccl_execute): Call ccl_driver with the last arg Qnil. 3587 (Fccl_execute): Call ccl_driver with the last arg Qnil.
3588 (Fccl_execute_on_string): Likewise. 3588 (Fccl_execute_on_string): Likewise.
3589 3589
3590 2008-02-02 Kenichi Handa <handa@m17n.org> 3590 2008-02-01 Kenichi Handa <handa@m17n.org>
3591 3591
3592 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET, 3592 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
3593 call encode_char. 3593 call encode_char.
3594 3594
3595 * charset.c (encode_char): Fix handling of methods SUBSET and 3595 * charset.c (encode_char): Fix handling of methods SUBSET and
3596 SUPERSET. 3596 SUPERSET.
3597 3597
3598 * xterm.c (x_new_fontset): Fix previous change. 3598 * xterm.c (x_new_fontset): Fix previous change.
3599 3599
3600 2008-02-02 Dave Love <fx@gnu.org> 3600 2008-02-01 Dave Love <fx@gnu.org>
3601 3601
3602 * composite.c (syms_of_composite): Make composition_hash_table 3602 * composite.c (syms_of_composite): Make composition_hash_table
3603 weak. 3603 weak.
3604 3604
3605 2008-02-02 Kenichi Handa <handa@m17n.org> 3605 2008-02-01 Kenichi Handa <handa@m17n.org>
3606 3606
3607 * dispextern.h (check_face_attributes, generate_ascii_font_name) 3607 * dispextern.h (check_face_attributes, generate_ascii_font_name)
3608 (font_name_registry): Don't extern them. 3608 (font_name_registry): Don't extern them.
3609 (split_font_name_into_vector, build_font_name_from_vector): Extern 3609 (split_font_name_into_vector, build_font_name_from_vector): Extern
3610 them. 3610 them.
3652 3652
3653 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp 3653 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
3654 string. Use new_fontset_from_font_name to create a fontset from a 3654 string. Use new_fontset_from_font_name to create a fontset from a
3655 font name. 3655 font name.
3656 3656
3657 2008-02-02 Dave Love <fx@gnu.org> 3657 2008-02-01 Dave Love <fx@gnu.org>
3658 3658
3659 * Makefile.in: Fix some dependencies. 3659 * Makefile.in: Fix some dependencies.
3660 3660
3661 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but 3661 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
3662 set it to nil before returning. 3662 set it to nil before returning.
3663 3663
3664 * composite.c (update_compositions): Fix type error. 3664 * composite.c (update_compositions): Fix type error.
3665 3665
3666 * syntax.c (skip_chars, skip_syntaxes): Fix type errors. 3666 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
3667 3667
3668 2008-02-02 Kenichi Handa <handa@m17n.org> 3668 2008-02-01 Kenichi Handa <handa@m17n.org>
3669 3669
3670 * xterm.c (x_new_font): Optimize for the case that the font is 3670 * xterm.c (x_new_font): Optimize for the case that the font is
3671 already set for the frame. 3671 already set for the frame.
3672 3672
3673 2008-02-02 Kenichi Handa <handa@m17n.org> 3673 2008-02-01 Kenichi Handa <handa@m17n.org>
3674 3674
3675 * chartab.c (char_table_ascii): Check if the char table contents 3675 * chartab.c (char_table_ascii): Check if the char table contents
3676 is sub-char-table or not. 3676 is sub-char-table or not.
3677 (char_table_set): Fix argument to char_table_ascii. 3677 (char_table_set): Fix argument to char_table_ascii.
3678 (char_table_set_range): Likewise. 3678 (char_table_set_range): Likewise.
3715 * coding.h (struct coding_detection_info): New structure. 3715 * coding.h (struct coding_detection_info): New structure.
3716 (struct coding_system): Prototype of the member `detector' 3716 (struct coding_system): Prototype of the member `detector'
3717 adjusted. 3717 adjusted.
3718 (CODING_ANNOTATE_CHARSET_MASK): New macro. 3718 (CODING_ANNOTATE_CHARSET_MASK): New macro.
3719 3719
3720 2008-02-02 Kenichi Handa <handa@m17n.org> 3720 2008-02-01 Kenichi Handa <handa@m17n.org>
3721 3721
3722 * insdel.c (insert_from_gap): Fix argument to offset_intervals. 3722 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
3723 3723
3724 2008-02-02 Dave Love <fx@gnu.org> 3724 2008-02-01 Dave Love <fx@gnu.org>
3725 3725
3726 * keymap.c (apropos_predicate, apropos_accumulate): Declare 3726 * keymap.c (apropos_predicate, apropos_accumulate): Declare
3727 static. 3727 static.
3728 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result 3728 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
3729 to new local and nullify apropos_accumulate before returning. 3729 to new local and nullify apropos_accumulate before returning.
3730 (syms_of_keymap): Staticpro and initialize apropos_accumulate. 3730 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
3731 3731
3732 2008-02-02 Kenichi Handa <handa@m17n.org> 3732 2008-02-01 Kenichi Handa <handa@m17n.org>
3733 3733
3734 * charset.c (Fdefine_charset_internal): Setup charset.fast_map 3734 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
3735 correctly. 3735 correctly.
3736 3736
3737 2008-02-02 Dave Love <fx@gnu.org> 3737 2008-02-01 Dave Love <fx@gnu.org>
3738 3738
3739 * fns.c (Flanginfo): Call synchronize_system_time_locale. 3739 * fns.c (Flanginfo): Call synchronize_system_time_locale.
3740 3740
3741 2008-02-02 Kenichi Handa <handa@m17n.org> 3741 2008-02-01 Kenichi Handa <handa@m17n.org>
3742 3742
3743 The following changes are to make character composition happen 3743 The following changes are to make character composition happen
3744 automatically on displaying. 3744 automatically on displaying.
3745 3745
3746 * Makefile.in (lisp, shortlisp): Add composite.elc 3746 * Makefile.in (lisp, shortlisp): Add composite.elc
3766 (handle_auto_composed_prop): New function. 3766 (handle_auto_composed_prop): New function.
3767 3767
3768 * xselect.c (selection_data_to_lisp_data): Don't call 3768 * xselect.c (selection_data_to_lisp_data): Don't call
3769 compose_chars_in_text. 3769 compose_chars_in_text.
3770 3770
3771 2008-02-02 Dave Love <fx@gnu.org> 3771 2008-02-01 Dave Love <fx@gnu.org>
3772 3772
3773 * keyboard.c (read_char): Modify checking around use of 3773 * keyboard.c (read_char): Modify checking around use of
3774 Vkeyboard_translate_table. 3774 Vkeyboard_translate_table.
3775 3775
3776 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table 3776 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
3777 and fix C types. 3777 and fix C types.
3778 3778
3779 2008-02-02 Kenichi Handa <handa@m17n.org> 3779 2008-02-01 Kenichi Handa <handa@m17n.org>
3780 3780
3781 * coding.c (decode_coding_utf_8): When eol_type is Qdos, handle 3781 * coding.c (decode_coding_utf_8): When eol_type is Qdos, handle
3782 the case that the last byte is '\r' correctly. 3782 the case that the last byte is '\r' correctly.
3783 (decode_coding_emacs_mule): Likewise. 3783 (decode_coding_emacs_mule): Likewise.
3784 (decode_coding_iso_2022): Likewise. 3784 (decode_coding_iso_2022): Likewise.
3788 (produce_chars): Likewise. 3788 (produce_chars): Likewise.
3789 (decode_coding): Flushing out the unprocessed data correctly. 3789 (decode_coding): Flushing out the unprocessed data correctly.
3790 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of 3790 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of
3791 coding->mode. 3791 coding->mode.
3792 3792
3793 2008-02-02 Dave Love <fx@gnu.org> 3793 2008-02-01 Dave Love <fx@gnu.org>
3794 3794
3795 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add 3795 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
3796 XK_ISO... case. 3796 XK_ISO... case.
3797 (xaw_scroll_callback): Revert last change. 3797 (xaw_scroll_callback): Revert last change.
3798 3798
3799 2008-02-02 Kenichi Handa <handa@m17n.org> 3799 2008-02-01 Kenichi Handa <handa@m17n.org>
3800 3800
3801 * charset.c (Fset_charset_priority): Update 3801 * charset.c (Fset_charset_priority): Update
3802 Viso_2022_charset_list. 3802 Viso_2022_charset_list.
3803 3803
3804 2008-02-02 Kenichi Handa <handa@m17n.org> 3804 2008-02-01 Kenichi Handa <handa@m17n.org>
3805 3805
3806 * xfaces.c (Vface_resizing_fonts): New variable. 3806 * xfaces.c (Vface_resizing_fonts): New variable.
3807 (struct font_name): New member `resizing_ratio'. 3807 (struct font_name): New member `resizing_ratio'.
3808 (font_resizing_ratio): New function. 3808 (font_resizing_ratio): New function.
3809 (split_font_name): Set font->resizing_ratio. 3809 (split_font_name): Set font->resizing_ratio.
3812 RESX, and RESY fields. 3812 RESX, and RESY fields.
3813 (try_alternative_families): Try scalable fonts if 3813 (try_alternative_families): Try scalable fonts if
3814 Vscalable_fonts_allowed is not Qt. 3814 Vscalable_fonts_allowed is not Qt.
3815 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable. 3815 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
3816 3816
3817 2008-02-02 Dave Love <fx@gnu.org> 3817 2008-02-01 Dave Love <fx@gnu.org>
3818 3818
3819 * xterm.c (xaw_scroll_callback): Cast correctly. 3819 * xterm.c (xaw_scroll_callback): Cast correctly.
3820 3820
3821 2008-02-02 Dave Love <fx@gnu.org> 3821 2008-02-01 Dave Love <fx@gnu.org>
3822 3822
3823 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend. 3823 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
3824 (lispy_kana_keys): Comment out. 3824 (lispy_kana_keys): Comment out.
3825 (make_lispy_event) [XK_kana_A]: Comment out. 3825 (make_lispy_event) [XK_kana_A]: Comment out.
3826 3826
3827 * xterm.c (xaw_scroll_callback): Cast call_data. 3827 * xterm.c (xaw_scroll_callback): Cast call_data.
3828 (XTread_socket): Deal with ASCII keysyms. 3828 (XTread_socket): Deal with ASCII keysyms.
3829 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table. 3829 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
3830 3830
3831 2008-02-02 Dave Love <fx@gnu.org> 3831 2008-02-01 Dave Love <fx@gnu.org>
3832 3832
3833 * xterm.c (Vx_keysym_table): New. 3833 * xterm.c (Vx_keysym_table): New.
3834 (syms_of_xterm): Initialize it. 3834 (syms_of_xterm): Initialize it.
3835 (XTread_socket): Use it. 3835 (XTread_socket): Use it.
3836 From head: Eliminate incorrect optimization that tried to avoid 3836 From head: Eliminate incorrect optimization that tried to avoid
3837 decoding the output of X*LookupString. 3837 decoding the output of X*LookupString.
3838 (x_get_font_repertory): Delete charset declaration. 3838 (x_get_font_repertory): Delete charset declaration.
3839 3839
3840 2008-02-02 Kenichi Handa <handa@m17n.org> 3840 2008-02-01 Kenichi Handa <handa@m17n.org>
3841 3841
3842 * coding.c (detect_coding): Fix previous change. 3842 * coding.c (detect_coding): Fix previous change.
3843 (detect_coding_charset): If only ASCII bytes are found, return 0. 3843 (detect_coding_charset): If only ASCII bytes are found, return 0.
3844 (detect_coding_system): Fix previous change. 3844 (detect_coding_system): Fix previous change.
3845 (Fdefine_coding_system_internal): Setup 3845 (Fdefine_coding_system_internal): Setup
3846 CODING_ATTR_ASCII_COMPAT (attrs) correctly. 3846 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
3847 3847
3848 2008-02-02 Dave Love <fx@gnu.org> 3848 2008-02-01 Dave Love <fx@gnu.org>
3849 3849
3850 * coding.c (Fcheck_coding_system): Doc fix. 3850 * coding.c (Fcheck_coding_system): Doc fix.
3851 3851
3852 * editfns.c (Finsert_byte): Return a proper value. 3852 * editfns.c (Finsert_byte): Return a proper value.
3853 3853
3854 2008-02-02 Kenichi Handa <handa@m17n.org> 3854 2008-02-01 Kenichi Handa <handa@m17n.org>
3855 3855
3856 * coding.c (decode_coding): Fix args to translate_chars. Pay 3856 * coding.c (decode_coding): Fix args to translate_chars. Pay
3857 attention to Vstandard_translation_table_for_decode. 3857 attention to Vstandard_translation_table_for_decode.
3858 (encode_coding): Fix args to translate_chars. Pay attention to 3858 (encode_coding): Fix args to translate_chars. Pay attention to
3859 Vstandard_translation_table_for_encode. 3859 Vstandard_translation_table_for_encode.
3874 by SINGLE_BYTE_CHAR_P. 3874 by SINGLE_BYTE_CHAR_P.
3875 3875
3876 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by 3876 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
3877 SINGLE_BYTE_CHAR_P. 3877 SINGLE_BYTE_CHAR_P.
3878 3878
3879 2008-02-02 Dave Love <fx@gnu.org> 3879 2008-02-01 Dave Love <fx@gnu.org>
3880 3880
3881 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix. 3881 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
3882 3882
3883 2008-02-02 Dave Love <fx@gnu.org> 3883 2008-02-01 Dave Love <fx@gnu.org>
3884 3884
3885 * fns.c (Flanginfo): Fix typo. 3885 * fns.c (Flanginfo): Fix typo.
3886 3886
3887 * unexelf.c (unexec): Make last change conditional on Irix 6.5. 3887 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
3888 3888
3889 2008-02-02 Kenichi Handa <handa@m17n.org> 3889 2008-02-01 Kenichi Handa <handa@m17n.org>
3890 3890
3891 * coding.c (detect_coding_utf_8): Check incomplete byte sequence. 3891 * coding.c (detect_coding_utf_8): Check incomplete byte sequence.
3892 Don't update *mask when correctly detected. 3892 Don't update *mask when correctly detected.
3893 (detect_coding_utf_16): Likewise. 3893 (detect_coding_utf_16): Likewise.
3894 (detect_coding_emacs_mule): Likewise. 3894 (detect_coding_emacs_mule): Likewise.
3900 (detect_eol): Delete the argument CODING, and add the argument 3900 (detect_eol): Delete the argument CODING, and add the argument
3901 CATEGORY. 3901 CATEGORY.
3902 (detect_coding): Adjusted for the changes above. 3902 (detect_coding): Adjusted for the changes above.
3903 (detect_coding_system): Likewise. 3903 (detect_coding_system): Likewise.
3904 3904
3905 2008-02-02 Kenichi Handa <handa@m17n.org> 3905 2008-02-01 Kenichi Handa <handa@m17n.org>
3906 3906
3907 * character.c (char_string): Renamed from 3907 * character.c (char_string): Renamed from
3908 char_string_with_unification. Pay attention to 3908 char_string_with_unification. Pay attention to
3909 CHAR_MODIFIER_MASK. 3909 CHAR_MODIFIER_MASK.
3910 (string_char): Renamed from string_char. 3910 (string_char): Renamed from string_char.
3915 (STRING_CHAR): Call string_char instead of 3915 (STRING_CHAR): Call string_char instead of
3916 string_char_with_unification. 3916 string_char_with_unification.
3917 (STRING_CHAR_AND_LENGTH): Likewise. 3917 (STRING_CHAR_AND_LENGTH): Likewise.
3918 (STRING_CHAR_ADVANCE): Likewise. 3918 (STRING_CHAR_ADVANCE): Likewise.
3919 3919
3920 2008-02-02 Dave Love <fx@gnu.org> 3920 2008-02-01 Dave Love <fx@gnu.org>
3921 3921
3922 * coding.c (decode_coding_utf_8): Treat surrogates as invalid. 3922 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
3923 3923
3924 2008-02-02 Kenichi Handa <handa@m17n.org> 3924 2008-02-01 Kenichi Handa <handa@m17n.org>
3925 3925
3926 * keymap.c (push_key_description): Pay attention to 3926 * keymap.c (push_key_description): Pay attention to
3927 force_multibyte. 3927 force_multibyte.
3928 3928
3929 * regex.c (re_search_2): Fix for the case of unibyte buffer. 3929 * regex.c (re_search_2): Fix for the case of unibyte buffer.
3930 3930
3931 2008-02-02 Dave Love <fx@gnu.org> 3931 2008-02-01 Dave Love <fx@gnu.org>
3932 3932
3933 * charset.c (define_charset_internal): Rename `supprementary'. 3933 * charset.c (define_charset_internal): Rename `supprementary'.
3934 3934
3935 * Makefile.in (lisp, shortlisp): Remove latin-N. 3935 * Makefile.in (lisp, shortlisp): Remove latin-N.
3936 3936
3937 2008-02-02 Dave Love <fx@gnu.org> 3937 2008-02-01 Dave Love <fx@gnu.org>
3938 3938
3939 * xfns.c (x_window, x_window): Use use_xim. 3939 * xfns.c (x_window, x_window): Use use_xim.
3940 3940
3941 * xterm.c (use_xim): Initialize. 3941 * xterm.c (use_xim): Initialize.
3942 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim. 3942 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
3943 (x_term_init): Maybe set use_xim. 3943 (x_term_init): Maybe set use_xim.
3944 3944
3945 * xterm.h (use_xim) [HAVE_X_I18N]: Declare. 3945 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
3946 3946
3947 2008-02-02 Kenichi Handa <handa@m17n.org> 3947 2008-02-01 Kenichi Handa <handa@m17n.org>
3948 3948
3949 * search.c (search_buffer): Fix case-fold-search of multibyte 3949 * search.c (search_buffer): Fix case-fold-search of multibyte
3950 characters. 3950 characters.
3951 (boyer_moore): Rename the last argument to char_high_bits. 3951 (boyer_moore): Rename the last argument to char_high_bits.
3952 3952
3953 2008-02-02 Kenichi Handa <handa@m17n.org> 3953 2008-02-01 Kenichi Handa <handa@m17n.org>
3954 3954
3955 * xdisp.c (display_string): Fix for the case of zero width glyph. 3955 * xdisp.c (display_string): Fix for the case of zero width glyph.
3956 3956
3957 * xfns.c (x_set_font): Change the error message of the case that 3957 * xfns.c (x_set_font): Change the error message of the case that
3958 x_new_fontset returns Qt. 3958 x_new_fontset returns Qt.
3962 error of invalid fontset. 3962 error of invalid fontset.
3963 3963
3964 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default 3964 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
3965 fontset, return Qt. 3965 fontset, return Qt.
3966 3966
3967 2008-02-02 Kenichi Handa <handa@m17n.org> 3967 2008-02-01 Kenichi Handa <handa@m17n.org>
3968 3968
3969 * regex.c (re_search_2): Fix previous change. 3969 * regex.c (re_search_2): Fix previous change.
3970 3970
3971 2008-02-02 Kenichi Handa <handa@m17n.org> 3971 2008-02-01 Kenichi Handa <handa@m17n.org>
3972 3972
3973 * syntax.c (skip_syntaxes): Fix previous change. 3973 * syntax.c (skip_syntaxes): Fix previous change.
3974 3974
3975 2008-02-02 Kenichi Handa <handa@m17n.org> 3975 2008-02-01 Kenichi Handa <handa@m17n.org>
3976 3976
3977 * syntax.c (skip_chars): Fix previous change. 3977 * syntax.c (skip_chars): Fix previous change.
3978 (skip_syntaxes): Fix previous change. 3978 (skip_syntaxes): Fix previous change.
3979 3979
3980 2008-02-02 Dave Love <fx@gnu.org> 3980 2008-02-01 Dave Love <fx@gnu.org>
3981 3981
3982 * config.in: Restore it. 3982 * config.in: Restore it.
3983 3983
3984 2008-02-02 Dave Love <fx@gnu.org> 3984 2008-02-01 Dave Love <fx@gnu.org>
3985 3985
3986 * config.in: Removed (now auto-generated). 3986 * config.in: Removed (now auto-generated).
3987 3987
3988 * s/usg5-4.h: Fix last change. 3988 * s/usg5-4.h: Fix last change.
3989 3989
3998 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix 3998 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
3999 type error. 3999 type error.
4000 4000
4001 * fontset.c (fontset_add): Return Lisp_Object. 4001 * fontset.c (fontset_add): Return Lisp_Object.
4002 4002
4003 2008-02-02 Dave Love <fx@gnu.org> 4003 2008-02-01 Dave Love <fx@gnu.org>
4004 4004
4005 * charset.h (charset_ordered_list_tick): Declare extern. 4005 * charset.h (charset_ordered_list_tick): Declare extern.
4006 4006
4007 2008-02-02 Kenichi Handa <handa@m17n.org> 4007 2008-02-01 Kenichi Handa <handa@m17n.org>
4008 4008
4009 The following changes (and some of 2008-02-02 changes of mine) are 4009 The following changes (and some of 2008-02-01 changes of mine) are
4010 for handling syntax, category, and case conversion for unibyte 4010 for handling syntax, category, and case conversion for unibyte
4011 characters by converting them to multibyte on the fly. With these 4011 characters by converting them to multibyte on the fly. With these
4012 changes, we don't have to setup syntax and case tables for unibyte 4012 changes, we don't have to setup syntax and case tables for unibyte
4013 characters in each language environment. 4013 characters in each language environment.
4014 4014
4110 chars to multibyte. 4110 chars to multibyte.
4111 (scan_lists): Likewise. 4111 (scan_lists): Likewise.
4112 (Fbackward_prefix_chars): Likewise. 4112 (Fbackward_prefix_chars): Likewise.
4113 (scan_sexps_forward): Likewise. 4113 (scan_sexps_forward): Likewise.
4114 4114
4115 2008-02-02 Kenichi Handa <handa@m17n.org> 4115 2008-02-01 Kenichi Handa <handa@m17n.org>
4116 4116
4117 * xfaces.c (QCfontset): New variable. 4117 * xfaces.c (QCfontset): New variable.
4118 (LFACE_FONTSET): New macro. 4118 (LFACE_FONTSET): New macro.
4119 (check_lface_attrs): Check also LFACE_FONTSET_INDEX. 4119 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
4120 (set_lface_from_font_name): Setup LFACE_FONTSET (lface). 4120 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4129 * dispextern.h (enum lface_attribute_index): New member 4129 * dispextern.h (enum lface_attribute_index): New member
4130 LFACE_FONTSET_INDEX. 4130 LFACE_FONTSET_INDEX.
4131 4131
4132 * fns.c (base64_encode_1): Handle eight-bit chars correctly. 4132 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
4133 4133
4134 2008-02-02 Kenichi Handa <handa@m17n.org> 4134 2008-02-01 Kenichi Handa <handa@m17n.org>
4135 4135
4136 * coding.c (coding_set_destination): Fix coding->destination for 4136 * coding.c (coding_set_destination): Fix coding->destination for
4137 the case converting a region. 4137 the case converting a region.
4138 (encode_coding_utf_8): Encode eight-bit chars as single byte. 4138 (encode_coding_utf_8): Encode eight-bit chars as single byte.
4139 (encode_coding_object): Fix coding->dst_pos and 4139 (encode_coding_object): Fix coding->dst_pos and
4143 4143
4144 * character.h (BYTE8_STRING): New macro. 4144 * character.h (BYTE8_STRING): New macro.
4145 4145
4146 * fns.c (base64_decode_1): Insert eight-bit chars correctly. 4146 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
4147 4147
4148 2008-02-02 Kenichi Handa <handa@m17n.org> 4148 2008-02-01 Kenichi Handa <handa@m17n.org>
4149 4149
4150 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit 4150 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
4151 characters by octal form. 4151 characters by octal form.
4152 4152
4153 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case. 4153 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
4176 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead 4176 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
4177 of direct code 0x3ffff. 4177 of direct code 0x3ffff.
4178 4178
4179 * search.c (Freplace_match): Fix for the unibyte case. 4179 * search.c (Freplace_match): Fix for the unibyte case.
4180 4180
4181 2008-02-02 Kenichi Handa <handa@m17n.org> 4181 2008-02-01 Kenichi Handa <handa@m17n.org>
4182 4182
4183 * lread.c (safe_to_load_p): Fix the logic. 4183 * lread.c (safe_to_load_p): Fix the logic.
4184 4184
4185 * syntax.c (scan_words): Don't treat characters belonging to 4185 * syntax.c (scan_words): Don't treat characters belonging to
4186 different scripts as constituting a word. 4186 different scripts as constituting a word.
4191 script. 4191 script.
4192 4192
4193 * emacs.c (main): In the case of --unibyte, instead of aborting on 4193 * emacs.c (main): In the case of --unibyte, instead of aborting on
4194 finding non-empty buffer, make it unibyte. 4194 finding non-empty buffer, make it unibyte.
4195 4195
4196 2008-02-02 Kenichi Handa <handa@m17n.org> 4196 2008-02-01 Kenichi Handa <handa@m17n.org>
4197 4197
4198 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font' 4198 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
4199 to create a fontset. 4199 to create a fontset.
4200 4200
4201 2008-02-02 Dave Love <fx@gnu.org> 4201 2008-02-01 Dave Love <fx@gnu.org>
4202 4202
4203 * character.c (Funibyte_char_to_multibyte): Doc fix. 4203 * character.c (Funibyte_char_to_multibyte): Doc fix.
4204 4204
4205 * xfns.c [HAVE_STDLIB_H]: Fix last change. 4205 * xfns.c [HAVE_STDLIB_H]: Fix last change.
4206 4206
4207 2008-02-02 Kenichi Handa <handa@m17n.org> 4207 2008-02-01 Kenichi Handa <handa@m17n.org>
4208 4208
4209 * fontset.c (fontset_add): Make the type `int'. 4209 * fontset.c (fontset_add): Make the type `int'.
4210 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined. 4210 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
4211 4211
4212 * character.c (unibyte_char_to_multibyte): Refer to 4212 * character.c (unibyte_char_to_multibyte): Refer to
4227 it->multibyte_p is zero. 4227 it->multibyte_p is zero.
4228 4228
4229 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table): 4229 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
4230 Extern deleted. 4230 Extern deleted.
4231 4231
4232 2008-02-02 Kenichi Handa <handa@m17n.org> 4232 2008-02-01 Kenichi Handa <handa@m17n.org>
4233 4233
4234 * coding.c (Fdefine_coding_system_internal): Fix category setting 4234 * coding.c (Fdefine_coding_system_internal): Fix category setting
4235 for a coding system of type iso-2022. 4235 for a coding system of type iso-2022.
4236 4236
4237 2008-02-02 Kenichi Handa <handa@m17n.org> 4237 2008-02-01 Kenichi Handa <handa@m17n.org>
4238 4238
4239 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET 4239 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET
4240 -1. 4240 -1.
4241 4241
4242 2008-02-02 Kenichi Handa <handa@m17n.org> 4242 2008-02-01 Kenichi Handa <handa@m17n.org>
4243 4243
4244 * syntax.c (Vnext_word_boundary_function_table): New variable. 4244 * syntax.c (Vnext_word_boundary_function_table): New variable.
4245 (syms_of_syntax): Declare it as a Lisp variable. 4245 (syms_of_syntax): Declare it as a Lisp variable.
4246 (scan_words): Call functions in Vnext_word_boundary_function_table 4246 (scan_words): Call functions in Vnext_word_boundary_function_table
4247 if any. 4247 if any.
4249 * xterm.c (x_load_font): Initialize fontp->fontset to -1. 4249 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
4250 4250
4251 * fontset.c (fs_load_font): If fontp->charset is not negative, 4251 * fontset.c (fs_load_font): If fontp->charset is not negative,
4252 return fontp without setting its members. 4252 return fontp without setting its members.
4253 4253
4254 2008-02-02 Dave Love <fx@gnu.org> 4254 2008-02-01 Dave Love <fx@gnu.org>
4255 4255
4256 * config.in: Generated with autoheader. 4256 * config.in: Generated with autoheader.
4257 4257
4258 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo). 4258 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
4259 4259
4266 4266
4267 * s/usg5-4.h (NO_SIOCTL_H): Don't define. 4267 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
4268 (TIOCSIGSEND): Don't test IRIX6. 4268 (TIOCSIGSEND): Don't test IRIX6.
4269 (bcopy, bzero, bcmp): Define conditionally. 4269 (bcopy, bzero, bcmp): Define conditionally.
4270 4270
4271 2008-02-02 Kenichi Handa <handa@m17n.org> 4271 2008-02-01 Kenichi Handa <handa@m17n.org>
4272 4272
4273 * buffer.c (Qas, Qmake, Qto): New variables. 4273 * buffer.c (Qas, Qmake, Qto): New variables.
4274 (Fset_buffer_multibyte): New optional arg METHOD. Caller changed. 4274 (Fset_buffer_multibyte): New optional arg METHOD. Caller changed.
4275 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto. 4275 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
4276 4276
4304 for the change of Fset_buffer_multibyte. 4304 for the change of Fset_buffer_multibyte.
4305 4305
4306 * fns.c (Fstring_to_multibyte): New function. 4306 * fns.c (Fstring_to_multibyte): New function.
4307 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine. 4307 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
4308 4308
4309 2008-02-02 Dave Love <fx@gnu.org> 4309 2008-02-01 Dave Love <fx@gnu.org>
4310 4310
4311 * xfns.c (x_put_x_image): Declare args. 4311 * xfns.c (x_put_x_image): Declare args.
4312 4312
4313 * xfaces.c (font_name_registry, choose_face_font): Delete unused 4313 * xfaces.c (font_name_registry, choose_face_font): Delete unused
4314 vars. 4314 vars.
4345 fix. 4345 fix.
4346 4346
4347 * ccl.c: Remove `emacs' conditional. Include hash table stuff 4347 * ccl.c: Remove `emacs' conditional. Include hash table stuff
4348 from trunk. 4348 from trunk.
4349 4349
4350 2008-02-02 Kenichi Handa <handa@m17n.org> 4350 2008-02-01 Kenichi Handa <handa@m17n.org>
4351 4351
4352 The following changes are to allow specifying multiple font 4352 The following changes are to allow specifying multiple font
4353 patterns for a character range (specified by script or charset). 4353 patterns for a character range (specified by script or charset).
4354 4354
4355 * Makefile.in (abbrev.o): Depend on syntax.h. 4355 * Makefile.in (abbrev.o): Depend on syntax.h.
4457 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P. 4457 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
4458 (x_new_fontset): If FONTSETNAME doesn't match any existing 4458 (x_new_fontset): If FONTSETNAME doesn't match any existing
4459 fontsets, create a new one. 4459 fontsets, create a new one.
4460 (x_get_font_repertory): New function. 4460 (x_get_font_repertory): New function.
4461 4461
4462 2008-02-02 Kenichi Handa <handa@m17n.org> 4462 2008-02-01 Kenichi Handa <handa@m17n.org>
4463 4463
4464 * coding.c (Ffind_coding_systems_region_internal): Detect an 4464 * coding.c (Ffind_coding_systems_region_internal): Detect an
4465 ASCII only string correctly. 4465 ASCII only string correctly.
4466 4466
4467 * lread.c (Fload): Don't load with Qload_force_doc_strings t if 4467 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
4468 version is 0. 4468 version is 0.
4469 4469
4470 2008-02-02 Kenichi Handa <handa@m17n.org> 4470 2008-02-01 Kenichi Handa <handa@m17n.org>
4471 4471
4472 * lread.c: Include "coding.h". 4472 * lread.c: Include "coding.h".
4473 (Qget_emacs_mule_file_char, Qload_force_doc_strings, 4473 (Qget_emacs_mule_file_char, Qload_force_doc_strings,
4474 load_each_byte, unread_char): New variables. 4474 load_each_byte, unread_char): New variables.
4475 (readchar_backlog): This variable deleted. 4475 (readchar_backlog): This variable deleted.
4499 (read_list): If doc_reference is 2, make the cdr part string as 4499 (read_list): If doc_reference is 2, make the cdr part string as
4500 unibyte. 4500 unibyte.
4501 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char 4501 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
4502 and Qload_force_doc_strings. 4502 and Qload_force_doc_strings.
4503 4503
4504 2008-02-02 Kenichi Handa <handa@m17n.org> 4504 2008-02-01 Kenichi Handa <handa@m17n.org>
4505 4505
4506 * xdisp.c (face_before_or_after_it_pos): Call 4506 * xdisp.c (face_before_or_after_it_pos): Call
4507 FETCH_MULTIBYTE_CHAR with byte postion, not char position. 4507 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
4508 4508
4509 2008-02-02 Kenichi Handa <handa@m17n.org> 4509 2008-02-01 Kenichi Handa <handa@m17n.org>
4510 4510
4511 * character.h (TRAILING_CODE_P): New macro. 4511 * character.h (TRAILING_CODE_P): New macro.
4512 (MAYBE_UNIFY_CHAR): Adjusted for the change of Funify_charset. 4512 (MAYBE_UNIFY_CHAR): Adjusted for the change of Funify_charset.
4513 (string_char_with_unification): Fix prototype. 4513 (string_char_with_unification): Fix prototype.
4514 (Vscript_alist): Extern it. 4514 (Vscript_alist): Extern it.
4550 (Fcheck_coding_systems_region): Likewise. 4550 (Fcheck_coding_systems_region): Likewise.
4551 4551
4552 * print.c (print_object): Use octal form for printing the 4552 * print.c (print_object): Use octal form for printing the
4553 contents of a bool vector. 4553 contents of a bool vector.
4554 4554
4555 2008-02-02 Dave Love <fx@gnu.org> 4555 2008-02-01 Dave Love <fx@gnu.org>
4556 4556
4557 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd. 4557 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
4558 <version == 20>: Refuse to load. 4558 <version == 20>: Refuse to load.
4559 4559
4560 2008-02-02 Dave Love <fx@gnu.org> 4560 2008-02-01 Dave Love <fx@gnu.org>
4561 4561
4562 * fns.c: Move coding.h. 4562 * fns.c: Move coding.h.
4563 (Qcodeset, Qdays, Qmonths): New. 4563 (Qcodeset, Qdays, Qmonths): New.
4564 (concat): Use CHARACTERP instead of INTERGERP. 4564 (concat): Use CHARACTERP instead of INTERGERP.
4565 (Flocale_codeset): Deleted. 4565 (Flocale_codeset): Deleted.
4566 (Flanginfo): New function. 4566 (Flanginfo): New function.
4567 (syms_of_fns): Changed accordingly. 4567 (syms_of_fns): Changed accordingly.
4568 4568
4569 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup. 4569 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
4570 4570
4571 2008-02-02 Dave Love <fx@gnu.org> 4571 2008-02-01 Dave Love <fx@gnu.org>
4572 4572
4573 * casetab.c (init_casetab_once, init_casetab_once): Fix 4573 * casetab.c (init_casetab_once, init_casetab_once): Fix
4574 CHAR_TABLE_SET call. 4574 CHAR_TABLE_SET call.
4575 4575
4576 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call. 4576 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
4604 4604
4605 * chartab.c: Include "...h", not <...h> in some cases. 4605 * chartab.c: Include "...h", not <...h> in some cases.
4606 4606
4607 * callproc.c (Fcall_process): Remove unused variables. 4607 * callproc.c (Fcall_process): Remove unused variables.
4608 4608
4609 2008-02-02 Dave Love <fx@gnu.org> 4609 2008-02-01 Dave Love <fx@gnu.org>
4610 4610
4611 * coding.c (Fset_coding_system_priority): Allow null arg list. 4611 * coding.c (Fset_coding_system_priority): Allow null arg list.
4612 4612
4613 2008-02-02 Dave Love <fx@gnu.org> 4613 2008-02-01 Dave Love <fx@gnu.org>
4614 4614
4615 * minibuf.c (Fminibuffer_complete_word): Remove unused var. 4615 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
4616 (Fself_insert_and_exit): Use CHARACTERP. 4616 (Fself_insert_and_exit): Use CHARACTERP.
4617 4617
4618 * callproc.c (Fcall_process): Remove unused vars. 4618 * callproc.c (Fcall_process): Remove unused vars.
4630 (Fset_char_table_default, Fmap_char_table): Doc fix. 4630 (Fset_char_table_default, Fmap_char_table): Doc fix.
4631 4631
4632 * keymap.c (access_keymap): Remove generic char code. 4632 * keymap.c (access_keymap): Remove generic char code.
4633 (push_key_description): Use CHARACTERP. 4633 (push_key_description): Use CHARACTERP.
4634 4634
4635 2008-02-02 Dave Love <fx@gnu.org> 4635 2008-02-01 Dave Love <fx@gnu.org>
4636 4636
4637 * charset.c: Doc fixes. 4637 * charset.c: Doc fixes.
4638 (Funify_charset): Extra checking. 4638 (Funify_charset): Extra checking.
4639 4639
4640 2008-02-02 Dave Love <fx@gnu.org> 4640 2008-02-01 Dave Love <fx@gnu.org>
4641 4641
4642 * lread.c: Remove some unused variables. 4642 * lread.c: Remove some unused variables.
4643 (safe_to_load_p): If safe, return the magic number version byte. 4643 (safe_to_load_p): If safe, return the magic number version byte.
4644 (Fload): Maybe use load-with-code-conversion. 4644 (Fload): Maybe use load-with-code-conversion.
4645 4645
4646 2008-02-02 Kenichi Handa <handa@m17n.org> 4646 2008-02-01 Kenichi Handa <handa@m17n.org>
4647 4647
4648 * category.c (Fmodify_category_entry): Don't modify the contents 4648 * category.c (Fmodify_category_entry): Don't modify the contents
4649 of category_set for characters out of the range. Avoid 4649 of category_set for characters out of the range. Avoid
4650 unnecessary modification. 4650 unnecessary modification.
4651 4651
4692 * keymap.c (describe_vector): Handle a char-table directly here. 4692 * keymap.c (describe_vector): Handle a char-table directly here.
4693 (describe_char_table): Deleted. 4693 (describe_char_table): Deleted.
4694 4694
4695 * lisp.h (map_charset_chars): Deleted. 4695 * lisp.h (map_charset_chars): Deleted.
4696 4696
4697 2008-02-02 Dave Love <fx@gnu.org> 4697 2008-02-01 Dave Love <fx@gnu.org>
4698 4698
4699 * fns.c (count_combining): Comment out (unused). 4699 * fns.c (count_combining): Comment out (unused).
4700 (Flocale_codeset): New. 4700 (Flocale_codeset): New.
4701 (syms_of_fns): Defsubr it. 4701 (syms_of_fns): Defsubr it.
4702 4702
4703 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New. 4703 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
4704 (size_t): Removed. 4704 (size_t): Removed.
4705 4705
4706 2008-02-02 Dave Love <fx@gnu.org> 4706 2008-02-01 Dave Love <fx@gnu.org>
4707 4707
4708 * Makefile.in (chartab.o): Depend on charset.h 4708 * Makefile.in (chartab.o): Depend on charset.h
4709 4709
4710 2008-02-02 Kenichi Handa <handa@m17n.org> 4710 2008-02-01 Kenichi Handa <handa@m17n.org>
4711 4711
4712 * character.c (syms_of_character): Set the default value of 4712 * character.c (syms_of_character): Set the default value of
4713 Vprintable_chars to Qnil. 4713 Vprintable_chars to Qnil.
4714 4714
4715 2008-02-02 Dave Love <fx@gnu.org> 4715 2008-02-01 Dave Love <fx@gnu.org>
4716 4716
4717 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el. 4717 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
4718 4718
4719 2008-02-02 Kenichi Handa <handa@m17n.org> 4719 2008-02-01 Kenichi Handa <handa@m17n.org>
4720 4720
4721 * charset.c (load_charset_map): Handle the case that from < to 4721 * charset.c (load_charset_map): Handle the case that from < to
4722 correctly. 4722 correctly.
4723 4723
4724 * coding.c (encode_coding_emacs_mule): Pay attention to raw-8-bit 4724 * coding.c (encode_coding_emacs_mule): Pay attention to raw-8-bit
4726 (encode_coding_iso_2022): Likewise. 4726 (encode_coding_iso_2022): Likewise.
4727 (encode_coding_sjis): Likewise. 4727 (encode_coding_sjis): Likewise.
4728 (encode_coding_big5): Likewise. 4728 (encode_coding_big5): Likewise.
4729 (encode_coding_charset): Likewise. 4729 (encode_coding_charset): Likewise.
4730 4730
4731 2008-02-02 Kenichi Handa <handa@m17n.org> 4731 2008-02-01 Kenichi Handa <handa@m17n.org>
4732 4732
4733 * Makefile.in (lisp): Change chinese.elc to chinese.el. They are 4733 * Makefile.in (lisp): Change chinese.elc to chinese.el. They are
4734 not bytecompiled now. 4734 not bytecompiled now.
4735 (shortlisp): Likewise. 4735 (shortlisp): Likewise.
4736 4736
4751 (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise. 4751 (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise.
4752 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. 4752 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
4753 (encode_coding_iso_2022): Change the 1st arg to 4753 (encode_coding_iso_2022): Change the 1st arg to
4754 ENCODE_ISO_CHARACTER to a variable. 4754 ENCODE_ISO_CHARACTER to a variable.
4755 4755
4756 2008-02-02 Kenichi Handa <handa@m17n.org> 4756 2008-02-01 Kenichi Handa <handa@m17n.org>
4757 4757
4758 * charset.h (enum define_charset_arg_index): New enums 4758 * charset.h (enum define_charset_arg_index): New enums
4759 charset_arg_min_code and charset_arg_max_code. 4759 charset_arg_min_code and charset_arg_max_code.
4760 (struct charset): New member char_index_offset. 4760 (struct charset): New member char_index_offset.
4761 4761
4764 (INDEX_TO_CODE_POINT): Likewise. 4764 (INDEX_TO_CODE_POINT): Likewise.
4765 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and 4765 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
4766 args[charset_arg_max_code]. Setup charset.char_index_offset. 4766 args[charset_arg_max_code]. Setup charset.char_index_offset.
4767 (syms_of_charset): Fix args to Fdefine_charset_internal. 4767 (syms_of_charset): Fix args to Fdefine_charset_internal.
4768 4768
4769 2008-02-02 Dave Love <fx@gnu.org> 4769 2008-02-01 Dave Love <fx@gnu.org>
4770 4770
4771 * coding.c (decode_coding_utf_8): Reject overlong sequences. 4771 * coding.c (decode_coding_utf_8): Reject overlong sequences.
4772 4772
4773 2008-02-02 Dave Love <fx@gnu.org> 4773 2008-02-01 Dave Love <fx@gnu.org>
4774 4774
4775 * coding.c: Doc fixes. 4775 * coding.c: Doc fixes.
4776 (Fcoding_system_aliases): Fix return value. 4776 (Fcoding_system_aliases): Fix return value.
4777 (Qmac): Remove (duplicated) definition. 4777 (Qmac): Remove (duplicated) definition.
4778 4778
4779 2008-02-02 Dave Love <fx@gnu.org> 4779 2008-02-01 Dave Love <fx@gnu.org>
4780 4780
4781 * charset.c (Fcharset_priority_list, Fset_charset_priority): New 4781 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
4782 functions. 4782 functions.
4783 4783
4784 * character.c (Fstring): Doc fix. 4784 * character.c (Fstring): Doc fix.
4787 4787
4788 * fontset.c (Ffontset_info): Doc fix. Return charset names, not 4788 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
4789 ids. 4789 ids.
4790 (font-encoding-alist): Doc fix. 4790 (font-encoding-alist): Doc fix.
4791 4791
4792 2008-02-02 Dave Love <fx@gnu.org> 4792 2008-02-01 Dave Love <fx@gnu.org>
4793 4793
4794 * term.c (costs_set): Declare static, non-initialized for pcc. 4794 * term.c (costs_set): Declare static, non-initialized for pcc.
4795 (encode_terminal_code): Remove ensued var. 4795 (encode_terminal_code): Remove ensued var.
4796 4796
4797 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl 4797 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
4805 * charset.c (map_charset_chars): Fix c_function declaration for 4805 * charset.c (map_charset_chars): Fix c_function declaration for
4806 K&R. 4806 K&R.
4807 4807
4808 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'. 4808 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
4809 4809
4810 2008-02-02 Dave Love <fx@gnu.org> 4810 2008-02-01 Dave Love <fx@gnu.org>
4811 4811
4812 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP. 4812 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
4813 4813
4814 * category.c (Fmodify_category_entry): Doc fix. Remove unused 4814 * category.c (Fmodify_category_entry): Doc fix. Remove unused
4815 vars. 4815 vars.
4816 4816
4817 2008-02-02 Yong Lu <lyongu@asia-infonet.com> 4817 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
4818 4818
4819 * charset.c (Fdefine_charset_internal): Fix argument to bzero. 4819 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
4820 4820
4821 * coding.c (Fdefine_coding_system_internal): Fix previous change. 4821 * coding.c (Fdefine_coding_system_internal): Fix previous change.
4822 (decode_coding_charset): Workaround for the bug of GCC 2.96. 4822 (decode_coding_charset): Workaround for the bug of GCC 2.96.
4823 4823
4824 2008-02-02 Kenichi Handa <handa@m17n.org> 4824 2008-02-01 Kenichi Handa <handa@m17n.org>
4825 4825
4826 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el, 4826 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el,
4827 vietnamese.elc to vietnamese.el. They are not bytecompiled now. 4827 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
4828 (shortlisp): Likewise. 4828 (shortlisp): Likewise.
4829 4829
4830 2008-02-02 Kenichi Handa <handa@m17n.org> 4830 2008-02-01 Kenichi Handa <handa@m17n.org>
4831 4831
4832 * coding.c (decode_coding_charset): Adjusted for the change of 4832 * coding.c (decode_coding_charset): Adjusted for the change of
4833 Fdefine_coding_system_internal. 4833 Fdefine_coding_system_internal.
4834 (Fdefine_coding_system_internal): For a coding system of 4834 (Fdefine_coding_system_internal): For a coding system of
4835 `charset' type, store a list of charset IDs in 4835 `charset' type, store a list of charset IDs in
4836 `charset_attr_charset_valids' element of coding attributes. 4836 `charset_attr_charset_valids' element of coding attributes.
4837 4837
4838 * charset.c (Fmake_char): Fix previous change. 4838 * charset.c (Fmake_char): Fix previous change.
4839 4839
4840 2008-02-02 Kenichi Handa <handa@m17n.org> 4840 2008-02-01 Kenichi Handa <handa@m17n.org>
4841 4841
4842 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars. 4842 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
4843 (emacs_mule_char): New arg src. Delete arg `composition'. Caller 4843 (emacs_mule_char): New arg src. Delete arg `composition'. Caller
4844 changed. Handle 2-byte and 3-byte charsets correctly. 4844 changed. Handle 2-byte and 3-byte charsets correctly.
4845 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from 4845 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
4860 re-defining a charset. If the charset has :emacs-mule-id, setup 4860 re-defining a charset. If the charset has :emacs-mule-id, setup
4861 emacs_mule_bytes. 4861 emacs_mule_bytes.
4862 (Fmake_char): If CODE1 is nil, use the minimum code of the 4862 (Fmake_char): If CODE1 is nil, use the minimum code of the
4863 charset. 4863 charset.
4864 4864
4865 2008-02-02 Kenichi Handa <handa@m17n.org> 4865 2008-02-01 Kenichi Handa <handa@m17n.org>
4866 4866
4867 * coding.c (encode_coding_iso_2022): If coding requires safe 4867 * coding.c (encode_coding_iso_2022): If coding requires safe
4868 encoding, produce a character specified by 4868 encoding, produce a character specified by
4869 CODING_INHIBIT_CHARACTER_SUBSTITUTION. 4869 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4870 (encode_coding_sjis): Likewise. 4870 (encode_coding_sjis): Likewise.
4871 (encode_coding_big5): Likewise. 4871 (encode_coding_big5): Likewise.
4872 (encode_coding_charset): Likewise. 4872 (encode_coding_charset): Likewise.
4873 4873
4874 2008-02-02 Dave Love <fx@gnu.org> 4874 2008-02-01 Dave Love <fx@gnu.org>
4875 4875
4876 * xterm.c (XSetIMValues): Declare. 4876 * xterm.c (XSetIMValues): Declare.
4877 4877
4878 * process.c: Conditionally include sys/wait.h, pty.h. 4878 * process.c: Conditionally include sys/wait.h, pty.h.
4879 4879
4902 * coding.c (Vchar_coding_system_table, Qchar_coding_system): 4902 * coding.c (Vchar_coding_system_table, Qchar_coding_system):
4903 Removed. 4903 Removed.
4904 (Fset_coding_system_priority, Fset_coding_system_priority) 4904 (Fset_coding_system_priority, Fset_coding_system_priority)
4905 (Fdefine_coding_system_internal): Doc fix. 4905 (Fdefine_coding_system_internal): Doc fix.
4906 4906
4907 2008-02-02 Dave Love <fx@gnu.org> 4907 2008-02-01 Dave Love <fx@gnu.org>
4908 4908
4909 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics. 4909 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
4910 4910
4911 2008-02-02 Kenichi Handa <handa@m17n.org> 4911 2008-02-01 Kenichi Handa <handa@m17n.org>
4912 4912
4913 * character.c (string_escape_byte8): Make multibyte string with 4913 * character.c (string_escape_byte8): Make multibyte string with
4914 correct size. 4914 correct size.
4915 4915
4916 * charset.c (Fmake_char): Delete unnecessary code. 4916 * charset.c (Fmake_char): Delete unnecessary code.
4917 4917
4918 2008-02-02 Kenichi Handa <handa@m17n.org> 4918 2008-02-01 Kenichi Handa <handa@m17n.org>
4919 4919
4920 * xfns.c (x_encode_text): Allocate coding.destination here, and 4920 * xfns.c (x_encode_text): Allocate coding.destination here, and
4921 call encode_coding_object with dst_object Qnil. 4921 call encode_coding_object with dst_object Qnil.
4922 4922
4923 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to 4923 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
4941 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2). 4941 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
4942 4942
4943 * charset.c (Fmake_char): Make it more backward compatible. 4943 * charset.c (Fmake_char): Make it more backward compatible.
4944 (Fmap_charset_chars): Fix docstring. 4944 (Fmap_charset_chars): Fix docstring.
4945 4945
4946 2008-02-02 Dave Love <fx@gnu.org> 4946 2008-02-01 Dave Love <fx@gnu.org>
4947 4947
4948 * coding.c: Doc fixes. 4948 * coding.c: Doc fixes.
4949 (Fdefine_coding_system_alias): Use names, not symbols, in 4949 (Fdefine_coding_system_alias): Use names, not symbols, in
4950 coding-system-alist. 4950 coding-system-alist.
4951 4951
4952 2008-02-02 Kenichi Handa <handa@m17n.org> 4952 2008-02-01 Kenichi Handa <handa@m17n.org>
4953 4953
4954 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead 4954 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
4955 of calling free_realized_face. 4955 of calling free_realized_face.
4956 4956
4957 2008-02-02 Yong Lu <lyongu@asia-infonet.com> 4957 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
4958 4958
4959 * charset.c (load_charset_map): Fix previous change. 4959 * charset.c (load_charset_map): Fix previous change.
4960 (read_hex): Don't treat SPC as a comment starter. 4960 (read_hex): Don't treat SPC as a comment starter.
4961 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return 4961 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return
4962 -1. 4962 -1.
4963 (Fdecode_char): Fix typo. 4963 (Fdecode_char): Fix typo.
4964 4964
4965 2008-02-02 Kenichi Handa <handa@m17n.org> 4965 2008-02-01 Kenichi Handa <handa@m17n.org>
4966 4966
4967 * charset.h (struct charset): New member `code_space_mask'. 4967 * charset.h (struct charset): New member `code_space_mask'.
4968 4968
4969 * coding.c (coding_set_source): Delete the local variable 4969 * coding.c (coding_set_source): Delete the local variable
4970 beg_byte. 4970 beg_byte.
4977 member to check if CODE is valid or not. 4977 member to check if CODE is valid or not.
4978 (Fdefine_charset_internal): Initialize `code_space_mask' member. 4978 (Fdefine_charset_internal): Initialize `code_space_mask' member.
4979 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE 4979 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
4980 is within the range of charset->min_code and carset->max_code. 4980 is within the range of charset->min_code and carset->max_code.
4981 4981
4982 2008-02-02 Dave Love <fx@gnu.org> 4982 2008-02-01 Dave Love <fx@gnu.org>
4983 4983
4984 * syntax.h (syntax_temp) [!__GNUC__]: Declare. 4984 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
4985 4985
4986 * dispextern.h (generate_ascii_font): Fix return type. 4986 * dispextern.h (generate_ascii_font): Fix return type.
4987 4987
4989 4989
4990 * coding.c (coding_inherit_eol_type) 4990 * coding.c (coding_inherit_eol_type)
4991 (Fset_terminal_coding_system_internal) 4991 (Fset_terminal_coding_system_internal)
4992 (Fset_safe_terminal_coding_system_internal): Fix arg declarations. 4992 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
4993 4993
4994 2008-02-02 Kenichi Handa <handa@m17n.org> 4994 2008-02-01 Kenichi Handa <handa@m17n.org>
4995 4995
4996 * coding.c (decode_coding_charset, encode_coding_charset): Handle 4996 * coding.c (decode_coding_charset, encode_coding_charset): Handle
4997 multiple charsets correctly. 4997 multiple charsets correctly.
4998 4998
4999 2008-02-02 Kenichi Handa <handa@m17n.org> 4999 2008-02-01 Kenichi Handa <handa@m17n.org>
5000 5000
5001 * search.c (boyer_moore): Fix handling of mulitbyte character 5001 * search.c (boyer_moore): Fix handling of mulitbyte character
5002 translation. 5002 translation.
5003 5003
5004 * xdisp.c (display_mode_element): When the variable `elt' is 5004 * xdisp.c (display_mode_element): When the variable `elt' is
5005 changed, update `this' and `lisp_string'. 5005 changed, update `this' and `lisp_string'.
5006 5006
5007 2008-02-02 Kenichi Handa <handa@m17n.org> 5007 2008-02-01 Kenichi Handa <handa@m17n.org>
5008 5008
5009 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling. 5009 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
5010 5010
5011 * callproc.c (Fcall_process): Be sure to give the current buffer 5011 * callproc.c (Fcall_process): Be sure to give the current buffer
5012 to decode_coding_c_string. Update PT and PT_BYTE after the 5012 to decode_coding_c_string. Update PT and PT_BYTE after the
5039 decode_coding_gap. 5039 decode_coding_gap.
5040 5040
5041 * xfaces.c (try_font_list): Give higher priority to fontset's 5041 * xfaces.c (try_font_list): Give higher priority to fontset's
5042 family than face's family. 5042 family than face's family.
5043 5043
5044 2008-02-02 Kenichi Handa <handa@m17n.org> 5044 2008-02-01 Kenichi Handa <handa@m17n.org>
5045 5045
5046 * callproc.c (Fcall_process): Be sure to give the current buffer 5046 * callproc.c (Fcall_process): Be sure to give the current buffer
5047 to decode_coding_c_string. 5047 to decode_coding_c_string.
5048 5048
5049 * xfaces.c (try_font_list): Give a family specified in a fontset 5049 * xfaces.c (try_font_list): Give a family specified in a fontset
5050 higher priority than a family specified in a face. 5050 higher priority than a family specified in a face.
5051 5051
5052 2008-02-02 Kenichi Handa <handa@m17n.org> 5052 2008-02-01 Kenichi Handa <handa@m17n.org>
5053 5053
5054 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'. 5054 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
5055 Fix arguments to insert_from_buffer. 5055 Fix arguments to insert_from_buffer.
5056 5056
5057 * xdisp.c (display_mode_element): Fix calculation of `bytepos'. 5057 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
5058 5058
5059 2008-02-02 Kenichi Handa <handa@m17n.org> 5059 2008-02-01 Kenichi Handa <handa@m17n.org>
5060 5060
5061 * coding.c (produce_chars): Set the variable `multibytep' correctly. 5061 * coding.c (produce_chars): Set the variable `multibytep' correctly.
5062 (decode_coding_gap): Set coding->dst_multibyte correctly. 5062 (decode_coding_gap): Set coding->dst_multibyte correctly.
5063 5063
5064 2008-02-02 Kenichi Handa <handa@m17n.org> 5064 2008-02-01 Kenichi Handa <handa@m17n.org>
5065 5065
5066 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0. 5066 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
5067 (decode_coding_utf_16): Fix converting high and low bytes to 5067 (decode_coding_utf_16): Fix converting high and low bytes to
5068 code-point. 5068 code-point.
5069 (encode_coding_utf_16): Substitute coding->default_char for 5069 (encode_coding_utf_16): Substitute coding->default_char for
5073 coding->spec.utf_16 to 0. 5073 coding->spec.utf_16 to 0.
5074 (EMIT_ONE_BYTE): Fix for multibyte case. 5074 (EMIT_ONE_BYTE): Fix for multibyte case.
5075 5075
5076 * insdel.c (insert_from_gap): Call record_insert. 5076 * insdel.c (insert_from_gap): Call record_insert.
5077 5077
5078 2008-02-02 Kenichi Handa <handa@m17n.org> 5078 2008-02-01 Kenichi Handa <handa@m17n.org>
5079 5079
5080 * casefiddle.c (casify_region): Fix multibyte case. 5080 * casefiddle.c (casify_region): Fix multibyte case.
5081 5081
5082 * character.c (c_string_width): Add return type `int'. 5082 * character.c (c_string_width): Add return type `int'.
5083 (char_string_with_unification): Arg ADVANCED deleted. 5083 (char_string_with_unification): Arg ADVANCED deleted.
5098 earlier. If inserted is zero and the coding system doesn't 5098 earlier. If inserted is zero and the coding system doesn't
5099 require flushing, don't call decode_coding_gap. 5099 require flushing, don't call decode_coding_gap.
5100 5100
5101 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number. 5101 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
5102 5102
5103 2008-02-02 Kenichi Handa <handa@m17n.org> 5103 2008-02-01 Kenichi Handa <handa@m17n.org>
5104 5104
5105 The following changes are for using Unicode as an internal 5105 The following changes are for using Unicode as an internal
5106 character model, and use UTF-8 format for buffer/string 5106 character model, and use UTF-8 format for buffer/string
5107 representation. 5107 representation.
5108 5108