Merge from emacs--rel--22
[bpt/emacs.git] / src / ChangeLog
CommitLineData
07cfc4e7
GM
12008-05-17 Glenn Morris <rgm@gnu.org>
2
3 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
4
1cab27d2
EZ
52008-05-16 Eli Zaretskii <eliz@gnu.org>
6
7 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8 and st_gid.
9
10 * frame.c (Fdelete_frame): Don't call font_update_drviers if
11 HAVE_WINDOW_SYSTEM is not defined.
12
13 * xfaces.c (merge_face_ref, merge_face_vectors)
14 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15 HAVE_WINDOW_SYSTEM is defined.
16 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17
86b89713
SM
182008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
19
20 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21
6750bd93
YM
222008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23
62867b11 24 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 25
79f105c9
KH
262008-05-15 Kenichi Handa <handa@m17n.org>
27
28 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
29 preference.
30
6b33da9f
GM
312008-05-15 Glenn Morris <rgm@gnu.org>
32
33 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
34
d0e4433b
CY
352008-05-15 Chong Yidong <cyd@stupidchicken.com>
36
37 * fns.c (init_fns): Don't initialize weak_hash_tables here.
38 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
39
40 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
41
5f2d79e0
KH
422008-05-15 Kenichi Handa <handa@m17n.org>
43
fd8a1cae
KH
44 * ftfont.c (ftfont_list): Downcase family name to check generic
45 families.
46
47 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
48 font-spec for QCfont value.
49
5f2d79e0
KH
50 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
51 buffer. Check the return value of it.
52
e5e29349
JR
532008-05-14 Jason Rumney <jasonr@gnu.org>
54
55 * w32term.c (w32_get_glyph_overhangs): Remove.
56 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
57
1f09f444
KH
582008-05-14 Kenichi Handa <handa@m17n.org>
59
60 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
61 (font_clear_cache): Check if the cached vector of entities is nil
62 or not.
1f09f444 63
ecae6af9 642008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
65
66 * emacs.c (main_thread): Conditionalize on
67 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
68 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
69
70 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
71 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
72 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
73
c6b278e7
KH
742008-05-14 Kenichi Handa <handa@m17n.org>
75
76 * coding.c (detect_coding_iso_2022): Ignore a coding category that
77 has no corresponding coding system.
78
792008-05-14 Jason Rumney <jasonr@gnu.org>
80
81 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
82
83 * w32font.h (w32font_open_internal): Update declaration.
84
85 * w32font.c (w32font_open_internal): Change last argument from
86 w32font_info struct to font object. Fill in font object from
87 font_entity. Get Outline metrics if possible. Use them to
88 calculate underline position and thickness. Use xlfd name as name
89 property. Don't set codepage.
90 (w32font_open): Pass font_object to w32font_open_internal. Don't
91 update dpyinfo->smallest_font_height and
92 dpyinfo->smallest_char_width.
93 (w32font_draw): Use s->font.
94 (clear_cached_metrics): Don't clear non-existent blocks.
95
96 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
97 font was not found.
98 (x_draw_glyph_string): Use underline position and thickness from
99 font.
100
101 * w32uniscribe.c (uniscribe_open): Pass font_object to
102 w32font_open_internal.
103
1042008-05-14 Kenichi Handa <handa@m17n.org>
105
106 These changes are to delete all legacy font-handling codes, and
107 make Emacs use only font-backends.
108
109 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
110 (frame.o, image.o, print.o): Depend on $(FONTSRC).
111
112 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
113
114 * charset.h (Vcharset_non_preferred_head)
115 (Vcurrent_iso639_language): Extern them.
116
117 * charset.c (Vcharset_non_preferred_head): New variable.
118 (Vcurrent_iso639_language): New variable.
119 (syms_of_charset): Declare it as a Lisp variable.
120 (char_charset): Don't check non preferred charsets. As a last
121 resort, return charset_unicode.
122 (Fset_charset_priority): Update Vcharset_non_preferred_head.
123
124 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
125 conditionals. Don't check enable_font_backend. Delete all codes
126 used only when USE_FONT_BACKEND is not defined.
127
128 * dispextern.h (struct glyph_string): Change type of `font' to
129 `struct font *'.
130 (struct glyph_string): New member underline_position and
131 underline_thickness.
132 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
133 (struct face): Change type of `font' to `struct font *'. Remove
134 members `font_name', `font_info_id'.
135 (per_char_metric, encode_char): Delete externs.
136 (calc_pixel_width_or_height): Adjust the prototype.
137
138 * emacs.c (enable_font_backend): Delete extern.
139 (main): Don't set enable_font_backend. Don't check the command
140 line argument "-disable-font-backend".
141
142 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
143 (enum font_property_index): New members FONT_DPI_INDEX,
144 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
145 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
146 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
147 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
148 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
149 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
150 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
151 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
152 (struct font_spec, struct font_entity): New structs.
153 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
154 (struct font): Many members from old "struct font_info" moved to
155 here. Members font and entity deleted.
156 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
157 the new font-related objects.
158 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
159 (CHECK_FONT_GET_OBJECT): Likewise.
160 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
161 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
162 (struct font_driver): New members case_sensitive anc check. Type
163 of the member list and open changed.
164 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
165 (font_symbolic_width, font_find_object, font_get_spec)
166 (font_set_lface_from_name): Delete extern.
167 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New
168 EXFUNs.
169
170 * font.c: Include <strings.h>.
171 (enable_font_backend): Delete it.
172 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
173 (CHECK_VALIDATE_FONT_SPEC): Delete it.
174 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
175 (null_string): Delete it.
176 (null_vector): Make it static.
177 (font_family_alist): Delete it.
178 (Qnormal): Extern it.
179 (QCextra, QClanguage): Delete it.
180 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New
181 variables.
182 (font_make_spec, font_make_entity, font_make_object)
183 (font_intern_prop): Renamed from intern_downcase. Don't downcase
184 the string. Callers changed.
185 (font_pixel_size): Adjusted for the format change of font-related
186 objects.
187 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
188 (font_style_to_value, font_style_symbolic): New function.
189 (build_font_family_alist): Delete it.
190 (font_registry_charsets): Use Fassoc_string instead of
191 assq_no_quit.
192 (font_prop_validate_symbol): Don't return null_string.
193 (font_prop_validate_style): Adjusted for the change of
194 style-related values in a font vector.
195 (font_property_table): Delete entries for QClangauge and
196 QCantialias, add entries for QCavgwidth.
197 (get_font_prop_index): Delete the 2nd argument FROM.
198 (font_prop_validate): Arguments changed.
199 (font_put_extra): Adjusted for the change of font-related objects.
200 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
201 (font_parse_fcname, font_unparse_fcname)
202 (font_prepare_composition): Likewise.
203 (font_parse_family_registry): Renamed from font_merge_old_spec.
204 (otf_open): Delete the 1st arg entity.
205 (font_otf_capability): Adjusted for the above change.
206 (font_score): New arg alternate_families. Adjusted for the change
207 of font-related objects.
208 (font_sort_entites): New arg best_only.
209 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
210 Delete them.
211 (font_match_p): Check alternate families.
212 (font_find_object): Delete it.
213 (font_check_object): New function.
214 (font_clear_cache): Adjusted for the change of font-related
215 objects.
216 (font_delete_unmatched): New arg.
217 (font_list_entities): Call font_driver->list with a spec that
218 doesn't specify style-related properties.
219 (font_matching_entity): Arguments changed. Caller changed.
220 (font_open_entity): Adjusted for the change of font-related
221 objects.
222 (font_close_object, font_has_char, font_encode_char)
223 (font_get_name, font_get_spec): Likewise.
224 (font_spec_from_name, font_clear_prop, font_update_lface): New
225 functions.
226 (font_find_for_lface, font_open_for_lface, font_load_for_lface):
227 (font_prepare_for_face, font_done_for_face, font_open_by_name)
228 (font_at): Adjusted for the change of font-related objects.
229 (font_range): New function.
230 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
231 (Ffont_xlfd_name): Adjusted for the change of font-related
232 objects.
233 (Fcopy_font_spec, Fmerge_font_spec): New function.
234 (Ffont_family_list): Renamed from list-families.
235 (Finternal_set_font_style_table): Arguments changed.
236 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
237 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
238 change of font-related objects.
239 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new
240 symboles.
241
242 * fontset.h (struct font_info): Delete it. Most memnbers go to
243 struct font.
244 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
245 (enum FONT_SPEC_INDEX): Delete it.
246 (font_info, list_fonts_func, load_font_func, query_font_func)
247 (set_frame_fontset_func, find_ccl_program_func)
248 (get_font_repertory_func, new_fontset_from_font_name): Delete
249 externs.
250 (fontset_from_font_name): Extern it.
251 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
252 (FONT_INFO_FROM_FACE): Deleted.
253 (face_for_font): Adjust prototype.
254
255 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
256 conditionals. Don't check enable_font_backend. Delete all codes
257 used only when USE_FONT_BACKEND is not defined.
258 (get_font_info_func, list_font_func, load_font_func)
259 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
260 (get_font_repertory_func): Delete them.
261 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
262 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
263 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
264 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
265 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
266 (fontset_compare_rfontdef): New function.
267 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
268 ront-defs by qsort. Adjusted for the change of font-group vector.
269 (load_font_get_repertory): Deleted.
270 (fontset_find_font): Use new macros to ref/set elements of
271 font-def and rfont-def.
272 (fontset_font): Fix the timing of remembering that no font for C.
273 (free_face_fontset): Do nothing if the face has no fontset.
274 (face_suitable_for_char_p): Use new macros to ref/set elements of
275 rfont-def.
276 (face_for_char): Likewise. Call face_for_char with font_object.
277 (fs_load_font): Delete. Delete #pragma surrounding it.
278 (fs_query_fontset): Use strcasecmp instead of strcmp.
279 (generate_ascii_font_name): Adjusted for the format change of
280 font-spec.
281 (Fset_fontset_font): Likewise. Use new macros to set elements of
282 font-def.
283 (Fnew_fontset): Use font_unparse_xlfd to generate
284 FONTSET_ASCII (fontset).
285 (new_fontset_from_font_name): Deleted.
286 (fontset_from_font): Renamed from new_fontset_from_font. Check if
287 a fontset is already created for the font. FIx updating of
288 Vfontset_alias_alist.
289 (fontset_ascii_font): Deleted.
290 (Ffont_info): Adjusted for the format change of font-spec.
291 (Finternal_char_font): Likewise.
292 (Ffontset_info): Likewise.
293 (syms_of_fontset): Don't check load_font_func.
294
295 * fns.c (internal_equal): Handle PREV_FONT.
296
297 * frame.h: Delete USE_FONT_BACKEND conditional.
298
299 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
300 conditionals. Don't check enable_font_backend. Delete all codes
301 used only when USE_FONT_BACKEND is not defined.
302 (x_set_font): Call x_new_font, not x_new_fontset2.
303 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
304 already set for the frame.
305
306 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
307 a font-entity by font_make_entity. Use font_intern_prop instead
308 of intern_downcase. Use FONT_SET_STYLE to set a style-related
309 font property. If a font is scalable, set avgwidth property to 0.
310 Set font-entity property by font_put_extra.
311 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
312 (ffont_driver): Adjusted for the change of struct font_driver.
313 (ftfont_spec_pattern): New function.
314 (ftfont_list): Return a list, not vector.
315 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
316 (ftfont_list_family): Don't downcase names.
317 (ftfont_free_entity): Deleted.
318 (ftfont_open): Return a font-ojbect. Adjusted for the change of
319 struct font. Get underline_thickness and underline_position from
320 font property. Don't update dpyinfo->smallest_font_height and
321 dpyinfo->smallest_char_width.
322 (ftfont_close): Don't free `struct font'.
323 (ftfont_has_char): Adjusted for the format change of font-entity.
324 (ftfont_encode_char, ftfont_text_extents): Likewise.
325
326 * ftxfont.c (ftxfont_list): Return a list, not vector.
327 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
328 struct font. Get underline_thickness and underline_position from
329 font property. Don't update dpyinfo->smallest_font_height and
330 dpyinfo->smallest_char_width.
331 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
332 (ftxfont_draw): Adjusted for the change of struct font.
333
334 * image.c (image_ascent): Don't include "charset.h". Include
335 "character.h" and "font.h".
336
337 * lisp.h (enum pvec_type): New member PREV_FONT.
338 (Fassoc_string): EXFUN it.
339
340 * print.c: Include font.h.
341 (print_object): Handle font-related objects.
342
343 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
344 conditionals. Don't check enable_font_backend. Delete all codes
345 used only when USE_FONT_BACKEND is not defined.
346 (handle_auto_composed_prop): Do nothing if it->f is not on a
347 window system. Check how many following characters can be
348 displayed by the same font.
349 (calc_pixel_width_or_height): Type of the 4th arg is changed to
350 'struct font *'.
351 (get_char_face_and_encoding): Assign the whole encoding task to
352 the `encode-char' method of a font driver.
353 (fill_composite_glyph_string): Adjusted for the change of `struct
354 face' and `struct glyph_string'.
355 (fill_glyph_string): Likewise.
356 (get_per_char_metric): Arguments changed.
357 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
358 and `struct glyph_string'.
359 (produce_stretch_glyph, calc_line_height_property)
360 (x_produce_glyphs): Likewise.
361
362 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
363 conditionals. Don't check enable_font_backend. Delete all codes
364 used only when USE_FONT_BACKEND is not defined. Use
365 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
366 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
367 (Qp): Extern them.
368 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
369 Deleted.
370 (struct font_name): Deleted.
371 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
372 (compare_fonts_by_sort_order): New function.
373 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
374 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
375 Deleted.
376 (Fx_family_fonts): Use font_list_entities, and sort fonts by
377 compare_fonts_by_sort_order.
378 (Fx_font_family_list): Call Ffont_family_list.
379 (face_numeric_value, face_numeric_weight, face_numeric_slant)
380 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
381 (face_symbolic_slant, face_symbolic_swidth)
382 (split_font_name_into_vector, build_font_name_from_vector)
383 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
384 (font_rescale_ratio, split_font_name, build_font_name)
385 (free_font_names, sort_fonts, x_face_list_fonts)
386 (face_font_available_p, sorted_font_list, cmp_font_names)
387 (font_list_1, concat_font_list, font_list, remove_duplicates):
388 Deleted.
389 (Fx_list_fonts): Use Ffont_list.
390 (LFACE_AVGWIDTH): Deleted.
391 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
392 by FONTP.
393 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
394 (set_lface_from_font_name): Delete it.
395 (set_lface_from_font): Renamed from
396 set_lface_from_font_and_fontset. Caller changed. Don't set
397 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
398 for face.
399 (merge_face_vectors): Copy font-spec if necessary. Clear
400 properties of the font-spec if necessary.
401 (merge_face_ref): Clear properties of the font-spec if necessary.
402 (Finternal_set_lisp_face_attribute): Likewise.
403 (set_font_frame_param): Use font_load_for_lface to load a
404 font-object, and call Fmodify_frame_parameters with it.
405 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
406 font name by Ffont_xlfd_name.
407 (Finternal_lisp_face_attribute_values): Don't check QCweight,
408 QCslant, and QCwidth.
409 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
410 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
411 Compare fonts by EQ.
412 (lookup_non_ascii_face): Deleted.
413 (face_for_font): The 2nd argument changed.
414 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. Check
415 atomic font properties by case insensitive.
416 (realize_non_ascii_face): Set face->overstrike correctly.
417 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
418 (dump_realized_face): Get font name from
419 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
420
421 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
422 conditionals. Don't check enable_font_backend. Delete all codes
423 used only when USE_FONT_BACKEND is not defined.
424 (xic_create_xfontset): Original code deleted and renamed from
425 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
426 (x_make_gc): Don't set GCFont in GCs.
427 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
428 opened by "fixed".
429 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
430 find_ccl_program_func, query_font_func, set_frame_fontset_func,
431 get_font_repertory_func.
432
433 * xfont.c: Include <stdlib.h> and "ccl.h".
434 (struct xfont_info): New structure.
435 (xfont_query_font): Deleted.
436 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
437 moved from xterm.c.
438 (xfont_driver): Adjusted for the change of struct font_driver.
439 (compare_font_names): New function.
440 (xfont_list_pattern): Sort font names case insensitively. Make
441 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
442 (xfont_list): Return a list, not vector.
443 (xfont_match): If the font doesn't have QCname property, generate
444 a name from the other font properties.
445 (xfont_open): Return a font-ojbect. Adjusted for the change of
446 struct font. Get underline_thickness and underline_position from
447 font property. Don't update dpyinfo->smallest_font_height and
448 dpyinfo->smallest_char_width.
449 (xfont_close): Don't free struct font.
450 (xfont_prepare_face): Adjusted for the change of struct font.
451 (xfont_done_face): Deleted.
452 (xfont_has_char): Adjusted for the change of struct font.
453 (xfont_encode_char, xfont_draw): Likewise.
454 (xfont_check): New function.
455
456 * xftfont.c (xftfont_list): Adjusted for the change of `list'
457 callback function.
458 (xftfont_match): Adjusted for the fontmat change of font-entity.
459 (xftfont_open): Adjusted for the format change of font-entity and
460 font-object. Adjusted for the change of struct font. Return a
461 font-object. Don't update dpyinfo->smallest_font_height and
462 dpyinfo->smallest_char_width.
463 (xftfont_close): Block input while calling XftFontClose.
464 (xftfont_prepare_face): Don't block input while calling
465 xftfont_get_colors. Adjusted for the change of struct font.
466 (xftfont_shape): Return value of error case fixed.
467
468 * xrdb.c (x_load_resources): Don't setup a fontset resource.
469
470 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
471 conditionals.
472 (FONT_WIDTH): Return (f)->max_width.
473 (struct x_display_info): Delete member `font'.
474 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
475 (x_find_ccl_program, x_get_font_repertory): Delete externs.
476 (struct x_output): Change type of `font' to `struct font *'.
477
478 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
479 conditionals. Don't check enable_font_backend. Delete all codes
480 used only when USE_FONT_BACKEND is not defined. Don't include
481 ccl.h.
482 (x_per_char_metric, x_encode_char): Deleted.
483 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
484 (x_compute_glyph_string_overhangs): Adjusted for the change of
485 `struct face'
486 (x_draw_glyph_string_foreground)
487 (x_draw_composite_glyph_string_foreground): Likewise.
488 (x_draw_glyph_string): Likewise. Use font->underline_position and
489 font->underline_thickness.
490 (x_new_font): Renamed from x_new_fontset2.
491 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
492 (x_check_font): Call `check' method of a font driver.
493 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
494 (x_query_font, x_get_font_repertory): Deleted.
495 (x_find_ccl_program): Renamed and moved to xfont.c.
496 (x_redisplay_interface): Adjusted for the change of `struct
497 redisplay_interface'.
498
499 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
500 conditionals. Don't check enable_font_backend. Delete all codes
501 used only when USE_FONT_BACKEND is not defined. Surround non-used
502 code by "#ifdef OLD_FONT" and "endif".
503 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
504
505 * w32font.h (struct w32font_info): New member.
506 (FONT_COMPAT): New macro.
507 (w32font_open_internal): Prototype adjusted.
508
509 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
510 OLD_FONT" and "endif".
511
512 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
513 conditionals. Don't check enable_font_backend. Delete all codes
514 used only when USE_FONT_BACKEND is not defined.
515 (w32font_open): Return a font-object. Make a font-object by
516 font_make_object. Adjusted for the change of struct w32font_info.
517 (w32font_close): Don't free struct font. Adjusted for the change
518 of struct w32font_info.
519 (w32font_encode_char, w32font_text_extents, w32font_draw):
520 Adjusted for the change of struct w32font_info.
521 (w32font_draw): Likewise.
522 (w32font_list_internal): Return a list, not vector.
523 (w32font_open_internal): Change the 4th arg to font-object.
524 Adjusted for the change of struct w32font_info and font-object
525 format.
526 (add_font_name_to_list): Don't downcase names.
527 (w32_enumfont_pattern_entity): Make a font-entity by
528 font_make_entity. Adjusted for the format change of font-entity.
529 Use FONT_SET_STYLE to set a style-related font property. If a
530 font is scalable, set avgwidth property to 0. Set font-entity
531 property by font_put_extra.
532 (font_matches_spec): Adjusted for the format change of
533 font-entity.
534 (w32_weight_table, w32_decode_weight): New variables.
535 (w32_encode_weight): New function.
536 (fill_in_logfont): Adjusted for the format change of font-spec.
537 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
538 weight value.
539 (w32font_driver): Adjusted for the change of struct font_driver.
540
541 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
542 conditionals. Don't check enable_font_backend. Surround non-used
543 code by "#ifdef OLD_FONT" and "endif".
544 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
545 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
546
547 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
548 conditionals. Don't check enable_font_backend. Delete all codes
549 used only when USE_FONT_BACKEND is not defined. Surround non-used
550 code by "#ifdef OLD_FONT" and "endif".
551
552 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
553 (uniscribe_open): Return value changed to font-object. Adjusted
554 for the format change of font-object.
555 (uniscribe_otf_capability): Adjusted for the change of struct
556 font.
557 (add_opentype_font_name_to_list): Don't downcase names.
558 (uniscribe_font_driver): Adjusted for the change of struct
559 font_driver.
560
f9d4c199
CY
5612008-05-13 Chong Yidong <cyd@stupidchicken.com>
562
563 * dispnew.c (update_frame_1): Check if tty output is still valid
564 before flushing it.
565
44f249c0
JD
5662008-05-13 Jan Djärv <jan.h.d@swipnet.se>
567
568 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
569 to Gtk+ menus.
570
01bb4018
SM
5712008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
572
3271a8f5
SM
573 * dired.c (file_name_completion): Tweak the code so as to always do it
574 in a single pass. Tighten the scope of some variables.
575
01bb4018
SM
576 * dired.c (Qdefault_directory): New var.
577 (file_name_completion): Use it instead of Fexpand_file_name.
578 (syms_of_dired): Initialize it.
579
728bb8e0
SM
5802008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
581
582 * fileio.c (double_dollars): Remove dead code.
583
ed4c17bb
EZ
5842008-05-10 Eli Zaretskii <eliz@gnu.org>
585
6c5665e9
EZ
586 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
587 Mention w32-get-true-file-attributes in doc string.
588
ed4c17bb
EZ
589 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
590
71e1f69d
GM
5912008-05-09 Glenn Morris <rgm@gnu.org>
592
593 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
594 2008-04-23.
595
ee7a2e7a
EZ
5962008-05-09 Eli Zaretskii <eliz@gnu.org>
597
8aaaec6b
EZ
598 Support for reporting owner and group of each file on MS-Windows:
599 * dired.c (stat_uname, stat_gname): New functions, with special
600 implementation for w32.
601 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
602
ee7a2e7a
EZ
603 * w32.c: Rename the_passwd_* to dflt_passwd_*.
604 (dflt_group_name): New static variable.
728bb8e0 605 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
606 (init_user_info): Init dflt_group fields. Get user's group name
607 from LookupAccountSid.
8aaaec6b
EZ
608 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
609 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
610 New initialization states.
611 (globals_of_w32): Initialize them to zero. Initialize the default
612 group name to "None".
613 (GetFileSecurity_Name): New global var, the name of the function
614 to call for GetFileSecurity.
615 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
616 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
617 (get_file_security, get_security_descriptor_owner)
618 (get_security_descriptor_group, is_valid_sid)
619 (get_file_security_desc, get_rid, get_name_and_id)
620 (get_file_owner_and_group): New functions.
621 (stat): Use get_file_security_desc and get_file_owner_and_group to
622 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
623 high 32 bits of file's size, now that st_size is 64-bit wide.
624 Fix test when to get true file attributes.
8aaaec6b
EZ
625 (init_user_info): Use get_rid instead of equivalent inline code.
626 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 627
b199c436
CY
6282008-05-09 Chong Yidong <cyd@stupidchicken.com>
629
630 * image.c (png_load): Use correct bit-depth for setting background
631 color.
632
86914123
EZ
6332008-05-08 Eli Zaretskii <eliz@gnu.org>
634
635 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
636 epa-hook.elc.
637
67b5d7de
JB
6382008-05-08 Juanma Barranquero <lekktu@gmail.com>
639
640 * font.c (Ffont_match_p): Don't use `iff' in docstring.
641
1a111394
DN
6422008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
643
644 * macfns.c (Fx_create_frame): Make a copy of frame parameters
645 because the original parameters are in pure storage now.
646 (mac_window): Remove unused params. Update callers.
647
6d77fa95
SM
6482008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
649
7a3d90dc
SM
650 * lread.c (substitute_object_recurse): Use lower-level primitives.
651 Don't signal errors when traversing sub-char-tables.
652 Don't loop over all the possible characters when traversing char-tables.
653
6d77fa95
SM
654 * print.c (print_preprocess): Add sub-char-tables to the print-table,
655 just like we do in print.c.
656
140eb764
SM
6572008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
658
659 * minibuf.c (Ftry_completion): Remove code left over from when we used
660 scmp instead of Fcompare_strings.
661
e9184ccb
JB
6622008-05-04 Juanma Barranquero <lekktu@gmail.com>
663
664 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
665
0e9378b3
YM
6662008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
667
668 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
669 Create bitmap context in native byte order.
670
f67e15be
MB
671 * macterm.c (XDrawLine)
672 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
673 context in native byte order.
064032d0 674
f67e15be 6752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
676
677 * config.in: Regenerate.
678
679 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
680 New definitions for Image I/O support.
681 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
682 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
683 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
684 (mac_data_provider_release_data, image_load_image_io)
685 [USE_MAC_IMAGE_IO]: New functions.
686 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
687 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
688 (init_image_func_pointer) [MAC_OSX]: Remove function.
689 (image_load_quartz2d) [MAC_OSX]: Check availability of
690 CGImageCreateWithPNGDataProvider at compile time.
691 Use lowercase `false' for boolean constant.
692 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
693 Use image_load_image_io.
694 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
695 Don't check MyCGImageCreateWithPNGDataProvider.
696 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
697 Don't call init_image_func_pointer.
698
699 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
700
701 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
702 Make variable non-static.
703 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
704 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
705
706 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
707 (RED_FROM_ULONG): Mask off higher bits.
708 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
709
710 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
711 Include AvailabilityMacros.h.
712 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
713 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
714
c6bff69e
SM
7152008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
716
717 * chartab.c (Fset_char_table_range): If range is t, really set all
718 chars to that value.
719
7412d429
EZ
7202008-05-03 Eli Zaretskii <eliz@gnu.org>
721
722 * dired.c (Ffile_attributes): Don't allow the device number become
723 negative.
724
f83bbfac
DU
7252008-05-02 Daiki Ueno <ueno@unixuser.org>
726
5a81d3d7 727 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 728
2e3148e2
JL
7292008-05-02 Juri Linkov <juri@jurta.org>
730
731 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
732 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
733 DEFAULT argument as a list of default values in docstrings.
2e3148e2 734
923fb88c
CY
7352008-05-01 Chong Yidong <cyd@stupidchicken.com>
736
737 * puresize.h (BASE_PURESIZE): Increase to 1210000.
738
047aaeb9
MR
7392008-05-01 Martin Rudalics <rudalics@gmx.at>
740
741 * dispnew.c (change_frame_size_1): Preserve small windows when
742 shrinking frames by calling set_window_height|width with third
743 arg 2.
744
745 * window.h (struct window): Replace field too_small_ok by field
746 resize_proportionally.
747
748 * window.c (make_window): Initialize resize_proportionally.
749 (enlarge_window): Temporarily set resize_proportionally to make
750 sure that shrink_windows does scale the window proportionally.
751 (shrink_windows): When window has resize_proportionally set try
752 to shrink it proportionally by stealing from other windows.
753 (struct saved_window, Fset_window_configuration)
754 (compare_window_configurations): Handle resize_proportionally.
755 (WINDOW_TOTAL_SIZE): New macro.
756 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 757 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
758 window-min-height|width are handled by window_min_size_2 now.
759 (size_window, Fsplit_window, enlarge_window)
760 (adjust_window_trailing_edge, grow_mini_window): Don't call
761 check_min_window_sizes.
c6bff69e
SM
762 (window_min_size_2, window_min_size_1, window_min_size):
763 New argument safe_p for retrieving "safe" minimum sizes.
047aaeb9 764 (Fdisplay_buffer, Fsplit_window, enlarge_window):
c6bff69e
SM
765 (adjust_window_trailing_edge, grow_mini_window):
766 Adjust arguments of window_min_size... functions.
047aaeb9
MR
767 (shrink_windows): Argument min_size removed. New argument
768 safe_p allows shrinking windows to their safe minimum sizes.
769 Calculate minimum size and decide whether a window shall be
770 deleted for each window individually.
771 (size_window): When nodelete_p equals 2, tell shrink_windows to
772 delete windows only if their new minimum size is no more safe.
773 (shrink_window_lowest_first): Call window_min_size_1 to make
774 sure to preserve modeline of bottom-most window when resizing
775 the minibuffer.
776 (Fset_window_configuration, Fcurrent_window_configuration)
777 (compare_window_configurations): Do not handle
778 window-min-height|width any more.
779 (syms_of_window): Clarify window-min-height|width doc-strings.
780
2a54a229
SM
7812008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
782
783 * dired.c (file_name_completion): Fix up the encoding/decoding issue
784 some more. Copy some of the code from Ftry_completions.
785 Remove special case code that dates back to initial revision when the
786 slash was only added when necessary and that can't trigger nowadays.
787
384bc634
KH
7882008-04-27 Kenichi Handa <handa@m17n.org>
789
790 * font.c (font_prop_validate): Signal `error' instead of `font'.
791
2c2279c6
JR
7922008-04-29 Jason Rumney <jasonr@gnu.org>
793
794 * w32fns.c (Fw32_battery_status): New defun.
795 (syms_of_w32fns): Defsubr it.
796
fb4a622a
AS
7972008-04-28 Andreas Schwab <schwab@suse.de>
798
799 * dired.c (file_name_completion): Fix another mixing of encoded
800 and decoded names.
801
23f250f4
JB
8022008-04-28 Juanma Barranquero <lekktu@gmail.com>
803
804 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
805
d8d30dff
JB
8062008-04-27 Juanma Barranquero <lekktu@gmail.com>
807
808 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
809
ea6104a8
AS
8102008-04-27 Andreas Schwab <schwab@suse.de>
811
9c691c00
AS
812 * dired.c (file_name_completion): Fix inappropriate mixing of
813 encoded and decoded names.
814
ec1bf773
AS
815 * xterm.c (XTread_socket): Fix use of uninitialized variable.
816
ea6104a8
AS
817 * puresize.h (BASE_PURESIZE): Increase to 1200000.
818
01388a3d
EZ
8192008-04-26 Eli Zaretskii <eliz@gnu.org>
820
821 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
822 2008-03-31, it's not needed anymore with `struct stat' definition
823 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
824 for the same reasons.
825
175aea10 8262008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
827
828 * m/sparc.h: Additional redefinitions for GNU/Linux.
829
1289aeb8
YM
8302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
831
832 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
833 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
834 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
835 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
836 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
837 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
838 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
839 Likewise.
840
841 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
842 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range):
843 (mac_ax_number_of_characters): Add externs.
844 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
845 [USE_MAC_TSM]: Likewise.
846 (mac_handle_text_input_event) [MAC_OSX]:
847 Handle kEventTextInputOffsetToPos for no active input area case.
848 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
849 (mac_handle_document_access_event)
850 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
851 (install_application_handler) [MAC_OSX]: Register handlers for
852 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
853 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
854 Register mac_handle_document_access_event.
855
856 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
857 Make functions non-static.
858
dbd50d4b
SM
8592008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
860
861 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
862 (read_file_name_completion_ignore_case, insert_default_directory)
863 (Qdefault_directory): Move to minibuffer.el.
864 (Fread_file_name): Call the new `read-file-name' instead.
865
9ea37b9d 8662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
867
868 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
869 Make function non-static.
870 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
871 Remove function.
872 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
873 Move to mactoolbox.c.
874 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
875
876 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
877 (mac_rect_make): New macro.
878
879 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
880 instead of float.
881 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
882 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
883 (XSetBackground) [USE_CG_DRAWING]: Likewise.
884 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
885 CGRectMake.
886 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
887 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
888 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
889 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
890 instead of WindowRef in argument type.
891 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
892 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
893 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
894 instead of DISPLAY. All uses changed.
895 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
896 (x_calc_absolute_position): Simplify so as not to use
897 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
898
899 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
900 instead of WindowRef in argument type.
901 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
902 [TARGET_API_MAC_CARBON]: Remove externs.
903 (create_apple_event, mac_event_parameters_to_lisp)
904 [TARGET_API_MAC_CARBON]: Add externs.
905
d8d30dff 906 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
907 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
908 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
909 is clicked.
910 (x_activate_menubar): Remove extern for saved_menu_event_location.
911 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
912 Move from mac.c.
913
9ea37b9d 9142008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
915
916 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
917 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
918
9ea37b9d 9192008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
920
921 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
922 attributes only for local files.
923
924 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 925 default to Qlocal.
bd735631 926
88970542
JL
9272008-04-22 Juri Linkov <juri@jurta.org>
928
929 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
930 read-buffer-to-switch instead of using the letter "B".
931
92ec67e3
SM
9322008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * fileio.c (Qdefault_directory): New variable.
935 (Fread_file_name): Use it to pass `dir' to the completion functions.
936
a32b2382
CY
9372008-04-20 Chong Yidong <cyd@stupidchicken.com>
938
2a2e8de7 939 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 940
6c8b4f07
SM
9412008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
942
ece5f847
SM
943 * keyboard.c (Vpre_help_message): Remove.
944 (show_help_echo): Remove default C code.
945
6c8b4f07
SM
946 * dired.c (directory_files_internal, file_name_completion):
947 Only call ENCODE_FILE if the string is indeed decoded.
948
73d798d5
SM
9492008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
950
951 * Makefile.in (TOOLKIT_DEFINES): Remove.
952 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
953
d8d30dff 9542008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
955
956 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
957 (mactoolbox.o): New target.
958
959 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
960 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
961
962 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
963 Use mac_set_frame_window_background instead of XSetWindowBackground.
964 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
965 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
966 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
967 instead of SetWindowTitleWithCFString.
968 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
969 Move function to mactoolbox.c.
970 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
971 Use mac_set_window_modified instead of SetWindowModified.
972 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
973 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
974 (Fx_focus_frame): Use mac_front_non_floating_window instead of
975 FrontNonFloatingWindow. Use mac_activate_window instead of
976 ActivateWindow. Use mac_active_non_floating_window instead of
977 ActiveNonFloatingWindow.
978 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
979 Use mac_show_hourglass and mac_hide_hourglass.
980 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
981 instead of GetGlobalMouse.
982 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
983 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
984 Use mac_bring_window_to_front instead of BringToFront.
985 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
986 mactoolbox.c.
987 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
988 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
989 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
990 mactoolbox.c.
991
992 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
993 (XtPointer): Move typedef from macmenu.c.
994 (enum button_type): Move enum from macmenu.c.
995 (widget_value): Move typedef from macmenu.c.
996 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
997 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
998 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
999 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1000 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1001 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1002 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1003 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1004 (Selection): Move typedef from macselect.c.
1005 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1006 macterm.c.
1007 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1008 (mac_is_window_collapsed, mac_bring_window_to_front)
1009 (mac_send_window_behind, mac_hide_window, mac_show_window)
1010 (mac_collapse_window, mac_front_non_floating_window)
1011 (mac_active_non_floating_window, mac_activate_window)
1012 (mac_move_window_structure, mac_move_window, mac_size_window)
1013 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1014
1015 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1016 (enum mac_menu_kind): Move enum to mactoolbox.c.
1017 (min_menu_id): Move variable to mactoolbox.c.
1018 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1019 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1020 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1021 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1022 [TARGET_API_MAC_CARBON]: Likewise.
1023 (XtPointer): Move typedef to macgui.h.
1024 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1025 (widget_value): Move typedef to macgui.h.
1026 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1027 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1028 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1029 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1030 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1031 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1032 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1033 (popup_activated_flag): Make variable non-static.
1034 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1035 (add_menu_item, fill_menu, dispose_menus):
1036 Move functions to mactoolbox.c.
1037 (restore_show_help_function, menu_target_item_handler)
1038 (install_menu_target_item_handler, mac_handle_dialog_event)
1039 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1040 [TARGET_API_MAC_CARBON]: Likewise.
1041 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1042 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1043 (find_and_call_menu_selection, name_is_separator): Make function
1044 non-static.
1045 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1046 to mactoolbox.c.
1047 (set_frame_menubar): Don't call install_menu_quit_handler.
1048 (menu_item_selection): New variable.
1049 (mac_menu_show): Use create_and_show_popup_menu.
1050 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1051 selection but set variable menu_item_selection. All uses changed.
1052 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1053 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1054
d02fe47d
MB
1055 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1056 (Selection): Move typedef to macgui.h.
1057 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1058 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1059 Make variables non-static.
1060 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1061 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1062 Make functions non-static.
1063 (Vmac_service_selection) [MAC_OSX]: Likewise.
1064 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1065 (mac_valid_selection_target_p, mac_clear_selection)
1066 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1067 (mac_put_selection_value, mac_selection_has_target_p)
1068 (mac_get_selection_value, mac_get_selection_target_list)
1069 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1070 Move functions to mactoolbox.c.
1071 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1072 Likewise.
1073 (copy_scrap_flavor_data, mac_handle_service_event)
1074 (install_service_handler) [MAC_OSX]: Likewise.
1075 (syms_of_macselect) <Vmac_dnd_known_types>:
1076 Use mac_dnd_default_known_types.
463f55ee 1077
d02fe47d
MB
1078 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1079 Move to mactoolbox.c.
1080 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1081 (Fx_selection_owner_p): Add EXFUN.
1082 (install_window_handler, remove_window_handler, XSetWindowBackground):
1083 Remove externs.
1084 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1085 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1086 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1087 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1088 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1089 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1090 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1091 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1092 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1093 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1094 (mac_valid_selection_target_p, mac_clear_selection)
1095 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1096 (mac_put_selection_value, mac_selection_has_target_p)
1097 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1098 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1099 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1100 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1101 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1102 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1103 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1104 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1105 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1106
d02fe47d 1107 * mactoolbox.c: New file.
af253914 1108
d8d30dff 11092008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1110
d02fe47d 1111 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1112
8ee085a4
SM
11132008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1114
73d798d5
SM
1115 * character.c (Fmultibyte_char_to_unibyte):
1116 Return latin1 chars unchanged.
5556875b 1117
8ee085a4
SM
1118 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1119 relocated if it points to `name'.
1120
5dff5999
KH
11212008-04-17 Kenichi Handa <handa@m17n.org>
1122
1123 * data.c (Faset): Allow setting a multibyte character in an
1124 ASCII-only unibyte string.
1125
1126 * lisp.h (STRING_SET_MULTIBYTE): New macro.
1127
a51f4969
SM
11282008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1130 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
1131 done in config.h.
1132
add553ac
JB
11332008-04-16 Juanma Barranquero <lekktu@gmail.com>
1134
1135 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
1136 (Fchar_direction): Add usage in the docstring.
1137
8ad7b280
CY
11382008-04-15 Chong Yidong <cyd@stupidchicken.com>
1139
1140 * keyboard.c (read_key_sequence): Remove always-true checks.
1141
e157d7ba
JR
11422008-04-14 Jason Rumney <jasonr@gnu.org>
1143
1144 * w32font.c (w32font_open_internal): Set max_bounds.descent in
1145 compatibility struct, for better underline positioning.
1146
9ec3aaef 11472008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
1148
1149 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
1150 string.
1151
36c08864
DN
11522008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1153
1154 * m/hp800.h (XUINT, XSET): Remove.
1155
f5acc071
JB
11562008-04-12 Juanma Barranquero <lekktu@gmail.com>
1157
1158 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
1159 previous change.
1160
5b5a2ea1
SM
11612008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1162
1163 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
1164 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
1165
492d9fd6
SM
11662008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1167
1168 * keymap.h (map_keymap_canonical): Declare.
1169 * xmenu.c (single_keymap_panes): Use it.
1170
dd60787c
GM
11712008-04-11 Glenn Morris <rgm@gnu.org>
1172
1173 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
1174 set the target's value to that of the alias.
1175
c23b5410
SM
11762008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1177
1178 * term.c (set_tty_color_mode): Left over typo.
1179
e89b536d
MA
11802008-04-10 Michael Albinus <michael.albinus@gmx.de>
1181
1182 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 1183 only after check for file name handler functions. Signal, when
e89b536d
MA
1184 native functionality is not supported.
1185 (syms_of_fileio): Declare it unconditionally.
1186
40a339c8
JR
11872008-04-10 Jason Rumney <jasonr@gnu.org>
1188
31403b24
JR
1189 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
1190 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
1191
40a339c8
JR
1192 * w32.c (logon_network_drive): Also logon to remote drives that
1193 are mapped to drive letters.
1194
96a7394f
GM
11952008-04-10 Glenn Morris <rgm@gnu.org>
1196
1197 * xdisp.c (truncate-partial-width-windows): Doc fix.
1198
34b67b0f
SM
11992008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
1200
1201 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
1202 Move functions to minibuffer.el.
1203 (syms_of_fileio): Don't declare them.
1204
c025fb0a
SM
12052008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1206
ba5ff07b
SM
1207 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
1208 (syms_of_minibuf): Remove its initialization.
1209
c025fb0a
SM
1210 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
1211
7a6a86ad
JB
12122008-04-09 Juanma Barranquero <lekktu@gmail.com>
1213
1214 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
1215
cf907d69
JR
12162008-04-09 Jason Rumney <jasonr@gnu.org>
1217
3dc94c30
JR
1218 * makefile.w32-in (distclean): Delete makefile too.
1219 (maintainer-clean): New target.
1220
8d28646b
JR
1221 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
1222
cf907d69
JR
1223 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
1224 for new font backend and composite cases.
1225
ef5eb925
JD
12262008-04-09 Jan Djärv <jan.h.d@swipnet.se>
1227
1228 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
1229 Most of the code moved to run_timers.
1230 (do_pending_atimers): Call run_timers.
1231 (run_timers): New function.
1232
cf907d69
JR
1233 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
1234 run atimers.
ef5eb925
JD
1235
1236 * process.c (wait_reading_process_output): The same as above.
1237
9b2cd403
SM
12382008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1239
32bae13c
SM
1240 * minibuf.c (last_exact_completion): Remove variable.
1241 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
1242 (complete_and_exit_1, complete_and_exit_2)
1243 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1244 (Fdisplay_completion_list, display_completion_list_1)
1245 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
1246 (Fexit_minibuffer, Fminibuffer_message): Move functions to
1247 minibuffer.el.
32bae13c
SM
1248 (syms_of_minibuf): Remove corresponding initializations.
1249
5c4cc82a
SM
1250 * keyboard.c (Qdeactivate_mark): New var.
1251 (command_loop_1): Use it to call `deactivate-mark'.
1252 (syms_of_keyboard): Initialize it.
1253
9b2cd403
SM
1254 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
1255 to another frame.
1256 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
1257 Don't call set_tty_color_mode.
1258 (store_frame_param): Reset previous_frame rather than call
1259 set_tty_color_mode.
1260 * term.c (set_tty_color_mode): Rewrite.
1261 * dispextern.h (set_tty_color_mode): New type.
1262 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
1263
84cb7b45
SM
12642008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1265
1266 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
1267 for generic chars, which do not exist any more in emacs-unicode.
1268
3ed051d4
MA
12692008-04-08 Michael Albinus <michael.albinus@gmx.de>
1270
1271 * coding.c (detect_coding_emacs_mule)
1272 (Ffind_operation_coding_system): Fix typo.
1273
58c3ea42
JR
12742008-04-08 Jason Rumney <jasonr@gnu.org>
1275
3bf8d230
JR
1276 * w32uniscribe.c (SNAME): Extract only symbol name.
1277
56a70cca
JR
1278 * w32font.h (struct w32_metric_cache): New struct.
1279 (w32font_info): Use it.
1280 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
1281 (CACHE_BLOCKSIZE): New constants.
3ed051d4 1282
58c3ea42
JR
1283 * w32font.c (Qja, Qko, Qzh): New symbols.
1284 (syms_of_w32font): Initialise them.
1285 (font_matches_spec): Use them to filter by language.
1286 (recompute_cached_metrics): Remove function.
1287 (compute_metrics, clear_cached_metrics): New functions.
1288 (w32font_encode_char): Use them to manage metric cache.
1289 (w32font_text_extents): Cache metrics for all glyphs on demand.
1290 Delay converting glyph indices to WORD until needed.
1291 (w32font_open_internal): Initialize metric cache to empty.
1292 (registry_to_w32_charset): Charset should always be a symbol.
1293 (fill_in_logfont, list_all_matching_fonts): Family should
1294 always be a symbol.
1295
0ce24b2d
JR
12962008-04-06 Jason Rumney <jasonr@gnu.org>
1297
1298 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
1299 Give up if glyph indices not supported. Use uniscribe obtained
1300 ABC widths for individual metrics. Map glyph clusters back to
1301 characters using fClusterStart flag. Return number of glyphs
1302 produced, not chars processed.
b7655e0c 1303 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 1304
5bc6ddff 13052008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 1306
fbf57abb
JB
1307 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
1308 Use SetMenuItemHierarchicalMenu.
56613f06 1309
5bc6ddff 13102008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 1311
5bc6ddff
MB
1312 * image.c (pbm_load): Allow color values up to 65535.
1313 Throw an error if max_color_idx is outside the supported range.
1314 Report an error when image size is invalid.
1315 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 1316
5bc6ddff 13172008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 1318
5bc6ddff
MB
1319 * w32.c (readdir): If FindFirstFile/FindNextFile return in
1320 cFileName a file name that includes `?' characters, use the 8+3
1321 alias in cAlternateFileName instead.
5ed6ba5b 1322
5bc6ddff 13232008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 1324
5bc6ddff
MB
1325 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
1326 append "CCL: Quitted" when the CCL program is quitted.
1327 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 1328
5bc6ddff 1329 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 1330
c36e15db
CY
13312008-04-05 Chong Yidong <cyd@stupidchicken.com>
1332
9605d567
CY
1333 * search.c (compile_pattern_1): Treat non-nil and non-string of
1334 search-spaces-regexp as nil.
1335
c36e15db
CY
1336 * minibuf.c (Fassoc_string): Tweak docstring.
1337
40beb147
EZ
13382008-04-05 Eli Zaretskii <eliz@gnu.org>
1339
1340 * dired.c (Ffile_attributes): Support inode numbers wider than 32
1341 bits. Remove ugly WINDOWSNT-specific kludge introduced on
1342 2008-03-14 to force inode be positive.
1343
1344 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
1345 _S_* ones, since we now use our own sys/stat.h.
1346 (stat, fstat): Don't mangle the inode number.
aa08d1ff 1347 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 1348
4591d6cb
SM
13492008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
1350
d4417eb0
SM
1351 * frame.h (struct frame): Give one more bit to `visible' since we use
1352 values larger than 1 to indicate obscured frames on ttys.
1353
00f7c5ed
SM
1354 * keymap.c (Qkeymap_canonicalize): New var.
1355 (Fmap_keymap_internal): New fun.
1356 (describe_map): Use keymap-canonicalize.
1357
4591d6cb
SM
1358 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
1359 (Fundo_boundary): Set them.
1360 (syms_of_undo): Initialize them.
1361 (record_point): Use them instead of last_point_position*.
1362 (last_undo_buffer): Change type.
1363
3187540e
JR
13642008-04-04 Jason Rumney <jasonr@gnu.org>
1365
0ce24b2d
JR
1366 * w32font.c (w32font_text_extents): Use font's ascent and descent.
1367 (recompute_cached_metrics): Don't set ascent and descent per char.
1368
3187540e 1369 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 1370 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 1371 Rearrange loop for counting features.
3187540e 1372
f1a6b216
SM
13732008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1374
1375 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
1376 buffer with byte-size of source buffer.
1377
1d8dcf63
CY
13782008-04-03 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * callint.c (Fcall_interactively): Handle temporary region even
1381 when shift-select-mode is off.
1382
6b8aa22a
JR
13832008-04-03 Jason Rumney <jasonr@gnu.org>
1384
1385 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
1386
2f3cbb32
KH
13872008-04-03 Kenichi Handa <handa@m17n.org>
1388
1389 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
1390 (CATEGORY_MASK_UTF_16): Likewise.
1391 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
1392 binary file.
1393 (detect_coding): Add null-byte detection for a binary file.
1394 (detect_coding_system): Likewise.
1395
43f4f91c
JR
13962008-04-03 Jason Rumney <jasonr@gnu.org>
1397
0c1b4ae2
JR
1398 * w32uniscribe.c: New file.
1399
1400 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
1401
1402 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
1403
1404 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
1405 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
1406 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
1407 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
1408 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
1409 (Qphonetic): New symbols.
1410 (syms_of_w32font): Initialize them.
1411 (font_supported_scripts): Use them.
1412 (w32font_list_family): List all charsets.
1413 (w32font_text_extents, recompute_cached_metrics): Fix metric
1414 calculations.
1415 (w32_enumfont_pattern_entity): Make full_type a DWORD.
1416 Give opentype fonts their own format.
1417 (font_matches_spec): New arguments backend and logfont.
1418 Handle :otf spec for uniscribe backend.
1419 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
1420 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 1421
0c1b4ae2
JR
1422 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
1423 font backend.
1424 (globals_of_w32fns): Initialize uniscribe font backend.
1425
fbf57abb 1426 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
1427 dependencies.
1428 (w32uniscribe.$(O)): New file to build.
1429 (FONT_OBJ): Include w32uniscribe.$(O).
1430 (LIBS): Add uniscribe libraries.
1431
43f4f91c
JR
1432 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
1433
75043a7d
CY
14342008-04-02 Chong Yidong <cyd@stupidchicken.com>
1435
1436 * callint.c (Vshift_select_mode): New var.
1437 (Finteractive): Document new ^ spec.
1438 (Fcall_interactively): Call handle-shift-selection if the ^ spec
1439 is present.
1440
1441 * keyboard.c (Vthis_command_keys_shift_translated): New var.
1442 (command_loop_1): Avoid running the direct display versions of
1443 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
1444 (read_key_sequence): Set Vthis_command_keys_shift_translated if
1445 shift-translation takes place.
1446
1447 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
1448 avoid clobbering by define-minor-mode.
1449
1450 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
1451 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
1452
1453 * syntax.c (Fforward_word): Add ^ interactive spec.
1454
1455 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
1456 (Fscroll_right): Add ^ interactive spec.
1457
b2b7f29e
SM
14582008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
1459
a432c0a6
SM
1460 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
1461
994b75e0
SM
1462 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
1463
b2b7f29e
SM
1464 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
1465
e99c7806
JL
14662008-03-31 Juri Linkov <juri@jurta.org>
1467
1468 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
1469
1c9c1270
JD
14702008-03-30 Jan Djärv <jan.h.d@swipnet.se>
1471
1472 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 1473 (xg_resize_outer_widget): Remove.
1c9c1270
JD
1474 (x_wm_size_hint_off): Fix indentation.
1475 (xg_frame_set_char_size): Call flush_and_sync after
1476 gtk_window_resize.
1477 (x_wm_set_size_hint): Pass NULL as geometry window to
1478 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
1479 Add menu bar and tool bar height to base height.
1480 (xg_update_frame_menubar, free_frame_menubar)
1481 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
1482 (update_frame_tool_bar, free_frame_tool_bar):
1483 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 1484
90b3fc84
MA
14852008-03-30 Michael Albinus <michael.albinus@gmx.de>
1486
1487 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
1488 (Fdbus_call_method): New parameter TIMEOUT.
1489 (dbus-send-signal): Optimize UNGCPRO call.
1490
7ae6d1d1
JL
14912008-03-29 Juri Linkov <juri@jurta.org>
1492
1493 * window.c (Fdisplay_buffer): Move call to
1494 Vsplit_window_preferred_function out of conditions that check
1495 if window is eligible for vertical splitting.
1496 When Vsplit_window_preferred_function is non-nil, call it and use
1497 its non-nil return value as window. Otherwise, continue doing
1498 vertical splitting using Fsplit_window with arg horflag=nil.
1499 (syms_of_window) <Vsplit_window_preferred_function>: Change the
1500 default value from `split-window' to nil.
1501
f03f8f2c
JL
15022008-03-29 Juri Linkov <juri@jurta.org>
1503
1504 * callint.c (Fcall_interactively): Revert 2008-03-16 change
1505 for interactive code letters 'b' and 'B'.
1506
6d557778
EZ
15072008-03-29 Eli Zaretskii <eliz@gnu.org>
1508
1509 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
1510 multibyte string.
1511
58555d81
SM
15122008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 * keyboard.c (pending_funcalls): New var.
1515 (timer_check): Run it.
1516 (syms_of_keyboard): Initialize it.
1517 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
1518 (Vdelete_terminal_functions): New vars.
1519 (syms_of_terminal): Initialize them.
1520 (Fdelete_terminal): Run delete-terminal-functions.
1521 * xdisp.c (safe_eval): Rewrite.
1522 (safe_call2): New fun.
1523 * frame.c (Qdelete_frame_functions): New var.
1524 (syms_of_frame): Initialize it.
1525 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
1526 * lisp.h (safe_call2, pending_funcalls): Declare.
1527
4c92f429
AS
15282008-03-28 Andreas Schwab <schwab@suse.de>
1529
1530 * indent.c (Fmove_to_column): Move declaration before statements.
1531
a1567c45
SM
15322008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
1533
2806a183
SM
1534 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
1535 (struct frame): Use bit fields for boolean vars.
1536
eef60308
SM
1537 * process.c (server_accept_connection): Simplify naming.
1538 (emacs_get_tty_pgrp): Use SDATA.
1539
a1567c45
SM
1540 * coding.c (decode_coding_object): Fix last change.
1541
30076589
JR
15422008-03-27 Jason Rumney <jasonr@gnu.org>
1543
1544 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
1545
880820fe
KH
15462008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
1547
1548 * charset.c (Fdefine_charset_internal): Change the way of
1549 registering charsets in Vcharset_order_list.
1550 (syms_of_charset): Make the charset `eight-bit' supplementary.
1551
3cf8cdfb
CY
15522008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
1553
1554 * regex.c (EXTEND_BUFFER): Change order of pointer addition
1555 operations, to avoid having the difference between pointers
1556 overflow.
1557
ef6f5c0e
SM
15582008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1559
80e3db56
SM
1560 * indent.c (check_display_width): New fun.
1561 (scan_for_column): Use it.
1562
c397dc7a
SM
1563 * data.c (syms_of_data): Mark most-positive-fixnum and
1564 most-negative-fixnum as constants.
1565
bf6b4d58
SM
1566 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
1567
ef6f5c0e
SM
1568 * indent.c (scan_for_column): Extract from current_column_1.
1569 Merge with the same code from Fmove_to_column.
1570 (current_column_1, Fmove_to_column): Use it.
1571
72d5003d
SM
15722008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1573
12270607
SM
1574 * keymap.c (map_keymap_internal): New fun.
1575 (map_keymap): Use it.
1576 (Fmap_keymap_internal): New fun.
1577 (Fmap_keymap): Remove left-out test from before make_save_value.
1578
a10cca6c
SM
1579 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
1580
d7b10f4c
SM
1581 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
1582 Use XCAR/XCDR.
1583
5431bd6a
SM
1584 * process.h (struct Lisp_Process): Remove filter_multibyte.
1585 * process.c (QCfilter_multibyte): Remove.
1586 (setup_process_coding_systems): Don't use filter_multibyte.
1587 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
1588 (read_process_output): Don't adjust multibyteness to filter_multibyte.
1589 (Fset_process_filter_multibyte): Change the coding-system to
1590 approximate the previous behavior.
1591 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
1592 coding-system.
1593
72d5003d
SM
1594 * coding.c (decode_coding_object): When not decoding into a buffer,
1595 obey the coding system's preference of (uni|multi)byte.
1596
438eba3c
SM
15972008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1598
1599 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
1600 every char is changed and has a different byte-length.
1601 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
1602 Fix int -> EMACS_INT.
1603
9ec3aaef 16042008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 1605
438eba3c 1606 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
1607 strings. Check for NULL `interface' or `member'.
1608
b07103dc
EZ
16092008-03-22 Eli Zaretskii <eliz@gnu.org>
1610
1611 * w32.c (readdir): If FindFirstFile/FindNextFile return in
1612 cFileName a file name that includes `?' characters, use the 8+3
1613 alias in cAlternateFileName instead.
1614
5371d722
SM
16152008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
1616
1617 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
1618
6ba7f443
SM
16192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1620
1621 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
1622 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
1623 work on current_buffer only instead (that was already the case
1624 for some of the code anyway).
1625 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
1626 (temp_set_point, temp_set_point_both): Use EMACS_INT.
1627 (SET_PT, SET_PT_BOTH): Adjust.
1628 * intervals.h (set_point, temp_set_point, set_point_both)
1629 (temp_set_point_both): Remove redundant declarations.
1630
bf1c0f27
SM
16312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1632
1633 * fileio.c (Finsert_file_contents):
1634 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
1635 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
1636 when buffer != current_buffer anyway.
1637
acab783e
AS
16382008-03-20 Andreas Schwab <schwab@suse.de>
1639
1640 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
1641 as default.
1642
d148e14d
JR
16432008-03-19 Jason Rumney <jasonr@gnu.org>
1644
1645 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
1646 (syms_of_w32fns): Initialize them.
1647 (HOURGLASS_ID): New constant.
1648 (x_window_to_frame): Don't check hourglass_window.
1649 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
1650 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
1651 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
1652 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
1653 Only change the cursor if hourglass is not active.
1654 (Fx_create_frame): Initialize frame's current_cursor.
1655 (hourglass_atimer): Remove.
1656 (hourglass_started): New function.
1657 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
1658 (show_hourglass): Adapt to w32, changing argument to frame.
1659
1660 * w32term.h (struct w32_output): Remove hourglass_window.
1661 Add current_cursor.
1662
1663 * eval.c (call_debugger, Fsignal):
1664 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
1665 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
1666 (Fexecute_extended_command, cancel_hourglass_unwind):
1667 * minibuf.c (read_minibuf):
1668 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 1669
a5c54077
JB
16702008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1671
1672 * window.c (run_funs): New fun.
1673 (run_window_configuration_change_hook): Use it to run the buffer-local
1674 and the global part of the hook.
1675
1676 * xdisp.c (format_mode_line_unwind_data): Add window argument.
1677 (unwind_format_mode_line): Restore selected window.
1678 (x_consider_frame_title, Fformat_mode_line): Set selected window.
1679
f9f3238f
SM
16802008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1681
253c3c82
SM
1682 * editfns.c (Fchar_equal): Check they are valid characters.
1683
f9f3238f
SM
1684 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
1685
065a118d
AS
16862008-03-17 Andreas Schwab <schwab@suse.de>
1687
0b8be006
AS
1688 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
1689 against a charset.
1690
065a118d
AS
1691 * lisp.h (Fbuffer_list): Declare.
1692
880820fe 16932008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
1694
1695 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
1696 handlebox_widget is != 0.
1697
6206d6c2
JL
16982008-03-16 Juri Linkov <juri@jurta.org>
1699
1700 * callint.c (Fcall_interactively): For interactive code letters
1701 'b' and 'B' put the buffer list into the list of default "future"
1702 values of the minibuffer.
1703
f5020181
AS
17042008-03-16 Andreas Schwab <schwab@suse.de>
1705
a864f6d6
AS
1706 * keyboard.c (read_key_sequence): Fix downcasing of letters with
1707 modifiers.
1708
f5020181
AS
1709 * regex.c (re_match_2_internal): Correct matching of a charset
1710 against latin-1 characters.
1711
03f244e2
KH
17122008-03-16 Kenichi Handa <handa@m17n.org>
1713
1714 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
1715 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
1716 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
1717 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
1718 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
1719 CHAR_STRING_ADVANCE.
1720 (produce_chars): Fix for the case that the source and the
1721 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
1722 instead of CHAR_STRING_ADVANCE.
1723 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
1724 STRING_CHAR_ADVANCE.
1725
0e2501ed
AS
17262008-03-15 Andreas Schwab <schwab@suse.de>
1727
1728 * regex.c (re_match_2_internal): Correct matching of eight bit
1729 characters in unibyte strings.
1730
7723e095
MR
17312008-03-15 Martin Rudalics <rudalics@gmx.at>
1732
1733 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
1734 at end of range when it coincides with the end of the buffer.
1735
f507f365
EZ
17362008-03-14 Eli Zaretskii <eliz@gnu.org>
1737
294f1153
EZ
1738 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
1739
f507f365
EZ
1740 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
1741
64f0809d
JR
17422008-03-14 Jason Rumney <jasonr@gnu.org>
1743
956ae531
JR
1744 * editfns.c (initial_tz): New variable.
1745 (syms_of_editfns): Initialize it.
1746 (Fset_time_zone_rule): Set it when first called.
1747 Use it when TZSTRING is nil.
1748
64f0809d
JR
1749 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
1750 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
1751 (monitor_from_point_fn, get_monitor_info_fn): New globals.
1752 (globals_of_w32fns): Initialize them.
1753 (compute_tip_xy): Use them to position tooltips.
1754
21a4ff8e
GM
17552008-03-14 Glenn Morris <rgm@gnu.org>
1756
1757 * emacs.c (main): Revert previous change.
1758 (standard_args): Revert -internal-script back to -scriptload,
1759 and remove the long-option form.
1760
a09a5b5b
GM
17612008-03-13 Glenn Morris <rgm@gnu.org>
1762
1763 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
1764 Remove option -enable-font-backend.
1765
1c55ebd1
SM
17662008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1767
1768 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
1769
880820fe 17702008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
1771
1772 * xterm.c (x_connection_closed): For GTK: If this is the last
1773 terminal just exit without closing the display.
1774
7145be81
JR
17752008-03-11 Jason Rumney <jasonr@gnu.org>
1776
1777 * w32font.c (w32font_full_name): Use floor to round.
1778
e6201af3 17792008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
1780
1781 * sound.c (alsa_configure): Declare vol at beginning of block.
1782
e6201af3 1783 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 1784
390b81fa 17852008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 1786
56388398
MB
1787 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
1788 size of resulting string.
af0ad939 1789
390b81fa 17902008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 1791
56388398 1792 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 1793
390b81fa 17942008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 1795
56388398
MB
1796 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
1797 Don't pretend as if characters with display property haven't been
1798 consumed for string-replacing-string case.
acd37560 1799
223ed6db
KS
18002008-03-08 Kim F. Storm <storm@cua.dk>
1801
1802 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
1803 (get_next_display_element, next_element_from_string)
1804 (next_element_from_ellipsis, next_element_from_buffer): Use it.
1805
28545f7c
AS
18062008-03-08 Andreas Schwab <schwab@suse.de>
1807
1808 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
1809
c960bff8
JR
18102008-03-06 Jason Rumney <jasonr@gnu.org>
1811
290afd83
JB
1812 * w32font.c (w32_registry): Take font_type argument. Use ANSI
1813 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
1814 font_type is truetype.
1815 (w32font_coverage_ok): New function.
1816 (add_font_entity_to_list): Use it to filter unsuitable fonts.
1817
87b8ce92
KH
18182008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
1819
1820 * lread.c (Fread_char): Resolve modifiers.
1821 (Fread_char_exclusive): Likewise.
1822
1823 * character.c (char_resolve_modifier_mask): New function.
1824 (char_string): Use char_resolve_modifier_mask.
1825 (Fchar_resolve_modifiers): New function.
1826 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
1827 function.
1828
cefd56f6
JR
18292008-03-04 Jason Rumney <jasonr@gnu.org>
1830
1831 * makefile.w32-in: Always include w32font.c in the build.
1832 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
1833
03bd3c1f
AS
18342008-03-04 Andreas Schwab <schwab@suse.de>
1835
1836 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
1837 (versionclean): Likewise.
1838
6f69e89b
JB
18392008-03-04 Juanma Barranquero <lekktu@gmail.com>
1840
1841 * .cvsignore: Add oo.
1842
f4a3cc44
AS
18432008-03-03 Andreas Schwab <schwab@suse.de>
1844
1845 * coding.c (decode_coding_object): Inhibit gap shrinking while
1846 decoding in place.
1847
73f838ad
DN
18482008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
1849
1850 * w32term.c: Remove unused include "gnu.h".
6f69e89b 1851 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
1852
1853 * gnu.h: Rename to ...
1854 * emacs-icon.h: ... this.
1855 * xterm.c: Use emacs-icon.h instead of gnu.h.
1856 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
1857
ce9c1f06
JB
18582008-03-03 Juanma Barranquero <lekktu@gmail.com>
1859
1860 * w32font.c: Include math.h.
1861
34fd2d28
JR
18622008-03-03 Jason Rumney <jasonr@gnu.org>
1863
54efdcd1
JR
1864 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
1865 Compute options separately.
1866 (w32font_open_internal): Set glyph_idx before caching metrics.
1867
ce9c1f06
JB
1868 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
1869 Define if system headers don't.
1870 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
1871 (w32font_encode_char): Don't declare here.
1872
1873 * w32font.c (Quniscribe, QCformat): New symbols.
1874 (syms_of_w32font): Define them.
1875 (w32font_has_char): Indicate uncertainty.
ce9c1f06 1876 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 1877 (recompute_cached_metrics): New function.
ce9c1f06
JB
1878 (w32font_open_internal): Use it. Set font to use glyph points
1879 initially. Set format based on type of font.
34fd2d28 1880 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
1881 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
1882 on it. Set format based on information available here.
34fd2d28
JR
1883 (add_font_entity_to_list): Identify backend based on opentype_only.
1884
14daee73
AS
18852008-03-02 Andreas Schwab <schwab@suse.de>
1886
f907fb2e
AS
1887 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
1888
ce9c1f06
JB
1889 * coding.c (decode_coding_big5, produce_chars):
1890 Fix typos in last change.
14daee73 1891
c9cc6462
DN
18922008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
1893
1894 * gnu.h: New icon.
1895
119852e7
KH
18962008-03-02 Kenichi Handa <handa@m17n.org>
1897
1898 * coding.c (decode_coding_utf_8): When eol-type of CODING is
1899 `dos', don't decode '\r' if that is the last in the source.
1900 (decode_coding_utf_16, decode_coding_emacs_mule)
1901 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1902 (decode_coding_raw_text, decode_coding_charset): Likewise.
1903 (produce_chars): Don't decode EOL here. Use EMACS_INT.
1904
a823468b
JR
19052008-03-01 Jason Rumney <jasonr@gnu.org>
1906
1907 * w32font.c (w32font_full_name): Report point size for scalable fonts.
1908
4ddc7e30
KS
19092008-03-01 Kim F. Storm <storm@cua.dk>
1910
1911 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
1912
67997c79
JR
19132008-03-01 Jason Rumney <jasonr@gnu.org>
1914
1915 * w32font.c (w32font_full_name): New function.
1916 (w32font_open_internal): Use it.
1917
3f4e9c35
KS
19182008-03-01 Kim F. Storm <storm@cua.dk>
1919
1920 * dispnew.c (line_draw_cost): Fix invalid glyph check.
1921
f3b9e479
JR
19222008-03-01 Jason Rumney <jasonr@gnu.org>
1923
1924 * font.c (font_unparse_fcname): Increase len when style is a symbol.
1925
880820fe 19262008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
1927
1928 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
1929 xg_frame_resized when the event is for the edit widget.
1930
1931 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
1932
1933 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
1934 set_char_size.
1935 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
1936 operations on widgets here. Just set frame size if needed.
1937 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
1938 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
1939 (x_wm_set_size_hint): Set size hints on the edit widget only, not
1940 the whole frame.
1941 (xg_create_tool_bar): Move attachement of the tool bar to
1942 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
1943 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
1944
6c8acaa1
JR
19452008-03-01 Jason Rumney <jasonr@gnu.org>
1946
1947 * w32fns.c (w32_msg_pump): Disable debug code.
1948
51fb064b 19492008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 1950
51fb064b 1951 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 1952
60221a33
CY
19532008-02-29 Chong Yidong <cyd@stupidchicken.com>
1954
1955 * xdisp.c (next_overlay_string): Don't set
1956 overlay_strings_at_end_processed_p if we're currently reading from
1957 a display string.
1958
10cbc34f
SM
19592008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
1960
1961 * xdisp.c (get_overlay_strings_1): Fix typo.
1962
73c0054e
CY
19632008-02-29 Chong Yidong <cyd@stupidchicken.com>
1964
1965 * xdisp.c (get_overlay_strings_1): Add missing argument type.
1966
ec1c4354
KH
19672008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
1968
55082642
KH
1969 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
1970
ec1c4354
KH
1971 * xdisp.c (display_mode_element): Cancel the previous change.
1972 (decode_mode_spec): Likewise.
ee548a94
KH
1973 (handle_auto_composed_prop): Don't make composition if it->string
1974 is a string.
ec1c4354 1975
b6d898a2
KS
19762008-02-27 Kim F. Storm <storm@cua.dk>
1977
1978 * lisp.h (GLYPH): Change type from int to struct with separate char
1979 and face_id members.
1980 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
1981 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
1982 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
1983 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
1984 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
1985 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
1986 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
1987 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
1988 handle new Lisp glyph code encoding, either an integer or a cons.
1989
1990 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
1991 (GLYPH_ALIAS): Delete.
1992 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
1993 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
1994 (GLYPH_FROM_CHAR): Replace macro by ...
1995 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
1996
1997 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
1998 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
1999 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2000 (GLYPH_INVALID_P): New macro.
2001 (spec_glyph_lookup_face): Update prototype.
2002
2003 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2004 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2005 new glyph code encoding.
2006 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2007 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2008
2009 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2010 Adapt to new glyph type and new glyph code encoding.
2011
2012 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2013
2014 * indent.c (current_column, current_column_1, Fmove_to_column)
2015 (compute_motion): Adapt to new glyph code encoding.
2016
2017 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2018
af2080a2
CY
20192008-02-27 Chong Yidong <cyd@stupidchicken.com>
2020
2021 * process.c (wait_reading_process_output): Check for window
2022 changes caused by timers.
880820fe 2023 Suggested by Johan Bockgård.
af2080a2 2024
253ed25e
GM
20252008-02-27 Glenn Morris <rgm@gnu.org>
2026
2027 * emacs.c (USAGE1): Add `--disable-font-backend'.
2028
18a9f8d9
SM
20292008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2030
2031 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2032 is made to the buffer.
2033
0f8b27ea
SM
20342008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2035
2036 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2037 (face_at_string_position):
2038 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2039 (face_at_string_position):
2040 * xdisp.c (display_string, next_overlay_change):
2041 * buffer.h (overlays_at):
2042 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2043 Update callers.
2044
4e7c53ca
CY
20452008-02-26 Chong Yidong <cyd@stupidchicken.com>
2046
2047 * editfns.c (Fformat): Doc fix.
2048
51c01100
JB
20492008-02-26 Juanma Barranquero <lekktu@gmail.com>
2050
2051 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2052 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2053 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2054
13cda5f9
SM
20552008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2056
2057 * buffer.c (Fbuffer_swap_text): New function.
2058 (syms_of_buffer): Defsubr it.
2059
8018d430
CY
20602008-02-25 Chong Yidong <cyd@stupidchicken.com>
2061
2062 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2063
9bde1a21
JR
20642008-02-25 Jason Rumney <jasonr@gnu.org>
2065
2066 * w32font.c (w32font_draw): Draw one character at a time when padding.
2067
eeca6f6f
SM
20682008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2071 Handle a nil arg. Use run_window_configuration_change_hook.
2072 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2073 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2074 Use run_window_configuration_change_hook.
2075
ec1c4354
KH
20762008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2077
2078 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2079 1-pixel width.
2080
ae185452
KH
20812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2082
2083 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2084 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2085 if the glyph in the font is zero pixel with.
2086
2087 * dispextern.h (struct glyph_string): New member padding_p.
2088
2089 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2090
2091 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2092
2093 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2094
2095 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2096
eeca6f6f 2097 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2098
ffe832ea 20992008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2100
ffe832ea 2101 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2102
06045130
SM
21032008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2104
2105 Allow fine-grained image-cache flushing.
2106 * dispextern.h (struct image): Add `dependencies' field.
2107 (clear_image_caches): Change arg to Lisp_Object.
2108 * image.c (make_image): Initialize `dependencies' field.
2109 (clear_image_cache): Change arg to allow fine-grained flushing.
2110 Perform the flush even if image-cache-eviction-delay is nil.
2111 (clear_image_caches): Change arg to Lisp_Object.
2112 (Fclear_image_cache): Expand meaning of the argument.
2113 (mark_image): Mark `dependencies' field.
2114 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2115 (lface_hash): Use XHASH rather than XFASTINT.
2116 (face_at_buffer_position): Fix int -> EMACS_INT position.
2117 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2118 (select_frame_for_redisplay): Remove code duplication.
2119 (redisplay_internal): Adapt arg to call to clear_image_caches.
2120
9d2818d6
DN
21212008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2122
2123 * s/vms4-0.h:
2124 * s/vms4-2.h:
2125 * s/vms4-4.h:
2126 * s/vms5-5.h: Remove, unused.
2127
2128 * s/irix5-2.h:
2129 * s/irix6-0.h:
2130 * s/riscos5.h:
2131 * s/mach-bsd4-3.h:
2a2e8de7 2132 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
2133
2134 * Makefile.in:
2135 * filelock.c:
2136 * unexmips.c:
2137 * m/hp9000s300.h:
2138 * m/iris4d.h:
2139 * s/aix3-1.h:
2140 * s/hpux.h:
2141 * s/msdos.h:
2142 * s/usg5-0.h:
2143 * s/usg5-2-2.h:
2144 * s/usg5-2.h:
2145 * s/usg5-3.h: Remove references to obsolete variables.
2146
2147 * s/irix5-0.h: Remove, move all the contents ...
2148 * s/irix6-5.h: ... here. Simplify.
2149 * config.in: Regenerate.
2150
2a36efcf
JR
21512008-02-24 Jason Rumney <jasonr@gnu.org>
2152
c5ad7a3d 2153 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
2154 manually when cleartype is in use.
2155 (x_draw_glyph_string_foreground): Draw text transparently when
2156 cleartype is in use.
2157
2a36efcf
JR
2158 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
2159 a font into it unless we have to.
2160
b03f96dc 21612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 2162
b03f96dc
MB
2163 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
2164 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 2165
b03f96dc 21662008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 2167
b03f96dc 2168 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 2169
b03f96dc 21702008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 2171
b03f96dc 2172 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 2173
b03f96dc 21742008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 2175
b03f96dc 2176 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 2177
d5958163
CY
21782008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2179
2180 * xterm.c (x_set_offset): Don't change the gravity if
2181 CHANGE_GRAVITY is -1.
2182
9997701e
CY
21832008-02-23 Chong Yidong <cyd@stupidchicken.com>
2184
2185 * fileio.c (auto_save_error_occurred): New var.
2186 (auto_save_error): Set it.
2187 (Fdo_auto_save): Don't overwrite the error message if an auto-save
2188 error occurred.
2189
9d95a291
EZ
21902008-02-23 Eli Zaretskii <eliz@gnu.org>
2191
2192 * w32.c (globals_of_w32): Add initializations for
2193 g_b_init_get_sid_sub_authority and
2194 g_b_init_get_sid_sub_authority_count.
2195
43d1af23
SM
21962008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2197
43a1d19b
SM
2198 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
2199 (font_parse_xlfd): Use them for sanity check.
608c3307 2200 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 2201
354884c4
SM
2202 Consolidate the image_cache to the terminal struct.
2203 * termhooks.h (P_): Remove redundant def.
2204 (struct terminal): New field `image_cache'.
2205 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
2206 of FRAME_X_IMAGE_CACHE.
2207 * xterm.h (struct x_display_info): Remove image_cache field.
2208 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2209 * w32term.h (struct w32_display_info): Remove image_cache field.
2210 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2211 * macterm.h (struct mac_display_info): Remove image_cache field.
2212 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2213 * xterm.c (x_term_init):
2214 * w32term.c (w32_term_init):
2215 * macterm.c (mac_term_init): Set the image_cache in the terminal.
2216 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
2217 Remove declarations.
2218 (clear_image_caches, mark_image_cache): New declarations.
2219 * xfaces.c (clear_face_cache):
2220 * xdisp.c (redisplay_internal): Use clear_image_caches.
2221 * image.c (clear_image_cache): Don't check that a frame is on
2222 a window-system before checking if it shares the same cache.
2223 (clear_image_caches): New function.
2224 (Fclear_image_cache): Use it.
2225 (mark_image): Move from allo.c.
2226 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
2227 * alloc.c (mark_image, mark_image_cache): Move to image.c.
2228 (mark_object): Don't call mark_image_cache for frames.
2229 (mark_terminals): Call mark_image_cache.
2230
c2e42690
SM
2231 * lisp.h (Fdelete_terminal): Declare.
2232
43d1af23
SM
2233 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
2234 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
2235 wrong_type_argument.
2236
cc8d1311
KH
22372008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
2238
2239 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 2240 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 2241
6bd92640
SM
22422008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
2243
2244 * xterm.c (x_connection_closed): Consolidate identical tests.
2245 (x_delete_terminal): Don't crash if called via x_connection_closed.
2246
a73b5627
KH
22472008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
2248
2249 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 2250 (display_mode_element): Adjust for the above change.
a73b5627 2251
1b511542
SM
22522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2253
2254 * callint.c (Fcall_interactively): Use AREF.
2255
81aefea4
SM
22562008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2257
2258 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
2259
880820fe 22602008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
2261
2262 * xfns.c (Fx_show_tip): Set string to " " if empty.
2263
a2b84f35
DN
22642008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
2265
2266 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
2267 with Qt.
2268
43c0454d
KH
22692008-02-17 Kenichi Handa <handa@m17n.org>
2270
2271 * ftfont.c (ftfont_shape): Return Lispy number.
2272
2273 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
2274 for GCs.
2275 (Finternal_set_font_selection_order): Call font_update_sort_order
2276 only when enable_font_backend is set.
2277 (realize_x_face): Set face->font_info to that of default face only
2278 when enable_font_backend is set.
2279
2280 * xdisp.c (handle_composition_prop): Set it->c to the fist
2281 characte of the composed region.
2282 (fill_composite_glyph_string): Set base_face->font_info to
2283 s->font_info. Get a face for ascii from base_face->ascii_face.
2284 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
2285 with a face already decided.
2286 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
2287 non-negative.
978bef9a
JB
2288 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
2289 call font_prepare_composition unconditionally.
43c0454d 2290
978bef9a 2291 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
2292
2293 * xterm.h (struct x_display_info): New member font.
2294
2295 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
2296 (x_set_mouse_face_gc, x_new_font): Likewise.
2297 (x_term_init): Setup display_info->font.
2298 (x_delete_terminal): Free display_info->font.
2299
2300 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
2301
2302 * ftxfont.c (ftxfont_default_fid): Delete it.
2303 (ftxfont_open): Set xfont->fid to 0.
978bef9a 2304 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
2305 font-driver.
2306
2307 * xftfont.c (xftfont_default_fid): Delete it.
2308 (xftfont_open): Set xfont->fid to 0.
2309
2310 * fontset.c (FONTSET_OBJLIST): New macro.
2311 (fontset_find_font): Update font-object list of the fontset.
2312 (free_realized_fontset): New function.
2313 (free_face_fontset): Call free_realized_fontset.
2314 (Ffont_info): Call font_close_object only when enable_font_backend
2315 is set.
2316
2317 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
2318 [HAVE_NTGUI]: Include w32term.h.
2319 [MAC_OS]: Include macterm.ch.
2320 (font_otf_ValueRecord): Use make_number.
2321 (font_finish_cache): Fix handling of reference count.
2322 (font_clear_cache): Update num_fonts.
2323 (font_open_entity): Update smallest_char_width and
2324 smallest_font_height of the frame.
2325 (font_close_object): Update num_fonts.
2326 (Fclear_font_cache): Fix finding the target cache data.
2327
be617367
GM
23282008-02-16 Glenn Morris <rgm@gnu.org>
2329
2330 * fontset.c (Finternal_char_font): Fix compilation warning.
2331
2930d117
EZ
23322008-02-16 Eli Zaretskii <eliz@gnu.org>
2333
634d3003
EZ
2334 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
2335 instead of char arrays. Enlarge the size of array passed to
2336 get_token_information.
2337
2930d117
EZ
2338 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
2339 warnings.
2340
79214046
DN
23412008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
2342
2343 * .gdbinit: Don't set `args', it breaks gdb --args.
2344
7f5d2c72
SM
23452008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
2346
2347 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
2348 within a narrowed buffer.
2349
6edacc43
KH
23502008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
2351
b270d6af
JB
2352 * coding.c (decode_coding_object, encode_coding_object):
2353 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 2354
174105f7
SM
23552008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2356
b270d6af
JB
2357 * coding.c (coding_set_destination): Use BEG_BYTE rather than
2358 hardcoding 1.
13818c30
SM
2359 (detect_coding_system):
2360 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
2361 (string_char_to_byte, string_byte_to_char, insert_from_gap):
2362 * insdel.c (insert_from_gap):
2363 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
2364 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
2365 (string_to_multibyte):
2366 * character.c (chars_in_text, multibyte_chars_in_text):
2367 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
2368
f1c99628
SM
2369 * character.h (FETCH_STRING_CHAR_ADVANCE)
2370 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
2371 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
2372 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
2373
7927d8e3
SM
2374 * casefiddle.c (casify_region): Only call after-change and composition
2375 functions on the part of the region that was changed.
2376
adf6a429 2377 * keyboard.c (read_avail_input):
174105f7
SM
2378 * frame.c (Fdelete_frame): Call Fdelete_terminal.
2379
3ee24aec
SM
23802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2381
2382 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
2383 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
2384
4ed4b975
JB
23852008-02-11 Juanma Barranquero <lekktu@gmail.com>
2386
2387 * w32menu.c (push_submenu_start, push_submenu_end)
2388 (push_left_right_boundary, push_menu_pane, push_menu_item):
2389 * keyboard.c (read_key_sequence): Don't pass args with side effects
2390 to AREF, it fails when compiling with -DENABLE_CHECKING.
2391
79e3bfb8
KH
23922008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
2393
4ed4b975
JB
2394 * Makefile.in (${lispsource}international/charprop.el):
2395 Delete this target.
6e76043f 2396
79e3bfb8
KH
2397 * search.c (boyer_moore): Fix incorrect synching of the trunk and
2398 emacs-unicode-2.
2399
5b8de9c5
SM
24002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2401
2402 * terminal.c (Fdelete_terminal): Clean up the `force' path.
2403
eac1939a
SM
24042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2405
c53956fe
SM
2406 * frame.c (Qnoelisp): New symbol.
2407 (syms_of_frame): Initialize it.
2408 (Fdelete_frame): Use it to distinguish a mere `force' passed from
2409 someharmles Elisp code, from a strong `force' from x_connection_closed.
2410 * frame.h (Qnoelisp): Declare.
2411 * xterm.c (x_connection_closed): Pass `noelisp'.
2412
eac1939a
SM
2413 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
2414 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
2415 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
2416 rather than `int' for the type of `type'.
2417
13f6772b
DN
24182008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
2419
2420 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
2421
2422 * Makefile.in (GNUC): Remove support for gcc-1.x.
2423
e8455367
RS
24242008-02-10 Richard Stallman <rms@gnu.org>
2425
2426 * lisp.h (ASET): Use AREF, not ASLOT.
2427
4b75ffab
SM
24282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2429
2430 * lisp.h (ASET): Check bounds.
2431
d224e8c2
GM
24322008-02-10 Glenn Morris <rgm@gnu.org>
2433
2434 * buffer.c (mode-name): Doc fix.
2435
4624371d
DN
24362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2437
290afd83
JB
2438 * Makefile.in:
2439 * emacs.c:
2440 * gmalloc.c:
2441 * keyboard.c:
2442 * lisp.h:
2443 * m/ibm370aix.h:
2444 * process.c:
2445 * regex.c:
2446 * s/hpux.h:
2447 * sysdep.c:
2448 * sysselect.h:
2449 * systty.h:
2450 * unexec.c:
2451 * w32term.c:
2452 * xsmfns.c:
2453 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
2454
2455 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
2456
2457 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
2458 nothing else needs it anymore.
2459
274ec34b
EZ
24602008-02-09 Eli Zaretskii <eliz@gnu.org>
2461
2462 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
2463 instead of unibyte_char_to_multibyte.
2464
deeaffe1
DN
24652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2466
2467 * s/gnu-linux.h: Remove commented out code.
2468
4ed4b975 2469 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
2470
2471 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 2472 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
deeaffe1
DN
2473 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1):
2474 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
2475 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
2476
68b587a6
SM
24772008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2478
9141ca5e
SM
2479 * keymap.c (Fkey_description): Move side effect outside of macro call.
2480
dfae5f9a 2481 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
2482 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
2483
ff7a2223
SM
2484 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
2485 (syms_of_fontset): Use ASET.
2486
68b587a6
SM
2487 * fns.c (concat): Move side effect outside of macro call.
2488 (hash_clear): Use ASET.
2489
a31787b1
RS
24902008-02-08 Richard Stallman <rms@gnu.org>
2491
2492 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
2493 If FORCE, and frame has a surrogate minibuffer for another frame,
2494 delete the other frame first.
2495
987be29b 24962008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
2497
2498 * xterm.c (x_detect_focus_change): Handle embed client message.
2499 (handle_one_xevent): Ditto.
2500 (handle_one_xevent): If embedded and we get a button press/release,
2501 request focus.
2502 (xembed_set_info, xembed_send_message): New functions.
2503 (x_make_frame_visible): Call xembed_set_info if embedded.
2504 (x_make_frame_invisible): Call xembed_set_info if embedded.
2505 (x_term_init): Initialize Xatom_XEMBED.
2506 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
2507 (x_iconify_frame): Ditto.
2508
2509 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
2510 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
2511 (enum xembed_modifier, enum xembed_accelerator): New.
2512 (xembed_set_info, xembed_send_message): Declare.
2513 (FRAME_X_EMBEDDED_P): New.
2514
2515 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
2516 gtk_plug_new.
2517
2518 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
2519 window ID of a frame.
2520 (x_window): Reparent frame if embedded.
2521 (Fx_create_frame): Don't set border width if embedded.
2522
2523 * emacs.c (USAGE3): Add --parent-id
2524 (standard_args): Ditto.
2525
880820fe 25262008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
2527
2528 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
2529
92413ef3
JD
25302008-02-07 Jim Meyering <meyering@redhat.com>
2531
6f69e89b 2532 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
2533 The latter provokes a warning from gcc about the empty else, when
2534 followed by ";". Also, without that trailing semicolon, it would
2535 silently swallow up any following statement.
2536 * syntax.h (SETUP_SYNTAX_TABLE):
2537 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
2538 * buffer.h (DECODE_POSITION): Likewise.
2539 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
2540 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
2541 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
2542 (FETCH_CHAR_ADVANCE): Likewise.
2543 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 2544
03fa5713
GM
25452008-02-07 Jim Meyering <meyering@redhat.com>
2546
2547 * lread.c [lint]: Don't include <sys/inode.h>.
2548
3ae565b3
SM
25492008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
2550
2551 * xselect.c (x_handle_dnd_message):
2552 * xmenu.c (digest_single_submenu, xmenu_show):
2553 * xdisp.c (with_echo_area_buffer_unwind_data)
2554 (format_mode_line_unwind_data, unwind_format_mode_line)
2555 (display_menu_bar):
2556 * eval.c (Ffetch_bytecode):
2557 * doc.c (store_function_docstring):
2558 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
2559 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
2560 * buffer.c (add_overlay_mod_hooklist): Use ASET.
2561
146b6e55
KH
25622008-02-07 Kenichi Handa <handa@m17n.org>
2563
2564 * ftxfont.c (ftxfont_open): Don't set
2565 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
2566
2567 * ftfont.c (ftfont_open): Fix previous change.
2568
46a923ac
JR
25692008-02-06 Jason Rumney <jasonr@gnu.org>
2570
2571 * w32font.c (w32font_text_extents): Fill in lbearing metric.
2572 Use cached metrics for ASCII characters.
3ae565b3
SM
2573 (w32font_open_internal): Don't set font's owning_frame.
2574 Cache metrics for ASCII characters.
46a923ac
JR
2575
2576 * w32font.h (struct w32font_info): Add ascii_metrics.
2577 Remove owning_frame.
2578
da7d7c21
KH
25792008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
2580
2581 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
2582 to negative value.
2583
2584 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
2585
3ae565b3 2586 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
2587
2588 * charset.c (syms_of_charset): Set QCtest and Qeq.
2589
c62c8ddb
SM
25902008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
2591
ca319910
SM
2592 * process.c (Fstart_process):
2593 * callproc.c (Fcall_process): Handle the case where
2594 Funhandled_file_name_directory returns nil.
2595
76860cbb
SM
2596 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
2597 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
2598 * font.c (check_gstring): Use them and AREF to access the vector before
2599 we know it's really a gstring.
2600 (Ffont_shape_text): Fix typo.
2601 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 2602
15139d67
SM
2603 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
2604 Declare.
2605
c62c8ddb
SM
2606 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
2607
04b65d2b
JR
26082008-02-05 Jason Rumney <jasonr@gnu.org>
2609
2610 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
2611 Set smallest_font_height and smallest_char_width in display info.
2612
fccaebfd
KH
26132008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
2614
2615 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
2616
e7d7fd8c
MB
26172008-02-05 Miles Bader <miles@gnu.org>
2618
2619 * xfaces.c (get_lface_attributes, merge_named_face)
2620 (lookup_named_face, lookup_derived_face, realize_named_face):
2621 Revert 2008-02-01 change by cyd@stupidchicken.com.
2622
3d4448a8
KH
26232008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
2624
2625 * fontset.c (Ffontset_info): Handle the case of inhibitting the
2626 fallback fonts.
15139d67 2627 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 2628
5ace1ec1
JR
26292008-02-04 Jason Rumney <jasonr@gnu.org>
2630
2631 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
2632 set full_name.
e3a77b22 2633 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 2634
ffe42183
JR
26352008-02-03 Jason Rumney <jasonr@gnu.org>
2636
2637 * makefile.w32-in (OBJ1): Include font.o here.
2638 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
2639
526dc3b3
JR
26402008-02-02 Jason Rumney <jasonr@gnu.org>
2641
a0fece35 2642 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 2643
af805c82
JR
26442008-02-01 Jason Rumney <jasonr@gnu.org>
2645
2646 * s/cygwin.h: Define VIRT_ADDR_VARIES.
2647
2648 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
2649
7f6519c5
AS
26502008-02-01 Andreas Schwab <schwab@suse.de>
2651
1f45f627 2652 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 2653 ../lisp/language/myanmar.el.
7f6519c5 2654
26f8aa27
CY
26552008-02-01 Chong Yidong <cyd@stupidchicken.com>
2656
1f45f627 2657 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
2658 (merge_named_face, lookup_named_face, lookup_derived_face)
2659 (realize_named_face): Call lface_from_face_name directly, and use
2660 the fact that merge_face_vectors does not alter its FROM argument.
2661
73acf815 26622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2663
2664 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 2665 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 2666
73acf815 26672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2668
2669 * fontset.c (reorder_font_vector): Exclude nil elements from the
2670 font group. Don't try multiple fonts.
15139d67 2671 (fontset_font): Adjust for the above change.
aca7a3d2
MB
2672 (Finternal_char_font): Return nil if the found font doesn't
2673 contain the character ch.
2674
4c4475a8 2675 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 2676
73acf815 26772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2678
2679 * font.h (FONTP): Make it return 1 also for a font-object.
2680
2681 * .gdbinit (xfontset): New function.
2682
2683 * font.c (font_find_for_lface): Check if the character C is
2684 supported or not only for the first font.
2685
2686 * fontset.c (reorder_font_vector): Fix typo.
2687 (fontset_find_font): Don't add a font-spec specifying a script.
2688 Use 0 (not Qt) for the indication of empty font-group. Change the
2689 format of RFONT-DEF. Return Qt if no font in the font-group
2690 support the character.
15139d67 2691 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 2692 found the character, remember that.
15139d67 2693 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
2694 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
2695 no font for the target.
15139d67 2696 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 2697
73acf815 26982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2699
2700 * font.c (font_load_for_face): Handle the case that the font in
2701 face->lface is a string.
2702
73acf815 27032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2704
1f45f627 2705 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 2706
73acf815 27072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2708
2709 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
2710 Fix previous change. If the frame is not on a window system,
2711 signal an error.
2712
73acf815 27132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2714
4c4475a8
GM
2715 * coding.c (decode_coding_object, encode_coding_object): Adjust
2716 marker positions after conversion.
aca7a3d2
MB
2717
2718 * lisp.h (struct Lisp_Marker): New member need_adjustment.
2719
73acf815 27202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2721
2722 * font.c (font_find_for_lface): Fix the handling of the return
2723 value of font_has_char.
2724 (Ffont_shape_text): Fix previous change.
2725
2726 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
2727 (fontset_ref_and_range): Delete it.
2728 (fontset_find_font): Call char_table_ref_and_range instead of
2729 FONTSET_REF_AND_RANGE.
2730 (make_fontset): Don't setup font groups of Latin here.
2731 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
2732 (new_fontset_from_font): Make the specified font the default for
2733 all Latin characters.
2734
73acf815 27352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2736
2737 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
2738 is on a window system before accessing the fontset of the frame.
2739
73acf815 27402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2741
1f45f627 2742 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
2743
2744 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
2745 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
2746
2747 * font.c (Ffont_shape_text): If the font driver doesn't have a
2748 shaper function, make zero-width glyphs to have at least one-pixel
2749 width. Fix setting of `to' field of glyphs.
2750
73acf815 27512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2752
2753 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
2754 glyphs.
2755
1f45f627 2756 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 2757
73acf815 27582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2759
2760 * composite.c (syms_of_composite): Fix docstring of
2761 auto-composition-function.
2762
2763 * font.h (LGLYPH_SIZE): New macro.
2764
2765 * font.c (Ffont_fill_gstring): Stop filling when a character not
2766 supported by the font is found.
2767 (Ffont_shape_text): When a shape callback function returns nil,
2768 try at most two more times with larger gstring.
15139d67 2769 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
2770
2771 * xdisp.c (handle_auto_composed_prop): Change the argument to
2772 auto-composition-function.
2773
2774 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
2775 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
2776 Lispy glyph and store it in the lgstring.
2777
2778 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
2779
2780 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
2781
73acf815 27822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2783
2784 * font.c (Ffont_shape_text): Avoid unnecessary composition.
2785
2786 * fontset.c (Vfont_encoding_charset_alist): New variable.
2787 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
2788 (reorder_font_vector, fontset_find_font): Optimize for the case of
2789 no need of reordering.
aca7a3d2
MB
2790 (face_for_char): Map the charset property by
2791 Vfont_encoding_charset_alist.
2792
73acf815 27932008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2794
2795 * w32font.c (logfonts_match): Don't check adstyle here.
2796 (font_matches_spec): Check here against physical font instead.
2797 (add_font_entity_to_list): Avoid some substitutions.
2798
2799 * font.c (font_parse_fcname): Default weight and slant to normal.
2800 (font_score): Prefer normal fonts if weight or slant unspecified.
2801 (font_score) [WINDOWSNT]: Scale weight difference down to closer
2802 match freetype scores.
2803
73acf815 28042008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2805
2806 * w32font.c (w32font_text_extents): Don't use the frame stored in the
2807 font, as it may have been deleted.
2808 (w32_enumfont_pattern_entity): Map generic family to adstyle using
2809 most common hyphenless variation.
2810 (logfonts_match): Check generic family.
2811 (font_matches_spec): Don't check generic family here.
2812 (fill_in_logfont): Set generic family based on adstyle.
2813
2814 * w32font.h (w32font_get_cache): Update declaration.
2815
73acf815 28162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2817
2818 * ftfont.c (ftfont_get_cache): Adjust the argument type.
2819
15139d67
SM
2820 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
2821 If none of the new drivers are available, call font_update_drviers
aca7a3d2
MB
2822 with the old drivers.
2823
2824 * w32font.c (w32font_get_cache): Adjust the argument type.
2825
2826 * xfont.c (xfont_get_cache): Adjust the argument type.
2827
2828 * font.h (struct font_driver): Change argument type of get_cache.
2829
2830 * xftfont.c (xftfont_start_for_frame): Delete prototype.
2831
2832 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 2833 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 2834 (font_clear_cache): New function.
4c4475a8 2835 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 2836 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
2837
2838 * fontset.c (fontset_find_font): Fix previous change.
2839
73acf815 28402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2841
2842 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
2843 dpyinfo->font_table.
2844 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 2845 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
2846
2847 * font.c (font_at): Handle the case that the arg C is negative.
2848 Handle the unibyte case.
2849 (Ffont_at): Call font_at with the arg C -1.
2850
2851 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
2852 the position here, and call font_at with the arg C -1.
2853 Don't check the range of the existing composition at the point.
aca7a3d2 2854
73acf815 28552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2856
15139d67 2857 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 2858 Change caller.
4c4475a8
GM
2859 (load_font_get_repertory, fontset_find_font): Assume that
2860 font_spec is always a font-spec object.
aca7a3d2
MB
2861 (Fset_fontset_font): Always store a font-spec object in a fontset.
2862
2863 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
2864 instead of get_property_and_range.
2865
73acf815 28662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2867
2868 * xftfont.c (struct xftfont_info): Delete the member ft_face.
2869 (xftfont_open): Don't keep locking face.
2870 (xftfont_close): Don't unlock face.
4c4475a8 2871 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
2872
2873 * fontset.c (fontset_find_font): Don't prefer a font of
2874 supplementary charset.
2875
73acf815 28762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2877
1f45f627
GM
2878 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
2879 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
2880 (OTF_TAG_STR): Terminate by '\0'.
2881 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
2882 listing to the script specified in that property. Fix arg to
2883 OTF_check_features.
2884
73acf815 28852008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2886
2887 * w32font.h: New file.
2888
2889 * w32font.c: Include it.
2890 (struct w32font_info): Add owning_frame field. Move to w32font.h.
2891 (w32font_open): Set owning_frame.
2892 (w32font_text_extents): Use owning_frame.
2893 (struct font_callback_data): Add opentype_only field.
2894 (add_font_entity_to_list): Use it to filter fonts.
2895 Don't check against full name.
2896 (w32font_list_internal): New function.
2897 (w32font_list): Use it.
2898 (w32font_match_internal): New function.
2899 (w32font_match): Use it.
2900 (w32font_open_internal): New function.
2901 (w32font_open): Use it.
2902 (w32font_get_cache, w32font_close, w32font_has_char)
2903 (w32font_encode_char, w32font_text_extents, w32font_draw):
2904 Make non-static.
2905
2906 * makefile.w32-in (w32font.o): Depend on w32font.h.
2907
73acf815 29082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2909
2910 * charset.c (Fdefine_charset_internal): Record a supplementary
2911 charset at the tail of Vcharset_order_list.
2912
2913 * font.c (Ffont_shape_text): Fix the return value.
2914
2915 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
2916
2917 * xdisp.c (handle_auto_composed_prop): Fix previous change.
2918
73acf815 29192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2920
2921 * ftfont.c (struct OpenTypeSpec): New struct.
2922 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
2923 (ftfont_get_open_type_spec): New function.
2924 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
2925
15139d67 2926 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 2927
73acf815 29282008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2929
2930 * w32font.c (add_font_entity_to_list): Compare only the beginning
2931 of full name.
2932
73acf815 29332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2934
15139d67
SM
2935 * xdisp.c (handle_auto_composed_prop): Simplify the code.
2936 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 2937
73acf815 29382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2939
2940 * font.c (font_gstring_produce): Delete it.
2941
15139d67
SM
2942 * composite.h (COMPOSITION_METHOD):
2943 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 2944
73acf815 29452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2946
15139d67 2947 * xfont.c (Qx): Delete.
aca7a3d2
MB
2948 (syms_of_xfont): Don't initialize Qx.
2949
15139d67
SM
2950 * composite.h (enum composition_method):
2951 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 2952
73acf815 29532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2954
2955 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
2956 (choose_face_font): Accept new form of font-spec.
2957
2958 * frame.h (font_driver_list): Declare it unconditionally.
2959 (struct frame): Define members font_driver_list and font_data_list
2960 unconditionally.
2961
2962 * fontset.c: Include "font.h" unconditionally.
15139d67 2963 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
2964 (Fset_fontset_font): Accept a font-spec object.
2965
2966 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
2967 PIXEL_SIZE part a wild card.
2968
2969 * dispextern.h (struct glyph_string): Define members clip and
2970 num_clips unconditionally.
2971 (struct face): Define members font_info and extra unconditionally.
2972
2973 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
2974 ftfont_info only when HAVE_LIBOTF is defined.
2975
73acf815 29762008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
2977
2978 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
2979 and end.
2980
73acf815 29812008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2982
2983 * w32font.c (w32font_driver): Add new fields.
2984
73acf815 29852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2986
aca7a3d2
MB
2987 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
2988 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
2989 (LIBES): Add @M17N_FLT_CFLAGS@.
2990
2991 * composite.c (compose_text): Don't treat the new style
2992 composition specially.
2993
2994 * emacs.c (main): Call syms_of_font unconditionally.
2995
2996 * font.h (FONT_ENTITY_NOT_LOADABLE)
2997 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 2998 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 2999 (struct font_driver): New member shape.
1f45f627 3000 (font_registry_charsets): Extern it.
4c4475a8 3001 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3002 (font_otf_capability, font_drive_otf): Delete their externs.
3003
3004 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3005 (font_charset_alist, font_registry_charsets): Move from xfont.c
3006 and rename.
aca7a3d2
MB
3007 (font_prop_validate_otf): New function.
3008 (font_property_table): Register it for QCotf.
3009 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3010 (font_drive_otf): Delete.
1f45f627 3011 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3012 lispy gstring.
3013 (font_find_for_lface): New arg C.
15139d67 3014 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3015 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3016 lispy gstring.
aca7a3d2
MB
3017 (Ffont_shape_text): New function.
3018 (Fopen_font): If the font size is not given, use 12-pixel.
3019 (Ffont_at): New arg STRING.
15139d67
SM
3020 (syms_of_font): Initalize font_charset_alist.
3021 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3022 conditionally.
3023
3024 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3025 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3026 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3027 Adjust for the change of RFONT-DEF.
15139d67 3028 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3029
3030 * ftfont.h: New file.
3031
3032 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3033 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3034 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3035 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3036 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3037 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3038 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3039 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3040 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
3041 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s
3042 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3043 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3044
15139d67
SM
3045 * w32term.c (x_draw_composite_glyph_string_foreground):
3046 Adjust for the change of lispy gstring.
aca7a3d2 3047
15139d67 3048 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3049 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3050 third arg it->window.
3051 (fill_composite_glyph_string): Adjust for the change of lispy string.
3052 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3053
15139d67 3054 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3055 font_find_for_lface.
3056
1f45f627
GM
3057 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3058 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3059 (syms_of_xfont): Don't handle x_font_charset_alist.
3060
3061 * xftfont.c: Include "ftfont.h".
15139d67 3062 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3063 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3064 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3065 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3066 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3067 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3068
15139d67 3069 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3070 the change of lispy gstring.
3071
73acf815 30722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3073
3074 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3075
73acf815 30762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3077
3078 * w32font.c (w32font_draw): Fill background manually.
3079
73acf815 30802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3081
3082 * font.c (Qfontp): Remove unused symbol.
3083 (QCantialias): New symbol.
3084 (syms_of_font): Define it.
3085 (font_property_table): Set a validator for QCantialias.
3086
15139d67
SM
3087 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3088 Define if not already.
aca7a3d2
MB
3089 (QCfamily): Share with xfaces.c.
3090 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3091 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3092 (w32_antialias_type, lispy_antialias_type): New functions.
3093 (w32_enumfont_pattern_entity): New arg requested_font.
3094 Set antialias parameter if non-default was requested.
3095 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3096
73acf815 30972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3098
3099 * lread.c (read1): Undo the previous change.
3100
73acf815 31012008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3102
3103 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3104 USE_FONT_BACKEND is defined.
aca7a3d2 3105
73acf815 31062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3107
3108 * font.h (struct font_bitmap): New member bits_per_pixel.
3109 (struct font_driver): New members start_for_frame and end_for_frame.
3110 (struct font_data_list): New struct.
3111 (font_put_frame_data, font_get_frame_data): Extern them.
3112
3113 * frame.h (struct frame): New member font_data_list.
3114
3115 * font.c (font_update_drivers): Call driver->start_for_frame and
3116 driver->end_for_frame at proper timings.
3117 (font_put_frame_data, font_get_frame_data): New functions.
3118 (Ffont_spec): Add usage in the docstring.
3119
3120 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3121 (Fdelete_frame): Call font_update_drivers.
3122
3123 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 3124 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
3125 (xftfont_get_xft_draw): New function.
3126 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
3127 (xftfont_end_for_frame): New function.
3128 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
3129
15139d67 3130 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 3131 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
3132 (struct ftxfont_frame_data): New struct.
3133 (ftxfont_draw_bitmap): New arg gc_fore and flush.
3134 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 3135 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
3136 (ftxfont_end_for_frame): New function.
3137 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
3138
3139 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
3140
73acf815 31412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3142
3143 * xselect.c (Vselection_coding_system)
3144 (Vnext_selection_coding_system): Delete them.
3145 (syms_of_xselect): Don't declare selection-coding-system and
3146 next-selection-coding-system. They are declared in select.el.
3147
73acf815 31482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3149
3150 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
3151
3152 * w32fns.c: Include imm.h.
3153 (get_composition_string_fn, get_ime_context_fn): New optional
3154 system functions.
3155 (globals_of_w32fns): Load them from imm32.dll.
3156 (ignore_ime_char): New flag.
3157 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
3158 WM_IME_ENDCOMPOSITION messages.
3159
3160 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
3161 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
3162
73acf815 31632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3164
3165 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
3166 (READCHAR_REPORT_MULTIBYTE): New macro.
3167 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
3168 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
3169 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
3170 source.
3171
73acf815 31722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3173
3174 * xfaces.c (face_for_overlay_string): Call lookup_face with
3175 correct arguments (fix of synching with the trunk).
3176
73acf815 31772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3178
4c4475a8
GM
3179 * font.c (font_prop_validate_symbol, font_prop_validate_style)
3180 (font_prop_validate_non_neg, font_prop_validate_spacing):
3181 Delete argument prop_index.
15139d67
SM
3182 (font_property_table): Change arguments to validater. Change Callers.
3183 (font_lispy_object): Delete.
aca7a3d2
MB
3184 (font_at): Use font_find_object instead fo font_lispy_object.
3185
73acf815 31862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3187
3188 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
3189 and file names.
3190
73acf815 31912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3192
3193 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
3194 (font_matches_spec): Remove debug output.
3195 (add_font_entity_to_list): Avoid using substituted fonts.
3196
73acf815 31972008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3198
3199 * doc.c (Fsnarf_documentation):
3200 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
3201
73acf815 32022008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 3203
290afd83 3204 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
3205 HAVE_WINDOW_SYSTEM is defined.
3206
73acf815 32072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3208
3209 Fix up multi-tty merge.
3210
3211 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
3212 and indentation.
3213
3214 * xfaces.c (free_realized_face, clear_face_gcs):
3215 Include font_done_for_face in the input_blocked section, just in case.
3216
3217 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
3218 (get_char_face_and_encoding): Undo last change and remove the *other*
3219 duplicate definition (i.e. keep the one that's better scoped and that
3220 includes code for the font-backend).
3221
3222 * terminal.c (create_terminal): Default keyboard_coding to
3223 `no-conversion' and terminal_coding to `undecided'.
3224
3225 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
3226
3227 * fontset.c (free_realized_fontsets): Check that the table entry does
3228 contain a fontset before trying to compare it to `base'.
3229
3230 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
3231 syms_of_charset, and syms_of_coding earlier because init_window_once
3232 now needs Vcoding_system_hash_table to be setup.
3233
3234 * coding.h (default_buffer_file_coding): Remove.
3235
3236 * coding.c (default_buffer_file_coding): Remove.
3237 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
3238 than ->symbol, and use the terminal-local coding system.
3239 (syms_of_coding): Don't setup the coding-systems that are not
3240 terminal-local.
3241 (Fdefine_coding_system_internal): Use XCAR/XCDR.
3242
3243 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
3244 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
3245
3246 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
3247 in chartab.c and were re-added here by mistake.
3248 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
3249
3250 * doc.c (Fsnarf_documentation):
3251 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
3252 src to etc.
3253
3254 * ChangeLog.10: Add mistakenly removed entry.
3255
73acf815 32562008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
3257
3258 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
3259
73acf815 32602008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3261
3262 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
3263 Add extra args to FACE_FOR_CHAR.
3264
73acf815 32652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3266
3267 * keymap.c (where_is_internal_1): If key is a cons, store the copy
3268 in sequence.
3269
4c4475a8
GM
3270 * chartab.c (map_sub_char_table, map_char_table): If the range
3271 contains just one character, call the function with that character
3272 even if the depth is not 3.
aca7a3d2 3273
73acf815 32742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3275
3276 * w32font.c (w32font_text_extents): Calculate metrics for the
3277 whole string.
3278
73acf815 32792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3280
3281 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
3282
73acf815 32832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3284
3285 * w32term.c (x_set_glyph_string_clipping): Use
3286 get_glyph_string_clip_rects.
4c4475a8
GM
3287 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3288 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3289
3290 * w32font.c (w32font_draw): Do clipping here.
3291
73acf815 32922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3293
1f45f627 3294 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
3295 glyph_string.
3296
3297 * xterm.c (x_set_glyph_string_clipping): Use
3298 get_glyph_string_clip_rects.
4c4475a8
GM
3299 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3300 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3301
3302 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
3303 the resulting clip(s}.
1f45f627 3304 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
3305 row->clip temporarily.
3306 (expose_window): Redraw rows overlapping the exposed area.
3307
3308 * dispextern.h (struct glyph_row): New member clip.
3309 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
3310 clip_height, new member clip, and num_clips.
3311
73acf815 33122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3313
3314 * data.c (Fchar_or_string_p): Fix docstring.
3315
73acf815 33162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3317
3318 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
3319 create a temporal XftDraw object.
3320
73acf815 33212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3322
3323 * font.c (Ffontp): Fix docstring.
3324
3325 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
3326 strong evidence of ISO-2022.
3327
73acf815 33282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3329
3330 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
3331 SYNTAX_ENTRY_FOLLOW_PARENT.
3332
73acf815 33332008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3334
3335 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
3336 its type.
3337 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
3338 Update to the new type of weak_hash_tables and next_weak.
3339
3340 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
3341 a plain C pointer to Lisp_Hash_Table.
3342
3343 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
3344 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
3345 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
3346 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
3347 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
3348 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
3349 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
3350 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
3351 (GC_EQ): Remove since they've been identical to their non-GC_
3352 alter-egos ever since the markbit was eradicated.
3353
290afd83
JB
3354 * alloc.c:
3355 * buffer.c:
3356 * buffer.h:
3357 * data.c:
3358 * fileio.c:
3359 * filelock.c:
3360 * fns.c:
3361 * frame.h:
3362 * lisp.h:
3363 * macterm.c:
3364 * print.c:
3365 * process.c:
3366 * w32fns.c:
3367 * w32menu.c:
3368 * w32term.c:
3369 * xfns.c:
3370 * xmenu.c:
3371 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 3372
73acf815 33732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3374
3375 * chartab.c (map_sub_char_table): Make it work for the top-level
3376 char-table. Fix handling of parent char-table.
c5ad7a3d 3377 (map_char_table): Adjust for the above change.
aca7a3d2 3378
73acf815 33792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3380
3381 * w32font.c (Qgdi): Rename from Qw32.
3382
73acf815 33832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3384
3385 * w32bdf.c (get_quoted_string): Make function static.
3386
73acf815 33872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3388
3389 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
3390 bigger ascent and descent than those of the font, use them as
3391 font's ascent and descent.
3392
73acf815 33932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3394
3395 * Makefile.in (${lispsource}international/charprop.el): Move this
3396 target within "#ifdef HAVE_UNIDATA" and "#endif".
3397
73acf815 33982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3399
3400 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
3401 (shortlisp): Add ../lisp/language/tai-viet.el.
3402
1f45f627 34032008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
3404
3405 * Makefile.in (${lispsource}international/charprop.el): Depend on
3406 temacs${EXEEXT}.
3407
73acf815 34082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3409
3410 * w32font.c (w32font_close): Delete the GDI font object.
3411
6f69e89b 3412 * w32menu.c: Include character.h.
aca7a3d2
MB
3413
3414 * w32proc.c: Likewise.
3415
3416 * w32select.c: Likewise.
3417
6f69e89b 3418 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 3419
73acf815 34202008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3421
3422 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
3423
3424 * w32menu.c (syms_of_w32menu): Likewise.
3425
3426 * w32proc.c (syms_of_ntproc): Likewise.
3427
3428 * w32select.c (syms_of_w32select): Likewise.
3429
3430 * w32term.c (syms_of_w32term): Likewise.
3431
73acf815 34322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3433
3434 * w32font.c (w32font_draw): Delete brush after using it.
3435
73acf815 34362008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3437
3438 * w32font.c (w32font_open): Don't set font_idx.
3439 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
3440 to font settings.
3441 (w32font_draw): Fill background explicitly.
3442
73acf815 34432008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3444
3445 * w32term.c (w32_initialize): Don't call w32font_initialize.
3446
3447 * w32font.c (w32font_info): Remove subranges.
3448 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
3449 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
3450 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
3451 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
3452 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
3453 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
3454 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
3455 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
3456 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
3457 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
3458 New symbols.
3459 (font_callback_data): New struct.
3460 (w32font_list, w32font_match): Use it.
3461 (w32font_open): Don't populate subranges.
3462 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
3463 (w32font_encode_char): Always return unicode code-point as-is.
3464 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
3465 GetGlyphOutline. Never look up by glyph index. Avoid looping
3466 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2
MB
3467 glyph index version.
3468 (set_fonts_frame): Remove
3469 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
3470 set frame parameter. Use backward compatible fake foundries.
3471 Save generic family in extra slot under QCfamily. Make width slot
3472 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
3473 binary subranges.
3474 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 3475 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
3476 unwanted fonts.
3477 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
3478 (w32_registry): Default to iso10646_1.
3479 (fill_in_logfont): Use dpi from extra slot. Don't bother with
3480 string font registries. Don't fill in font name if it is a generic
3481 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
3482 extra info to fill pitch, family and charset fields.
3483 (list_all_matching_fonts): Use font_callback_data struct.
3484 (unicode_range_for_char): Remove.
3485 (font_supported_scripts): New function.
3486 (w32font_initialize): Remove.
3487 (syms_of_w32font): Update which symbols are defined.
3488
73acf815 34892008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3490
3491 * font.c (font_pixel_size): Reverse assq_no_quit args.
3492
3493 * w32term.h (FONT_WIDTH): Report max width, not average.
3494 (FONT_MAX_WIDTH): Remove.
3495 (FONT_AVG_WIDTH): New macro.
3496
3497 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
3498 redefinition of FONT_WIDTH.
3499
3500 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
3501 (w32_cache_char_metrics): Use FONT_WIDTH.
3502
3503 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
3504
73acf815 35052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3506
3507 * w32font.c (w32font_open): Make lfHeight negative.
3508
3509 * w32fns.c (x_default_font_parameter): Use new style font name.
3510 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
3511
73acf815 35122008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3513
3514 * w32font.c (QCsubranges): New symbol.
3515 (w32font_open, w32font_has_char): Get subranges from subproperty
3516 of extra.
3517 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
3518 (syms_of_w32font): Define :subranges symbol.
3519
3520 * font.c (font_put_extra): Expose externally.
3521
1f45f627 3522 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
3523
3524 * font.c (Ffont_get): Use font driver to determine otf capability.
3525 (adjust_anchor): Check if driver defines anchor_point before using.
3526
3527 * w32font.c (w32font_open): Handle size, height and pixel_size better.
3528 (w32font_draw): Use options.
3529 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
3530 Fix detection of truetype fonts.
3531 (registry_to_w32_charset): Handle charsets other than iso8859-1
3532 expressed as lisp symbols.
3533 (w32_registry): Express charset as lisp symbol.
3534 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 3535 Don't set width here. Set quality to default.
aca7a3d2
MB
3536
3537 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
3538 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
3539
3540 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
3541 Remove redundant loop and allocation.
3542
3543 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 3544 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
3545 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
3546
3547 * xdisp.c (fill_composite_glyph_string): Make the first arg to
3548 STORE_XCHARB a valid l-value.
3549
3550 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
3551 calculations for non-Truetype fonts.
3552 (x_draw_glyph_string): Sync with xterm.c.
3553 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove
3554 redundant code.
3555 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
3556
3557 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
3558 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
3559
3560 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
3561 (x_to_w32_charset, w32_to_x_charset): Expose externally.
3562
3563 * w32font.c: New file for w32 font backend.
3564
73acf815 35652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3566
3567 * term.c: Don't include "buffer.h" twice.
3568
73acf815 35692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3570
3571 * character.c (Funibyte_string): New function.
3572 (syms_of_character): Defsubr it.
3573
73acf815 35742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3575
3576 * w32term.c [USE_FONT_BACKEND]:
3577 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc):
3578 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly):
3579 (x_draw_glyph_string, x_draw_glyph_string_foreground):
3580 (x_draw_composite_glyph_string_foreground, x_new_fontset2):
3581 (x_free_frame_resources): Sync with xterm.c.
3582
73acf815 35832008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3584
3585 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
3586 char-table size.
3587
73acf815 35882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3589
3590 * font.c (check_otf_features): Define it regardless of
3591 HAVE_LIBOTF.
3592
73acf815 35932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3594
3595 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
3596 font_otf_gpos, add font_drive_otf.
3597
3598 * fontset.c (fontset_find_font): Pay attention to font size
3599 specified for a font.
3600 (reorder_font_vector): Check contents of font_def.
3601
3602 * font.c (struct otf_list): Delete it.
6f69e89b 3603 (otf_list): Make it a lisp variable.
aca7a3d2 3604 (otf_open): Use lispy otf_list.
1f45f627 3605 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2
MB
3606 (check_otf_features): New function.
3607 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): New
3608 functinos.
3609 (font_drive_otf): New function merging font_otf_gsub and
3610 font_otf_gpos.
3611 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 3612 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
3613 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
3614 Ffont_otf_gpos.
3615 (syms_of_font): Staticpro otf_list. Delete defsubr of
3616 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
3617
1f45f627 3618 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3619 font_open_for_lface.
3620
3621 * font.h (font_open_for_lface): Adjust prototype.
3622 (struct font_driver): Delete members otf_gsub and otf_gpos, add
3623 member otf_drive.
3624 (font_otf_gsub, font_otf_gpos): Delete externs.
3625 (font_drive_otf): Extern it.
3626
73acf815 36272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3628
3629 * font.c (font_at): If the window W is not on a window system,
3630 return Qnil.
3631
4c4475a8
GM
3632 * coding.c (produce_chars, encode_coding): Don't call
3633 insert_from_gap if no characters to produce.
aca7a3d2 3634
73acf815 36352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3636
3637 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
3638 Fclear_face_cache.
3639
3640 * xfaces.c (face_for_font): Check also face->font==font->font.font.
3641
73acf815 36422008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3643
3644 * emacs.c (main): Change default value of `enable_font_backend' to 1.
3645 Parse "--disable-font-backend" option.
3646 (standard_args): Add "--disable-font-backend" option.
3647
73acf815 36482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3649
3650 * fontset.c (fontset_find_font): New function.
3651 (fontset_font): Use fontset_find_font.
3652 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
3653 Register the specified font for all Latin characters.
3654 (new_fontset_from_font): Register the specified font for all Latin
3655 characters.
3656 (dump_fontset): For a realized fontset, include the base fontset
3657 name in the returned vector.
3658
73acf815 36592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3660
3661 * character.h (CHAR_STRING): Cast C to unsigned on calling
3662 char_string.
3663
3664 * character.c (char_string): Type of arg C changed to unsigned.
3665 Signal an error if C is an invalid character code.
3666
4c4475a8
GM
3667 * editfns.c (general_insert_function, Fchar_to_string):
3668 Use CHARACTERP, not INTEGERP.
aca7a3d2 3669
73acf815 36702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3671
3672 * character.h (MIN_MULTIBYTE_LEADING_CODE)
3673 (MAX_MULTIBYTE_LEADING_CODE): New macros.
3674
3675 * regex.c (analyse_first): Fix for multibyte characters in "case
3676 charset:" and "case categoryspec:".
3677
73acf815 36782008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3679
3680 * Makefile.in (LIBES): Move standard libraries to the end.
3681
73acf815 36822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3683
3684 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
3685 nonzero, don't shrink the buffer nextb.
3686
3687 * buffer.h (struct buffer_text): New member inhibit_shrinking.
3688
3689 * coding.c (coding_alloc_by_making_gap): New arg offset.
3690 (alloc_destination): Call coding_alloc_by_making_gap with the arg
3691 offset.
3692 (decode_coding_iso_2022): Update coding->safe_charsets.
3693 (decode_coding_gap): Temporarily set
3694 current_buffer->text->inhibit_shrinking to 1.
3695
73acf815 36962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3697
3698 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
3699 indexing into elements of s->cmp and s->char2b.
3700
73acf815 37012008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
3702
3703 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
3704
73acf815 37052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3706
3707 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
3708 target_multibyte instead of multibyte.
3709 (re_match_2_internal): Call bcmp_translate with target_multibyte.
3710 (bcmp_translate): Change the argument name from multibyte to
3711 target_multibyte.
3712
73acf815 37132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3714
3715 These changes are to compile a regexp into a pattern that can be
3716 used both for multibyte and unibyte targets.
3717
3718 * Makefile.in (search.o): Depend on charset.h.
3719
3720 * character.c (multibyte_char_to_unibyte_safe): New function.
3721
3722 * search.c: Include "charset.h".
3723 (compile_pattern_1): Delete argument multibyte. Don't set
3724 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
3725 (compile_pattern): Don't compare cp->buf.target_multibyte.
3726 Compare cp->buf.charset_unibyte.
3727 (compile_pattern): Set cp->buf.target_multibyte.
3728
3729 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
3730
3731 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
3732
3733 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 3734 multibyte. Change callers.
aca7a3d2 3735 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
3736 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
3737 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
3738 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
3739 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
3740 (regex_compile): Make the compiled pattern usable both for
3741 multibyte and unibyte targets.
3742 (analyse_first): Make the fastmap usable both for multibyte and
3743 unibyte targets.
1f45f627 3744 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
3745 (re_match_2_internal): Pay attention to the case that the
3746 multibyteness of bufp and target may be different.
3747
73acf815 37482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3749
3750 * xdisp.c (x_produce_glyphs): When a font is not found, make the
3751 empty box occupy at least one column width.
3752
73acf815 37532008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3754
3755 * Makefile.in: Remove redundant HAVE_XFT clause.
3756
73acf815 37572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3758
3759 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
3760
73acf815 37612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3762
3763 * fontset.c (Finternal_char_font): Fix for the case of POSITION
3764 being nil.
3765
73acf815 37662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3767
3768 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
3769
73acf815 37702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3771
3772 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
3773
73acf815 37742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3775
3776 * search.c (simple_search): Fix previous change.
3777
73acf815 37782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3779
3780 * xftfont.c (ftfont_font_format): Extern declaration.
3781
3782 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
3783
3784 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
3785 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
3786
3787 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
3788 (ftfont_font_format): Fix previous change.
3789
3790 * font.h (Ffont_xlfd_name): EXFUN it.
3791
3792 * font.c (font_parse_xlfd): Fix the array size of `f'.
3793 (register_font_driver): Use EQ to compare driver->type.
3794
3795 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
3796 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
3797 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
3798
73acf815 37992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3800
4c4475a8
GM
3801 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
3802 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 3803
73acf815 38042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3805
3806 * xfont.c (xfont_open): Set font->format.
3807
3808 * xftfont.c (xftfont_open): Set font->format.
3809
3810 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
3811 (ftfont_list): Include FC_FONTFORMAT in FcObject.
3812 (ftfont_open): Set font->format.
3813 (ftfont_font_format): New function.
3814
3815 * font.h (struct font): New memeber format.
3816
3817 * font.c (Qopentype): New variable.
3818 (syms_of_font): Defsym it.
3819 (Fquery_font): Change the format of the last element of the return
3820 value.
3821
73acf815 38222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3823
3824 * xfns.c (xic_create_xfontset): Try the default fontset name as a
3825 last resort.
3826
73acf815 38272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3828
3829 * coding.c (detect_coding_charset): Fix detection of multi-byte
3830 charset.
3831
73acf815 38322008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
3833
3834 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
3835
73acf815 38362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3837
3838 * xdisp.c (get_next_display_element): Set it->face_id for the
3839 first component of a composition.
1f45f627 3840 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 3841
73acf815 38422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3843
3844 (get_next_display_element): Set it->face_id for the
3845 first component of a composition.
1f45f627 3846 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 3847
73acf815 38482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3849
3850 * fontset.c (Qlatin): New variable.
3851 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 3852 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 3853
73acf815 38542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3855
3856 * font.c (font_unparse_fcname): Pay attention to the case that
3857 some of font property is a null string.
3858
73acf815 38592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3860
3861 * term.c: Include "composite.h".
3862 (encode_terminal_code): Output all components of composition.
3863 Check the size of encode_terminal_src.
424c157f 3864 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
3865 (append_composite_glyph, produce_composite_glyph): New functions.
3866
3867 * xdisp.c (x_produce_glyphs): In handling composition, if a font
3868 is not found, get font_info from the current ascii face.
3869
73acf815 38702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3871
3872 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
3873 buffer-file-name to Qnil before calling insert_from_buffer.
3874
3875 * font.c (font_unparse_fcname): Pay attention to the case that
3876 foundry is a null string.
3877
73acf815 38782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3879
3880 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
3881
3882 * font.c (Qunicode_sip): New variable.
3883 (syms_of_font): Declare it as a Lisp symbol.
3884
3885 * font.h (Qunicode_sip): Extern it.
3886
73acf815 38872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3888
1f45f627 3889 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
3890
3891 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 3892 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
3893 the first elememnt of allocated memory.
3894
1f45f627 3895 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
3896
3897 * xdisp.c (handle_composition_prop): Set it->c to the first
3898 non-TAB component.
1f45f627
GM
3899 (fill_composite_glyph_string): Change argument.
3900 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
3901 (x_produce_glyphs): Fix handling of left/right padding.
3902
73acf815 39032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3904
3905 * coding.c (detect_coding_system): Fix for handling off
3906 inhibit_iso_escape_detection. Fix for the case that no coding
3907 system is defined for a specific coding category.
3908
73acf815 39092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3910
1f45f627 3911 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
3912
3913 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
3914 opening a font.
3915
3916 * fileio.c (Finsert_file_contents): On recovering a file, assume
3917 Unix-like eol.
3918 (choose_write_coding_system): On auto-saving a file, force
3919 Unix-like eol.
3920
3921 * coding.c (setup_coding_system): Fix setting of
3922 coding->common_flags based on eol_type.
3923 (coding_inherit_eol_type): If PARENT is not nil, be sure to
3924 inherit from it.
3925
73acf815 39262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3927
1f45f627 3928 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 3929
73acf815 39302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3931
1f45f627 3932 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
3933 (ftfont_list): Don't check :name property.
3934 (ftfont_match): New function.
3935 (ftfont_pattern_entity): If the pattern doesn't contain
3936 FC_SPACING, don't assuce FC_MONO.
3937
3938 * font.h (struct font_driver): New member `match'.
1f45f627 3939 (font_update_drivers): Adjust prototype.
aca7a3d2 3940
4c4475a8
GM
3941 * font.c (font_parse_fcname, font_parse_name): Don't change :name
3942 property of FONT.
aca7a3d2
MB
3943 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
3944 them unconditionally.
3945 (font_matching_entity): New function.
3946 (font_open_by_name): Try font_matching_entity if exact match is
3947 not found.
3948 (font_update_drivers): Delete the arg FONT. Return a list of
3949 actually used backends. Don't free faces, font caches here.
3950 Don't store data in frame parameters. Don't call x_set_font.
3951 (Ffont_spec): Store :name property as is.
3952 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
3953 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
3954 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
3955 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
3956 Call font->driver->otf_gsub instead of font_otf_gsub.
3957
3958 * frame.c (x_set_font_backend): Do more works that were done in
3959 font_update_drivers before.
3960
3961 * xfont.c (xfont_match): New function.
3962 (xfont_driver): Set xfont_driver.match to xfont_match.
3963 (xfont_draw): Set font in GC if necessary.
3964
3965 * ftxfont.c (ftxfont_match): New function.
3966 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
3967
3968 * xftfont.c (xftfont_match): New function.
3969 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
3970
73acf815 39712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3972
3973 * font.h (struct font): New member scalable.
3974 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 3975 (font_otf_gsub): Adjust prototype.
aca7a3d2 3976
1f45f627
GM
3977 * font.c (font_otf_capability): Fix handling of the default langsys.
3978 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
3979 Check the contents of SPEC.
3980 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
3981 (check_gstring): New function.
3982 (REPLACEMENT_CHARACTER): New macro.
3983 (font_otf_gsub): New arg alternate_subst. Be sure to set all
3984 glyph codes of GSTRING.
3985 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
3986 (font_prepare_composition): Set cmp->glyph_len.
3987 (font_open_entity): Set font->scalable.
3988 (Ffont_get): Handle :otf property.
3989 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
3990 functions.
3991 (Fquery_font): Use font->font.full_name.
3992 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
3993 Sfont_otf_alternates.
3994
3995 * ftfont.c (ftfont_open): Set font->font.full_name and
3996 font->font.name properly. Fix calculation of font->font.height
3997 and font->min_width.
3998
3999 * ftxfont.c (ftxfont_create_gcs): New function.
4000 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4001 (ftxfont_draw_backgrond): Fix filling region.
4002 (ftxfont_default_fid): New function.
4003 (ftxfont_open): Set xfotn->fid to the return value of
4004 ftxfont_default_fid.
4005 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4006 (ftxfont_done_face): Free only GCs that are created by
4007 ftxfont_create_gcs.
4008 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4009
4010 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4011 Clip to src->width, etc (not src->clip_XXX).
4012
4013 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4014 FontBackend frame parameter.
4015
73acf815 40162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4017
4018 * font.h (struct font_driver_list): New member `on'.
4019 (Fclear_font_cache): EXFUN it.
4020 (font_update_drivers): Extern it.
4021
4022 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4023 (font_list_entities): Check driver_list->on.
4024 (register_font_driver): Initalize `on' member to 0.
4025 (font_update_drivers): New function.
4026 (Fclear_font_cache): Check driver_list->on.
4027
4028 * frame.h (Qfont_backend): Extern it.
4029 (x_set_font_backend): Extern it.
4030
4031 * frame.c (Qfont_backend): New variable.
4032 (frame_parms): New element for font-backend.
4033 (x_set_font_backend): New function.
4034
4035 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4036 FontBackend frame parameter.
4037 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4038 x_set_font_backend.
4039
4040 * xfont.c (xfont_list): Don't try listing by :name property if the
4041 name is not for XLFD.
4042
73acf815 40432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4044
4045 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4046 (LGLYPH_SET_TO): New macros.
4047 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4048 element of G is vector or not.
4049 (font_at): Extern it.
4050
4051 * font.c: Include window.h.
4052 (font_lispy_object): New function.
4053 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4054 end of valid glyph.
4055 (font_close_object): Fix getting (struct font *).
4056 (font_at): New function.
4057 (Ffont_get): If FONT is a font-object, get entity from it.
4058 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4059 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4060 range check.
4061 (Ffont_at): New function.
4062 (syms_of_font): Defsubr Sfont_at.
4063
4064 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4065 before the entry for Qcomposition.
1f45f627 4066 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4067 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4068 the font in gstring.
4069 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4070 LGLYPH_FORM (g) to detect the end of valid glyph.
4071 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4072 we are composing with gstring.
4073
4074 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4075 Check if adjustment is vector or not.
4076
4077 * Makefile.in (font.o): Make it depends on window.h.
4078
73acf815 40792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4080
4081 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4082 adjustment is vector or not.
4083
73acf815 40842008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4085
4086 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4087
73acf815 40882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4089
4090 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4091 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4092 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4093
1f45f627 4094 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4095 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4096 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4097 LGLYPH format.
aca7a3d2 4098
1f45f627 4099 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4100 the change of LGLYPH format.
4101
73acf815 41022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4103
4104 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4105 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4106
880820fe 41072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4108
4109 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4110
4111 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4112 xftface_info is non-NULL.
4113
880820fe 41142008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4115
1f45f627 4116 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4117
73acf815 41182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4119
4120 * ftfont.c (ftfont_list): Pay attention to the case that
4121 FC_CAPABILITY is not defined.
4122
73acf815 41232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4124
4125 * xftfont.c (xftfont_open): Set charset related members to -1.
4126
1f45f627
GM
4127 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4128 QCname.
aca7a3d2
MB
4129 (ftfont_open): Set charset related members to -1.
4130
4131 * fontset.c (Votf_script_alist): New variable.
4132 (syms_of_fontset): Initialize it.
4133 (fontset_font): Delete unused variable.
4134
4135 * fontset.h (Votf_script_alist): Extern it.
4136
1f45f627 4137 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
4138
4139 * font.h (font_close_object, font_merge_old_spec): Extern them.
4140
73acf815 41412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4142
4143 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
4144 (syms_of_font): Initialize them.
4145 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
4146 (font_prop_validate_type): Delete.
4147 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
4148 Change caller.
4149 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
4150 (font_prop_validate_extra): Delete.
aca7a3d2
MB
4151 (font_prop_validate_spacing): New function.
4152 (font_property_table): Add elements for all known properties.
1f45f627
GM
4153 (get_font_prop_index): Rename from check_font_prop_name. New
4154 argument FROM. Change caller.
aca7a3d2 4155 (font_prop_validate): Validate all known properties.
1f45f627 4156 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
4157 (font_expand_wildcards): Make it static. Fix the way of shrinking
4158 the possible range.
1f45f627 4159 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 4160 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 4161 Change caller.
aca7a3d2 4162 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
4163 (font_parse_fcname): Delete argument merge. Fix parsing of point
4164 size. Don't validate properties values here. Change caller.
4165 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
4166 (font_open_by_name): Delete unused variable.
4167 (Ffont_spec): Likewise. Validate property values.
4168 (Ffont_match_p): New function.
4169
4170 * font.h (QCscalable): Extern it.
1f45f627 4171 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 4172
1f45f627 4173 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 4174
1f45f627 4175 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
4176 (xfont_list_pattern): New function.
4177 (xfont_list): Use xfont_list_pattern.
4178
73acf815 41792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4180
4181 * font.h (Flist_fonts): EXFUN it.
4182
73acf815 41832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4184
4185 * w32term.c (w32_initialize): Add back smoothing_type and
4186 smoothing_enabled definitions.
4187
73acf815 41882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4189
4190 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
4191 s->face->font on determining underline position.
4192
73acf815 41932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4194
4195 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
4196 (font_has_char): Accept font-object too.
4197 (font_find_for_lface): Try at first with a size specified in face.
4198
73acf815 41992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4200
4201 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
4202 font_open_by_name.
4203
73acf815 42042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4205
4206 * font.h (QCspacing, QCdpi): Extern them.
4207 (enum font_spacing): New enum.
4208 (FONT_PIXEL_SIZE_QUANTUM): New macro.
4209
4210 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
4211 (QCspacing, QCdpi): New variables.
4212 (syms_of_font): Initialize them.
4213 (font_pixel_size): New function.
4214 (font_put_extra): New function.
4215 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
4216 in FONT_EXTRA.
e9184ccb
JB
4217 (font_parse_fcname): Handle enumenrated values (e.g. bold).
4218 Fix handling font size. Add QCname property that contains only
aca7a3d2 4219 unknown properties.
1f45f627 4220 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 4221 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
4222 (font_sort_entites, font_list_entities, font_find_for_lface)
4223 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 4224 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
4225
4226 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
4227 include weight in listing pattern, instead check weight of each
4228 listed font. Don't include scalable in pattern. Pay attention to
4229 FONT_PIXEL_SIZE_QUANTUM.
4230
73acf815 42312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4232
aca7a3d2 4233 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 4234 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
4235 (font_list_entities): Handle float size correctly.
4236 (font_open_by_name): Prefer `normal' property values if the name
4237 doesn't specify them.
4238
4239 * fontset.c (Finternal_char_font): Use font_get_name, not
4240 Ffont_xlfd_name.
4241
4242 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
4243 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
4244 pattern. Don't force scalable.
4245
4246 * xftfont.c (xftfont_open): For generating a name, start from
4247 96-byte buffer.
4248
880820fe 42492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4250
4251 * frame.h (x_new_fontset2): Fix prototype.
4252
73acf815 42532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4254
1f45f627 4255 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
4256 (font_match_p, font_get_spec, font_parse_fcname)
4257 (font_unparse_fcname): Extern them.
1f45f627 4258 (font_get_name): Adjust prototype.
aca7a3d2
MB
4259
4260 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
4261 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
4262 (font_expand_wildcards): Fix handling ENCODING field. Avoid
4263 unnecessary checks for weight, slant, and swidth.
4264 (font_parse_fcname): New function.
4265 (font_unparse_fcname): New function.
4266 (font_parse_name): New function.
4267 (font_match_p): New function.
1f45f627 4268 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
4269 (font_get_spec): New function.
4270 (Qunspecified, Qignore_defface): Don't extern them.
4271 (font_find_for_lface): Assume that LFACE is fully specified.
4272 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
4273 object, use it for FACE.
4274 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
4275 driver->parse_name.
4276 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
4277
1f45f627
GM
4278 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
4279 prototype.
aca7a3d2 4280
1f45f627
GM
4281 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
4282 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
4283 make_fontset.
4284
1f45f627 4285 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 4286
1f45f627 4287 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
4288 of x_new_fontset2.
4289
4290 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
4291 (Qsans__serif): New variables.
4292 (ftfont_generic_family_list): New variable.
4293 (syms_of_ftfont): Initialize the above variables.
1f45f627 4294 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
4295 (ftfont_list_generic_family): New function.
4296 (ftfont_parse_name): Delete this function.
1f45f627 4297 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
4298 (ftfont_list_family): Fix args to FcObjectSetBuild.
4299
4300 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
4301 object in attrs[LFACE_FONT_INDEX].
4302 (set_lface_from_font_name): Cancel all changes for font-backend.
4303 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
4304 function.
4305 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
4306 font object in QCfont attribute.
4307 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
4308 (realize_default_face) [USE_FONT_BACKEND]: Call
4309 set_lface_from_font_and_fontset.
4310
4311 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
4312 "fixed", and signal error here if no suitable font was found.
4313
4314 * xfont.c (xfont_parse_name): Delete this function.
4315
4316 * xftfont.c (xftfont_open): Change coding style of error
4317 handling. Generate fontconfig's fontname pattern.
4318
4319 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
4320 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
4321
4322 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
4323 Both args FONTSET and FONT_OBJECT must be existing ones.
4324
73acf815 43252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4326
4327 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
4328
73acf815 43292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4330
4331 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
4332
4333 * font.h (struct font): Fix typo.
4334
4335 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
4336 XLFD_XXX_INDEX.
4337 (enum xlfd_field_mask): New enum.
1f45f627 4338 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
4339 are followed by non-digits, return a symbol.
4340 (font_expand_wildcards): New function.
4341 (font_parse_xlfd): Fix wildcard handling.
4342 (Ffont_spec): If :name is specified, reflect the info in the other
4343 properties.
4344
4345 * ftfont.c (ftfont_pattern_entity): Fix typo.
4346 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
4347 locale.
4348
73acf815 43492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4350
4351 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
4352
1f45f627 4353 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
4354 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
4355 registry doesn't specify encoding part.
4356 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
4357 (font_open_by_name): At first try parsing the name.
4358 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
4359 as Lisp symbols.
4360
4361 * fontset.c (reorder_font_vector): Pay attention to the case that
4362 the 3rd element of font_def is nil.
4363 (fontset_font): For the default fontset, append one more fontset
4364 elements for a script-based font specification. Don't add script
4365 attribute on finding a font.
4366 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
4367 font name.
4368 (fontset_ascii_font): If a font can't be opened, return nil.
4369
1f45f627 4370 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
4371 (ftfont_pattern_entity): New function.
4372 (ftfont_get_cache): Assume that freetype_font_cache is already
4373 initialized.
4374 (ftfont_list): Handle the case that a file is specified in font
4375 name. Use ftfont_pattern_entity to generate entities.
4376 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
4377 (syms_of_ftfont): Initialize freetype_font_cache.
4378
4379 * xftfont.c (xftfont_open): Make the font name fontconfig's
4380 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
4381 (xftfont_close): Free font->font.name if not NULL.
4382
4383 * xfont.c (xfont_list): If script is specified for a font, return
4384 null_vector.
4385 (xfont_list_family): Declare argument type.
4386
4387 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
4388 name, set LFACE_FONT (lface) to nil.
4389
4390 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
4391 return Qnil.
4392
73acf815 43932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4394
1f45f627 4395 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
4396 (standard_args): Add "-enable-font-backend".
4397
73acf815 43982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4399
4400 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
4401 (struct xftdraw_list, xftdraw_list): Delete them.
4402 (register_xftdraw, check_xftdraw): Delete them.
4403 (xftfont_prepare_face): Don't call register_xftdraw.
4404 (xftfont_done_face): Don't call check_xftdraw.
4405 (xftfont_draw): Get backroudn color only when with_background is
4406 nonzero.
4407
4408 * xfont.c (xfont_encode_char): Fix calculation of char2b.
4409
73acf815 44102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4411
4412 These changes are for the new font handling codes.
4413
4414 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
4415 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
4416 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
4417 (FONTSRC, FONTOBJ): New variables.
4418 (obj): Add $(FONTOBJ).
4419 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
4420 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
4421 @LIBOTF_LIBS@.
4422 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 4423 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 4424
1f45f627 4425 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
4426
4427 * character.h (Vscript_representative_chars): Extern it.
4428
4429 * character.c (Vscript_representative_chars): New variable.
4430 (syms_of_character): Declare it as a Lisp variable.
4431
4432 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
4433 enable_font_backend is nonzero, accept the composition method
4434 COMPOSITION_WITH_GLYPH_STRING.
4435
4436 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
4437 enumeration COMPOSITION_WITH_GLYPH_STRING.
4438
aca7a3d2
MB
4439 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
4440 members clip_x, clip_y, clip_width, and clip_height.
4441 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
4442
4443 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
4444 --enable-font-backend. Call syms_of_font.
4445
4446 * fns.c (assoc_no_quit): New function.
4447
4448 * fontset.h (FONT_INFO_FROM_FACE): New macro.
4449 (face_for_font, new_fontset_from_font)
4450 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
4451
4452 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
4453 (fontset_font, fontset_ascii, face_for_char)
4454 (make_fontset_for_ascii_face, Ffont_info)
4455 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
4456 is nonzero, use font-backend mechanism.
4457 (find_font_encoding): Make it non-static.
4458 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
4459 New functions.
4460
4461 * frame.h (struct frame): New members resx and resy.
4462 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
4463 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
4464
4465 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 4466 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
4467
4468 * lisp.h (assoc_no_quit): Extern it.
4469
4470 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
4471 Through out the file, use FONT_INFO_FROM_FACE instead of
4472 FONT_INFO_FROM_ID, use get_per_char_metric instead of
4473 rif->per_char_metric.
4474 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
4475 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
4476 (get_glyph_face_and_encoding, fill_composite_glyph_string)
4477 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
4478 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
4479 nonzero, use font-backend mechanism.
4480 (get_per_char_metric): New function.
4481
4482 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
4483 (set_lface_from_font_name)
4484 (set_font_frame_param, free_realized_face)
4485 (prepare_face_for_display, clear_face_gcs)
4486 (Finternal_set_font_selection_order, realize_x_face)
4487 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
4488 font-backend mechanism.
1f45f627 4489 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
4490 (load_face_font) [USE_FONT_BACKEND]: Abort.
4491 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 4492 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
4493
4494 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
4495 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
4496 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
4497 nonzero, register all available font drivers. Call
4498 x_default_font_parameter for deciding a font.
4499 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
4500
4501 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
4502 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
4503 (x_set_glyph_string_clipping_exactly)
4504 (x_compute_glyph_string_overhangs)
4505 (x_draw_glyph_string_foreground)
4506 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
4507 (x_free_frame_resources) [USE_FONT_BACKEND]: If
4508 enable_font_backend is nonzero, use font-backend mechanism.
4509 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
4510
73acf815 45112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4512
fcb314b2 4513 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
4514 system_eol_type.
4515 (syms_of_coding): Initialize system_eol_type.
4516
fcb314b2
GM
4517 * process.c (Fset_process_coding_system): Inherit system's eol
4518 format if necessary.
aca7a3d2 4519
73acf815 45202008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4521
4522 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
4523
73acf815 45242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4525
4526 * coding.c (decode_eol): Pay attention to buffer relocation in
4527 del_range_2.
4528 (decode_coding): Call decode_eol before restoring undo_list.
4529
73acf815 45302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4531
4532 * charset.c (Fdefine_charset_internal): Fix setting of
4533 emacs_mule_bytes.
4534
73acf815 45352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4536
4537 * keyboard.c (read_char): Check if C is a character or not before
4538 looking up Vkeyboard_translate_table.
4539
73acf815 45402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4541
4542 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
4543 condition to terminate the loop.
4544
73acf815 45452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4546
4547 * coding.c (produce_composition): Compare charbuf[i] instead of
4548 args[i] against 0.
4549 (Fterminal_coding_system): Use EQ to compare Lisp objects.
4550
73acf815 45512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4552
4553 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
4554 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
4555 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
4556 detect_coding.
4557 (emacs_mule_char): Handle old style (Emacs 20) component character
4558 of a composition.
4c4475a8
GM
4559 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
4560 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
4561 composition rule.
aca7a3d2
MB
4562 (decode_coding_emacs_mule): Handle invalid bytes correctly.
4563
73acf815 45642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4565
4566 * coding.c (encode_coding_ccl): Allocate destination dynamically
4567 when necessary.
4568
73acf815 45692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4570
4571 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
4572 the loop. When quitted, show a proper error message.
4573
73acf815 45742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4575
aca7a3d2
MB
4576 * xterm.c (x_set_glyph_string_clipping_exactly): Set
4577 src->clip_head and src->clip_tail temporarily instead of src->hl.
4578
4579 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
4580 character sequence.
4581 (Fccl_execute_on_string): Use ASET, not XSET.
4582
73acf815 45832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4584
1f45f627 4585 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 4586
73acf815 45872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4588
4589 * coding.c (decode_coding): Fix the condition of terminating the
4590 decoding loop.
4591
73acf815 45922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4593
4594 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 4595 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 4596
73acf815 45972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4598
4599 * charset.c (map_charset_chars): Fix for ascii-compatible charset
4600 made by a mapping table.
4601
73acf815 46022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4603
4604 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
4605 not.
4606 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
4607 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
4608
4609 * xterm.c (x_draw_composite_glyph_string_foreground): Check
4610 s->face is NULL or not.
4611
73acf815 46122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4613
4614 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
4615 (x_draw_glyph_string): Fix drawing of right_overhang and
4616 left_overhang around/on cursor.
4617
1f45f627 4618 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 4619
73acf815 46202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4621
4622 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
4623
73acf815 46242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4625
4c4475a8
GM
4626 * coding.c (Fdefine_coding_system_internal)
4627 (Fdefine_coding_system_alias): Avoid a duplicated element in
4628 Vcoding_system_alist.
aca7a3d2 4629
73acf815 46302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4631
4632 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4633
fcb314b2 4634 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
4635 (syms_of_coding): Intern and staticpro it.
4636 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 4637 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
4638
4639 * coding.h (CODING_SYSTEM_P): If ID is not available, call
4640 Fcoding_system_p.
4641 (CHECK_CODING_SYSTEM): If ID is not available, call
4642 Fcheck_coding_system.
4c4475a8
GM
4643 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
4644 Try also Fcheck_coding_system.
aca7a3d2 4645
73acf815 46462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4647
aca7a3d2
MB
4648 * coding.c (code_conversion_restore): GCPRO arg.
4649
73acf815 46502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4651
4652 * character.c (lisp_string_width): Check multibyteness of STRING.
4653
73acf815 46542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4655
4656 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
4657 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
4658 (decode_mac_font_name): Use decode_coding_c_string instead of
4659 decode_coding.
4660 (x_load_font): Initialize fontp->fontset to -1. Set
4661 fontp->encoding_type.
4662
73acf815 46632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4664
4665 * search.c (search_buffer): Give up BM search on case-fold-search
4666 if one of a target character has a case-equivalence of different
4667 byte length even if that target charcter is an ASCII.
1f45f627
GM
4668 (simple_search): Fix calculation of byte length of matched text.
4669 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 4670
73acf815 46712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4672
4673 * coding.c (decode_coding): Fix handling of invalid bytes.
4674
73acf815 46752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4676
4677 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4678 Unicode characters.
4679
73acf815 46802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4681
4682 * coding.c (encode_coding_object): If a pre-write-conversion
4683 function makes a new buffer, kill it.
4684
73acf815 46852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4686
4687 * coding.c (QCascii_compatible_p): New variable.
4688 (syms_of_coding): Initialize it.
4c4475a8
GM
4689 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
4690 calling string_char.
aca7a3d2
MB
4691 (record_conversion_result): Add `default:' case.
4692 (coding_charset_list): Delete unused variable `coding_type'.
4693 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
4694 property in the plist of the coding system.
4695 (Fcoding_system_put): Check QCascii_compatible_p.
4696
73acf815 46972008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4698
4699 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
4700 removed calculation of frame `f', as it's now used.
4701
73acf815 47022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4703
1f45f627 4704 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
4705 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
4706 (UNIDATA): New variable.
4707 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
4708 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
4709 $(RUN_TEMACS) unconditionally.
4710
73acf815 47112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4712
1f45f627 4713 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
4714 (admindir): New variable.
4715 ($(lispsource)international/charprop.el): New target.
4716
73acf815 47172008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4718
1f45f627 4719 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
4720 (syms_of_character): Remove its initialization.
4721
73acf815 47222008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
4723
4724 * w32select.c (validate_coding_system)
4725 (setup_windows_coding_system): New functions.
4726 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
4727 setup_windows_coding_system.
4728 (setup_config, Fw32_get_clipboard_data): Use
4729 validate_coding_system.
4730 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 4731 where signals are allowed.
aca7a3d2
MB
4732
4733 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
4734 (Fcheck_coding_system): Add declarations.
4735
73acf815 47362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4737
1f45f627 4738 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 4739
73acf815 47402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4741
4742 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
4743 string as the second argument for x_new_fontset.
4744
73acf815 47452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4746
4747 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
4748 (encode_coding_object): Use safe_call instead of call2.
4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4751
1f45f627 4752 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
4753
4754 * Makefile.in (lisp): Include charprop.el.
4755
73acf815 47562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4757
4758 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
4759 Not sure if it's unnecessary.
4760
73acf815 47612008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
4762
4763 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
4764 some possibly unnecessary fontset checking code that crashed
1f45f627 4765 when creating a new frame.
aca7a3d2 4766
73acf815 47672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4768
4769 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
4770 lookup_face.
4771
4772 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
4773
1f45f627 4774 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 4775
73acf815 47762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4777
73acf815 4778 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
4779 (coding_charset_list): New function.
4780
4781 * coding.h (coding_charset_list): Extern it.
4782
73acf815 47832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4784
4785 * fontset.c (Fset_fontset_font): Call find_font_encoding with
4786 concatenation of family and registry.
4787
73acf815 47882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4789
4790 * character.h (BYTE8_STRING): Fix typo.
4791
4792 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
4793 string to multibyte (sync to HEAD).
4794
4795 * casefiddle.c (casify_region): Handle changes in byte-length
4796 using replace_range_2 (sync to HEAD).
4797
73acf815 47982008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4799
4800 * chartab.c (map_char_table): GCPRO table and arg.
4801
73acf815 48022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4803
4804 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
4805 already at limit.
4806
73acf815 48072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4808
4809 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
4810 instead of fast_c_string_match_ignore_case.
1f45f627 4811 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 4812 fast_string_match_ignore_case instead of
1f45f627 4813 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 4814
73acf815 48152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4816
4817 * xdisp.c (get_next_display_element): In unibyte case, decide to
4818 display in octal form by checking a chacter by
4819 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
4820
1f45f627 4821 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
4822
4823 * character.c (unibyte_has_multibyte_table): New variable.
4824
4825 * character.h (unibyte_has_multibyte_table): Extern it.
4826 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
4827
73acf815 48282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4829
4830 * coding.c (encode_coding_iso_2022): Fix handling of charset
4831 annotation.
4832
73acf815 48332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4834
4835 * coding.c (setup_coding_system): If coding_system is nil, use
4836 Qundecided.
4837 (Fterminal_coding_system): Return nil if terminal coding system is
4838 `undecided'.
4839 (syms_of_coding): Define coding-system `undecided' here. Setup
4840 terminal_coding as `undecided'.
4841
73acf815 48422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4843
4844 * xdisp.c (message_dolog, set_message_1): Call
4845 unibyte_char_to_multibyte with arg type int.
4846
aca7a3d2
MB
4847 * lread.c (read1): Fix reading of a char-table.
4848
4849 * print.c (print_object): Include sub char-table in cicularities
4850 detection.
4851
73acf815 48522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4853
4854 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 4855 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 4856
73acf815 48572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4858
4859 * fileio.c (report_file_error): Make a unibyte string from
4860 strerror (errorno).
4861 (Fsubstitute_in_file_name): Fix the arg to
4862 unibyte_char_to_multibyte. It is evaluated twice.
4863
73acf815 48642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4865
4866 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
4867
73acf815 48682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4869
4870 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
4871 BOM is not found.
4c4475a8
GM
4872 (detect_coding, detect_coding_system): Optimization for ISO-2022
4873 when no 8-bit data is found.
aca7a3d2 4874
73acf815 48752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4876
4877 * w32fns.c (x_to_w32_font): Update to use new coding struct.
4878
73acf815 48792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4880
4c4475a8
GM
4881 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
4882 CHARS.
aca7a3d2 4883
73acf815 48842008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
4885
4886 * macterm.c (mac_encode_char): Add charset argument and update
4887 to use encoding_type.
2a2e8de7 4888 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
4889 switch to pure fontset.
4890 (decode_mac_font_name): Temporarily remove decoding.
4891 (x_font_name_to_mac_font_name): Temporarily remove encoding.
4892 (x_load_font): Temporarily remove encoding.
aca7a3d2 4893
73acf815 48942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4895
4896 * xfaces.c (Fface_font): If frame is not on a window system,
4897 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
4898 refer to face->font.
4899 (split_font_name_into_vector, build_font_name_from_vector)
4900 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
4901 whne HAVE_WINDOW_SYSTEM is defined.
4902
73acf815 49032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4904
4905 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
4906 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 4907 cmp->glyph_len is zero.
aca7a3d2 4908
1f45f627 4909 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
4910 (Ffontset_info): Make it backward compatible. New arg ALL.
4911
73acf815 49122008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
4913
4914 * process.c (read_process_output): Grow decoding_buf when needed;
4915 this could cause a crash in allocate_string and compact_small_strings.
4916
73acf815 49172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4918
1f45f627 4919 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 4920
73acf815 49212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4922
4923 * coding.c (setup_coding_system): Set coding->common_flags
4924 correctly for raw-text.
4925 (consume_chars): On encoding unibyte text by raw-text, don't check
4926 multibyte form.
1f45f627 4927 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
4928
4929 * fileio.c (e_write): Short cut for the case of no encoding.
4930
73acf815 49312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4932
4c4475a8
GM
4933 * coding.c (detect_coding, detect_coding_system): Delete unused
4934 variables.
aca7a3d2 4935
73acf815 49362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4937
4938 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
4939 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
4940
73acf815 49412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4942
4943 * coding.c (Ffind_coding_systems_region_internal): Include
4944 raw-text and no-conversion in the result.
4945
73acf815 49462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4947
1f45f627 4948 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
4949 (load_font_get_repertory): Delete unnecessary check of ENCODING of
4950 FONT_DEF.
4951 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 4952 (set_fontset_font): Change argument.
aca7a3d2
MB
4953 (Fset_fontset_font): Fix for the case that TARGET is a script
4954 name and charset name.
4955 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
4956
73acf815 49572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4958
1f45f627
GM
4959 * fontset.c (fontset_font): Rename from fontset_face. Change return
4960 value.
4c4475a8
GM
4961 (face_suitable_for_char_p, face_for_char): Adjust for the change
4962 of fontset_font.
aca7a3d2
MB
4963 (make_fontset_for_ascii_face): Fix setting of the fontset element
4964 for ASCII.
4965 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
4966 to get a font name.
1f45f627 4967 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 4968
fcb314b2 4969 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
4970
4971 * character.h (LEADING_CODE_LATIN_1_MIN)
4972 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
4973
73acf815 49742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4975
fcb314b2 4976 * editfns.c (check_translation): New function.
aca7a3d2
MB
4977 (Ftranslate_region_internal): Handle M:N mapping.
4978
73acf815 49792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4980
4981 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
4982
73acf815 49832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4984
4985 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
4986 goto invalid_code.
4987 (decode_coding_iso_2022): Fix handling of invalid designation.
4988
4989 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
4990 after calling code_conversion_save.
4991
73acf815 49922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4993
4994 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
4995
4996 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
4997
4998 * fontset.c: Include "intervals.h".
4999 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5000 (free_face_fontset, new_fontset_from_font_name): Fix
5001 Lisp_Object/int mixup.
aca7a3d2
MB
5002
5003 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5004
5005 * coding.c: Add many prototypes for static functions.
5006 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5007 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5008 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5009 get_translation_table with max_lookup NULL.
aca7a3d2 5010
73acf815 50112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5012
5013 * coding.c (get_translation_table): Declare it as Lisp_Object.
5014 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5015 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5016 instead of CHAR_TABLE_REF.
aca7a3d2 5017
73acf815 50182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5019
1f45f627 5020 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5021 annotation data format.
5022 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5023 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5024 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5025 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5026 (decode_coding_ccl, decode_coding_charset): Pay attention to
5027 coding->charbuf_used.
aca7a3d2
MB
5028 (get_translation): New function.
5029 (produce_chars): New arguments translation_table and last_block.
5030 Translate characters here. Return number of carryover chars.
1f45f627
GM
5031 Change caller.
5032 (produce_composition): New argument pos. Change caller.
5033 Adjust for the change of annotation data format.
aca7a3d2
MB
5034 (produce_charset, produce_annotation): Likewise.
5035 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5036 (consume_chars): New arg translation_table. Change caller.
5037 (translate_chars): Delete.
5038 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5039
73acf815 50402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5041
5042 * search.c (simple_search): Fix setting this_pos_byte in backward
5043 search.
5044
5045 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5046 byte sequence.
5047 (detect_coding_ccl): Fix setting of the variable valids.
5048
73acf815 50492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5050
5051 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5052
5053 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5054
1f45f627 5055 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5056 Ftranslate_region. Accept a char-table in TABLE.
5057 (syms_of_editfns): Defsubr Stranslate_region_internal.
5058
5059 * xfaces.c (set_lface_from_font_name): If a font is specified for
5060 a frame, generate a fontset from the font.
5061 (build_scalable_font_name): If the scalable font is requested for
5062 a specific size, don't change that size.
5063 (try_font_list): Try a scalable font also in the case that a
1f45f627 5064 pattern string is specified.
aca7a3d2 5065
73acf815 50662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5067
5068 * xfaces.c (Fface_font): New optional arg CHARACTER.
5069
73acf815 50702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5071
5072 * charset.h (CHARSET_OFFSET): New macro.
5073
73acf815 50742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5075
5076 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5077
5078 * fontset.c (fontset_face): Handle the case that repertory is a
5079 char-table.
5080 (find_font_encoding): Return nil for unknown encoding.
5081 (Fset_fontset_font): Ignore a font of unknown encoding.
5082
73acf815 50832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5084
1f45f627 5085 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5086
5087 * fontset.c (fontset_face): Handle fallback fonts correctly.
5088 (Ffontset_info): Return infomation about fallback fonts.
5089
73acf815 50902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5091
5092 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5093 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5094 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5095 the case that it is nil.
5096 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5097 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5098
5099 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5100 subset or superset.
5101
73acf815 51022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5103
5104 * emacs.c (main): Call init_charset after syms_of_XXX.
5105
1f45f627 5106 * charset.c (Vcharset_map_directory): Delete.
aca7a3d2
MB
5107 (Vcharset_map_path): New variable
5108 (load_charset_map_from_file): Use Vcharset_map_path instead.
5109 (init_charset): Initialize Vcharset_map_path.
5110 (syms_of_charset): Delete declaration of "charset-map-directory",
5111 add declaration of "charset-map-path".
5112
73acf815 51132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5114
4c4475a8
GM
5115 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5116 ASCII only string.
aca7a3d2
MB
5117
5118 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5119
5120 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5121 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5122
73acf815 51232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5124
5125 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5126
5127 * coding.c (QCmnemonic, QCdefalut_char)
5128 (QCdecode_translation_table, QCencode_translation_table)
5129 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5130 (get_translation_table): Return a list of translation tables if
5131 necessary.
5132 (decode_coding): Call get_translation_table with ENCODEP 0.
5133 (char_encodable_p): If translation_table is non-nil, always call
5134 translate_char.
5135 (Fdefine_coding_system_internal): Accept list of translation
5136 tables as :encode-translation-table and :decode-translation-table.
5137 (Fcoding_system_put): New function.
5138 (syms_of_coding): Declare new symbols. Defsubr
5139 Scoding_system_put.
4c4475a8
GM
5140 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
5141 typically JISX0212.
aca7a3d2
MB
5142
5143 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
5144 when the charset is superset type.
5145
5146 * character.c (translate_char): Accept list of translation tables.
5147
73acf815 51482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5149
1f45f627 5150 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
5151 (CODING_ATTR_TRANS_TBL): New macro.
5152
5153 * coding.c (get_translation_table): New function.
5154 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
5155 (decode_coding, encode_coding): Utilize get_translation_table.
5156 (char_encodable_p, Funencodable_char_position): Translate char if
5157 necessary.
5158 (Ffind_coding_systems_region_internal)
5159 (Fcheck_coding_systems_region): Setup translation table for encode
5160 in a coding system attribute vector in advance.
aca7a3d2
MB
5161 (Fdefine_coding_system_internal): Allow a symbol as translation
5162 table. For shift-jis type coding system, allow 4th charset.
5163
73acf815 51642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5165
5166 * coding.c (decode_coding_sjis): Check the first byte rigidly.
5167
5168 * xdisp.c (get_next_display_element): Pass -1 as POS to
5169 FACE_FOR_CHAR if displaying a C-string.
5170
73acf815 51712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5172
5173 * composite.c (get_composition_id): Handle xoff and yoff in a
5174 composition rule.
5175
5176 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
5177 (struct composition): New member lbearing and rbearing.
5178
5179 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
5180 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 5181 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
5182
5183 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
5184 composition glyph.
5185
73acf815 51862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5187
5188 * print.c: Include charset.h.
5189 (Vprint_charset_text_property): New variable.
5190 (Qdefault): Extern it.
5191 (PRINT_STRING_NON_CHARSET_FOUND)
5192 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
5193 (print_check_string_result): New variable.
5194 (print_check_string_charset_prop): New function.
5195 (print_prune_charset_plist): New variable.
5196 (print_prune_string_charset): New function.
5197 (print_object): Call print_prune_string_charset if
5198 Vprint_charset_text_property is not t.
5199 (print_interval): Print nothing if itnerval->plist is nil.
5200 (syms_of_print): Declare Vprint_charset_text_property as a lisp
5201 variable. Init and staticpro print_prune_charset_plist.
5202
73acf815 52032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5204
5205 * fontset.c (new_fontset_from_font_name): Use the specified font
5206 for all characters in the new fontset.
5207
5208 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5209 OBJECT args.
5210
5211 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
5212 OBJECT args for composition too.
5213
5214 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5215 OBJECT args.
5216
73acf815 52172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5218
5219 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
5220
1f45f627 5221 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 5222 FONT_DEF format.
1f45f627 5223 (fontset_face): New arg id. Change caller.
aca7a3d2 5224 (face_for_char): New args pos and object.
1f45f627 5225 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF
aca7a3d2
MB
5226 format.n
5227 (fs_query_fontset): Check NAME by Fassoc too.
5228 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 5229 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 5230
1f45f627 5231 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 5232
4c4475a8
GM
5233 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
5234 (append_space, extend_face_to_end_of_line)
5235 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5236 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
5237
5238 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
5239 POS and OBJECT args.
5240
5241 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
5242 POS and OBJECT args.
5243
73acf815 52442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5245
5246 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
5247 of GlobalAlloc'ed memory.
5248
73acf815 52492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5250
5251 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
5252
5253 * charset.h (charset_table_used): Delete extern.
5254
5255 * charset.c (charset_table_used): Make it static.
5256 (map_charset_chars): Fix args to c_function with.
5257
5258 * chartab.c (map_sub_char_table_for_charset): Fix args to
5259 c_function with.
5260
5261 * coding.h (enum coding_result_code): Delete
5262 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
5263
5264 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 5265 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
5266 (Vlast_code_conversion_error): New variables.
5267 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
5268 (ONE_MORE_BYTE): Record error if any instead of signaling an
5269 error. If non-ASCII multibyte char is found, return the negative
5270 value of the code. All callers changed to check it.
5271 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
5272 (record_conversion_result): New function. Change all codes setting
5273 coding->result to call this function.
4c4475a8
GM
5274 (detect_coding_utf_8, decode_coding_utf_8)
5275 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
5276 Don't use the local variable incomplete.
aca7a3d2 5277 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
5278 (decode_coding): Fix of flushing out unprocessed data.
5279 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 5280 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
5281
5282 * fontset.c (set_fontset_font): Fix args.
5283
5284 * lisp.h (CHARACTERBITS): Define as 22.
5285
5286 * process.c (send_process): Be sure to set coding->src_multibyte.
5287
5288 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
5289
73acf815 52902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5291
5292 * xdisp.c (handle_auto_composed_prop): Give limit to
5293 Fnext_single_char_property_change.
5294
73acf815 52952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5296
424c157f 5297 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 5298 table weak.
aca7a3d2
MB
5299
5300 * fontset.c (Fset_fontset_font): Fix docstring.
5301
5302 * lisp.h (detect_coding_system): Adjust prototype.
5303
5304 * fileio.c (kill_workbuf_unwind): Delete this function.
5305 (Finsert_file_contents): Adjust the call of detect_coding_system.
5306 Get conversion_buffer by code_conversion_save. Use the macor
5307 CODING_MAY_REQUIRE_DECODING. After decoding, update
5308 coding_system.
5309
5310 * coding.h (make_conversion_work_buffer): Delete extern.
5311 (code_conversion_save): Extern it.
5312
5313 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 5314 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
5315 (decode_coding_utf_8): Don't do eol converion.
5316 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 5317 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
5318 (decode_coding_emacs_mule, decode_coding_iso_2022)
5319 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
5320 Don't do eol converion.
aca7a3d2
MB
5321 (adjust_coding_eol_type): Return a new coding system.
5322 (detect_coding): Don't detect eol. Fix for utf-16 detection.
5323 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
5324 each change.
5325 (decode_coding): Pay attention to undo_list. Do eol convesion for
5326 all types of coding-systems (if necessary).
5327 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 5328 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
5329 Vcode_conversion_reused_work_buf.
5330 (Vcode_conversion_workbuf_name): New variable.
5331 (reused_workbuf_in_use): New variable.
5332 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 5333 (code_conversion_restore): Change argument to cons.
1f45f627
GM
5334 (code_conversion_save): Delete the argument BUFFER. Change callers.
5335 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
5336 Fix for utf-16 detection.
5337 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 5338 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
5339 reused_workbuf_in_use.
5340
73acf815 53412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5342
5343 * keymap.c (store_in_keymap): Pay attention to the case that idx
5344 is a cons specifying a character range.
5345
73acf815 53462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5347
5348 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
5349 HANDLED_RECOMPUTE_PROPS.
5350
5351 * coding.c (Fdefine_coding_system_internal): Fix checking of
5352 ascii compatibility.
5353
73acf815 53542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5355
1f45f627 5356 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
5357 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
5358
5359 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
5360 Resync charset_list to Vemacs_mule_charset_list.
5361
5362 * keymap.c (store_in_keymap): Pay attention to the case that idx
5363 is a cons specifying a character range.
5364
73acf815 53652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5366
5367 * composite.c (update_compositions): Bind inhibit-read-only, etc
5368 to t before calling remove-list-of-text-properties.
5369
5370 * print.c (print_object): Always print ASCII chars as is.
5371
73acf815 53722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5373
1f45f627 5374 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 5375
4c4475a8
GM
5376 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
5377 is a char table.
aca7a3d2 5378
73acf815 53792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5380
1f45f627 5381 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 5382
73acf815 53832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5384
5385 * xfaces.c (set_lface_from_font_name): Fix for the case that
5386 FONTNAME is not fontset name.
5387
73acf815 53882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5389
5390 * fns.c (base64_encode_1): Fix previous change.
5391
73acf815 53922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5393
5394 * fontset.c (set_fontset_font): New function.
5395 (Fset_fontset_font): If a font is specified for a charset, use
5396 map_charset_chars to store the font spec in a fontset.
5397
73acf815 53982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5399
5400 * fontset.c (fontset_face): Create a fallback fontset on demand
5401 (make_fontset): Don't create a fallback fontset here.
5402 (free_face_fontset): Free a fallback fontset (if any) too.
5403 (n_auto_fontsets): Delete this variable.
5404 (auto_fontset_alist): New variable.
5405 (new_fontset_from_font_name): Check auto_fontset_alist.
5406 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
5407 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
5408 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
5409 Defsubr Sfontset_list_all.
5410
73acf815 54112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5412
5413 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5414
73acf815 54152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5416
5417 * fontset.c (Fnew_fontset): Check NAME more rigidly.
5418
73acf815 54192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5420
5421 * editfns.c (Fgoto_char): Fix docstring.
5422
73acf815 54232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5424
5425 * insdel.c (insert_from_gap): Adjust intervals correctly.
5426
73acf815 54272008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5428
5429 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
5430 (pfnGetFontUnicodeRanges): New dynamically loaded function.
5431 (w32_initialize): Try to load it.
5432 (x_get_font_repertory): Use it if available.
5433 (w32_encode_char): Add shortcut for unicode output.
5434
5435 * w32fns.c (w32_load_system_font): Default charset to -1.
5436 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 5437 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
5438 or wildcard charsets.
5439 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
5440 (w32_codepage_for_font): Return CP_UNICODE for unicode.
5441 (w32_to_x_font): Match charset to real charset.
5442 (enum_font_cb2): Always list unicode versions.
5443
5444 * makefile.w32-in (temacs): Increase EMHEAP.
5445
73acf815 54462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5447
5448 * w32term.c (w32_encode_char): New charset parameter.
5449 font_info.encoding becomes encoding_type.
1f45f627 5450 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
5451 (x_new_font): Return quickly if font already set.
5452 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
5453 Use new fs_query_fontset. Try new_fontset_from_font_name.
5454 Use fontset_name for return value.
aca7a3d2
MB
5455
5456 * w32term.h: Declare x_get_font_repertory.
5457
5458 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 5459 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
5460 of encode_coding.
5461 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
5462 decode_coding.
5463
5464 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
5465 of x_new_fontset.
5466 (w32_load_system_font): Initialize charset as unicode.
5467 font_info.encoding becomes encoding_type.
1f45f627
GM
5468 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
5469 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
5470 (syms_of_w32fns): Set get_font_repertory_func.
5471
1f45f627 5472 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 5473 from term.c.
1f45f627 5474 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
5475 encode_coding_object in place of encode_coding.
5476
5477 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
5478 encoding becomes encoding_type.
5479
5480 * term.c (terminal_encode_buffer): Make externally visible.
5481
5482 * makefile.w32-in: Add character.h dependancies.
5483 (character.o, chartab.o): New targets.
5484
73acf815 54852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5486
5487 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 5488 CODING_ID_EOL_TYPE.
aca7a3d2 5489
73acf815 54902008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5491
5492 * coding.c (produce_chars): Revert last change.
5493
73acf815 54942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5495
5496 * charset.h (charset_unicode): Extern it.
5497
5498 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 5499 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 5500 arg MULTIBYTE.
1f45f627 5501 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
5502 change of find_charsets_in_text.
5503 (Fsplit_char): Fix doc. Never return unknown.
5504
5505 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
5506
5507 * coding.c (Fdefine_coding_system_alias): Update
5508 Vcoding_system_list.
5509
5510 * fontset.c (load_font_get_repertory): Pay attention to the case
5511 that ENCODING of a font is specified by a char-table.
5512
5513 * xterm.c (x_get_font_repertory): Handle the case that the
5514 encoding of font is other than Unicode.
5515
73acf815 55162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5517
5518 * term.c (encode_terminal_code): Don't handle glyph-table. Check
5519 if a character is encodable by the terminal coding system. If
5520 not, produces proper number of `?'s. Update
5521 terminal_encode_buffer and terminal_encode_buf_size if necessary.
5522 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
5523
73acf815 55242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5525
5526 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
5527 variables.
1f45f627 5528 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
5529 characters at once. Store the result of encoding in
5530 terminal_encode_buffer.
4c4475a8
GM
5531 (write_glyphs, insert_glyphs): Adjust for the change of
5532 encode_terminal_code.
aca7a3d2
MB
5533 (term_init): Initialize terminal_encode_buffer and
5534 terminal_encode_buf_size.
5535
5536 * coding.c (consume_chars): If coding->src_object is nil, don't
5537 check annotation.
5538
73acf815 55392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5540
5541 * character.c (char_string): Use ASCII_CHAR_P instead of
5542 SINGLE_BYTE_CHAR_P.
5543
73acf815 55442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5545
5546 * xdisp.c (handle_auto_composed_prop): Check if the last
5547 characters of auto-composed region is newly composed with the
5548 following characters.
5549 (handle_composition_prop): Fix checking of point being inside
5550 composition.
5551
73acf815 55522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5553
5554 * fns.c (concat): Don't change multibyteness of the result by
5555 concatenating an 8-bit character.
5556
5557 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
5558 multibyteness of the result when newelt is an 8-bit character.
5559
73acf815 55602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5561
5562 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
5563 EMACS_INT.
5564
5565 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
5566
5567 * xfaces.c (face_numeric_value): Declare dim size_t.
5568 (Finternal_lisp_face_equal_p): Remove unused f.
5569
5570 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
5571 (MATRIX_ROW): Remove unused vars.
5572 (draw_glyphs, x_insert_glyphs, fast_find_position)
5573 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
5574 byte/char counts.
5575
5576 * regex.c (regex_compile): Remove unused var.
5577
5578 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
5579
5580 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5581 (Faccessible_keymaps, where_is_internal): Remove unused vars.
5582
5583 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
5584
5585 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
5586
5587 * fileio.c (Fwrite_region): Remove unused var.
5588
5589 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
5590 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
5591
5592 * composite.c (Fremove_list_of_text_properties): Declare.
5593
1f45f627
GM
5594 * coding.c (inhibit_pre_post_conversion): Remove (unused).
5595 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
5596 (coding_inherit_eol_type): Remove unused attrs.
5597 (detect_coding): Cast arg of detect_eol.
5598
5599 * charset.c (syms_of_charset): Remove unused var p.
5600 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
5601 byte/char counts.
5602
5603 * casetab.c (set_case_table): Remove unused var.
5604
5605 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 5606 unused vars.
aca7a3d2 5607
73acf815 56082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5609
5610 * xterm.c (x_bitmap_mask): Declare.
5611
73acf815 56122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5613
5614 * xterm.c (x_term_init): Fix type error.
5615
5616 * lisp.h: Add Funibyte_char_to_multibyte.
5617
5618 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
5619 (Fset_coding_system_priority): Doc fix.
5620
aca7a3d2
MB
5621 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
5622
5623 * indent.c (check_composition): Make start and end EMACS_INT.
5624
5625 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
5626
5627 * xdisp.c (handle_composition_prop, check_point_in_composition):
5628 Make buffer positions EMACS_INT.
5629
5630 * composite.c (find_composition, run_composition_function)
5631 (update_compositions, Ffind_composition_internal): Make buffer
5632 positions EMACS_INT.
5633
5634 * composite.h (find_composition, update_compositions): Make
5635 position args EMACS_INT.
5636
1f45f627 5637 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
5638
5639 * intervals.c (get_property_and_range):
5640 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
5641
5642 * unexalpha.c: Don't include varargs.h.
5643
73acf815 56442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5645
5646 * coding.h (ENCODE_UTF_8): New.
5647
5648 * Makefile.in (gtkutil.o): Depend on coding.h.
5649
5650 * coding.c (Fset_coding_system_priority): Doc fix.
5651
73acf815 56522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5653
5654 * fileio.c (Finsert_file_contents): Call setup_coding_system in
5655 the case of auto saving.
5656
73acf815 56572008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 5658
4c4475a8
GM
5659 * chartab.c (map_char_table, map_char_table_for_charset): Protect
5660 `range' from GC.
aca7a3d2 5661
73acf815 56622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5663
5664 * coding.c (decode_coding_sjis): Check bytes more rigidly.
5665
73acf815 56662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5667
1f45f627 5668 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
5669 (Fwrite_region): Set Vlast_coding_system_used to the return value
5670 of choose_write_coding_system.
5671
73acf815 56722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5673
5674 * charset.c (Fset_charset_priority): Pay attention to duplicated
5675 arguments.
5676
5677 * coding.c (QCcategory): New variable.
5678 (syms_of_coding): Defsym it. Set all elements of
5679 Vcoding_category_table and their symbol values.
5680 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
5681 coding-category-XXX, and coding-category-list.
5682 (Fdefine_coding_system_internal): Add category in the plist.
5683
73acf815 56842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5685
5686 * callproc.c (Fcall_process): Handle carryover correctly.
5687
1f45f627 5688 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
5689 (raw_text_coding_system): Check NILP (coding_system).
5690 (coding_inherit_eol_type): Check NILP (coding_system) and
5691 NILP (parent).
5692 (consume_chars): Fix for the case of raw-text.
5693
5694 * process.c (read_process_output): Handle carryover correctly.
5695
73acf815 56962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5697
5698 * regex.c (re_search_2): Fix last change.
5699
73acf815 57002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5701
5702 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
5703 target_multibyte. Even in a unibyte case, return a converted
5704 multibyte char.
5705 (GET_CHAR_AFTER): New macro.
5706 (PATFETCH): Translate via multibyte char.
5707 (HANDLE_UNIBYTE_RANGE): Delete this macro.
5708 (SETUP_MULTIBYTE_RANGE): New macro.
5709 (regex_compile): Setup compiled code so that its multibyteness
5710 matches that of a target. Fix the handling of "[X-YZ]" using
5711 SETUP_MULTIBYTE_RANGE.
5712 (analyse_first) <charset>: For filling fastmap for all multibyte
5713 characters, don't check by BASE_LEADING_CODE_P.
5714 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
5715 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 5716 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
5717 (TARGET_CHAR_AND_LENGTH): Delete this macro.
5718 (TRANSLATE_VIA_MULTIBYTE): New macro.
5719 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
5720 It is the same as RE_MULTIBYTE_P (bufp) now.
5721 <exactn>: Translate via multibyte.
5722 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
5723 translate it.
5724 <charset, charset_not>: Fetch a character by
5725 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
5726 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
5727 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
5728 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
5729 by GET_CHAR_AFTER.
c5ad7a3d 5730 (bcmp_translate): Likewise.
aca7a3d2
MB
5731
5732 * search.c (compile_pattern): Check the member target_multibyte,
5733 not the member multibyte of buf.
5734
5735 * lread.c (read1): While reading a string, set force_singlebyte
5736 and force_multibyte correctly.
5737
4c4475a8
GM
5738 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
5739 up of unibyte_to_multibyte_table.
aca7a3d2 5740
73acf815 57412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5742
5743 * coding.c (setup_coding_system): If coding has
5744 post-read-conversion or pre-write-conversion, set
5745 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
5746 respectively.
5747 (decode_coding_gap): Run post-read-conversion if any.
5748
5749 * fileio.c (Finsert_file_contents): Even if we read into a
5750 unibyte buffer, check if we must decode the result or not.
5751
73acf815 57522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5753
5754 * coding.c (make_conversion_work_buffer): Change the work buffer
5755 name to the same one as that of Emacs 21.
5756
73acf815 57572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5758
1f45f627 5759 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
5760 (code_conversion_restore): Don't extern it.
5761
5762 * coding.c (detected_mask): Delete unused variable.
5763 (decode_coding_iso_2022): Pay attention to the byte sequence of
5764 CTEXT extended segment, and retain those bytes as is.
5765 (decode_coding_ccl): Delete unused variable `valids'.
5766 (setup_coding_system): Delete unused variable `category'.
5767 (consume_chars): Delete unused variable `category'. Make it work
5768 for non-multibyte case.
1f45f627 5769 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
5770 (saved_coding): Delete unused variable.
5771 (code_conversion_restore): Don't check saved_coding->destination.
5772 (code_conversion_save): New function.
5773 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
5774 instead of record_unwind_protect.
1f45f627 5775 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 5776 (detect_coding_system): Delete unused variable `mask'.
1f45f627 5777 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
5778
5779 * fileio.c (kill_workbuf_unwind): New function.
5780 (Finsert_file_contents): On replacing, call
5781 make_conversion_work_buffer with correct args, and call
5782 record_unwind_protect with the first arg kill_workbuf_unwind.
5783
5784 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
5785
73acf815 57862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5787
1f45f627 5788 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
5789 (fontset_add): Fix for the case that TO is less than TO1.
5790 (Ffontset_info): Don't use fallback fontset on checking the
5791 default fontset.
5792 (dump_fontset): New function for debugging.
5793
5794 * coding.c (Fdefine_coding_system_internal): Fix for the case that
5795 coding_type is Qcharset.
5796
73acf815 57972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5798
5799 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
5800 (map_char_table): Don't inherit the value from the parent on
1f45f627 5801 initializing VAL. Adjust for the above change.
aca7a3d2 5802
73acf815 58032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5804
5805 * coding.c (Qsignature, Qendian): Delete these variables.
5806 (syms_of_coding): Don't initialize them.
5807 (CATEGORY_MASK_UTF_16_AUTO): New macro.
5808 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
5809 detect_info->found.
5810 (decode_coding_utf_16): Don't detect BOM here.
5811 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
5812 is NOT utf_16_without_bom.
5813 (setup_coding_system): For a coding system of type utf-16, check
5814 if the attribute :endian is Qbig or not (not nil or not), and set
5815 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
5816 (detect_coding): If coding type is utf-16 and BOM detection is
5817 required, detect it.
5818 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 5819 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 5820
73acf815 58212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5822
5823 * coding.c (coding_set_source): Fix for the case that the current
5824 buffer is different from coding->src_object.
5825 (decode_coding_object): Don't use the conversion work buffer if
5826 DST_OBJECT is a buffer.
5827
73acf815 58282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5829
5830 * lread.c (read_emacs_mule_char) [len==2]: Index
5831 emacs_mule_charset correctly.
5832
73acf815 58332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5834
5835 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
5836 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 5837 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
5838 treated specially.)
5839 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
5840 (detected_mask): Remove Big5 bits.
5841
73acf815 58422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5843
5844 The following changes are to make the font rescaling facility
5845 compatible with Emacs 21.
5846
1f45f627 5847 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
5848 Vface_resizing_fonts.
5849 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 5850 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
5851 (split_font_name): Set font->rescale_ratio.
5852 (better_font_p): Pay attention to font->rescale_ratio.
5853 (build_scalable_font_name): Likewise. Change RESX, and RESY
5854 fields.
1f45f627 5855 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 5856
73acf815 58572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5858
5859 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
5860 (Qutf_16_le): Remove these variables.
5861 (syms_of_coding): Don't DEFSYM them.
5862 (decode_coding_utf_16): Fix handling of BOM.
5863 (encode_coding_utf_16): Fix handling of BOM.
5864
73acf815 58652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5866
5867 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 5868 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 5869
73acf815 58702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5871
5872 * coding.c (Fcheck_coding_systems_region): Fix type errors.
5873
73acf815 58742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5875
5876 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
5877 and fix C types.
5878
73acf815 58792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5880
5881 * xdisp.c (SKIP_GLYPHS): New macro.
5882 (set_cursor_from_row): Pay attention to string display properties.
5883
5884 * category.c (copy_category_entry): Fix for the case that RANGE
5885 is an integer.
5886
5887 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
5888
1f45f627 5889 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 5890
73acf815 58912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5892
5893 * charset.c (Fcharset_id_internal): New function.
5894 (syms_of_charset): Defsubr it.
5895
5896 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
5897 with the last arg charset_list acquired from coding.
5898 (Fdefine_coding_system_internal): For ccl-based coding system, fix
5899 the attribute coding_attr_ccl_valids.
5900
5901 * coding.h (enum define_coding_ccl_arg_index): Set the first
5902 member coding_arg_ccl_decoder to coding_arg_max.
5903
1f45f627 5904 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
5905
5906 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
5907 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
5908 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
5909 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
5910 last arg Qnil.
aca7a3d2 5911
73acf815 59122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5913
5914 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
5915 call encode_char.
5916
1f45f627 5917 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 5918
73acf815 59192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 5920
1f45f627 5921 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 5922
73acf815 59232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5924
5925 * dispextern.h (check_face_attributes, generate_ascii_font_name)
5926 (font_name_registry): Don't extern them.
1f45f627 5927 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
5928
5929 * fontset.h (Qfontset): Don't extern it.
5930 (new_fontset_from_font_name): Extern it.
5931
5932 * fontset.c: Give 8 extra slots to fontset objects.
5933 (Qfontset_info): New variable.
5934 (syms_of_fontset): Defsym it.
5935 (FONTSET_FALLBACK): New macro.
5936 (fontset_face): Try also the default fontset.
1f45f627
GM
5937 (make_fontset): Realize a fallback fontset from the default fontset.
5938 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
5939 using split_font_name_into_vector and build_font_name_from_vector.
5940 (Fset_fontset_font): Access the elements of font_spec by enum
5941 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
5942 name by using split_font_name_into_vector.
5943 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
5944 generate a proper font name from the fontset name. Update
5945 Vfontset_alias_alist.
5946 (n_auto_fontsets): New variable.
5947 (new_fontset_from_font_name): New function.
5948 (Ffont_info): Store the information about fonts generated from the
1f45f627 5949 default fontset in the first extra slot of the returned char-table.
aca7a3d2 5950
1f45f627
GM
5951 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
5952 (font_name_registry): Delete function.
aca7a3d2
MB
5953 (split_font_name_into_vector): New function.
5954 (build_font_name_from_vector): New function.
1f45f627 5955 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
5956 (choose_face_font): If we are choosing an ASCII font, and ATTRS
5957 specifies an explicit font name, return the name as is. Make a
5958 list of registy names.
5959
1f45f627 5960 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
5961 of x_new_fontset.
5962 (Fx_create_frame): Don't call x_new_fontset here. Just use
5963 x_list_fonts to check the existence of fonts.
5964
1f45f627 5965 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
5966
5967 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
5968 string. Use new_fontset_from_font_name to create a fontset from a
5969 font name.
5970
1c8658b9
GM
59712008-02-01 Kenichi Handa <handa@m17n.org>
5972
5973 * syntax.c (Vfind_word_boundary_function_table): New name for
5974 Vnext_word_boundary_function_table.
5975 (find-word-boundary-function-table): New name for
5976 next-word-boundary-function-table.
5977
73acf815 59782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5979
5980 * Makefile.in: Fix some dependencies.
5981
5982 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
5983 set it to nil before returning.
5984
5985 * composite.c (update_compositions): Fix type error.
5986
5987 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
5988
73acf815 59892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5990
5991 * xterm.c (x_new_font): Optimize for the case that the font is
5992 already set for the frame.
5993
73acf815 59942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5995
5996 * chartab.c (char_table_ascii): Check if the char table contents
5997 is sub-char-table or not.
4c4475a8
GM
5998 (char_table_set, char_table_set_range): Fix argument to
5999 char_table_ascii.
aca7a3d2
MB
6000
6001 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6002 (detect_coding_utf_8, detect_coding_utf_16)
6003 (detect_coding_emacs_mule, detect_coding_iso_2022)
6004 (detect_coding_sjis, detect_coding_big5)
6005 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6006 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6007 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6008 (MAX_ANNOTATION_LENGTH): New macro.
6009 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6010 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6011 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6012 (ADD_CHARSET_DATA): New macro.
1f45f627 6013 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6014 (decode_coding_emacs_mule, decode_coding_iso_2022)
6015 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6016 Produce charset annotation data in coding->charbuf.
6017 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6018 to charset annotation data in coding->charbuf.
6019 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6020 coding->common_flags if the coding system is iso-2022 based and
6021 uses designation.
1f45f627 6022 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6023 (produce_charset): New function.
6024 (produce_annotation): Handle charset annotation.
6025 (handle_composition_annotation, handle_charset_annotation): New
6026 functions.
6027 (consume_chars): Handle charset annotation. Utilize the above two
6028 functions.
6029 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6030 buffer, get the deleted text as a string and set
6031 coding->src_object to that string.
6032 (detect_coding, detect_coding_system): Use the new struct
6033 coding_detection_info.
6034
6035 * coding.h (struct coding_detection_info): New structure.
1f45f627 6036 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6037 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6038
73acf815 60392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6040
6041 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6042
73acf815 60432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6044
1f45f627 6045 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6046 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6047 to new local and nullify apropos_accumulate before returning.
6048 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6049
73acf815 60502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6051
6052 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6053 correctly.
6054
73acf815 60552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6056
6057 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6058
73acf815 60592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6060
6061 The following changes are to make character composition happen
6062 automatically on displaying.
6063
2a2e8de7 6064 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6065
1f45f627
GM
6066 * composite.h (Qauto_composed, Vauto_composition_function)
6067 (Qauto_composition_function): Extern them.
aca7a3d2 6068
1f45f627
GM
6069 * composite.c (Vcomposition_function_table)
6070 (Qcomposition_function_table): Delete variables.
6071 (Qauto_composed, Vauto_composition_function)
6072 (Qauto_composition_function): New variables.
aca7a3d2
MB
6073 (run_composition_function): Don't call
6074 compose-chars-after-function.
6075 (update_compositions): Clear `auto-composed' text property.
6076 (compose_chars_in_text): Delete this function.
6077 (syms_of_composite): Staticpro Qauto_composed and
6078 Qauto_composition_function. Declare Vauto_composition_function as
6079 a Lisp variable.
6080
6081 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6082
6083 * xdisp.c (it_props): Add an entry for Qauto_composed.
6084 (handle_auto_composed_prop): New function.
6085
6086 * xselect.c (selection_data_to_lisp_data): Don't call
6087 compose_chars_in_text.
6088
73acf815 60892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6090
6091 * keyboard.c (read_char): Modify checking around use of
6092 Vkeyboard_translate_table.
6093
6094 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6095 and fix C types.
6096
73acf815 60972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6098
4c4475a8
GM
6099 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6100 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6101 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6102 the case that the last byte is '\r' correctly.
1f45f627
GM
6103 (decode_coding): Flush out the unprocessed data correctly.
6104 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6105
73acf815 61062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6107
6108 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6109 XK_ISO... case.
6110 (xaw_scroll_callback): Revert last change.
6111
73acf815 61122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6113
1f45f627 6114 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6115
73acf815 61162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6117
6118 * xfaces.c (Vface_resizing_fonts): New variable.
6119 (struct font_name): New member `resizing_ratio'.
6120 (font_resizing_ratio): New function.
6121 (split_font_name): Set font->resizing_ratio.
6122 (better_font_p): Pay attention to font->resizing_ratio.
6123 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6124 RESX, and RESY fields.
6125 (try_alternative_families): Try scalable fonts if
6126 Vscalable_fonts_allowed is not Qt.
6127 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6128
73acf815 61292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6130
6131 * xterm.c (xaw_scroll_callback): Cast correctly.
6132
73acf815 61332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6134
6135 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
6136 (lispy_kana_keys): Comment out.
6137 (make_lispy_event) [XK_kana_A]: Comment out.
6138
6139 * xterm.c (xaw_scroll_callback): Cast call_data.
6140 (XTread_socket): Deal with ASCII keysyms.
6141 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
6142
73acf815 61432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6144
6145 * xterm.c (Vx_keysym_table): New.
6146 (syms_of_xterm): Initialize it.
6147 (XTread_socket): Use it.
6148 From head: Eliminate incorrect optimization that tried to avoid
6149 decoding the output of X*LookupString.
6150 (x_get_font_repertory): Delete charset declaration.
6151
73acf815 61522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6153
1f45f627
GM
6154 * coding.c (detect_coding_charset): If only ASCII bytes are found,
6155 return 0.
aca7a3d2
MB
6156 (Fdefine_coding_system_internal): Setup
6157 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
6158
73acf815 61592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6160
6161 * coding.c (Fcheck_coding_system): Doc fix.
6162
6163 * editfns.c (Finsert_byte): Return a proper value.
6164
73acf815 61652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6166
6167 * coding.c (decode_coding): Fix args to translate_chars. Pay
6168 attention to Vstandard_translation_table_for_decode.
6169 (encode_coding): Fix args to translate_chars. Pay attention to
6170 Vstandard_translation_table_for_encode.
6171
6172 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
6173 SINGLE_BYTE_CHAR_P.
6174
6175 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
6176 not by SINGLE_BYTE_CHAR_P.
6177
6178 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
6179 SINGLE_BYTE_CHAR_P.
6180
6181 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
6182 SINGLE_BYTE_CHAR_P.
6183
6184 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
6185 by SINGLE_BYTE_CHAR_P.
6186
6187 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
6188 SINGLE_BYTE_CHAR_P.
6189
73acf815 61902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6191
6192 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
6193
73acf815 61942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6195
6196 * fns.c (Flanginfo): Fix typo.
6197
6198 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
6199
73acf815 62002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6201
4c4475a8
GM
6202 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
6203 (detect_coding_emacs_mule, detect_coding_iso_2022)
6204 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
6205 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 6206 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 6207 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 6208 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 6209
73acf815 62102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6211
1f45f627
GM
6212 * character.c (char_string): Rename from
6213 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
6214 (string_char): Rename from string_char.
aca7a3d2 6215
4c4475a8
GM
6216 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
6217 if C is greater than MAX_3_BYTE_CHAR.
6218 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
6219 string_char instead of string_char_with_unification.
aca7a3d2 6220
73acf815 62212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6222
6223 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
6224
73acf815 62252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6226
1f45f627 6227 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
6228
6229 * regex.c (re_search_2): Fix for the case of unibyte buffer.
6230
73acf815 62312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6232
6233 * charset.c (define_charset_internal): Rename `supprementary'.
6234
6235 * Makefile.in (lisp, shortlisp): Remove latin-N.
6236
73acf815 62372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6238
6239 * xfns.c (x_window, x_window): Use use_xim.
6240
6241 * xterm.c (use_xim): Initialize.
6242 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6243 (x_term_init): Maybe set use_xim.
6244
6245 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6246
73acf815 62472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6248
6249 * search.c (search_buffer): Fix case-fold-search of multibyte
6250 characters.
6251 (boyer_moore): Rename the last argument to char_high_bits.
6252
73acf815 62532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6254
6255 * xdisp.c (display_string): Fix for the case of zero width glyph.
6256
6257 * xfns.c (x_set_font): Change the error message of the case that
6258 x_new_fontset returns Qt.
6259
6260 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
6261 (Finternal_set_lisp_face_attribute): Use signal_error for the
6262 error of invalid fontset.
6263
6264 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
6265 fontset, return Qt.
6266
73acf815 62672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6268
aca7a3d2
MB
6269 * unexelf.c (unexec): Make .got handling not SGI-specific.
6270
6271 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
6272
6273 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
6274
6275 * keyboard.c (read_key_sequence): Fix type error.
6276
6277 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
6278 type error.
6279
6280 * fontset.c (fontset_add): Return Lisp_Object.
6281
73acf815 62822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6283
6284 * charset.h (charset_ordered_list_tick): Declare extern.
6285
73acf815 62862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6287
73acf815 6288 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
6289 for handling syntax, category, and case conversion for unibyte
6290 characters by converting them to multibyte on the fly. With these
6291 changes, we don't have to setup syntax and case tables for unibyte
6292 characters in each language environment.
6293
6294 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
6295 multibyte if necessary.
6296
6297 * bytecode.c (Fbyte_code): Likewise.
6298
6299 * character.h (LEADING_CODE_LATIN_1_MIN)
6300 (LEADING_CODE_LATIN_1_MAX): New macros.
6301 (unibyte_to_multibyte_table): Extern it.
6302 (unibyte_char_to_multibyte): New macro.
6303 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
6304 (CHAR_LEADING_CODE): New macro.
6305 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
6306
6307 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 6308 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
6309 (multibyte_char_to_unibyte): If C is an eight-bit character,
6310 convert it to the corresponding byte value.
6311
6312 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
6313 not 1, singals an error. Update the elements of
6314 unibyte_to_multibyte_table.
6315 (init_charset_once): Initialize unibyte_to_multibyte_table.
6316 (syms_of_charset): Define the charset `iso-8859-1'.
6317
aca7a3d2
MB
6318 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
6319 as is without converting it to unibyte. In a unibyte buffer,
6320 convert C to multibyte before checking the syntax.
6321
1f45f627 6322 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
6323
6324 * minibuf.c (Fminibuffer_complete_word): Use the macro
6325 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
6326
6327 * regex.h (struct re_pattern_buffer): New member target_multibyte.
6328
6329 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
6330 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
6331 that is zero, convert an eight-bit char to multibyte.
6332 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
6333 non-emacs case.
6334 (PATFETCH): Convert an eight-bit char to multibyte.
6335 (HANDLE_UNIBYTE_RANGE): New macro.
6336 (regex_compile): Setup the compiled pattern for multibyte chars
6337 even if the given regex string is unibyte. Use PATFETCH_RAW
6338 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 6339 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 6340 only for ASCII chars.
1f45f627 6341 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
6342 is multibyte.
6343 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
6344 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 6345 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
6346 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
6347 multibyte always 1.
6348 (re_search_2): In emacs, set the locale variable multibyte to 1,
6349 otherwise to 0. New local variable target_multibyte. Check it
6350 to decide the multibyteness of STR1 and STR2. If
6351 target_multibyte is zero, convert unibyte chars to multibyte
6352 before translating and checking fastmap.
6353 (TARGET_CHAR_AND_LENGTH): New macro.
6354 (re_match_2_internal): In emacs, set the locale variable multibyte
6355 to 1, otherwise to 0. New local variable target_multibyte. Check
6356 it to decide the multibyteness of STR1 and STR2. Use
6357 TARGET_CHAR_AND_LENGTH to fetch a character from D.
6358 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 6359 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
6360 target_multibyte, not with multibyte.
6361 <begline>: Declare the local variable C as `unsigned'.
6362 (bcmp_translate): Change the last arg name to target_multibyte.
6363
6364 * search.c (compile_pattern_1): Don't adjust the multibyteness of
6365 the regexp pattern and the matching target. Set cp->buf.multibyte
6366 to the multibyteness of the regexp pattern. Set
1f45f627 6367 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
6368 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
6369 FETCH_STRING_CHAR_ADVANCE.
6370 (Freplace_match): Convert unibyte chars to multibyte.
6371
4c4475a8
GM
6372 * syntax.c (char_quoted, back_comment, scan_words)
6373 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
6374 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 6375 unibyte chars to multibyte.
1f45f627
GM
6376 (skip_chars): Delete the arg syntaxp, and move the code for
6377 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
6378 Fix the case that the multibyteness of STRING and the current
6379 buffer doesn't match.
6380 (skip_syntaxes): New function.
6381 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
6382 SINGLE_BYTE_CHAR_P.
aca7a3d2 6383
73acf815 63842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6385
6386 * xfaces.c (QCfontset): New variable.
6387 (LFACE_FONTSET): New macro.
6388 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
6389 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
6390 (Finternal_set_lisp_face_attribute)
6391 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
6392 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
6393 check also LFACE_FONTSET_INDEX.
6394 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
6395 attrs[LFACE_FONT_INDEX].
6396 (syms_of_xfaces): Intern and staticpro QCfontset.
6397
6398 * dispextern.h (enum lface_attribute_index): New member
6399 LFACE_FONTSET_INDEX.
6400
6401 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
6402
73acf815 64032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6404
6405 * coding.c (coding_set_destination): Fix coding->destination for
6406 the case converting a region.
6407 (encode_coding_utf_8): Encode eight-bit chars as single byte.
6408 (encode_coding_object): Fix coding->dst_pos and
6409 coding->dst_pos_byte for the case converting a region.
6410
6411 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
6412
6413 * character.h (BYTE8_STRING): New macro.
6414
6415 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
6416
73acf815 64172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6418
6419 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
6420 characters by octal form.
6421
6422 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
6423
1f45f627 6424 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
6425 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
6426 _fetch_multibyte_char_len.
aca7a3d2
MB
6427 (FETCH_CHAR_AS_MULTIBYTE): New macro.
6428
1f45f627 6429 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 6430
1f45f627 6431 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 6432 the case conversion change the byte length.
1f45f627 6433 (casify_region): Likewise.
aca7a3d2 6434
1f45f627 6435 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 6436
1f45f627 6437 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
6438 (syms_of_character): Setup Vprintable_chars.
6439
6440 * editfns.c (Fchar_equal): Fix for the unibyte case.
6441 (Finsert_byte): New function.
6442 (syms_of_editfns): Defsubr it.
6443
6444 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
6445 of direct code 0x3ffff.
6446
6447 * search.c (Freplace_match): Fix for the unibyte case.
6448
73acf815 64492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6450
6451 * lread.c (safe_to_load_p): Fix the logic.
6452
6453 * syntax.c (scan_words): Don't treat characters belonging to
6454 different scripts as constituting a word.
6455
6456 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
6457
1f45f627 6458 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
6459
6460 * emacs.c (main): In the case of --unibyte, instead of aborting on
6461 finding non-empty buffer, make it unibyte.
6462
73acf815 64632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6464
6465 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
6466 to create a fontset.
6467
73acf815 64682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6469
6470 * character.c (Funibyte_char_to_multibyte): Doc fix.
6471
6472 * xfns.c [HAVE_STDLIB_H]: Fix last change.
6473
73acf815 64742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6475
6476 * fontset.c (fontset_add): Make the type `int'.
6477 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
6478
4c4475a8
GM
6479 * character.c (unibyte_char_to_multibyte)
6480 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 6481 charset_unibyte, not charset_primary.
aca7a3d2 6482
1f45f627 6483 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 6484
1f45f627
GM
6485 * charset.c (charset_unibyte): Rename from charset_primary.
6486 (Funibyte_charset): Rename from Fprimary_charset.
6487 (Fset_unibyte_charset): Rename from Fset_primary_charset.
6488 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
6489
6490 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
6491 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
6492 it->multibyte_p is zero.
6493
6494 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 6495 Delete extern.
aca7a3d2 6496
73acf815 64972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6498
6499 * coding.c (Fdefine_coding_system_internal): Fix category setting
6500 for a coding system of type iso-2022.
6501
73acf815 65022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6503
1f45f627 6504 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 6505
73acf815 65062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6507
6508 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
6509 (next-word-boundary-function-table): Declare it as a Lisp variable
6510 in syms_of_syntax.
aca7a3d2
MB
6511 (scan_words): Call functions in Vnext_word_boundary_function_table
6512 if any.
6513
6514 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
6515
6516 * fontset.c (fs_load_font): If fontp->charset is not negative,
6517 return fontp without setting its members.
6518
73acf815 65192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6520
aca7a3d2
MB
6521 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
6522
6523 * m/sparc.h (HAVE_ALLOCA): Delete.
6524
6525 * s/irix6-5.h: Don't include strings.h.
6526 (bcopy, bzero, bcmp): Don't undef.
6527
6528 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
6529
6530 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
6531 (TIOCSIGSEND): Don't test IRIX6.
6532 (bcopy, bzero, bcmp): Define conditionally.
6533
73acf815 65342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6535
6536 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 6537 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
6538 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
6539
6540 * callproc.c (Fcall_process): Don't call insert_1_both directly if
6541 we are inserting a process output into a multibyte buffer.
6542
6543 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
6544 multibyte_char_to_unibyte.
6545
6546 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
6547 by the primary charset, make it eight-bit char.
6548 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
6549
1f45f627
GM
6550 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
6551 (charset_8_bit__control, charset_8_bit_graphic)
6552 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
6553 (define_charset_internal): New function.
6554 (syms_of_charset): Call define_charset_internal for pre-defined
6555 charsets.
6556
6557 * charset.h (charset_8_bit): Extern it.
6558
1f45f627 6559 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
6560 of Fset_buffer_multibyte.
6561 (encode_coding_raw_text): Increment p0 in the loop.
6562
1f45f627 6563 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 6564
1f45f627 6565 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
6566 for the change of Fset_buffer_multibyte.
6567
6568 * fns.c (Fstring_to_multibyte): New function.
6569 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
6570
73acf815 65712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6572
6573 * xfns.c (x_put_x_image): Declare args.
6574
1f45f627 6575 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
6576 (try_font_list): Declare an arg.
6577
6578 * xdisp.c (message2_nolog, set_message): Declare an arg.
6579
6580 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
6581
6582 * syntax.c (scan_sexps_forward): Declare an arg.
6583
6584 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
6585 Declare an arg.
6586
6587 * lisp.h (Fnew_fontset): Declare.
6588
6589 * keymap.c (push_key_description): Call CHARACTERP correctly.
6590
1f45f627 6591 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
6592 (face_for_char): Delete unused vars.
6593 (Fset_fontset_font): Doc fix. Delete unused vars.
6594
6595 * doc.c (Fsubstitute_command_keys): Delete unused vars.
6596
6597 * composite.c (update_compositions): Declare arg.
6598
6599 * cm.c (calccost, cmgoto): Declare args.
6600
6601 * charset.c: Remove `emacs' conditional. Doc fixes.
6602 (map_char_table_for_charset): Declare.
6603
1f45f627 6604 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 6605
1f45f627 6606 * ccl.c: Remove `emacs' conditional.
aca7a3d2 6607
73acf815 66082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6609
6610 The following changes are to allow specifying multiple font
6611 patterns for a character range (specified by script or charset).
6612
6613 * Makefile.in (abbrev.o): Depend on syntax.h.
6614 (xfaces.o): Depend on charset.h.
6615
6616 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
6617 SINGLE_BYTE_CHAR_P.
6618
6619 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
6620
6621 * character.h (Vchar_script_table): Extern it.
6622
1f45f627 6623 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
6624 (Vchar_script_table, Qchar_script_table): New variable.
6625 (syms_of_character): Declare Vchar_script_table as a lisp variable
6626 and initialize it.
6627
1f45f627 6628 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
6629 have property char-table-extra-slots, make no extra slot.
6630
1f45f627 6631 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
6632 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
6633 SINGLE_BYTE_CHAR_P.
1f45f627
GM
6634 (choose_face_font, lookup_non_ascii_face, font_name_registry):
6635 Add prototypes.
6636 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
6637 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
6638
6639 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 6640 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
6641 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
6642
6643 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 6644 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
6645 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
6646 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
6647 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
6648 (fontset_ref_and_range, fontset_add, reorder_font_vector)
6649 (load_font_get_repertory): New functions.
1f45f627 6650 (fontset_set): Delete.
aca7a3d2 6651 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 6652 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
6653 (free_face_fontset): Use ASET istead of AREF (X) = Y.
6654 (face_for_char): Don't call lookup_face.
6655 (make_fontset_for_ascii_face): New arg FACE.
6656 (fs_load_font): New arg CHARSET_ID. Don't check
6657 Vfont_encoding_alist here.
6658 (find_font_encoding): New function.
6659 (list_fontsets): Use STRINGP, not ! NILP.
6660 (accumulate_script_ranges): New function.
6661 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
6662 re-written to handle new fontset structure.
6663 (Ffontset_font): Return a copy of element.
6664 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
6665 docstring of font-encoding-alist.
6666
6667 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
6668 (Fset_fotset_font): Fix arguments to 5.
6669
1f45f627 6670 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
6671
6672 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
6673 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 6674 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
6675 lookup_named_face.
6676
6677 * xfaces.c: Include charset.h.
1f45f627
GM
6678 (load_face_font): Delete argument C. Change caller.
6679 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
6680 (font_name_registry): New function.
6681 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 6682 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
6683 Lookup only ascii faces.
6684 (lookup_non_ascii_face): New function.
1f45f627
GM
6685 (lookup_named_face): Delete argument C. Change caller.
6686 (lookup_derived_face): Delete argument C. Change caller.
6687 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 6688 a string, just call font_list with it.
1f45f627
GM
6689 (choose_face_font): Delete arguments FACE and C. New arg
6690 FONT_SPEC. Change caller.
4c4475a8
GM
6691 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
6692 Change caller.
aca7a3d2
MB
6693 (realize_non_ascii_face): New function.
6694 (realize_x_face): Call load_face_font here.
1f45f627 6695 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
6696 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
6697 get a face ID.
6698 (dump_realized_face): Don't print charset of FACE.
6699
6700 * xfns.c (x_set_font): Always call x_new_fontset and
6701 store_frame_parameter.
6702 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 6703 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
6704
6705 * xterm.h (x_get_font_repertory): Extern it.
6706
6707 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
6708 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
6709 it->multibyte_p is zero.
6710 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
6711 (x_new_fontset): If FONTSETNAME doesn't match any existing
6712 fontsets, create a new one.
6713 (x_get_font_repertory): New function.
6714
73acf815 67152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6716
6717 * coding.c (Ffind_coding_systems_region_internal): Detect an
6718 ASCII only string correctly.
6719
6720 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
6721 version is 0.
6722
73acf815 67232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6724
6725 * lread.c: Include "coding.h".
1f45f627
GM
6726 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
6727 (load_each_byte, unread_char): New variables.
6728 (readchar_backlog): Delete.
aca7a3d2
MB
6729 (readchar): Return a character unless load_each_byte is nonzero.
6730 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
6731 cons. If unread_char is not -1, simply return it.
6732 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
6733 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
6734 (read_multibyte): Delete.
aca7a3d2
MB
6735 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
6736 (read_emacs_mule_char): New functions.
6737 (Fload): Even if the file doesn't have the extention ".elc", if
6738 safe_to_load_p returns a positive version number, assume that the
6739 file contains bytecompiled code. If the version is less than 22,
6740 load the file while decoding multibyte sequences by emacs-mule.
6741 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
6742 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
6743 (Fread_from_string): Pay attention to the case that STREAM is a cons.
6744 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
6745 (read1): Set load_each_byte to 1 temporarily while handling
6746 #@NUMBER. Don't call read_multibyte.
6747 (read_vector): Call Fread with a cons. If readcharfun is
6748 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 6749 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
6750 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
6751 and Qload_force_doc_strings.
6752
73acf815 67532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6754
6755 * xdisp.c (face_before_or_after_it_pos): Call
6756 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
6757
73acf815 67582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6759
6760 * character.h (TRAILING_CODE_P): New macro.
1f45f627 6761 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
6762 (string_char_with_unification): Fix prototype.
6763 (Vscript_alist): Extern it.
6764
6765 * character.c (Vscript_alist): New variable.
4c4475a8
GM
6766 (string_char_with_unification, str_as_unibyte)
6767 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
6768 (syms_of_character): Declare script-alist as a Lisp variable.
6769
6770 * charset.h (Vcharset_ordered_list): Extern it.
6771 (charset_ordered_list_tick): Extern it.
6772 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
6773 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
6774 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
6775 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros
1f45f627 6776 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
6777
6778 * charset.c (charset_ordered_list_tick): New variable.
6779 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
6780 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6781 deunify intead of unify a charset.
6782 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
6783 (find_charsets_in_text): Add `const' to arguemnts and local variables.
6784 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
6785 detecting of invalid code.
6786 (Fset_charset_priority): Increment charset_ordered_list_tick.
6787 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
6788 and TO_CODE.
6789
6790 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
6791 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
6792 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
6793 (decode_coding_ccl, consume_chars)
6794 (Ffind_coding_systems_region_internal)
6795 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
6796
6797 * print.c (print_object): Use octal form for printing the
6798 contents of a bool vector.
6799
73acf815 68002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6801
6802 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
6803 <version == 20>: Refuse to load.
6804
73acf815 68052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6806
6807 * fns.c: Move coding.h.
6808 (Qcodeset, Qdays, Qmonths): New.
6809 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 6810 (Flocale_codeset): Delete.
aca7a3d2 6811 (Flanginfo): New function.
1f45f627 6812 (syms_of_fns): Change accordingly.
aca7a3d2
MB
6813
6814 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
6815
73acf815 68162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6817
6818 * casetab.c (init_casetab_once, init_casetab_once): Fix
6819 CHAR_TABLE_SET call.
6820
6821 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
6822
6823 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
6824
6825 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
6826 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
6827 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
6828
6829 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
6830
6831 * coding.c (ENCODE_DESIGNATION, decode_eol)
6832 (make_conversion_work_buffer, code_conversion_restore)
6833 (Fdefine_coding_system_internal): Convert Lisp types.
6834 (code_conversion_restore): Use EQ, not ==.
6835 (Fencode_coding_string): Fix code_convert_string call.
6836
6837 * coding.h (code_convert_region): Fix prototype.
6838
1f45f627 6839 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
6840
6841 * fontset.c (fontset_ref, fontset_set, fs_load_font)
6842 (Ffontset_info): Convert Lisp types.
6843
6844 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
6845
6846 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
6847
6848 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
6849
6850 * chartab.c: Include "...h", not <...h> in some cases.
6851
6852 * callproc.c (Fcall_process): Remove unused variables.
6853
73acf815 68542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6855
6856 * coding.c (Fset_coding_system_priority): Allow null arg list.
6857
73acf815 68582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6859
6860 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6861 (Fself_insert_and_exit): Use CHARACTERP.
6862
6863 * callproc.c (Fcall_process): Remove unused vars.
6864
6865 * xterm.c (XTread_socket): Add extra dead keysyms.
6866
6867 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
6868
6869 * dispextern.h: Remove prototypes for redraw_frame,
6870 redraw_garbaged_frames.
6871
6872 * cmds.c (Fself_insert_command): Use CHARACTERP.
6873
6874 * chartab.c (make_sub_char_table): Remove unused var.
6875 (Fset_char_table_default, Fmap_char_table): Doc fix.
6876
6877 * keymap.c (access_keymap): Remove generic char code.
6878 (push_key_description): Use CHARACTERP.
6879
73acf815 68802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6881
6882 * charset.c: Doc fixes.
6883 (Funify_charset): Extra checking.
6884
73acf815 68852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6886
6887 * lread.c: Remove some unused variables.
6888 (safe_to_load_p): If safe, return the magic number version byte.
6889 (Fload): Maybe use load-with-code-conversion.
6890
73acf815 68912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6892
6893 * category.c (Fmodify_category_entry): Don't modify the contents
6894 of category_set for characters out of the range. Avoid
6895 unnecessary modification.
6896
1f45f627 6897 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
6898 Vchar_unify_table. The default value of the table is now nil.
6899
6900 * character.c (syms_of_character): Setup Vchar_width_table for
6901 eight-bit-control and raw-byte chars.
6902
6903 * charset.h (enum define_charset_arg_index): Delete
6904 charset_arg_parents and add charset_arg_subset and
6905 charset_arg_superset.
6906 (enum charset_attr_index): Delete charset_parents and add
6907 charset_subset and charset_superset.
6908 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
6909 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 6910 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
6911 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
6912 (CHARSET_SUPERSET): New macros.
6913 (charset_work): Extern it.
6914 (ENCODE_CHAR): Use charset_work.
1f45f627 6915 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
6916 (map_charset_chars): Extern it.
6917
6918 * charset.c (load_charset_map): Set the default value of encoder
6919 and deunifier char-tables to nil.
1f45f627 6920 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
6921 map_char_table_for_charset instead of map_char_table.
6922 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 6923 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
6924 `define-charset' (:parents -> :subset or :superset).
6925 (charset_work): New variable.
4c4475a8
GM
6926 (encode_char, syms_of_charset): Adjust for the change of
6927 Fdefine_charset_internal.
aca7a3d2
MB
6928 (Ffind_charset_string): Setup the vector `charsets' correctly.
6929
1f45f627 6930 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 6931 the previous change.
1f45f627 6932 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
6933 (map_sub_char_table_for_charset): New function.
6934 (map_char_table_for_charset): New function.
6935
6936 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 6937 (describe_char_table): Delete.
aca7a3d2 6938
1f45f627 6939 * lisp.h (map_charset_chars): Delete.
aca7a3d2 6940
73acf815 69412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6942
6943 * fns.c (count_combining): Comment out (unused).
6944 (Flocale_codeset): New.
6945 (syms_of_fns): Defsubr it.
6946
6947 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 6948 (size_t): Remove.
aca7a3d2 6949
73acf815 69502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6951
6f69e89b 6952 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 6953
73acf815 69542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6955
6956 * character.c (syms_of_character): Set the default value of
6957 Vprintable_chars to Qnil.
6958
73acf815 69592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6960
6961 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
6962
73acf815 69632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6964
6965 * charset.c (load_charset_map): Handle the case that from < to
6966 correctly.
6967
4c4475a8
GM
6968 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
6969 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
6970 Pay attention to raw-8-bit chars.
aca7a3d2 6971
73acf815 69722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6973
4c4475a8
GM
6974 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
6975 It is not bytecompiled now.
aca7a3d2
MB
6976
6977 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
6978 (charset_jisx0208): New variables.
6979 (Fdefine_charset_internal): Setup them if appropriate.
6980 (init_charset_once): Initialize them to -1.
6981
1f45f627
GM
6982 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
6983 (charset_jisx0208): Extern them.
aca7a3d2
MB
6984
6985 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
6986 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
6987 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
6988 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
6989 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
6990 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
6991 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
6992 (encode_coding_iso_2022): Change the 1st arg to
6993 ENCODE_ISO_CHARACTER to a variable.
6994
73acf815 69952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6996
6997 * charset.h (enum define_charset_arg_index): New enums
6998 charset_arg_min_code and charset_arg_max_code.
6999 (struct charset): New member char_index_offset.
7000
4c4475a8
GM
7001 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7002 Take charset->char_index_offset into account.
aca7a3d2
MB
7003 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7004 args[charset_arg_max_code]. Setup charset.char_index_offset.
7005 (syms_of_charset): Fix args to Fdefine_charset_internal.
7006
73acf815 70072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7008
7009 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7010
73acf815 70112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7012
7013 * coding.c: Doc fixes.
7014 (Fcoding_system_aliases): Fix return value.
7015 (Qmac): Remove (duplicated) definition.
7016
73acf815 70172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7018
7019 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7020 functions.
7021
7022 * character.c (Fstring): Doc fix.
7023
7024 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7025
7026 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7027 ids.
7028 (font-encoding-alist): Doc fix.
7029
73acf815 70302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7031
7032 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7033 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7034
7035 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7036 for K&R.
7037
7038 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7039
7040 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7041 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7042
1f45f627 7043 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7044
7045 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7046
73acf815 70472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7048
7049 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7050
1f45f627 7051 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7052
2a2e8de7 70532008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7054
7055 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7056
1f45f627 7057 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7058
73acf815 70592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7060
4c4475a8 7061 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7062 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7063
73acf815 70642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7065
1f45f627 7066 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7067 Fdefine_coding_system_internal.
7068 (Fdefine_coding_system_internal): For a coding system of
7069 `charset' type, store a list of charset IDs in
7070 `charset_attr_charset_valids' element of coding attributes.
7071
73acf815 70722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7073
7074 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7075 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7076 caller. Handle 2-byte and 3-byte charsets correctly.
7077 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7078 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7079 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7080 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7081 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7082 sequence.
7083 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7084 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7085 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7086 and alt&rule composition.
7087 (decode_coding_iso_2022): Handle composition correctly.
7088 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7089
7090 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7091 re-defining a charset. If the charset has :emacs-mule-id, setup
7092 emacs_mule_bytes.
1f45f627 7093 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7094
73acf815 70952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7096
4c4475a8
GM
7097 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7098 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7099 encoding, produce a character specified by
7100 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7101
73acf815 71022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7103
7104 * xterm.c (XSetIMValues): Declare.
7105
7106 * process.c: Conditionally include sys/wait.h, pty.h.
7107
1f45f627 7108 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7109
1f45f627 7110 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7111
7112 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7113
7114 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7115 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7116 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7117 variables.
7118
7119 * character.h (string_escape_byte8): Declare.
7120
7121 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7122 unused vars.
7123 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7124 (Fmap_charset_chars): Doc fix.
7125
1f45f627 7126 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7127 (Fset_coding_system_priority, Fset_coding_system_priority)
7128 (Fdefine_coding_system_internal): Doc fix.
7129
73acf815 71302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7131
7132 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
7133
73acf815 71342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7135
7136 * character.c (string_escape_byte8): Make multibyte string with
7137 correct size.
7138
7139 * charset.c (Fmake_char): Delete unnecessary code.
7140
73acf815 71412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7142
7143 * xfns.c (x_encode_text): Allocate coding.destination here, and
7144 call encode_coding_object with dst_object Qnil.
7145
7146 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
7147 multibyte form correctly.
7148
7149 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
7150 against Vfont_encoding_alist.
7151
7152 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
7153 handling of charset list.
7154 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
7155 (decode_coding_object): Move point to coding->dst_pos before
7156 calling post-read-conversion function.
7157 (encode_coding_object): Give correct arguments to
7158 pre-write-conversion. Ignore the return value of
7159 pre-write-conversion function. Pay attention to the case that
7160 pre-write-conversion changes the current buffer. If dst_object is
7161 Qt, even if coding->src_bytes is zero, allocate at least one byte
7162 to coding->destination.
7163
7164 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
7165
7166 * charset.c (Fmake_char): Make it more backward compatible.
7167 (Fmap_charset_chars): Fix docstring.
7168
73acf815 71692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7170
7171 * coding.c: Doc fixes.
7172 (Fdefine_coding_system_alias): Use names, not symbols, in
7173 coding-system-alist.
7174
73acf815 71752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7176
7177 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
7178 of calling free_realized_face.
7179
2a2e8de7 71802008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 7181
1f45f627
GM
7182 * charset.c (read_hex): Don't treat SPC as a comment starter.
7183 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
7184 (Fdecode_char): Fix typo.
7185
73acf815 71862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7187
7188 * charset.h (struct charset): New member `code_space_mask'.
7189
1f45f627 7190 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
7191 (encode_coding_charset, Fdefine_coding_system_internal):
7192 Delete the local variable charset.
aca7a3d2
MB
7193 (Fdefine_coding_system_internal): Setup
7194 attrs[coding_attr_charset_valids] correctly.
7195
7196 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
7197 member to check if CODE is valid or not.
7198 (Fdefine_charset_internal): Initialize `code_space_mask' member.
7199 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
7200 is within the range of charset->min_code and carset->max_code.
7201
73acf815 72022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7203
7204 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
7205
7206 * dispextern.h (generate_ascii_font): Fix return type.
7207
7208 * xfaces.c (generate_ascii_font): Fix arg declaration.
7209
7210 * coding.c (coding_inherit_eol_type)
7211 (Fset_terminal_coding_system_internal)
7212 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
7213
73acf815 72142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7215
7216 * coding.c (decode_coding_charset, encode_coding_charset): Handle
7217 multiple charsets correctly.
7218
73acf815 72192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7220
7221 * search.c (boyer_moore): Fix handling of mulitbyte character
7222 translation.
7223
7224 * xdisp.c (display_mode_element): When the variable `elt' is
7225 changed, update `this' and `lisp_string'.
7226
73acf815 72272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7228
7229 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
7230
7231 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 7232 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
7233
7234 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
7235 (load_charset_map): Rename from parse_charset_map. New args
7236 entries and n_entries. Change caller.
7237 (load_charset_map_from_file): Rename from load_charset_map.
7238 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
7239 the tail.
7240 (load_charset_map_from_vector): New function.
7241 (Fdefine_charset_internal): Setup charset.compact_codes_p.
7242 (encode_char): If the charset is compact, change a character index
7243 to a code point.
7244
7245 * coding.c (coding_alloc_by_making_gap): Check the case that the
7246 source and destination are the same correctly.
7247 (decode_coding_raw_text): Set coding->consumed_char and
7248 coding->consumed to 0.
7249 (produce_chars): If coding->chars_at_source is nonzero, update
7250 coding->consumed_char and coding->consumed before calling
7251 alloc_destination.
7252 (Fdefine_coding_system_alias): Register ALIAS in
7253 Vcoding_system_alist.
7254 (syms_of_coding): Define `no-convesion' coding system at the tail.
7255
7256 * fileio.c (Finsert_file_contents): Set coding_system instead of
7257 val. If the current buffer is multibyte, always call
7258 decode_coding_gap.
7259
7260 * xfaces.c (try_font_list): Give higher priority to fontset's
7261 family than face's family.
7262
73acf815 72632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7264
7265 * callproc.c (Fcall_process): Be sure to give the current buffer
7266 to decode_coding_c_string.
7267
7268 * xfaces.c (try_font_list): Give a family specified in a fontset
7269 higher priority than a family specified in a face.
7270
73acf815 72712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7272
7273 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
7274 Fix arguments to insert_from_buffer.
7275
7276 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
7277
73acf815 72782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7279
7280 * coding.c (produce_chars): Set the variable `multibytep' correctly.
7281 (decode_coding_gap): Set coding->dst_multibyte correctly.
7282
73acf815 72832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7284
7285 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 7286 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
7287 (encode_coding_utf_16): Substitute coding->default_char for
7288 non-Unicode characters.
7289 (decode_coding): Don't call record_insert here.
7290 (setup_coding_system): Initialize `surrogate' of
7291 coding->spec.utf_16 to 0.
7292 (EMIT_ONE_BYTE): Fix for multibyte case.
7293
7294 * insdel.c (insert_from_gap): Call record_insert.
7295
73acf815 72962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7297
7298 * casefiddle.c (casify_region): Fix multibyte case.
7299
7300 * character.c (c_string_width): Add return type `int'.
1f45f627 7301 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
7302
7303 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 7304 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
7305 (CHAR_STRING_ADVANCE): Make it do-while statement.
7306
1f45f627 7307 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
7308 DEPTH == 3. Add workaround code for a GCC optimization bug.
7309
7310 * charset.c (parse_charset_map): Remove an unused variable.
7311
7312 * coding.c: Delete unused variables.
7313
7314 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
7315 earlier. If inserted is zero and the coding system doesn't
7316 require flushing, don't call decode_coding_gap.
7317
7318 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
7319
73acf815 73202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7321
7322 The following changes are for using Unicode as an internal
7323 character model, and use UTF-8 format for buffer/string
7324 representation.
7325
1f45f627 7326 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
7327 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
7328
7329 * Makefile.in (obj): Add character.o and chartab.o.
7330 (lisp, shortlisp): Remove utf-8.elc:
7331 (*.o): For many files, change dependency on charset.h to
7332 character.h, and add dependency on character.h.
7333 (character.o, chartab.o): New targets.
7334
1f45f627
GM
7335 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
7336 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
7337 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
7338 of "charset.h".
7339
7340 * dired.c, filelock.c: Include "character.h".
7341
7342 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 7343 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7344 (syms_of_alloc): Remove defsubr for Smake_char_table.
7345
7346 * buffer.c: Include "character.h" instead of "charset.h", don't
7347 include "coding.h".
1f45f627 7348 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
7349
7350 * buffer.h: EXFUN Fbuffer_live_p.
7351
7352 * callproc.c: Include "character.h" instead of "charset.h".
7353 (Fcall_process): Big change for the new code-conversion APIs.
7354
7355 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 7356 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
7357 map_char_table spec.
7358 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
7359 accessing the char table structure.
7360
7361 * chartab.c: New file that implements char table.
7362
7363 * category.c: Include "character.h".
7364 (copy_category_entry): New function.
7365 (copy_category_table): Call map_char_table and copy_category_entry.
7366 (Fmake_category_table): Initialize all top-vel slots.
7367 (char_category_set): New function.
1f45f627 7368 (modify_lower_category_set): Delete.
aca7a3d2
MB
7369 (Fmodify_category_entry): Call char_table_ref_and_range.
7370
7371 * category.h (CATEGORY_SET): Just call char_category_set.
7372
7373 * ccl.c: Include "character.h".
7374 (Qccl, Qcclp): New variables.
7375 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
7376 it's less than 256.
1f45f627
GM
7377 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
7378 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 7379 and DST type.
1f45f627
GM
7380 (ccl_driver): Change types of argument, adjust code accordingly.
7381 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
7382 ccl_driver.
7383 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
7384
1f45f627
GM
7385 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
7386 New members src_multibyte, dst_multibyte, consumed, and produced.
7387 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 7388 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 7389 (ccl_driver): Update prototype.
aca7a3d2
MB
7390 (Qccl, Qcclp, Fccl_program_p): Extern them.
7391 (CHECK_CCL_PROGRAM): New macro.
7392
7393 * character.c, character.h, chartab.c: New files.
7394
1f45f627
GM
7395 * charset.c: Mostly re-written. Move character and multibyte sequence
7396 handling codes to character.c.
aca7a3d2 7397
1f45f627
GM
7398 * charset.h: Mostly re-written. Move character and multibyte sequence
7399 handling codes to character.h.
aca7a3d2
MB
7400
7401 * coding.c, coding.h: Mostly re-written.
7402
7403 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
7404 (CHAR_WIDTH): Move to character.h.
7405 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 7406
1f45f627
GM
7407 * composite.h (enum composition_method): Change order of enumeration
7408 symbols.
aca7a3d2
MB
7409
7410 * data.c: Include "character.h" instead of "charset.h".
7411 (Faref): Call CHAR_TABLE_REF for a char table.
7412 (Faset): Call CHAR_TABLE_SET for a char table.
7413
1f45f627
GM
7414 * dispextern.h (free_realized_face, check_face_attribytes)
7415 (generate_ascii_font): Extern them.
7416 (free_realized_multibyte_face): Delete extern.
aca7a3d2 7417
1f45f627 7418 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
7419 table structure.
7420
7421 * editfns.c: Include "character.h" instead of "charset.h".
7422 (Fchar_to_string): Always call CHAR_STRING.
7423
7424 * emacs.c (main): Call init_charset_once, init_charset,
7425 syms_of_chartab, and syms_of_character.
7426
7427 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 7428 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 7429 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 7430 (build_annotations_2): Delete.
aca7a3d2
MB
7431 (e_write): Big change for the new code-conversion API.
7432
7433 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 7434 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7435 (Fcopy_sequence): Call copy_char_table for a char table.
7436 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
7437 (string_char_to_byte, string_byte_to_char): Adjust for the new
7438 multibyte form.
1f45f627
GM
7439 (internal_equal): Adjust for the change of char table structure.
7440 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
7441 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
7442 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
7443 (char_table_translate, optimize_sub_char_table)
7444 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 7445 chartab.c.
1f45f627
GM
7446 (char_table_ref_and_index): Delete.
7447 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 7448 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
7449 Vcoding_category_list. Adjust for the new code-conversion API.
7450 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
7451 chartab.c.
7452
7453 * fontset.c: Mostly re-written.
7454
1f45f627 7455 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 7456 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
7457 (fontset_font_pattern, fs_load_font): Update prototype.
7458 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
7459
7460 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 7461 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
7462
7463 * insdel.c: Include "character.h" instead of "charset.h".
7464 (copy_text): Don't refer to Vnonascii_translation_table.
7465 (insert_from_gap): New function.
7466
7467 * keyboard.c: Include "character.h" instead of "charset.h".
7468 (command_loop_1): Never call direct_output_forward_char before
7469 a non-ASCII character.
7470 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 7471 translate a character.
aca7a3d2
MB
7472
7473 * keymap.c: Include "character.h".
7474 (store_in_keymap): Handle the case that IDX is a cons.
7475 (Fdefine_key): Handle the case that KEY is a cons and the car part
7476 is also a cons (range).
1f45f627 7477 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
7478 (describe_vector): Call describe_char_table for a char table.
7479 (describe_char_table): New function.
7480
7481 * keymap.h (describe_char_table): Extern it.
7482
7483 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
7484 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
7485 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
7486 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
7487 Delete.
7488 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
7489 structure.
7490 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
7491 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
7492 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 7493 (chartab_size): Extern it.
1f45f627 7494 (struct Lisp_Char_Table): Re-design.
aca7a3d2 7495 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
7496 (HASH_KEY, HASH_VALUE): Move from fns.c.
7497 (CHARACTERBITS): Define as 22.
7498 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
7499 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
7500 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
7501 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
7502 (code_convert_string_norecord): Deleted extern.
7503 (init_character_once, syms_of_character, init_charset)
7504 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
7505
7506 * lread.c: Include "character.h".
7507 (read_multibyte): New arg NBYTES.
1f45f627
GM
7508 (read_escape): Change the meaning of returned *BYTEREP.
7509 (to_multibyte): Delete.
7510 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
7511
7512 * print.c: Include "character.h" instead of "charset.h".
7513 (print_string): Convert 8-bit raw bytes to octal form by
7514 string_escape_byte8.
1f45f627 7515 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
7516 raw bytes always in octal form. Handle sub char table correctly.
7517
7518 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
7519 (read_process_output, send_process): Adjust for the new
7520 code-conversion API.
aca7a3d2 7521
1f45f627 7522 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
7523
7524 * regex.c: Include "character.h" instead of "charset.h".
7525 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
7526 (regex_compile): Accept a range whose starting and ending
7527 character have different leading bytes.
1f45f627 7528 (analyse_first): Adjust for the above change.
aca7a3d2
MB
7529
7530 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
7531 (search_buffer, boyer_moore): Adjust for the new multibyte form.
7532 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
7533
7534 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 7535 (syntax_parent_lookup): Delete.
aca7a3d2 7536 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 7537 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
7538 (init_syntax_once): Call char_table_set_range instead of directly
7539 accessing the structure of a char table.
7540
7541 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 7542 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
7543 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
7544 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
7545
7546 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
7547 (encode_terminal_code, write_glyphs): Adjust for the new
7548 code-conversion API.
aca7a3d2
MB
7549 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
7550
1f45f627 7551 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
7552
7553 * xdisp.c: Include "character.h".
1f45f627
GM
7554 (get_next_display_element): Adjust for the new multibyte form.
7555 (disp_char_vector): Adjust for the new char table structure.
7556 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 7557 coding system.
1f45f627 7558 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
7559
7560 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 7561 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
7562 FS_LOAD_FONT.
7563 (generate_ascii_font): New function.
1f45f627
GM
7564 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
7565 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 7566 (free_realized_face): Make it public.
1f45f627 7567 (free_realized_faces_for_fontset): Rename from
aca7a3d2 7568 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 7569 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
7570 fontset_font_pattern and FS_LOAD_FONT.
7571
7572 * xfns.c: Include "character.h".
1f45f627 7573 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
7574
7575 * xselect.c: Don't include "charset.h".
1f45f627 7576 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
7577
7578 * xterm.c: Include "character.h".
1f45f627 7579 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
7580 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
7581 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
7582 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
7583 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
7584 (XTread_socket): Adjust for the new code-conversion API.
7585 (x_new_font): Adjust for the change of FS_LOAD_FONT.
7586 (x_load_font): Adjust for the change of struct font.
aca7a3d2 7587
d6abfc14
SM
75882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7589
7590 * xfaces.c (face_at_buffer_position): Remove unused vars.
7591
0acdaf8d
KH
75922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7593
4c4475a8
GM
7594 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
7595 Fix overflow checking.
0acdaf8d 7596
6c8a0ebf
GM
75972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7598
7599 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
7600 Cancel previous change.
7601
76022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
7603
7604 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
7605 ccl->eight_bit_control. Fix check for buffer overflow.
7606 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
7607 (ccl_driver): Initialize extra_bytes to 0.
7608
a32aad64
KH
76092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
7610
7611 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
7612 return it ORed with ctrl_modifier.
7613
8b329dba
MB
76142008-01-29 Miles Bader <miles@gnu.org>
7615
7616 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
7617
548667aa
JR
76182008-01-28 Jason Rumney <jasonr@gnu.org>
7619
7620 * w32.c (stat): Don't double check for networked drive.
7621
0975aa24
SM
76222008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7623
ef264c42
SM
7624 * window.c (run_window_configuration_change_hook): New function.
7625 Code extracted from set_window_buffer. Set the selected frame.
7626 (set_window_buffer): Use it.
7627 * window.h (run_window_configuration_change_hook): Declare.
7628 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
7629
0975aa24
SM
7630 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
7631
9c28b587
DN
76322008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
7633
7634 * Makefile.in: Remove references to unused macros.
7635
c617afce
EZ
76362008-01-26 Eli Zaretskii <eliz@gnu.org>
7637
7638 * w32.c (g_b_init_get_sid_sub_authority)
7639 (g_b_init_get_sid_sub_authority_count): New static variables.
7640 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
7641 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
7642 (init_user_info): Use them to retrieve uid and gid.
7643 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
7644 (fstat): Use pw_uid and pw_gid from the_passwd structure for
7645 st_uid and st_gid of the file.
c617afce 7646
302d7d54
JR
76472008-01-26 Jason Rumney <jasonr@gnu.org>
7648
7649 * w32.c (logon_network_drive): New function.
7650 (stat): Use it.
7651
3ac7a21e
CY
76522008-01-26 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
7655 invisible text covered with an ellipsis.
7656
bbb9fc1f
RS
76572008-01-25 Richard Stallman <rms@gnu.org>
7658
7659 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
7660 jump back to beginning. Move some other initializations after that.
7661 (Qwindow_text_change_functions, Vwindow_text_change_functions):
7662 New variables.
7663 (syms_of_xdisp): Init them.
7664
7665 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
7666
0975aa24
SM
7667 * buffer.c (reset_buffer_local_variables):
7668 Implement `permanent-local-hook'.
bbb9fc1f 7669 (Qpermanent_local_hook): New variable.
0975aa24 7670 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 7671
79235cbe
MA
76722008-01-25 Michael Albinus <michael.albinus@gmx.de>
7673
7674 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
7675
ccd8f7fe
TTN
76762008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
7677
7678 * fns.c (Fclrhash): Return TABLE.
7679
dfbe40f2 76802008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
7681
7682 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
7683 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
7684 is set even without positional changes.
7685 (x_scroll_bar_clear): Set bar->redraw_needed_p.
7686
7687 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
7688
dfbe40f2 76892008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 7690
d6169680
JR
7691 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
7692
602e142f
JR
7693 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
7694 the unicode range available in MULE by locale-coding-system.
c041e2d1 7695 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
7696 earlier.
7697
dfbe40f2 76982008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
7699
7700 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
7701 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 7702 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
7703 when used on child processes.
7704
8c7a4ac5
MA
77052008-01-21 Michael Albinus <michael.albinus@gmx.de>
7706
e0df1b73 7707 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 7708 Fdbus_method_return.
e0df1b73 7709 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 7710 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 7711 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 7712
8abe0f97
MR
77132008-01-20 Martin Rudalics <rudalics@gmx.at>
7714
7715 * undo.c (undo_inhibit_record_point): New variable.
7716 (syms_of_undo): Initialize it.
7717 (record_point): Don't record point when undo_inhibit_record_point
7718 is set.
7719
c3b232e4
SM
77202008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
7721
e69c4cae
SM
7722 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
7723
823e0ebb
SM
7724 * xdisp.c (Qauto_hscroll_mode): New var.
7725 (syms_of_xdisp): Initialize it.
7726 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
7727 window's buffer.
7728 (hscroll_windows): Don't check automatic_hscrolling_p here.
7729
c3b232e4
SM
7730 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
7731 vscroll if we're setting window-buffer to the value it already has.
7732
76ed5e01
DN
77332008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
7734
7735 * m/intel386.h: Remove references to XENIX.
7736
55e6d9b2
AS
77372008-01-17 Andreas Schwab <schwab@suse.de>
7738
7739 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
7740 instead of HAVE_X86_64_LIB64_DIR.
7741 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
7742
b16ed52d
GM
77432008-01-17 Glenn Morris <rgm@gnu.org>
7744
7745 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
7746 to HAVE_X86_64_LIB64_DIR.
7747
6bed5c4a
DN
77482008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
7749
7750 * s/irix3-3.h:
7751 * s/irix4-0.h:
7752 * s/386-ix.h:
7753 * s/domain.h:
7754 * s/hpux9-x11r4.h:
7755 * s/hpux9shxr4.h: Remove files for systems no longer supported.
7756
7757 * sysdep.c: Remove code containing references to symbols defined
7758 by unsupported systems.
7759
fdecf907
GM
77602008-01-16 Glenn Morris <rgm@gnu.org>
7761
7762 * coding.c (select-safe-coding-system-function): Doc fix.
7763
9292328f
GM
77642008-01-15 Glenn Morris <rgm@gnu.org>
7765
7766 * config.in: Revert 2008-01-13 change: this is a generated file.
7767
944df511
MO
77682008-01-13 Tom Tromey <tromey@redhat.com>
7769
7770 * lisp.h: Fix typo.
7771
8111ec05
DN
77722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
7773
f40f5dc3
DN
7774 * m/sequent-ptx.h:
7775 * m/sequent.h:
7776 * s/ptx.h:
7777 * s/ptx4-2.h:
7778 * s/ptx4.h: Remove files for systems no longer supported.
7779
ce20b664 7780 * callproc.c (Fcall_process): Fix previous change.
8111ec05 7781
e39a993c
DN
77822008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
7783
052e457f 7784 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 7785
290afd83
JB
7786 * m/mips.h:
7787 * m/intel386.h:
e39a993c
DN
7788 * callproc.c:
7789 * config.in:
7790 * ecrt0.c:
7791 * emacs.c:
7792 * fileio.c:
7793 * frame.c:
7794 * getpagesize.h:
7795 * keyboard.c:
7796 * lread.c:
7797 * process.c:
7798 * puresize.h:
7799 * sysdep.c:
7800 * systty.h:
7801 * syswait.h:
7802 * unexec.c:
7803 * xdisp.c:
7804 * alloc.c: Remove code containing references to symbols defined by
7805 unsupported systems.
7806
81cd7687
KH
78072008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
7808
7809 * coding.c (detect_coding_mask): Fix previous change.
7810
218b3b76
KH
78112008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
7812
7813 * coding.c (detect_coding_iso2022): New arg
7814 latin_extra_code_state. Allow Latin extra codes only
7815 when *latin_extra_code_state is nonzero.
7816 (detect_coding_mask): If there is a NULL byte, detect the encoding
7817 as UTF-16 or binary. If Latin extra codes exist, detect the
7818 encoding as ISO-2022 only when there's no other proper encoding is
7819 found.
7820
59ce725a 78212008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 7822
59ce725a
MB
7823 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
7824 #ifdef MAC_OS.
048addec 7825
59ce725a 78262008-01-08 Richard Stallman <rms@gnu.org>
048addec 7827
59ce725a 7828 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 7829
8290574e
NR
78302008-01-06 Nick Roberts <nickrob@snap.net.nz>
7831
a0a3805c 7832 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
7833 menu bar in parentheses.
7834
f3041af1
DN
78352008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
7836
7837 * m/7300.h:
7838 * m/acorn.h:
7839 * m/alliant-2800.h:
7840 * m/alliant.h:
7841 * m/alliant1.h:
7842 * m/alliant4.h:
7843 * m/altos.h:
7844 * m/amdahl.h:
7845 * m/apollo.h:
7846 * m/att3b.h:
7847 * m/aviion-intel.h:
7848 * m/aviion.h:
7849 * m/celerity.h:
7850 * m/clipper.h:
7851 * m/cnvrgnt.h:
7852 * m/convex.h:
7853 * m/cydra5.h:
7854 * m/delta88k.h:
7855 * m/dpx2.h:
7856 * m/dual.h:
7857 * m/elxsi.h:
7858 * m/f301.h:
7859 * m/gould-np1.h:
7860 * m/gould.h:
7861 * m/i860.h:
7862 * m/ibmps2-aix.h:
7863 * m/ibmrt-aix.h:
7864 * m/ibmrt.h:
7865 * m/irist.h:
7866 * m/is386.h:
7867 * m/isi-ov.h:
7868 * m/mega68.h:
7869 * m/mg1.h:
7870 * m/news-r6.h:
7871 * m/news-risc.h:
7872 * m/news.h:
7873 * m/nh3000.h:
7874 * m/nh4000.h:
7875 * m/ns16000.h:
7876 * m/ns32000.h:
7877 * m/nu.h:
7878 * m/orion.h:
7879 * m/orion105.h:
7880 * m/paragon.h:
7881 * m/pfa50.h:
7882 * m/plexus.h:
7883 * m/pyramid.h:
7884 * m/pyrmips.h:
7885 * m/sh3el.h:
7886 * m/sps7.h:
7887 * m/sr2k.h:
7888 * m/stride.h:
7889 * m/sun1.h:
7890 * m/sun2.h:
7891 * m/sun3-68881.h:
7892 * m/sun3-fpa.h:
7893 * m/sun3-soft.h:
7894 * m/sun3.h:
7895 * m/sun386.h:
7896 * m/symmetry.h:
7897 * m/tad68k.h:
7898 * m/tahoe.h:
7899 * m/targon31.h:
7900 * m/tek4300.h:
7901 * m/tekxd88.h:
7902 * m/tower32.h:
7903 * m/tower32v3.h:
7904 * m/ustation.h:
7905 * m/wicat.h:
7906 * m/xps100.h:
7907 * s/cxux.h:
7908 * s/cxux7.h:
7909 * s/dgux.h:
7910 * s/dgux4.h:
7911 * s/dgux5-4-3.h:
7912 * s/dgux5-4r2.h:
7913 * s/esix.h:
7914 * s/esix5r4.h:
7915 * s/hiuxmpp.h:
7916 * s/hiuxwe2.h:
7917 * s/iris3-5.h:
7918 * s/iris3-6.h:
7919 * s/isc2-2.h:
7920 * s/isc3-0.h:
7921 * s/isc4-0.h:
7922 * s/isc4-1.h:
7923 * s/newsos5.h:
7924 * s/newsos6.h:
7925 * s/osf1.h:
7926 * s/osf5-0.h:
7927 * s/riscix1-1.h:
7928 * s/riscix12.h:
7929 * s/sco4.h:
7930 * s/sco5.h:
7931 * s/sunos4-0.h:
7932 * s/sunos4-1.h:
7933 * s/sunos413.h:
7934 * s/sunos4shr.h:
7935 * s/umax.h:
7936 * s/unipl5-2.h:
7937 * s/xenix.h:
7938 * cxux-crt0.s:
7939 * unexapollo.c:
7940 * unexconvex.c:
7941 * unexenix.c:
7942 * unexsni.c: Remove files for systems no longer supported.
7943
7944 * m/intel386.h: Remove references to unsupported systems.
7945
7946 * w32.c (get_emacs_configuration): Remove reference to i860.
7947
7948 * sysdep.c: Remove dead code.
7949
d35e1cd7
DN
79502008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
7951
7952 * s/rtu.h:
a0a3805c 7953 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 7954
abe136ee
MA
79552008-01-04 Michael Albinus <michael.albinus@gmx.de>
7956
7957 * dbusbind.c (Fdbus_method_return): New function.
7958 (xd_read_message): Add the serial number to the event.
7959 (Fdbus_register_method): Activate the function.
7960
87df3c32
SM
79612008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
7962
7963 * keyboard.c (read_key_sequence): Fix typo.
7964
5125905e
MA
79652008-01-03 Michael Albinus <michael.albinus@gmx.de>
7966
7967 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
7968 (xd_signature, xd_append_arg): Handle element type detection for
7969 empty arrays.
7970 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
7971 SDATA () calls; this must be solved more general.
7972 (Fdbus_register_signal): Use SBYTES instead of strlen.
7973
8bba1b5c
MH
79742008-01-03 Magnus Henoch <magnus@zemdatav>
7975
7976 * dbusbind.c (xd_append_arg): Use unsigned char instead of
7977 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 7978 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 7979
a0a3805c 79802007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
7981
7982 * dbusbind.c (xd_read_message): Use non-static input_event struct.
7983
a271e124
MH
79842007-12-31 Magnus Henoch <mange@freemail.hu>
7985
7986 * dbusbind.c (xd_signature): Signature of variant is just "v".
7987
17bc8f94
MA
79882007-12-30 Michael Albinus <michael.albinus@gmx.de>
7989
87df3c32
SM
7990 * dbusbind.c: Fix several errors and compiler warnings.
7991 Reported by Tom Tromey <tromey@redhat.com>
17bc8f94
MA
7992 (XD_ERROR, XD_DEBUG_MESSAGE)
7993 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
7994 (xd_append_arg): Part for basic D-Bus types rewitten.
7995 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
7996 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
7997 appropriate.
7998 (xd_read_message): Return Qnil. Don't signal an error; it is not
7999 useful during event reading.
8000 (Fdbus_register_signal): Signal an error if the check for
8001 FUNCTIONP fails.
8002 (Fdbus_register_method): New function. The implementation is not
8003 complete, the call of the function signals an error therefore.
8004 (Fdbus_unregister_object): New function, renamed from
8005 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8006 the object is not well formed.
17bc8f94 8007
dd6f2802
RS
80082007-12-30 Richard Stallman <rms@gnu.org>
8009
8010 * textprop.c (get_char_property_and_overlay):
8011 Signal error if POSITION is out of range in a buffer.
8012
1da8a031
MR
80132007-12-29 Martin Rudalics <rudalics@gmx.at>
8014
8015 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8016 because the original parameters are in pure storage now.
8017
5742be86
YM
80182007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8019
8020 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8021
b014713c
EZ
80222007-12-22 Eli Zaretskii <eliz@gnu.org>
8023
b17f53ab
MB
8024 * callint.c (syms_of_callint) <command-history>: Add reference to
8025 history-length in the doc string.
048addec 8026
b17f53ab 80272007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8028
b17f53ab
MB
8029 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8030 before passing as wParam.
048addec 8031
9af5078b
MA
80322007-12-22 Michael Albinus <michael.albinus@gmx.de>
8033
8034 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8035 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8036 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8037 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8038 as number.
8039 (Fdbus_call_method): Fix docstring.
8040
87cf1a39
MA
80412007-12-21 Michael Albinus <michael.albinus@gmx.de>
8042
8043 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8044 New macros.
87df3c32 8045 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8046 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8047 Simplify.
87cf1a39
MA
8048 (xd_signature): New function.
8049 (xd_append_arg): Compute also signatures. Major rewrite.
8050 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8051 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8052 Check for signatures of arguments.
87cf1a39 8053
54371585
MA
80542007-12-19 Michael Albinus <michael.albinus@gmx.de>
8055
8056 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8057 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8058 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8059 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8060 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8061 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8062 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8063 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8064 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8065 (xd_append_arg): New function.
8066 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8067
f5306ca3
MA
80682007-12-16 Michael Albinus <michael.albinus@gmx.de>
8069
8070 * dbusbind.c (top): Include <stdio.h>.
8071 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8072 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8073 (Fdbus_register_signal): Rename unique_name to uname.
8074 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8075 non-existing unique name. Fix typos in matching rule. Return an
8076 object which is useful in Fdbus_unregister_signal.
8077 (Fdbus_unregister_signal): Reimplementation, in order to remove
8078 only the corresponding entry.
8079 (Vdbus_registered_functions_table): Change the order of entries.
8080 Apply these changes in xd_read_message and Fdbus_register_signal.
8081
77a28bbf
AS
80822007-12-16 Andreas Schwab <schwab@suse.de>
8083
8084 * fileio.c (Finsert_file_contents): Fix overflow check to not
8085 depend on undefined integer overflow.
8086
2e3566d8
JR
80872007-12-14 Jason Rumney <jasonr@gnu.org>
8088
8089 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8090 for characters above 127.
8091
bf254037
JR
80922007-12-13 Jason Rumney <jasonr@gnu.org>
8093
8094 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8095 before dereferencing array.
8096 (lookup_vk_code): Remove zero comparison.
8097
eb7c7bf5
MA
80982007-12-14 Michael Albinus <michael.albinus@gmx.de>
8099
8100 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8101 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8102 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8103 (xd_read_message, Fdbus_register_signal): Split expressions into
8104 multiple lines before operators "&&" and "||", according to the
8105 GNU Coding Standards.
8106
34fb0fc9
EZ
81072007-12-14 Eli Zaretskii <eliz@gnu.org>
8108
8109 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8110
c7d97628
JL
81112007-12-12 Juri Linkov <juri@jurta.org>
8112
8113 * buffer.c (Frename_buffer): In interactive spec replace
8114 `read-buffer' with `read-string' that uses `buffer-name-history'
8115 as history, and the current buffer's name as default.
8116
3709505e
SM
81172007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8118
8119 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8120 manipulating the backtrace manually.
8121 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8122 (struct backtrace, backtrace_list): Remove.
8123 (command_loop_1): Remove dead var `no_direct'.
8124
8125 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8126 preserve non-built-in buffer-local variables.
8127 (Fkill_all_local_variables): Don't re-create&re-set permanent
8128 buffer-local variables.
8129
e2bec886
JL
81302007-12-09 Juri Linkov <juri@jurta.org>
8131
8132 * buffer.c (Frename_buffer): Change interactive spec from "s" to
8133 Lisp code that uses `read-buffer' with current buffer as default.
8134
a31d47c7
MA
81352007-12-08 Michael Albinus <michael.albinus@gmx.de>
8136
8137 * dbusbind.c (xd_read_message): Generate an event for every
8138 registered handler. There might be several handlers registered
8139 for the same signal.
8140 (Fdbus_register_signal): Don't overwrite a registration for the
8141 same signal. Add a new registration if handlers are different.
8142 (Vdbus_registered_functions_table): Rework doc string.
8143
52da95fa
MA
81442007-12-07 Michael Albinus <michael.albinus@gmx.de>
8145
8146 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
8147 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
8148 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
8149 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
8150 Unify argument lists.
a0a3805c 8151 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
8152 arguments and hash table keys. Use unique name for service.
8153 (Fdbus_unregister_signal): Remove checks.
8154 (Vdbus_registered_functions_table): Fix doc string.
8155
e5e76c04 81562007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
8157
8158 * process.c (make_process): Initialize pty_flag to 0.
8159
e5e76c04 81602007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
8161
8162 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
8163 specified XBMs.
8164
e5e76c04 81652007-12-05 Richard Stallman <rms@gnu.org>
048addec 8166
e5e76c04 8167 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 8168
e5e76c04 81692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8170
e5e76c04
MB
8171 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
8172 New variable.
8173 (mac_try_close_socket) [MAC_OSX]: New function.
8174 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
8175 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 8176
e5e76c04
MB
8177 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
8178 Use mac_try_close_socket.
048addec 8179
e5e76c04 81802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8181
e5e76c04
MB
8182 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
8183 reloc_base.
8184 (copy_dysymtab): Compute relocation base here.
8185 (rebase_reloc_address) [__ppc64__]: New function.
8186 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
8187 changed.
048addec 8188
e5e76c04 81892007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 8190
e5e76c04 8191 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 8192
e5e76c04 81932007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8194
e5e76c04
MB
8195 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
8196 __objc_* sections.
8197 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 8198
96faeb40
MA
81992007-12-05 Michael Albinus <michael.albinus@gmx.de>
8200
8201 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
8202 Move check for Vdbus_registered_functions_table to
8203 xd_read_queued_messages.
8204 (xd_read_queued_messages): Protect xd_read_message calls by
8205 internal_condition_case_1.
8206
39abdd4a
MA
82072007-12-04 Michael Albinus <michael.albinus@gmx.de>
8208
87df3c32 8209 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 8210 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 8211 (Vdbus_intern_symbols): Remove.
39abdd4a 8212 (Vdbus_registered_functions_table): New hash table.
87df3c32 8213 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 8214 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 8215 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
8216 Vdbus_registered_functions_table.
8217
880820fe 82182007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
8219
8220 * xterm.c: Update URL to Window Manager Specification in comment.
8221
033b73e2
MA
82222007-12-02 Michael Albinus <michael.albinus@gmx.de>
8223
8224 * config.in (HAVE_DBUS): Add.
8225
a0a3805c 8226 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
8227 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
8228 (obj): Add $(DBUS_OBJ).
8229 (LIBES): Add $(DBUS_LIBS).
8230 (dbusbind.o): New target.
8231
8232 * dbusbind.c: New file.
8233
8234 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
8235
8236 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 8237 (Qdbus_event): New Lisp symbol.
033b73e2 8238 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 8239 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
8240 (keys_of_keyboard ): Define dbus-event.
8241
8242 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
8243
39d0bf74
RS
82442007-12-01 Richard Stallman <rms@gnu.org>
8245
8246 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
8247
f3157c65
JR
82482007-11-30 Jason Rumney <jasonr@gnu.org>
8249
8250 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
8251 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
8252 (w32_face_attributes): Don't use color indexes that are out of range.
8253 Only reverse the default colors.
f3157c65
JR
8254
8255 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
8256 WINDOWSNT.
8257
8258 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
8259
b510360c
JR
82602007-11-29 Jason Rumney <jasonr@gnu.org>
8261
8262 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
8263 (w32_face_attributes): Use Vtty_defined_color_alist to determine
8264 if the terminal colors are initialized.
8265 (unspecified_fg, unspecified_bg): Remove unused declarations.
8266
4b7ab1c4
AS
82672007-11-29 Andreas Schwab <schwab@suse.de>
8268
8269 * keyboard.c (apply_modifiers): Fix typo.
8270
4bb6c266
RS
82712007-11-29 Richard Stallman <rms@gnu.org>
8272
8273 * keymap.c (Fcurrent_local_map): Doc fix.
8274
aa44cd84
GM
82752007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
8276
8277 * s/gnu-kfreebsd.h: New file.
8278
21ec2c43
SM
82792007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
8280
cc648cef
SM
8281 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
8282 Don't cast redundantly.
8283
21ec2c43
SM
8284 * keyboard.c (KEY_TO_CHAR): New macro.
8285 (parse_modifiers, apply_modifiers): Accept integer arguments.
8286 (read_key_sequence): Use them to unify the "shift->unshift" mapping
8287 for chars and symbol keys.
8288 After doing such remapping, apply function-key-map again.
8289
73e72da4
DN
82902007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
8291
8292 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
8293 compiled anymore.
8294
254693ff
AS
82952007-11-26 Andreas Schwab <schwab@suse.de>
8296
8297 * process.c (list_processes_1): Fix indentation level of the
8298 command column.
8299
ff6e6ac8
AS
83002007-11-23 Andreas Schwab <schwab@suse.de>
8301
8302 * editfns.c (Fformat): Handle %c specially since it requires the
8303 argument to be of type int.
8304
f7cf8b20
SM
83052007-11-23 Markus Triska <markus.triska@gmx.at>
8306
8307 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 8308 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 8309
569c11e3
SM
83102007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8311
8787dd73
SM
8312 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
8313 (find_symbol_value): Use do_symval_forwarding.
8314
569c11e3
SM
8315 * data.c (set_internal): Set the value in the `cons-cell' (for
8316 Buffer_Local_values) not only for frame-local variables.
8317
6af1696d
AS
83182007-11-22 Andreas Schwab <schwab@suse.de>
8319
8320 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
8321 values to sprintf.
8322 * keymap.c (Fsingle_key_description): Likewise.
8323 * print.c (print_object): Likewise.
8324
880820fe 83252007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
8326
8327 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
8328 file for image is nil.
8329
7c401d15
DN
83302007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
8331
8332 * term.c: Include stdarg.h.
569c11e3 8333 (fatal): Implement using varargs.
a0a3805c 8334 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 8335
64e16c3c
SM
83362007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8337
8338 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
8339 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
8340 Update call to buffer_slot_type_mismatch.
8341 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
8342 (buffer_slot_type_mismatch): Update.
8343 * buffer.c (buffer_local_types): Remove.
8344 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
8345 (defvar_per_buffer): Set the type in the buffer_objfwd.
8346
d4aa48db 83472007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 8348
64e16c3c
SM
8349 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
8350 CreateFileMapping returns NULL on failure.
5f42a7eb 8351
d4aa48db 83522007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 8353
d4aa48db
MB
8354 * search.c (Fset_match_data): Remove the `evaporate' feature.
8355 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 8356
bdae0540
JR
83572007-11-21 Jason Rumney <jasonr@gnu.org>
8358
8359 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
8360
8361 * w32console.c (w32con_write_glyphs): Remove unused variables.
8362
202c09a8
DN
83632007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
8364
b951420f
DN
8365 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
8366
202c09a8
DN
8367 * s/darwin.h (MULTI_KBOARD): Remove.
8368
8369 * macfns.c (x_create_tip_frame, Fx_create_frame)
8370 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
8371
bae72c12
SM
83722007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8373
e7c10f83
SM
8374 * buffer.c (Fbuffer_local_value): Remove redundant test.
8375 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
8376 than in `current-buffer' to match the comment.
8377 Do the swap using swap_in_global_binding.
8378
136eb6ed
SM
8379 * data.c (store_symval_forwarding, set_internal):
8380 * eval.c (specbind): Remove dead code.
8381
bae72c12
SM
8382 * coding.c (detect_coding, Fupdate_coding_systems_internal):
8383 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
8384 Since we do not want to see internal Lisp_*fwd objects here.
8385
880820fe 83862007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 8387
3d66b985
JD
8388 * sysdep.c (init_system_name): Use getaddrinfo if available.
8389
95fbaefc
JD
8390 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
8391 (x_scroll_bar_note_movement): start, end, with, height in struct
8392 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
8393
6c1d8cb6
DN
83942007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
8395
8396 * puresize.h (BASE_PURESIZE): Increase to 1190000.
8397
30f95089
SM
83982007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8399
66b04bd4
SM
8400 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
8401 This undoes Richard's change of 14-Oct-2002.
8402
6d3f2bb2
SM
8403 * alloc.c (allocate_other_vector):
8404 * lisp.h (allocate_other_vector): Remove.
8405
b05b4e27
SM
8406 * window.c (struct save_window_data): Move non-lisp data to the end
8407 and make it `int' rather than Lisp_Object.
8408 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
8409 Done wrap/unwrap integer values.
8410 (Fset_window_configuration, compare_window_configurations):
8411 Update use of fields to their new types.
8412
056ce195
SM
8413 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
8414 Turn integer fields into `int'. Merge x_window_low and x_window_high.
8415 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
8416 (SET_SCROLL_BAR_X_WINDOW): Remove.
8417 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
8418 Access the new x_window field directly.
8419 * xterm.c (x_scroll_bar_create): Use a pseudovector.
8420 Don't wrap/unwrap integers into Lisp_Objects.
8421 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
8422 (x_scroll_bar_report_motion):
8423 Don't wrap/unwrap integers into Lisp_Objects.
8424 (x_term_init): Use SDATA.
8425 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
8426 (x_scroll_bar_set_handle, x_scroll_bar_remove)
8427 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
8428 (x_scroll_bar_report_motion, x_scroll_bar_clear):
8429 * xfns.c (x_set_background_color):
8430 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
8431 Access the new x_window field directly.
8432
30f95089
SM
8433 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
8434 (allocate_pseudovector): Make non-static.
6d3f2bb2 8435
30f95089
SM
8436 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
8437 (allocate_pseudovector): Declare.
6f69e89b 8438 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 8439
9b6112e8
AS
84402007-11-15 Andreas Schwab <schwab@suse.de>
8441
30f95089
SM
8442 * editfns.c (Fformat): Correctly format EMACS_INT values.
8443 Also take precision into account when formatting an integer.
0f860bd7 8444
9b6112e8
AS
8445 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
8446
262fcd41
SM
84472007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
8448
58da34c7
SM
8449 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
8450 (syms_of_keyboard): Defsubr it.
8451
262fcd41
SM
8452 * data.c (swap_in_global_binding): Fix longstanding bug where
8453 store_symval_forwarding was not called with the right second argument,
8454 thus causing objfwd-ing from being dropped.
8455
d29a9848
JB
84562007-11-14 Juanma Barranquero <lekktu@gmail.com>
8457
8458 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
8459 (Fx_display_pixel_height, Fx_display_planes)
8460 (Fx_display_color_cells, Fx_server_max_request_size)
8461 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
8462 (Fx_display_visual_class, Fx_display_save_under):
8463 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
8464 (Fx_display_pixel_height, Fx_display_planes)
8465 (Fx_display_color_cells, Fx_server_max_request_size)
8466 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8467 (Fx_display_mm_height, Fx_display_mm_width)
8468 (Fx_display_backing_store, Fx_display_visual_class)
8469 (Fw32_select_font, Fx_display_save_under):
8470 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
8471 (Fx_display_pixel_height, Fx_display_planes)
8472 (Fx_display_color_cells, Fx_server_max_request_size)
8473 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
8474 (Fx_display_save_under): Fix typos in docstrings.
8475
74084731
JB
84762007-11-14 Juanma Barranquero <lekktu@gmail.com>
8477
8478 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
8479 corresponding to deleted entries; they are an implementation detail.
8480 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
8481 Remove variables.
8482 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
8483 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
8484 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
8485 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
8486 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 8487 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 8488 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
8489 Fix typos in docstrings.
8490 (Fx_server_version): Reflow docstring.
8491 (Fw32_shell_execute): Doc fixes.
74084731 8492
fb053a1f
JB
84932007-11-13 Juanma Barranquero <lekktu@gmail.com>
8494
8495 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
8496 if w32_parse_hot_key returned nil.
8497
a457417e 84982007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 8499
a457417e 8500 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 8501
4b219faa
JR
85022007-11-09 Jason Rumney <jasonr@gnu.org>
8503
8504 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
8505
8506 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
8507
8508 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
8509 Remove W32_SCROLL_BAR_CLICK_EVENT.
8510
8511 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
8512 Add MULTIMEDIA_KEY_EVENT.
8513
8514 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
8515 (lispy_multimedia_keys) [WINDOWSNT]: New array.
8516 (make_lispy_event) [WINDOWSNT]: Use it to translate
8517 MULTIMEDIA_KEY_EVENT.
8518
8519 * w32term.h (WM_APPCOMMAND): Define if not already.
8520 (GET_APPCOMMAND_LPARAM): Likewise.
8521
8522 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
8523 WM_APPCOMMAND.
8524
8525 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
8526 (syms_of_w32fns): Export and initialize it.
8527 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
8528
c12ecb0a 85292007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
8530
8531 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
8532 twice.
8533
8534 * xdisp.c (handle_face_prop): Fix last change.
8535
c12ecb0a 85362007-11-09 Richard Stallman <rms@gnu.org>
048addec 8537
c12ecb0a
MB
8538 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
8539 not just for after-strings and before-strings.
8540 Call face_for_overlay_string and pass the overlay to it.
8541 (handle_display_prop): Determine whether property came from an overlay.
8542 Pass OVERLAY arg to handle_single_display_spec.
8543 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
8544 (load_overlay_strings): Fill in it->string_overlays.
8545 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 8546
c12ecb0a
MB
8547 * xfaces.c (face_for_overlay_string): Function renamed from
8548 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 8549
c12ecb0a
MB
8550 * dispextern.h (struct it): New elt string_overlays.
8551 New elt from_overlay, also in stack.
8552 Rearrange a few elements.
8553 (face_for_overlay_string): Decl renamed from
8554 face_at_buffer_position_no_overlays, and add argument.
15fff01d 8555
c12ecb0a 85562007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 8557
c12ecb0a
MB
8558 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
8559 to get the base face for an overlay string.
0d8466cc 8560
c12ecb0a 8561 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 8562
c12ecb0a 8563 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 8564
c12ecb0a 8565 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 8566
c12ecb0a 85672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 8568
c12ecb0a
MB
8569 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
8570 Fix conversion from Lisp object to ATSUFontID.
07025a55 8571
c12ecb0a 85722007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 8573
c12ecb0a 8574 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 8575
c12ecb0a 85762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 8577
c12ecb0a
MB
8578 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
8579 Don't assume regions are aligned to page boundary.
8580 (print_load_command_name): Add LC_UUID if defined.
3a232704 8581
c12ecb0a 85822007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 8583
c12ecb0a 8584 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 8585
b8ddfbcc
JR
85862007-11-07 Jason Rumney <jasonr@gnu.org>
8587
8588 * s/windows95.h: Remove.
8589
880820fe 85902007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
8591
8592 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
8593 abort with a message on unhandled store_type values.
8594
880820fe 85952007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
8596
8597 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
8598 Remove HAVE_X11R5 and HAVE_X11R4.
8599
04a697fe
DN
86002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
8601
8602 * Makefile.in: Remove references to sunfns.c and sunfns.o.
8603
880820fe 86042007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
8605
8606 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 8607 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
8608 x_set_glyph_string_gc from x_draw_glyph_string.
8609
07e5c0b0
DN
86102007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
8611
2a2e8de7 8612 * sunfns.c: Remove file.
07e5c0b0
DN
8613
8614 * m/sun386.h:
8615 * m/sun2.h:
8616 * m/sparc.h: Remove Sun windows code.
8617
1bc973c2
SM
86182007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
8621 (init_keyboard): Set current_kboard's window-system to nil.
8622 (tty_read_avail_input): Typo.
8623 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
8624
c22140f6
DN
86252007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
8626
8627 * s/usg5-4.h:
8628 * s/usg5-3.h:
8629 * s/ptx.h:
8630 * m/is386.h:
8631 * m/ibmps2-aix.h:
2a2e8de7 8632 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
8633
8634 * dispnew.c (syms_of_display): Don't mention version 10.
8635
660a8219
JB
86362007-10-28 Juanma Barranquero <lekktu@gmail.com>
8637
8638 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
8639 ($(BLD)/abbrev.$(O)): Remove.
8640
e047f448
SM
86412007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8642
8643 Rewrite abbrev.c in Elisp.
8644 * image.c (Qcount): Don't declare as extern.
8645 (syms_of_image): Initialize and staticpro `Qcount'.
8646 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
8647 * emacs.c (main): Don't call syms_of_abbrev.
8648 * Makefile.in (obj): Remove abbrev.o.
8649 (abbrev.o): Remove.
8650 * abbrev.c: Remove.
8651
67b73e3a
MR
86522007-10-26 Martin Rudalics <rudalics@gmx.at>
8653
8654 * window.c (window_min_size_2): Don't count header-line.
8655
e3d7bd83
DN
86562007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
8657
8658 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 8659 field to take advantage of the available space. Group all the
e3d7bd83
DN
8660 chars together to reduce wasted space due to padding.
8661
a3547743
JB
86622007-10-26 Juanma Barranquero <lekktu@gmail.com>
8663
e298936f
JB
8664 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
8665
d3d47262
JB
8666 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
8667 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
8668 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
8669 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
8670 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
8671 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
8672 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
8673 (last_marked, mark_object_loop_halt): Make static.
8674
a3547743
JB
8675 * frame.c (syms_of_frame) <delete-frame-functions>:
8676 Fix typo in docstring.
8677
14c71d8b
JB
86782007-10-25 Juanma Barranquero <lekktu@gmail.com>
8679
8680 * w32.c (init_environment): Fix tiny memory leak.
66199f74 8681 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 8682
70b8d0a4
SM
86832007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
8684
8685 Make `window-system' into a keyboard-local variable (rather than
8686 frame-local as done originally by multi-tty).
8687
8688 * keyboard.h (struct kboard): Add Vwindow_system.
8689 * keyboard.c (init_kboard): Set a default for Vwindow_system.
8690 (mark_kboards): Mark Vwindow_system.
8691
8692 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
8693 (init_display): Don't set the obsolete `window-system' frame-param.
8694
8695 * xterm.c (x_term_init):
8696 * w32term.c (w32_create_terminal):
8697 * term.c (init_tty): Set Vwindow_system.
8698 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
8699 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
8700
8701 * xfns.c (Fx_create_frame, x_create_tip_frame):
8702 * w32fns.c (Fx_create_frame, x_create_tip_frame):
8703 * macfns.c (Fx_create_frame):
8704 Don't set the obsolete `window-system' frame-param.
8705
8706 * frame.h (Qwindow_system): Remove.
8707 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
8708 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
8709
fdc90613 87102007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 8711
fdc90613
MB
8712 * frame.c (x_figure_window_size): For fullscreen case,
8713 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 8714
fdc90613 8715 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 8716
fdc90613 8717 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 8718
7357cb04
SM
87192007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8720
98228e72
SM
8721 * process.c (unwind_request_sigio): Only define if __ultrix__.
8722
1baf6db9
SM
8723 * callproc.c (child_setup): Remove spurious *.
8724
4d0ac3d7
SM
8725 * lisp.h (Fget_text_property): Declare.
8726 (have_menus_p): Declare it here rather than in sys-dep header files.
8727 * macterm.h (have_menus_p):
8728 * msdos.h (have_menus_p):
8729 * xterm.h (have_menus_p): Remove.
8730
7357cb04
SM
8731 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8732 (Fmake_variable_frame_local): Just check the variable's const-ness
8733 rather than checking nil or t.
8734
866e6dd6
JR
87352007-10-22 Jason Rumney <jasonr@gnu.org>
8736
b00afeae
JR
8737 * w32fns.c: Include math.h.
8738 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 8739
c8f7c76b
JR
8740 * s/ms-w32.h (HAVE_STDLIB_H): Define.
8741 (abort): Redefinition moved to nt/config.nt.
8742
866e6dd6
JR
8743 * m/windowsnt.h: Remove.
8744
e79beb56
JB
87452007-10-22 Juanma Barranquero <lekktu@gmail.com>
8746
8747 * emacs.c (Fdump_emacs): Fix typo in message.
8748 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
8749 <installation-directory>: Reflow docstring.
8750
fb30dfd2
JL
87512007-10-22 Juri Linkov <juri@jurta.org>
8752
8753 * minibuf.c: Allow minibuffer default to be a list of default values.
8754 With empty input use the first element of this list as returned default.
e79beb56 8755 (string_to_object)
0f7f11b7 8756 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
8757 (read_minibuf): If defalt is cons, set histstring to its car.
8758 (Fread_string): If default_value is cons, set val to its car.
8759 (Fread_buffer): If def is cons, use its car.
8760 (Fcompleting_read): If defalt is cons, set val to its car.
8761
1f163f28
MA
87622007-10-21 Michael Albinus <michael.albinus@gmx.de>
8763
8764 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
8765
db3534c3
JB
87662007-10-20 Juanma Barranquero <lekktu@gmail.com>
8767
8768 * doc.c (Fdocumentation): Check for advice in all cases.
8769
c6f18a07
CY
87702007-10-19 Chong Yidong <cyd@stupidchicken.com>
8771
8772 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
8773
2a1534d3
RS
87742007-10-19 Richard Stallman <rms@gnu.org>
8775
8776 * doc.c (Fdocumentation): Check for and handle an advised function.
8777
7b82c3b6
JB
87782007-10-19 Juanma Barranquero <lekktu@gmail.com>
8779
8780 * process.c (Fset_process_filter): Doc fix.
8781
3278f20e
SM
87822007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8783
8784 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
8785 which caused key-translation-map to applied repeatedly (thus breaking
8786 double-mode).
8787
99784d63
SM
87882007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
8789
8790 * xselect.c (x_own_selection, x_handle_selection_clear)
8791 (x_clear_frame_selections):
8792 * w32menu.c (list_of_panes, list_of_items):
8793 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
8794 * textprop.c (validate_plist, interval_has_all_properties)
8795 (interval_has_some_properties, interval_has_some_properties_list)
8796 (add_properties, text_property_list):
8797 * process.c (Fget_buffer_process, list_processes_1, status_notify):
8798 * minibuf.c (Fassoc_string):
8799 * macselect.c (x_own_selection, x_clear_frame_selections)
8800 (Fx_disown_selection_internal):
8801 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
8802 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
8803
44bb704d
CY
88042007-10-17 Chong Yidong <cyd@stupidchicken.com>
8805
8806 * process.c: Link to libs for calling res_init() if available.
8807 (Fmake_network_process): Call res_init() before getaddrinfo or
8808 gethostbyname, if possible.
8809
d314756e
SM
88102007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
8811
2504022a
SM
8812 * lread.c (read1): Set pvectype for char_tables.
8813
19fa82b9
SM
8814 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
8815 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
8816 Add type checks.
8817 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
8818
d314756e
SM
8819 * alloc.c (free_misc): Use XMISCTYPE.
8820 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
8821
94b9aaa2
GM
88222007-10-17 Glenn Morris <rgm@gnu.org>
8823
8824 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
8825 (syms_of_minibuf): Add Qcompletion_ignore_case.
8826 * dired.c (Qcompletion_ignore_case): Change to external.
8827 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
8828 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
8829 (Fread_file_name): Use it rather than intern'ing.
8830
8831 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
8832 (Fread_coding_system): Ignore case of user input.
8833
da6658e8
YM
88342007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8835
8836 * xdisp.c (handle_display_prop): Ignore display specs after
8837 replacing one when string text is being replaced.
8838 (handle_single_display_spec): Pretend as if characters with display
8839 property haven't been consumed only when buffer text is being replaced.
8840
11fb4bdb
SM
88412007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
8842
9beb8baa
SM
8843 * xfns.c (Fx_create_frame, Fx_display_list):
8844 * window.c (window_fixed_size_p, enlarge_window)
8845 (shrink_window_lowest_first):
8846 * macterm.c (init_font_name_table):
8847 * macfns.c (Fx_create_frame, Fx_display_list):
8848 * lread.c (close_load_descs):
8849 * keyboard.c (read_char_x_menu_prompt):
8850 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
8851 * coding.c (code_convert_region_unwind): Test the type of an object
8852 rather than just !NILP before extracting data from it.
8853
d3f41ff5
SM
8854 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
8855
67ee9f6e
SM
8856 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
8857 (XMISCANY): New macro.
8858 (XMISCTYPE): Use it.
8859 (struct Lisp_Misc_Any): New type.
8860 (union Lisp_Misc): Use it.
8861 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
8862 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
8863 (find_symbol_value, set_internal, default_value, Fset_default)
8864 (Fmake_variable_buffer_local, Fmake_local_variable)
8865 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
8866 (Flocal_variable_if_set_p, Fvariable_binding_locus):
8867 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
8868 * alloc.c (allocate_buffer): Set the size and tag.
8869 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
8870 Use XMISCANY.
8871 (die): Follow the GNU convention for error messages.
8872 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
8873 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
8874 tag any more.
8875 (set_buffer_internal_1):
8876 * frame.c (store_frame_param):
8877 * eval.c (specbind):
8878 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
8879
11fb4bdb
SM
8880 * doc.c (Fsnarf_documentation): Simplify.
8881
decb374a
JB
88822007-10-14 Juanma Barranquero <lekktu@gmail.com>
8883
8884 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
8885 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
8886
b5a40ee7
SM
88872007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
8888
8889 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
8890
35277b03
JB
88912007-10-14 Juanma Barranquero <lekktu@gmail.com>
8892
8893 * eval.c (do_autoload): Don't save autoloads.
8894
8895 * data.c (Ffset): Save autoload of the function being set.
8896
35fdaa62
GM
88972007-10-07 John Paul Wallington <jpw@pobox.com>
8898
8899 * xfns.c (x_create_tip_frame): Set the `display-type' frame
8900 parameter before setting up faces.
8901
1ea40aa2
EZ
89022007-10-13 Eli Zaretskii <eliz@gnu.org>
8903
35fdaa62 8904 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
8905 * keyboard.c (append_tool_bar_item): Reformat last change.
8906
1ea40aa2
EZ
8907 * lisp.h (eabs): Rename from `abs'. All callers changed.
8908
35277b03 89092007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
8910
8911 * buffer.c (add_overlay_mod_hooklist):
8912 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
8913 * fontset.c (make_fontset):
8914 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
8915 (append_tool_bar_item):
8916 * macmenu.c (grow_menu_items):
35fdaa62 8917 * w32menu.c (grow_menu_items):
71d00ce4 8918 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 8919
bc82f120
EZ
89202007-10-13 Eli Zaretskii <eliz@gnu.org>
8921
8922 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
8923 selected frame'' on MSDOS).
8924
d57d5a78
MR
89252007-10-12 Martin Rudalics <rudalics@gmx.at>
8926
8927 * frame.c (Qexplicit_name): New variable.
8928 (x_report_frame_params): Report it in parameter alist.
8929 (syms_of_frame): Intern and staticpro it.
8930
35277b03 89312007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
8932
8933 * macfns.c (x_create_tip_frame): Set terminal for frame.
8934
c7a4b95b
SM
89352007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
8936
26f9c7b7
SM
8937 * frame.c (Qenvironment): Remove.
8938 (syms_of_frame) <Qenvironment>: Don't initialize.
8939 (Fdelete_frame): Don't treat the `environment' param specially.
8940 * frame.h (Qenvironment): Don't declare.
8941 * callproc.c (set_initial_environment): Don't set unused frame param.
8942
c7a4b95b
SM
8943 * frame.c (Fframe_with_environment): Remove.
8944 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 8945
c7a4b95b
SM
8946 * lisp.h (Fframe_with_environment): Don't declare.
8947
c86f7377
JB
89482007-10-10 Juanma Barranquero <lekktu@gmail.com>
8949
8950 * indent.c (indent_tabs_mode, last_known_column)
8951 (last_known_column_modified): Make static.
8952 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
8953
d1b3a122
KY
89542007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
8955
8956 * puresize.h (BASE_PURESIZE): Increase to 1170000.
8957
d57d5a78
MR
89582007-10-09 Jason Rumney <jasonr@gnu.org>
8959
8960 * w32term.c (x_set_window_size): Disable code that attempts to tell
8961 Lisp code about a size change before it actually happens.
8962
81d3d428 89632007-10-09 Richard Stallman <rms@gnu.org>
91175673 8964
81d3d428
MB
8965 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
8966 return HANDLED_RETURN.
91175673 8967
1af74d06 89682007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 8969
1af74d06
MB
8970 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
8971 when there's an unread command event.
e0fead5d 8972
c7a4b95b 8973 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
8974 window autoselection act appropriately when leaving selected frame.
8975 (syms_of_frame): Initialize focus_follows_mouse.
8976 * frame.h (focus_follows_mouse): Extern it.
8977 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 8978 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
8979 * msdos.c (dos_rawgetc): Likewise.
8980 * w32term.c (w32_read_socket): Likewise.
8981 * xterm.c (handle_one_xevent): Likewise.
8982 * xdisp.c (syms_of_xdisp): In doc-string of
8983 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 8984
1af74d06 89852007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 8986
1af74d06
MB
8987 * macterm.c (mac_load_query_font): Fix missing return value.
8988 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
8989 Add BLOCK_INPUT.
c186cdb3 8990
1af74d06 89912007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 8992
1af74d06
MB
8993 * xdisp.c (get_window_cursor_type): Implement documented behavior
8994 for cursor-in-non-selected-windows = t.
c186cdb3 8995
1af74d06 89962007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 8997
1af74d06 8998 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 8999
1af74d06 90002007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9001
1af74d06 9002 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9003
1af74d06 9004 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9005
1af74d06 90062007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9007
c7a4b95b 9008 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9009
1af74d06 90102007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9011
1af74d06 9012 * buffer.c (Foverlays_at): Doc fix.
036e218d 9013
1af74d06 90142007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9015
1af74d06 9016 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9017
1af74d06 90182007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9019
1af74d06 9020 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9021
1af74d06 9022 * frame.h (enum): Remove trailing comma.
90647b07 9023
1af74d06 90242007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 9025
1af74d06 9026 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9027
1af74d06 90282007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9029
1af74d06 9030 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9031
1af74d06
MB
9032 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9033 last-repeatable-command.
9034 (init_kboard): Initialize Vlast_repeatable_command.
9035 (command_loop_1): Set it to real_this_command unless that was
9036 bound to an input event.
9037 (mark_kboards): Mark it.
9fbc32aa 9038
1af74d06 90392007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9040
1af74d06 9041 * eval.c (condition-case): Doc fix.
9fbc32aa 9042
1af74d06 90432007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9044
1af74d06
MB
9045 * xfaces.c (tty_supports_face_attributes_p): Fix code
9046 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9047 was copied and not edited.
9fbc32aa 9048
beb9f745
SM
90492007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9050
c86f7377 9051 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9052 escape sequences.
9053 * keyboard.h (struct kboard): Add Vinput_decode_map.
9054 Remove Vlocal_key_translation_map.
9055 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9056 (init_kboard): Init input-decode-map.
9057 Replace local-key-translation-map back with key-translation-map.
9058 (syms_of_keyboard): Declare input-decode-map.
9059 Remove local-key-translation-map. Update docstrings.
9060 (mark_kboards): Mark Vinput_decode_map.
9061 Don't mark Vlocal_key_translation_map.
9062 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9063 Replace local-key-translation-map back with key-translation-map.
9064 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9065 Bind in input-decode-map rather than function-key-map.
9066
beb9f745
SM
9067 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9068 This was made redundant by the previous introduction of XSETPVECTYPE.
9069
65342ae3
RS
90702007-10-09 Richard Stallman <rms@gnu.org>
9071
beb9f745 9072 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9073
90742007-09-29 Richard Stallman <rms@gnu.org>
9075
9076 * eval.c (internal_condition_case_2, internal_condition_case_1)
9077 (internal_condition_case): Reenable abort if x_catching_errors ()
9078 to see if that really happens and why.
9079
6cff77fd
AS
90802007-10-06 Andreas Schwab <schwab@suse.de>
9081
9082 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9083
bbe6f2aa
JB
90842007-10-04 Juanma Barranquero <lekktu@gmail.com>
9085
9086 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9087
a390930c
SM
90882007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9089
9090 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9091
d6aa1876
SM
90922007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9093
d0fdb6da
SM
9094 * window.h (struct window):
9095 * window.c (struct save_window_data, struct saved_window):
9096 * termhooks.h (struct terminal):
9097 * process.h (struct Lisp_Process):
9098 * frame.h (struct frame):
9099 * buffer.h (struct buffer):
9100 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9101 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9102 The size field of (pseudo)vectors is now unsigned.
9103 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9104
878f97ff
SM
9105 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9106 Turn `count' into an integer.
d0fdb6da 9107
878f97ff
SM
9108 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9109 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9110 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9111 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9112 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9113
d2029e5b
SM
9114 * alloc.c (allocate_pseudovector): New fun.
9115 (ALLOCATE_PSEUDOVECTOR): New macro.
9116 (allocate_window, allocate_terminal, allocate_frame)
9117 (allocate_process): Use it.
9118 (mark_vectorlike): New function.
9119 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9120 (mark_terminals): Use it.
9121 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9122 (Fmake_byte_code): Use XSETPVECTYPE.
9123
9124 * frame.c (Fframe_parameters): Minor simplification.
9125
9126 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9127
9128 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9129
9130 * buffer.c (Fget_buffer_create, init_buffer_once):
9131 * lread.c (defsubr):
9132 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
9133
9134 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
9135 defined differently in the m/*.h files.
9136 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
9137 (XSETPVECTYPE): New macro.
9138 (XSETPSEUDOVECTOR): Use it.
9139
d6aa1876
SM
9140 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
9141 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 9142
d6aa1876
SM
9143 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
9144 * lread.c (defvar_per_buffer):
9145 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
9146
9147 * window.c (candidate_window_p): Only consider as visible frames that
9148 are on the same terminal.
9149
9150 * m/ibms390x.h (MARKBIT): Remove unused macro.
9151
88852d45
JB
91522007-10-01 Juanma Barranquero <lekktu@gmail.com>
9153
9154 * lread.c (Fload): Fix typo in docstring.
9155
880820fe 91562007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
9157
9158 * floatfns.c (Fexpt): Manually check for overflows, so that a power
9159 of a non-zero value can't yield zero.
9160
ed0c79c6
SM
91612007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
9162
b870aa61
SM
9163 * term.c (term_clear_mouse_face, term_mouse_highlight)
9164 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
9165
4c37a414
SM
9166 * print.c (safe_debug_print): Use XHASH.
9167
b9466edb
SM
9168 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
9169 Lisp elements such as tags.
9170 (XHASH): New macro.
9171 (EQ): Use it.
9172 (SREF, SSET, STRING_COPYIN): Use SDATA.
9173 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
9174
9c545a55
SM
9175 * alloc.c (mark_terminal): Remove left-over declaration.
9176 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
9177 (allocate_vectorlike): Remove type argument. Adjust callers.
9178 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
9179 Only handle the one remaining MEM_TYPE_VECTORLIKE.
9180
dafc79fa
SM
9181 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
9182 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
9183 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
9184 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
9185 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
9186 Use them.
9187
ed0c79c6
SM
9188 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
9189 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
9190 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
9191
3c81afd4
DN
91922007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9193
9194 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
9195 loaded by default.
9196
6178ce5e
SM
91972007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9198
4ce5ab77
SM
9199 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
9200 on this tty.
9201 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
9202
6178ce5e
SM
9203 * term.c (mouse_face_window): Rename from Qmouse_face_window.
9204 Update all users.
9205 (handle_one_term_event): Use Gpm_DrawPointer.
9206 (Fgpm_mouse_start): Rename from Fterm_open_connection.
9207 Signal errors instead of returning nil. Always return nil.
9208 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
9209 Make it a noop if gpm-mouse was not activated.
9210 (syms_of_term): Update names.
9211
bdf5f8ef
SM
92122007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
9213
75a8734b
SM
9214 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
9215 (init_sys_modes): Check that gpm_tty is the current tty.
9216
13559ee0
SM
9217 * alloc.c (allocate_terminal): Set the vector size to only count the
9218 lisp fields. Initialize those to nil.
9219 (mark_object): Don't treat terminals specially.
9220 (mark_terminal): Remove.
9221 (mark_terminals): Use mark_object instead.
9222
ff16b875
SM
9223 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
9224 the GC to the beginning.
9225
83155776
SM
9226 * indent.h:
9227 * indent.c: Use EMACS_INT for ints coming from Elisp data.
9228
bdf5f8ef
SM
9229 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
9230
ec8705b6
JR
92312007-09-25 Jason Rumney <jasonr@gnu.org>
9232
9233 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
9234
9235 * w32console.c (create_w32cons_output): Remove.
9236
9237 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
9238
9239 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
9240 (reset_sys_modes): Use reset_terminal_modes_hook.
9241
7351b242
SM
92422007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
9243
9244 * eval.c (do_autoload): Don't output any message.
9245
16706228
JL
92462007-09-24 Juri Linkov <juri@jurta.org>
9247
9248 * emacs.c (standard_args): Change priority of "--no-splash"
9249 from 40 to 3. Add "--no-desktop" with the same priority.
9250
3ae2e3a3
RS
92512007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
9252
9253 * alloc.c (gc_sweep): Check cons cell mark bits word by word
9254 and optimize the case where they are all 1.
9255
7a58fb43
GM
92562007-09-23 Johannes Weiner <hannes@saeurebad.de>
9257
3ae2e3a3
RS
9258 * lisp.h (abs): Define if not defined.
9259 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
9260 Don't define `abs', since it's defined in lisp.h.
7a58fb43 9261
78048085
EZ
92622007-09-22 Eli Zaretskii <eliz@gnu.org>
9263
c7a4b95b 9264 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
9265 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
9266 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
9267 (init_tty): Use DEV_TTY instead of "/dev/tty".
9268 [WINDOWSNT]: No need to protect from NAME arg being null.
9269
23d4cba5
DN
92702007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9271
9272 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
9273 up the tty state.
9274
71f44e7a
SM
92752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9276
9277 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
9278 (gpm_tty): Change its type.
9279 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
9280 (gpm_tty): Change its type and initialize it.
9281 (Fterm_open_connection): Check the frame is indeed a tty.
9282 Use the new gpm_tty.
9283 (Fterm_close_connection): Use the new gpm_tty.
9284 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
9285 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
9286
def7fa34
JB
92872007-09-21 Juanma Barranquero <lekktu@gmail.com>
9288
9289 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
9290 underline_color, to draw strike-through.
9291
d2bb6598
SM
92922007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9293
273f164c
SM
9294 * lisp.h (allocate_terminal): Declare.
9295
ca2d5566
SM
9296 * window.c (candidate_window_p): Consider frames that are being placed
9297 by the user as somewhere between visible and iconified.
9298 (window_loop): Prefer windows on the current frame.
9299 (Fselect_window): Move the use of select-frame to the beginning so we
9300 can just delegate all the work (it'll call us back anyway).
9301
6168122d
SM
9302 * frame.c (Qdisplay_environment_variable):
9303 * frame.h (Qdisplay_environment_variable): Delete.
9304
c51842ec
SM
9305 * .gdbinit (xbacktrace): Print the arg's address rather than the value
9306 of the first arg, since that value may be a union.
9307
d2bb6598
SM
9308 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
9309 parameter rather than Qdisplay_environment_variable. If all else
9310 fails, look for DISPLAY in initial-environment.
9311
6f022c19
GM
93122007-09-21 Glenn Morris <rgm@gnu.org>
9313
9314 * Makefile.in (emacstool): Remove target.
f466320b 9315 (lisp, shortlisp): Remove termdev.elc.
6f022c19 9316
ea1bf8c7
GM
93172007-09-21 Markus Triska <markus.triska@gmx.at>
9318
d2bb6598 9319 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 9320
d30a25b3
SM
93212007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
9322
db699fc6
SM
9323 * callproc.c (getenv_internal_1): New function.
9324 (getenv_internal): Use it.
9325 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
9326
d2bb6598 9327 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
9328 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
9329 (Fset_terminal_parameter): Work with dead terminals as well.
9330 (Fmodify_terminal_parameters): Remove.
9331
d30a25b3
SM
9332 * terminal.c (get_terminal): Handle terminals.
9333 Make sure the terminal returned is live.
9334 (create_terminal): Use allocate_terminal.
9335 (mark_terminals): Move to alloc.c.
9336 (delete_terminal): Use terminal->name as liveness status.
9337 NULL out fields after freeing their contents.
9338 Don't deallocate the object.
9339 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
9340 rather than an int.
9341 (Fterminal_live_p): Accept non-integer arguments.
9342 (Fterminal_list): Return terminal objects rather than an ints.
9343
9344 * alloc.c (enum mem_type): New member for `terminal' objects.
9345 (allocate_terminal): New function.
d2bb6598
SM
9346 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
9347 Handle terminals.
d30a25b3
SM
9348 (mark_terminal): New fun.
9349 (mark_terminals): Move from terminal.c.
9350
9351 * term.c (get_tty_terminal): Don't treat output_initial specially.
9352 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
9353 (delete_tty): Use terminal->name as liveness status.
9354
9355 * termhooks.h (struct terminal): Make it into a pseudovector.
9356 Remove `deleted' replaced by checking `name's nullness.
9357
9358 * print.c (print_object): Handle terminals.
9359
9360 * lisp.h (enum pvec_type): New `terminal' pseudovector.
9361 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
9362
9363 * frame.c (make_terminal_frame):
9364 * keyboard.c (tty_read_avail_input):
9365 * w32term.c (x_delete_terminal):
9366 * xfns.c (Fx_create_frame, x_create_tip_frame):
9367 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
9368
eba25e7c
GM
93692007-09-20 Glenn Morris <rgm@gnu.org>
9370
9371 * process.c (Fmake_network_process): Doc fix.
9372
2a29c3c1
JR
93732007-09-19 Jason Rumney <jasonr@gnu.org>
9374
9375 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
9376
880820fe 93772007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
9378
9379 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
9380 Fix a C warning regarding variable constness.
9381
9382 * xterm.c (handle_one_xevent): Fix a C warning.
9383
334a1195
JR
93842007-09-18 Jason Rumney <jasonr@gnu.org>
9385
9386 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
9387
880820fe 93882007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
9389
9390 * gtkutil.c (gdpy_def): New variable.
9391 (xg_initialize): Initialize gdpy_def.
9392 (xg_display_close): If no other display exists, set gdpy_def to a
9393 new connection.
9394
880820fe 93952007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
9396
9397 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
9398 when we have no file name for the icon.
9399 (xg_tool_bar_expose_callback): Remove.
9400 (xg_create_tool_bar): Don't connect expose signal to
9401 xg_tool_bar_expose_callback.
9402 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
9403
4d580af2
AS
94042007-09-16 Andreas Schwab <schwab@suse.de>
9405
9406 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
9407 values instead of zapping them.
9408
aca946f3
GM
94092007-09-14 Glenn Morris <rgm@gnu.org>
9410
9411 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
9412 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
9413 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
9414 scope and rename to omfib_buffer for clarity.
9415 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
9416
25c460e5
KH
94172007-09-14 Kenichi Handa <handa@m17n.org>
9418
9419 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
9420
09b69f01
JR
94212007-09-13 Jason Rumney <jasonr@gnu.org>
9422
9423 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
9424
9425 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
9426
9427 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
9428 (mac_term_init): Call here instead, passing rif.
9429
442218db
GM
94302007-09-13 Glenn Morris <rgm@gnu.org>
9431
9432 * s/hpux.h: No longer define `static' as nothing.
9433
880820fe 94342007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
9435
9436 * callint.c (Fcall_interactively): Remove unused var `fun'.
9437
1971a872
RF
94382007-09-12 Romain Francoise <romain@orebokech.com>
9439
9440 * window.c (prefer_window_split_horizontally, display_buffer):
9441 Revert 2007-09-08 change.
9442
2d33f506
GM
94432007-09-12 Glenn Morris <rgm@gnu.org>
9444
585474ae 9445 * alloca.c: Remove file.
ca7af97a
GM
9446 * Makefile.in (alloca): Do not undef.
9447 (allocaobj, alloca.o): Remove.
9448 (otherobj): Remove allocaobj.
9449 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
9450 * regex.c (C_ALLOCA): Remove all references and code that was only
9451 used when this was defined.
9452 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
9453 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
9454 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
9455
2d33f506 9456 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
9457
9458 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
9459 (menu_grab_callback): All uses changed.
9460
9461 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
9462 (x_reply_selection_request): All uses changed.
2d33f506 9463
18a4a65e
SM
94642007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9465
9466 * lread.c (load_warn_old_style_backquotes): Change message to look
9467 better when it appears in the middle of byte-compiler messages.
9468
47cc8819
DN
94692007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
9470
b7ea0894
DN
9471 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
9472
47cc8819
DN
9473 * xterm.c (x_create_terminal): Add comment.
9474
9475 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
9476
5632bd0f
RS
94772007-09-10 Richard Stallman <rms@gnu.org>
9478
9479 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
9480
880820fe 94812007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 9482
4bca9161
MC
9483 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
9484 (DEFUN): Document `intspec', use it instead of `prompt'.
9485
04724b69
MC
9486 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
9487
8a6d230a
MC
9488 * data.c (Finteractive_form): If the interactive specification starts
9489 with a `(', use it as a Lisp form.
9490
09fbdf6c
MC
9491 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
9492 name and file modes.
9493
ccb5c14f
MC
9494 * callint.c (Fcall_interactively): Comment fixes.
9495
023accd6
SM
94962007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9497
9498 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
9499 and compiled functions.
9500
f26b9544
EZ
95012007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
9502
9503 * window.c (prefer_window_split_horizontally): New variable.
9504 (display_buffer): Consider splitting window horizontally depending
9505 on prefer_window_split_horizontally.
9506
4d395425
EZ
95072007-09-08 Eli Zaretskii <eliz@gnu.org>
9508
97ddc760 9509 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 9510
08c1d235
SM
95112007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9512
179cef48
SM
9513 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
9514
08c1d235
SM
9515 * frame.c (x_set_frame_parameters): Check number is positive before
9516 using XFASTINT.
9517
9518 * window.c (freeze_window_start): Don't presume selected_window holds
9519 a window object.
92f94a12 9520 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 9521
97ddc760 95222007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
9523
9524 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
9525
90ab5c62
SM
95262007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9527
9528 * window.c (Vsplit_window_preferred_function): New var.
9529 (Fdisplay_buffer): Use it.
9530 (syms_of_window): Export, and initialize it.
9531
1ab2cd43
TTN
95322007-09-06 Pixel <pixel@mandriva.com> (tiny change)
9533
9534 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
9535
0b0515bc
GM
95362007-09-06 Glenn Morris <rgm@gnu.org>
9537
57fd5c55 9538 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
9539 * xselect.c (x_reply_selection_request) <cnt>: Move static
9540 variable to file scope.
9541
98594580
SM
95422007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
9543
9544 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
9545 consistent values of selected_frame and selected_window.
9546
0f4c7aef
JR
95472007-09-04 Jason Rumney <jasonr@gnu.org>
9548
9549 * w32console.c (initialize_w32_display): Zero unused hooks.
9550
e4019195
DN
95512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
9552
9553 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
9554 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
9555
bce179b5
JR
95562007-09-04 Jason Rumney <jasonr@gnu.org>
9557
a0236551
JR
9558 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
9559 in w32console.c. Set up input. Remove XXX comments that have been
9560 confirmed as correct.
9561
a4926668
JR
9562 * s/ms-w32.h (MULTI_KBOARD): Define.
9563
953bf0dc
JR
9564 * w32console.c (one_and_only_w32cons): Remove.
9565 (initialize_w32_display): Take terminal argument.
9566
9567 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
9568 initialize_w32_display.
9569 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
9570
bce179b5
JR
9571 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
9572
9573 * keyboard.c (discard_mouse_events): Discard it.
9574 (make_lispy_event): Translate it to a lisp event.
9575 (lispy_wheel_names): Add wheel-left and right events.
9576 (syms_of_keyboard): Enlarge wheel_syms.
9577
9578 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
9579 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
9580
9581 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
9582
9583 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
9584 from WM_MOUSEHWHEEL.
9585 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
9586
9587 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
9588 terminal.
9589
9590 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
9591 keyboard for the terminal.
9592
92cd6a7c
DN
95932007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
9594
9595 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
9596 (Vresume_tty_hook): Rename from Vresume_tty_functions.
9597 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
9598 and resume-tty-function to resume-tty-hook.
9599 (Fsuspend_tty, Fresume_tty): Use new names.
9600
880820fe 96012007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
9602
9603 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
9604 if it starts with "n:".
9605
880820fe 96062007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
9607
9608 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
9609
6b8e474c
SM
96102007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9611
92d9c1d4
SM
9612 * frame.h:
9613 * frame.c (Qterm_environment_variable): Remove.
9614 (syms_of_frame): Don't init and staticpro it.
9615
92d9c1d4
SM
9616 * callproc.c (getenv_internal): Remove special case for $TERM.
9617
6b8e474c
SM
9618 * callproc.c (Vinitial_environment): New variable.
9619 (set_initial_environment): Initialize it.
9620 (syms_of_callproc): Declare it.
9621 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
9622 TERM under which a process runs is never related to the TERM in which
9623 Emacs is running.
9624
0f1444e1
DN
96252007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
9626
9627 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
9628 * s/darwin.h: ... do it here.
9629
b8866860
SM
96302007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9631
9632 * lisp.h (set_initial_environment): Rename from set_global_environment.
9633
9634 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
9635 removed by mistake on the multi-tty branch.
9636
9637 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
9638 (Fmodify_frame_parameters): Return a value.
9639
9640 * image.c (png_load): Comment-out var only used in commented-out code.
9641
9642 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
9643 before passing it to mark_object.
9644
9645 * xfaces.c (internal_resolve_face_name): Return a value.
9646 (internal_resolve_face_name, resolve_face_name_error): Comment out.
9647
9648 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
9649 (x_icon): Comment-out var only used in commented-out code.
9650
0a42be6d
RF
96512007-08-29 Romain Francoise <romain@orebokech.com>
9652
9653 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
9654 QUIT hasn't been provided.
9655
8d9cc0b7
MB
96562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
9657
9658 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 9659 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
9660 (set_initial_environment): Initialise Vprocess_environment.
9661
9662 * config.in: Disable multi-keyboard support on a mac.
9663
9664 * frame.c (Qterm_environment_variable)
9665 (Qdisplay_environment_variable): New variables.
9666 (syms_of_frame): Intern and staticpro them.
9667 (Fmake_terminal_frame): Disable output method test.
9668
9669 * frame.h: Declare them here.
9670
9671 * macfns.c (x_set_mouse_color): Get rif from the frame.
9672 (x_set_tool_bar_lines): Don't use updating_frame.
9673 (mac_window): Add 2 new parameters for consistency with other systems.
9674 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
9675 frame parameters following what is done in X11 and w32. Don't use
9676 FRAME_MAC_DISPLAY_INFO.
9677 (Fx_open_connection, start_hourglass): Remove window-system check.
9678 (x_create_tip_frame): Get the keyboard from the terminal.
9679
9680 * macmenu.c: Reorder includes.
9681 (Fx_popup_menu): Use terminal specific mouse_position_hook.
9682
9683 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
9684 terminal parameter.
9685 (x_clear_frame): Add a frame parameter.
9686 (note_mouse_movement): Get rif from the frame.
9687 (mac_term_init): Initialize the terminal.
9688 (mac_initialize): Make static and move terminal initialization ...
9689 (mac_create_terminal): ... to this new function.
9690
9691 * macterm.h (struct mac_display_info): Add terminal.
7196c970 9692 (mac_initialize): Delete declaration.
8d9cc0b7 9693
381864b2 9694 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
9695
9696 * sysdep.c: Comment out text after #endif.
9697
9698 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
9699 is defined. Better initialize ttys in windows. Use terminal
9700 specific mouse_position_hook.
9701
9702 * termhooks.h (union display_info): Add mac_display_info.
9703
b8866860
SM
9704 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
9705 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
9706 frame parameters following what is done in X11.
9707
9708 * w32term.c (w32_initialize): Make static.
9709
9710 * xselect.c (x_handle_selection_clear): Only access
9711 terminal->kboard when MULTI_KBOARD is defined.
9712
9713 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
9714 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
9715
97162007-08-29 Jason Rumney <jasonr@gnu.org>
9717
9718 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
9719 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
9720
9721 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
9722 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
9723
9724 * keyboard.c (restore_kboard_configuration): Only define when
9725 MULTI_KBOARD defined.
9726
35277b03 9727 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
9728 (OBJ1): Add terminal.$(O)
9729
b8866860
SM
9730 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
9731 Don't define function body.
8d9cc0b7
MB
9732 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
9733
9734 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
9735
9736 * w32.c (request_sigio, unrequest_sigio): Remove.
9737
9738 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
9739 (w32con_clear_frame, w32con_clear_end_of_line)
9740 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
9741 (w32con_delete_glyphs, w32con_set_terminal_window)
9742 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
9743 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
9744 Add terminal arg.
8d9cc0b7
MB
9745 (PICK_FRAME): Remove.
9746 (w32con_write_glyphs): Use frame specific terminal coding.
9747 (one_and_only_w32cons): New global variable.
9748 (initialize_w32_display): Use it for storing hooks.
9749 (create_w32cons_output): New function.
9750
9751 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
9752 arg a frame.
9753
b8866860
SM
9754 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
9755 Set window_system.
8d9cc0b7
MB
9756 (x_set_tool_bar_lines): Don't use updating_frame.
9757 (Fx_create_frame): Set terminal and ref count.
9758 (Fx_open_connection): Remove window-system check.
9759
9760 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
9761
9762 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
9763 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
9764 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
9765 Add frame arg.
9766 (x_delete_terminal, w32_create_terminal): New functions.
9767 (w32_term_init): Create a terminal.
9768 (w32_initialize): Move terminal specific initialization to
9769 w32_create_terminal.
9770
b8866860 9771 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
9772 (w32_clear_rect, w32_clear_area): Use background from frame.
9773 (w32_display_info): Add terminal.
9774 (w32_sys_ring_bell, x_delete_display): Declare here.
9775
9776 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
9777
9778 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
9779
97802007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
9781
9782 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
9783 Fix get_named_tty calls for the controlling tty.
9784
97852007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
9786
9787 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
9788
97892007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
9790
9791 * term.c (tty_insert_glyphs): Add missing first parameter.
9792
880820fe 97932007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 9794
b8866860
SM
9795 * buffer.c (Fbuffer_list, Fbury_buffer):
9796 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
9797
9798 * cm.c (current_tty): New variable, for cmputc().
9799 (cmputc): Use it.
9800 (cmcheckmagic): Add tty parameter, look up terminal streams there.
9801 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
9802 (cmgoto): Add tty parameter. Pass it on to calccost().
9803 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
9804
9805 * cm.h (emacs_tputs): New macro to set current_tty, and then call
9806 tputs().
9807 (current_tty): New variable, for cmputc().
9808 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
9809
9810 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
9811 (internal_condition_case, internal_condition_case_1)
9812 (internal_condition_case_2): Don't abort when x_catching_errors.
9813
9814 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
9815 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
9816 prevent crashes caused by bogus longjmps in read_char.
9817
9818 * keymap.h (Fset_keymap_parent): Add EXFUN.
9819
9820 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
9821 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
9822 Remove redundant definition.
9823
b8866860
SM
9824 * macfns.c (x_set_mouse_color, x_make_gc):
9825 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 9826
b8866860
SM
9827 * w32term.c (x_free_frame_resources):
9828 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9829 (w32_initialize): Use the accessor macros for terminal characteristics.
9830
9831 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
9832 Use the accessor macros for terminal characteristics.
9833 * msdos.c (internal_terminal_init): Use the accessor macros for
9834 terminal characteristics.
b8866860
SM
9835 (ScreenVisualBell, internal_terminal_init):
9836 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9837
9838 * termopts.h (no_redraw_on_reenter): Declare.
9839
9840 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 9841 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 9842 (Fgarbage_collect): Call them.
03f06e5c 9843 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
9844
9845 * prefix-args.c: Include stdlib.h for exit.
9846
9847 * syssignal.h: Add comment.
9848
9849 * indent.c: Include stdio.h.
9850
9851 * window.h (Vinitial_window_system): Declare.
9852 (Vwindow_system): Delete declaration.
9853
9854 * fontset.c (Finternal_char_font): Use FRAME_RIF.
9855
9856 * image.c (lookup_image): Don't initialize `c' until the xasserts
9857 have been run.
9858
9859 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
9860 FRAME_FOREGROUND_PIXEL.
9861
9862 * print.c (print_preprocess): Don't lose print_depth levels while
9863 iterating.
9864
b8866860
SM
9865 * widget.c (update_from_various_frame_slots):
9866 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9867
9868 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
9869 frames.
9870 (window_internal_height): Remove bogus make_number call.
b8866860 9871 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
9872
9873 * fileio.c (Fread_file_name): Update comment.
9874
b8866860
SM
9875 * callint.c (Fcall_interactively):
9876 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
9877 Make sure it is correctly unwound.
9878
9879 * xsmfns.c (x_session_close): New function.
9880
03f06e5c 9881 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
9882 Delete declarations.
9883
9884 * xterm.h: Remove declaration for x_fully_uncatch_errors.
9885 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 9886 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
8d9cc0b7
MB
9887 (x_delete_device):
9888 (x_session_close): Declare.
9889
9890 * lread.c: Include setjmp.h. Update declaration of `read_char'.
9891 (read_filtered_event): Call `read_char' with a local
9892 `wrong_kboard_jmpbuf'.
9893
b8866860
SM
9894 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
9895 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
9896
9897 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
9898 systems.
9899
b8866860 9900 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 9901 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 9902 (Fset_quit_char): EXFUN.
03f06e5c 9903 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
9904 (init_sys_modes, reset_sys_modes): Update prototypes.
9905 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
9906
b8866860
SM
9907 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
9908 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 9909 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 9910 Delete declarations.
03f06e5c
JB
9911 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
9912 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
9913 New declarations.
9914
9915 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
9916 already does that during init_display(). Call syms_of_keymap
b8866860
SM
9917 before syms_of_keyboard. Call `syms_of_terminal'.
9918 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
9919 (shut_down_emacs): Call reset_all_sys_modes() instead of
9920 reset_sys_modes().
9921
9922 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
9923 (internal_resolve_face_name, resolve_face_name_error): New functions.
9924 (resolve_face_name): Protect against loops and errors thrown by Fget.
9925 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
9926 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
9927
9928 * scroll.c: Replace CURTTY() with local variables throughout the
9929 file (where applicable).
9930 (calculate_scrolling, calculate_direct_scrolling)
9931 (scrolling_1, scroll_cost): Use the accessor macros for terminal
9932 characteristics.
9933
9934 * keymap.c (Vfunction_key_map): Remove.
b8866860 9935 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
9936 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
9937 (Vkey_translation_map): Remove.
9938 (syms_of_keymap): Remove DEFVAR for key-translation-map.
9939 (Fdescribe_buffer_bindings):
9940 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
9941 Update for terminal-local key-translation-map.
9942
9943 * Makefile.in (callproc.o): Update dependencies.
9944 (lisp, shortlisp): Add termdev.elc.
9945 (obj): Add terminal.o.
9946 (terminal.o): Add dependencies.
9947 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
9948 (data.o, fns.o): Add termhooks.h dependency.
9949 (SOME_MACHINE_LISP): Add dnd.elc.
9950 (minibuf.o): Fix typo.
9951 Update dependencies.
9952
9953 * data.c (do_symval_forwarding, store_symval_forwarding)
9954 (find_symbol_value): Use the selected frame's keyboard, not
9955 current_kboard.
9956
9957 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
9958 Vwindow_system.
9959
9960 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
9961 Fmenu_bar_open.
9962 (syms_of_xmenu): Update defsubr.
9963 (mouse_position_for_popup, Fx_popup_menu)
9964 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
9965 (set_frame_menubar, free_frame_menubar)
9966 (create_and_show_popup_menu, xmenu_show, )
9967 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
9968 an X frame.
9969
9970 * xselect.c (x_own_selection): Abort if not an X frame.
9971 (some_frame_on_display): Check if it is an X frame.
9972 (x_handle_selection_clear): Deal with MULTI_KBOARD.
9973
9974 * coding.c: Include frame.h and termhooks.h.
03f06e5c 9975 (terminal_coding, keyboard_coding): Delete.
8d9cc0b7
MB
9976 (Fset_terminal_coding_system_internal):
9977 (Fset_keyboard_coding_system_internal):
9978 (Fkeyboard_coding_system):
03f06e5c
JB
9979 (Fterminal_coding_system): Add a terminal parameter.
9980 Get terminal_coding from the terminal.
8d9cc0b7
MB
9981 (init_coding_once): Don't call setup_coding_system here.
9982
9983 * dispextern.h (set_scroll_region, turn_off_insert)
9984 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
9985 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 9986 (delete_tty, updating_frame)
8d9cc0b7
MB
9987 (produce_special_glyphs, produce_glyphs, write_glyphs)
9988 (insert_glyphs): Remove.
9989 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 9990 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 9991 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
9992
9993 * frame.h (enum output_method): Add output_initial.
9994 (struct x_output): Delete.
b8866860
SM
9995 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
9996 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
9997 (tty_display): Delete.
9998 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 9999 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
10000 (union output_data): Add tty.
10001 (FRAME_KBOARD): Get the kboard from the terminal.
10002 (FRAME_INITIAL_P): New macro.
10003 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10004 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10005 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10006 New declarations.
8d9cc0b7
MB
10007
10008 * termchar.h (tty_output, tty_display_info): New structures.
10009 (tty_list): Declare.
10010 (FRAME_TTY, CURTTY): New macros.
10011 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10012 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10013 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10014 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10015
10016 * callproc.c: Include frame.h and termhooks.h, for terminal
10017 parameters.
10018 (add_env): New function.
10019 (child_setup): Use it.
b8866860 10020 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10021 (getenv_internal): Fix get_terminal_param call.
10022 (Fgetenv_internal, egetenv): Update doc.
10023 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10024 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10025 strings.
10026 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10027 (getenv_internal): Add terminal parameter.
10028 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10029 (Fgetenv_internal): Add terminal parameter.
10030 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10031 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10032 (set_initial_environment): Rename from set_global_environment.
10033 Store Emacs environment in initial frame parameter.
10034
10035 * xdisp.c (redisplay_internal): Update references to
10036 `previous_terminal_frame'.
10037 (display_mode_line, Fformat_mode_line): Replace calls to
10038 `push_frame_kboard' with `push_kboard'.
10039 (get_glyph_string_clip_rects): Add extra parentheses and
10040 braces to prevent compiler warnings.
10041 (calc_pixel_width_or_height): Add xassert to check that the
10042 frame is alive. Don't call `lookup_image' on a termcap frame.
10043 (message2_nolog, message3_nolog, redisplay_internal)
10044 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10045 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10046 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10047 (Fx_display_pixel_width, Fx_display_pixel_height)
10048 (Fx_display_planes, Fx_display_color_cells)
10049 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10050 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10051 (Fx_display_backing_store, Fx_display_visual_class)
10052 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10053 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10054
10055 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10056 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10057 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10058 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10059 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10060 terminal that is being deleted.
10061 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10062 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10063 (Fx_close_connection, Fx_synchronize): Unify argument names with
10064 the rest of the DEFUNs.
10065
10066 * dispnew.c (Fsend_string_to_terminal): Update call to
10067 `get_tty_terminal'.
10068 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10069 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10070 FRAME_TERMCAP_P and FRAME_TTY.
10071 (window_change_signal): Don't believe width/height values that are
10072 impossibly small.
10073 (Vinitial_window_system): Rename from Vwindow_system.
10074 (termscript, Wcm, rif): Delete.
10075
10076 * termhooks.h (struct terminal): New struct containing the
10077 previously global text display hooks and new members NAME,
10078 DELETED and PARAM_ALIST.
10079 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10080 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10081 (FRAME_RIF): New macros.
10082 (get_terminal_param, get_device): New declarations.
10083 (termscript): Delete declaration.
10084
10085 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10086 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10087 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10088 FRAME_FOREGROUND_PIXEL.
10089 (x_fully_uncatch_errors): Disable definition.
10090 (x_scroll_bar_expose): Fix reference to foreground pixel.
10091 (XTread_socket): Disable loop on all X displays.
10092 (x_delete_terminal): Don't set terminal->deleted and let
10093 delete_terminal delete the frames on the terminal.
10094 (x_delete_display): Doc update to reflect changes in
10095 delete_terminal.
10096 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10097 (deleting_tty): Remove old variable.
10098 (Fsuspend_tty): Call clear_tty_hooks.
10099 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10100 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10101 errors on X frames.
10102 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10103 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10104 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10105 (XTset_terminal_modes, XTreset_terminal_modes)
10106 (XTread_socket, x_connection_closed, x_term_init)
10107 (x_term_init, x_delete_display): Add terminal parameter.
10108 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10109 X connections.
10110
bf380f53
GM
10111 * frame.c: Include termchar.h.
10112 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10113 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10114 (Qdisplay_environment_variable): New vars.
10115 (Fframep): Deal with output_initial.
10116 (Fframe-live-p): Doc fix.
10117 (Fwindow-system): New function.
8d9cc0b7
MB
10118 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10119 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10120 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10121 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10122 (Fmake_terminal_frame): Handle NULL tty names correctly.
10123 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10124 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10125 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10126 (Fframe_with_environment): New function.
b8866860 10127 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10128 (get_future_frame_param): New function.
10129 (Fmake_terminal_frame): Use it.
2d33f506 10130 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10131
10132 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
10133 * sysdep.c (reset_sys_modes): Update for renames.
10134
10135 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 10136 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
10137 (syms_of_keyboard): Defsubr them.
10138 (Fset_input_meta_mode, Fset_quit_char): New functions.
10139 (Fset_input_mode): Split to above functions.
10140
10141 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
10142 parameter. Use it in call to `read_char'.
b8866860
SM
10143 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
10144 Set wrong_kboard_jmpbuf correctly in recursive calls.
10145 Use current_kboard to access Vkeyboard_translate_table.
10146 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
10147 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
10148 Update longjmp invocations. Remember the original current_kboard,
10149 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
10150 changes it. Comment out unnecessary calls to
10151 `record_single_kboard_state' and `any_kboard_state'.
10152 Update recursive calls.
8d9cc0b7
MB
10153 (wrong_kboard_jmpbuf): Remove global variable.
10154 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
10155 Handle deleted interrupted_kboards correctly; that is a legal
10156 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 10157 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
10158 (any_kboard_state, single_kboard_state)
10159 (push_frame_kboard): Remove function.
10160 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
10161 been deleted. Remove unused variable. Help debugging by not
10162 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
10163 kboard of the selected frame when the stored kboard object has
10164 been deleted before pop_kboard.
10165 (temporarily_switch_to_single_kboard): Change first parameter to a
10166 frame pointer. Throw an error when caller wants to change kboards
10167 while in single_kboard mode. Don't push_kboard if we weren't in
10168 single kboard state. Don't pop_kboard if we popped into any
10169 kboard state.
10170 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 10171 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
10172 up single_kboard mode.
10173 (Frecursive_edit): Switch to single_kboard mode only in nested
10174 command loops.
b8866860
SM
10175 (cmd_error, command_loop, command_loop_1, timer_check):
10176 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
10177 `record_single_kboard_state'.
10178 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 10179 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
10180 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
10181 `fatal_error_signal'.
10182 (record_single_kboard_state): Don't push_kboard if we weren't in
10183 single kboard state. Don't pop_kboard if we popped into any
10184 kboard state.
10185 (push_frame_kboard): Rename to push_kboard.
10186 (kbd_buffer_get_event): Use FRAME_TERMINAL.
10187 (read_avail_input): Read input from all terminals.
10188 (mark_kboards): Also mark Vkeyboard_translate_table.
10189 (kbd_buffer_store_event_hold): Simplify condition.
10190 (read_key_sequence): Reinitialize fkey and keytran at each replay.
10191 (Vkeyboard_translate_table): Move to struct kboard.
10192 (init_kboard): Initialize Vkeyboard_translate_table.
10193 (syms_of_keyboard): Use DEFVAR_KBOARD to define
10194 Vkeyboard_translate_table. Update doc strings. Update docs of
10195 local-function-key-map and function-key-map.
10196
10197 * terminal.c: New file.
10198
10199 * term.c: Include errno.h.
10200 (Vring_bell_function, device_list, initial_device)
10201 (next_device_id, ring_bell, update_begin, update_end)
10202 (set_terminal_window, cursor_to, raw_cursor_to)
10203 (clear_to_end, clear_frame, clear_end_of_line)
10204 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
10205 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
10206 (syms_of_term): Move their initialization to terminal.c.
10207 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
10208 (Ftty_display_color_cells)
10209 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 10210 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
10211 (init_tty, maybe_fatal): New functions.
10212 (Ftty_type): Return nil if terminal is not on a tty instead of
10213 throwing an error. Doc update.
10214 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 10215 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
10216 (delete_tty): Use terminal->deleted.
10217 (tty_set_terminal_modes): Rename from set_terminal_modes.
10218 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
10219 (set_scroll_region): Rename to `tty_set_scroll_region'.
10220 (turn_on_insert): Rename to `tty_turn_on_insert'.
10221 (turn_off_insert): Rename to `tty_turn_off_insert'.
10222 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
10223 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
10224 (toggle_highligh): Rename to `tty_toggle_highlight'.
10225 (background_highlight): Rename to `tty_background_highlight'.
10226 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
10227 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
10228 (tty_set_scroll_region, tty_background_highlight)
10229 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
10230 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
10231 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
10232 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
10233 Add static modifier.
10234 (tty_reset_terminal_modes, tty_set_terminal_window)
10235 (tty_set_scroll_region, tty_background_highlight)
10236 (tty_highlight_if_desired, tty_cursor_to)
10237 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
10238 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
10239 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
10240 renames.
10241
880820fe 102422007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
10243
10244 * keyboard.c: Qrtl is new.
10245 (parse_tool_bar_item): Handle :rtl keyword.
10246 (syms_of_keyboard): Intern :rtl keyword.
10247
10248 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
10249
10250 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
10251 so no Lisp code is executed.
10252 (file_for_image, find_rtl_image): New functions.
10253 (xg_get_image_for_pixmap): Use file_for_image
10254 (update_frame_tool_bar): If direction is RTL, use RTL image if
10255 defined. Use Gtk stock images if defined.
10256
83cc8d35
YM
102572007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10258
10259 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
10260 for nonexistent or zero-width glyph in composition glyph.
10261
e60c4e15
SM
102622007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
10263
d7e2a28f
SM
10264 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
10265
e60c4e15
SM
10266 * xdisp.c (Finvisible_p): New function.
10267 (syms_of_xdisp): defsubr it.
10268
ee163e6d
JB
102692007-08-24 Juanma Barranquero <lekktu@gmail.com>
10270
10271 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
10272 Doc fixes.
10273
90fa408d
YM
102742007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10275
35277b03 10276 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 10277
cac4219c
MR
102782007-08-24 Martin Rudalics <rudalics@gmx.at>
10279
10280 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
10281 whether decoding has modified buffer contents.
10282
5fc9fdeb
JR
102832007-08-24 Jason Rumney <jasonr@gnu.org>
10284
10285 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
10286 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
10287 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
10288 (init_svg_functions) [HAVE_NTGUI]: New function.
10289 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
10290 (svg_load_image): Use them.
10291 (svg_load_image) [HAVE_NTGUI]: Implement background.
10292
93b23406
YM
102932007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10294
10295 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
10296 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
10297 (LIBX): Remove @RSVG_LIBS@.
10298 (LIBES): Add $(RSVG_LIBS).
10299
10300 * image.c (svg_load_image): Blend with specified background if exists.
10301 Use IMAGE_BACKGROUND. Add Mac OS Support.
10302
10303 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
10304 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
10305 Remove macros.
10306 [MAC_OSX] (socket_callback): Do nothing.
10307 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
10308 ReceiveNextEvent.
10309 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
10310 socket_callback.
10311 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
10312
2467875c
GM
103132007-08-22 Glenn Morris <rgm@gnu.org>
10314
ff8da443 10315 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 10316
4ab27a43
GM
103172007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
10318
10319 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 10320
666e0eda
GM
10321 * image.c: Add support for SVG images. Some additional comments
10322 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
10323 (svg_image_p): New function to test for SVG image.
10324 (svg_load): New function to load SVG image.
10325 (svg_load_image): New function, helper for svg_load.
10326 (Qsvg): New Lisp_object.
10327 (svg_keyword_index): New enum.
10328 (svg_format): New static `image_keyword' struct.
10329 (svg_type): New static `image_type' struct.
10330 (librsvg/rsvg.h): Include it.
4ab27a43 10331
b636b4c1
SM
103322007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
10333
10334 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
10335
9ecb827b
SM
103362007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
10337
1d064697
SM
10338 * lread.c (Qold_style_backquotes): New var.
10339 (syms_of_lread): Init and staticpro it.
10340 (load_warn_old_style_backquotes): New fun.
10341 (Fload): Use them to warn about old style backquotes.
10342 (end_of_file_error, Fload): Remove unused vars.
10343
5772ed4b
SM
10344 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
10345
9ecb827b 10346 * lread.c (Vold_style_backquotes): New var.
5aa273b0 10347 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
10348 (read1): Set it when we find an old-style (back)quote.
10349
32e1c7b1
JR
103502007-08-22 Jason Rumney <jasonr@gnu.org>
10351
10352 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
10353
b8fa755b
KY
103542007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
10355
10356 * puresize.h (BASE_PURESIZE): Increase to 1140000.
10357
1283140e
RS
103582007-08-19 Richard Stallman <rms@gnu.org>
10359
10360 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
10361
2c4685ee
AS
103622007-08-19 Andreas Schwab <schwab@suse.de>
10363
10364 * alloc.c (pure): Round PURESIZE up.
10365
880820fe 103662007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
10367
10368 * xterm.c (handle_one_xevent): Remove check that mouse click is in
10369 active frame.
10370
6e33efc4
RS
103712007-08-16 Richard Stallman <rms@gnu.org>
10372
10373 * eval.c (Fcommandp): Add parens to clarify.
10374
10375 * minibuf.c (Fall_completions): Use enum for type of table.
10376
10377 * emacs.c (USAGE2): Improve text.
10378
fcf8ff2e
GM
103792007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
10380
5205ee62
GM
10381 * term.c (tty_default_color_capabilities): Declare static
10382 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 10383
880820fe 103842007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
10385
10386 * gtkutil.c (update_frame_tool_bar): Use -1 as index
10387 to gtk_toolbar_insert.
10388
4a181359
SM
103892007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
10390
1bc99c9c
SM
10391 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
10392
4a181359
SM
10393 * insdel.c (reset_var_on_error): New fun.
10394 (signal_before_change, signal_after_change):
10395 Use it to reset (after|before)-change-functions to nil in case of error.
10396 Bind inhibit-modification-hooks to t.
10397 Don't bind (after|before)-change-functions to nil while they run.
10398
6c28435c
YM
103992007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10400
10401 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
10402 filling pixmap with stippled background.
10403
ad3b3e02
YM
104042007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10405
10406 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
10407 Don't use invisible frame as parent window for repositioning.
10408
a22dec27
SM
104092007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
10410
10411 * print.c (new_backquote_output): Rename from old_backquote_output.
10412 (print): Inverse its logic (according to its name) so as to match the
10413 behavior of new_backquote_flag in lread.c.
10414
7b7d07bb
YM
104152007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10416
10417 * gmalloc.c (posix_memalign): New function.
10418
10419 * macterm.c (frame_highlight, frame_unhighlight): Don't call
10420 ActivateControl/DeactivateControl here.
10421 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
10422 frame-notice-user-settings is non-nil.
10423 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
10424 for kEventParamFMFontStyle.
10425 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
10426 mac_pass_command_to_system and mac_pass_control_to_system here.
10427 (XTread_socket): Call ActivateControl/DeactivateControl here.
10428 (XTread_socket) [TARGET_API_MAC_CARBON]:
10429 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
10430 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
10431 for window repositioning.
7b7d07bb 10432
22e9fe24
GM
104332007-08-08 Glenn Morris <rgm@gnu.org>
10434
10435 * Replace `iff' in doc-strings and comments.
10436
ae494350
CY
104372007-08-07 Chong Yidong <cyd@stupidchicken.com>
10438
10439 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
10440
6f2528d8
MR
104412007-08-07 Martin Rudalics <rudalics@gmx.at>
10442
10443 * fileio.c (Finsert_file_contents): Run format-decode and
10444 after_insert_file_functions on entire buffer when REPLACE is
10445 non-nil and inhibit modification_hooks and point_motion_hooks.
10446 For consistency, run after_insert_file_functions iff something
10447 got inserted. Move signal_after_change and update_compositions
10448 after code running after_insert_file_functions. Make sure that
6b8e474c 10449 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 10450
3ceeb306
YM
104512007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10452
10453 * emacs.c (main)
10454 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
10455 Call malloc_enable_thread on interactive startup.
10456
10457 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
10458 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
10459 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
10460 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
10461 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
10462 New functions.
10463
ca5e6fd5
CY
104642007-08-06 Chong Yidong <cyd@stupidchicken.com>
10465
32bfce5d
CY
10466 * xdisp.c (redisplay_window): When restoring original buffer
10467 position, make sure it is still valid.
10468
ca5e6fd5
CY
10469 * image.c (png_load): Ignore png-supplied background color.
10470
a5b11587
YM
104712007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10472
10473 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
10474 Use kCFAbsoluteTimeIntervalSince1970.
10475
10476 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
10477 New variable.
10478 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
10479 event loop should be quit.
10480 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
10481 Quit dialog event loop if quit_dialog_event_loop is set.
10482
10483 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
10484 (Selection): New typedef. Use instead of ScrapRef.
10485 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
10486 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
10487 (mac_clear_selection): Rename from clear_scrap.
10488 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 10489 scrap_has_target_type. All uses changed.
a5b11587
YM
10490 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10491 (mac_selection_has_target_p): New functions.
10492 (mac_put_selection_value): Rename from put_scrap_string.
10493 (mac_get_selection_value): Rename from get_scrap_string.
10494 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
10495 (put_scrap_private_timestamp, scrap_has_target_type)
10496 (get_scrap_private_timestamp): Remove functions.
10497 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
10498 (x_own_selection, x_get_local_selection):
10499 Use mac_valid_selection_value_p.
10500 (x_own_selection): Don't use put_scrap_private_timestamp.
10501 Record OWNERSHIP-INFO into Vselection_alist instead.
10502 (x_get_local_selection): Don't check type if request is local.
10503 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
10504 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
10505
880820fe 105062007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
10507
10508 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
10509 add comment explaining why.
10510
73ff9d42
RS
105112007-08-03 Richard Stallman <rms@gnu.org>
10512
10513 * fileio.c (Fvisited_file_modtime): Use make_time.
10514
54ed9a2d 105152007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
10516
10517 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
10518 build.
10519
65a9c8e2
SM
105202007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
10521
10522 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
10523
c5925799
KY
105242007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
10525
10526 * puresize.h (BASE_PURESIZE): Increase to 1130000.
10527
adef3de7
RS
105282007-07-30 Richard Stallman <rms@gnu.org>
10529
10530 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
10531
880820fe 105322007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
10533
10534 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
10535
a10421a1
NR
105362007-07-28 Nick Roberts <nickrob@snap.net.nz>
10537
10538 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
10539 remote default-directory.
10540
10541 * buffer.c (mode-line-format): Update doc string.
10542
0cb1ae20
YM
105432007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10544
10545 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
10546 scroll bar gap.
10547 (x_scroll_bar_create): Set bar->fringe_extended_p.
10548 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
10549 on frame edge. Check fringe background extension. Don't clear
10550 extended fringe background area.
10551
10552 * w32term.h (struct scroll_bar): New member fringe_extended_p.
10553 (w32_fill_area): Enclose multiple statements with do ... while (0).
10554
10555 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
10556 Extend fringe background to scroll bar gap.
10557 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10558 Set bar->fringe_extended_p.
10559 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10560 Put leftmost/rightmost scroll bars on frame edge. Check fringe
10561 background extension. Don't clear extended fringe background area.
10562
10563 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10564 New member fringe_extended_p.
10565
cacc7b51
GM
105662007-07-25 Glenn Morris <rgm@gnu.org>
10567
10568 * Relicense all FSF files to GPLv3 or later.
10569
10570 * COPYING: Switch to GPLv3.
10571
89835619
SM
105722007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
10573
c4f46926
SM
10574 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
10575
10576 * data.c (Finteractive_form): Check for the presence of an
10577 `interactive-form' symbol property more thoroughly.
10578
10579 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
10580 present, analogous to the function-documentation property.
10581
ee04257d
JR
105822007-07-24 Jason Rumney <jasonr@gnu.org>
10583
10584 * w32fns.c (x_real_positions): Get real position from OS instead of
10585 calculating it.
10586
50624218
JR
105872007-07-23 Jason Rumney <jasonr@gnu.org>
10588
10589 * filelock.c (current_lock_owner): Allow for @ sign in username.
10590
3650f60e
NR
105912007-07-22 Nick Roberts <nickrob@snap.net.nz>
10592
10593 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
10594 remote default-directory.
10595
10596 * buffer.c (mode-line-format): Describe above case in doc string.
10597
1e899515 105982007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 10599
75be5258
EZ
10600 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
10601 Define if not defined.
10602
2b6e2f4d
JR
106032007-07-18 Jason Rumney <jasonr@gnu.org>
10604
10605 * w32proc.c (w32_executable_type): Handle 64 bit executables.
10606
23dacf80
JB
106072007-07-18 Richard Stallman <rms@gnu.org>
10608
10609 * data.c (Fsetq_default): Doc fix.
10610
10611 * eval.c (Fsetq): Doc fix.
10612
106132007-07-18 Juanma Barranquero <lekktu@gmail.com>
10614
10615 * coding.c (Ffind_operation_coding_system):
10616 * eval.c (For, Fand): Doc fixes.
880820fe 10617 Reported by Johan Bockgård.
23dacf80 10618
880820fe 106192007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 10620
23dacf80 10621 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 10622
23dacf80 10623 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
10624
10625 * xterm.c (x_ewmh_activate_frame): New function.
10626 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
10627
71ec17e6
MR
106282007-07-17 Martin Rudalics <rudalics@gmx.at>
10629
10630 * window.c (Fdisplay_buffer): If largest or LRU window is the
10631 only window, split it even if it is not eligible for splitting.
10632 This restores the original behavior broken by the 2007-07-15
10633 change.
10634
e9818042
GM
106352007-07-17 Glenn Morris <rgm@gnu.org>
10636
10637 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
10638 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
10639 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
10640 constituents. Doc fix.
10641
e6fca843
SM
106422007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10643
10644 * process.c (Fstart_process, Fmake_network_process)
10645 (read_process_output): Fix up last changes.
10646
b5d2b4ab
EZ
106472007-07-16 Eli Zaretskii <eliz@gnu.org>
10648
10649 * makefile.w32-in (clean): Don't delete *~.
10650
413a79ad
AS
106512007-07-16 Andreas Schwab <schwab@suse.de>
10652
10653 * window.c (Fdisplay_buffer): Use NILP.
10654 (Fset_window_scroll_bars): Likewise.
10655
f1de8c77
MR
106562007-07-15 Martin Rudalics <rudalics@gmx.at>
10657
10658 * window.c (window_min_size_2): New function.
10659 (window_min_size_1, size_window, Fdisplay_buffer)
10660 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
10661 windows without mode- or header-lines when window-min-height is
10662 too small.
10663 (size_window): Reset nodelete_p after testing it, following an
10664 earlier note by Kim F. Storm.
10665 (display_buffer): Do not set split_height_threshold to twice the
10666 value of window_min_height to avoid changing the value of a
10667 customizable variable. Rather explicitly check whether the
10668 height of the window that shall be splitted is at least as large
10669 as split_height_threshold.
1af74d06
MB
10670 (Fwindow_full_width_p): New defun.
10671 (syms_of_window): Defsubr it.
d31053f9 10672
1af74d06 10673 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 10674
5e1ab613
JR
106752007-07-14 Jason Rumney <jasonr@gnu.org>
10676
10677 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
10678
f01cbfdd
RS
106792007-07-14 Richard Stallman <rms@gnu.org>
10680
10681 * eval.c (maybe_call_debugger): New function.
10682 (find_handler_clause): Use maybe_call_debugger.
10683 Call it when the handler says `debug'.
10684 Eliminate DEBUGGER_VALUE_PTR.
10685 (Fsignal): Eliminate debugger_value.
10686 (Qdebug): New variable.
10687 (syms_of_eval): Initialize it.
10688
1bab435a
JB
106892007-07-14 Juanma Barranquero <lekktu@gmail.com>
10690
10691 * eval.c (Fprogn):
10692 * keyboard.c (Ftrack_mouse):
10693 * print.c (Fwith_output_to_temp_buffer):
10694 * window.c (Fsave_window_excursion): Doc fix.
10695
be436d23
SM
106962007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
10697
10698 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
10699
60f0fb11
SM
107002007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
10701
10702 * process.h (struct Lisp_Process): Turn slots infd, outfd,
10703 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
10704 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
10705 read_output_delay, and read_output_skip from Lisp_Objects to ints.
10706 Remove unused encoding_carryover.
10707 * process.c: Adjust all functions accordingly.
10708
d8b18043
RS
107092007-07-12 Richard Stallman <rms@gnu.org>
10710
10711 * term.c: Include unistd.h only if HAVE_UNISTD_H.
10712
d5781bb6
JR
107132007-07-11 Jason Rumney <jasonr@gnu.org>
10714
10715 * makefile.w32-in (LIBS): Include OLE32.
10716
10717 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
10718 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
10719
5bb7dfee
SM
107202007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
10721
10722 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
10723 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
10724 from a Lisp_Object into a bare pointer.
10725 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10726 Adjust the code correspondingly.
10727
10728 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
10729
10730 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
10731 (term_show_mouse_face): Remove unused var `j'.
10732 (handle_one_term_event): Remove unused vars `i' and `j'.
10733 Don't cast return value of ttyname since it's not necessary.
10734
a1be1ce8
SM
107352007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
10736
5045e68e
SM
10737 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
10738 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
10739
8071c00f
SM
10740 * fns.c (map_char_table): Use an array of int for `indices' rather than
10741 an array of Lisp_Objects (which are only ever integers anyway).
10742 (Fmap_char_table): Update caller.
10743 * lisp.h: Update prototype.
10744 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
10745 * fontset.c (Ffontset_info):
10746 * casetab.c (set_case_table): Update callers.
10747
10748 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
10749
fab84e3c
SM
10750 * keymap.c (struct accessible_keymaps_data)
10751 (struct where_is_internal_data): New structures.
10752 (accessible_keymaps_1, where_is_internal_1): Use them to change
10753 interface to adhere to the one used by map_keymap.
10754 (Faccessible_keymaps, where_is_internal): Use map_keymap.
10755 (accessible_keymaps_char_table, where_is_internal_2): Remove.
10756
a1be1ce8
SM
10757 * keymap.h (map_keymap_function_t): More informative prototype.
10758
ef887810
RS
107592007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
10760
10761 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
10762 (looking_at_1): Don't change search_regs and last_thing_searched
10763 if `inhibit-changing-match-data' is non-nil.
10764 (string_match_1, search_buffer, set_search_regs): Likewise.
10765 (syms_of_search): Add Lisp level definition for
10766 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
10767 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
10768 start and end of the match, instead of using values in search_regs.
ef887810 10769
4d02fc25
SM
107702007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
10771
10772 * minibuf.c (Fcompleting_read): New value `confirm-only'
10773 for `require-match'.
10774
fe45b81f
SM
107752007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
10776
10777 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
10778 part of the 2007-06-27 change to syms_of_fileio.
10779
a56dd283
YM
107802007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10781
10782 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
10783 Check WINDOWP before using XWINDOW. Consolidate return statements.
10784
0cf9f5b5
RS
107852007-06-27 Richard Stallman <rms@gnu.org>
10786
10787 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10788
a66f285a
JB
107892007-06-27 Juanma Barranquero <lekktu@gmail.com>
10790
10791 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
10792
8d0d84d2
YM
107932007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10794
10795 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
10796 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
10797 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
10798 (_free_internal, memalign): Use them.
10799 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
10800 Initialize to PTHREAD_MUTEX_INITIALIZER.
10801 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
10802 (morecore_nolock): Rename from morecore. All uses changed.
10803 Use only nolock versions of internal allocation functions.
10804 (_malloc_internal_nolock, _realloc_internal_nolock)
10805 (_free_internal_nolock): New functions created from
10806 _malloc_internal, _realloc_internal, and _free_internal.
10807 (_malloc_internal, _realloc_internal, _free_internal): Use them.
10808 Copy hook value to automatic variable before its use.
10809 (memalign): Copy hook value to automatic variable before its use.
10810
5a0bbd9a
KH
108112007-06-26 Kenichi Handa <handa@m17n.org>
10812
10813 * coding.c (Ffind_operation_coding_system): Docstring improved.
10814 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
10815
9a51747b
DK
108162007-06-25 David Kastrup <dak@gnu.org>
10817
10818 * keymap.c (Fcurrent_active_maps): Add `position' argument.
10819 (Fwhere_is_internal): Adjust call to `current-active-maps' to
10820 cater for additional parameter.
10821
10822 * keymap.h: Adjust number of parameters to `current-active-maps'.
10823
10824 * doc.c (Fsubstitute_command_keys): Adjust call of
10825 `current-active-maps'.
10826
e4305426
DK
108272007-06-25 David Kastrup <dak@gnu.org>
10828
10829 * callint.c (Fcall_interactively): Make the parsing of interactive
10830 specs somewhat more readable.
10831
511a18d9
YM
108322007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10833
10834 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
10835 to scroll bar gap also when bitmap fills fringe. Draw only foreground
10836 if extended background has already been filled.
10837
512eb161
YM
108382007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10839
10840 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
10841 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
10842
10843 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
10844 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
10845 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
10846 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
10847 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
10848 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
10849 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
10850 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
10851 Run timers during dialog popup.
10852 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
10853
2386b1f1
JR
108542007-06-21 Jason Rumney <jasonr@gnu.org>
10855
10856 * image.c (convert_mono_to_color_image): Swap fore and background.
10857
fab8b787
JR
108582007-06-20 Jason Rumney <jasonr@gnu.org>
10859
10860 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
10861 (w32_free_bdf_font): Unmap memory not handle.
10862
15bdd7a0 108632007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
10864
10865 * gmalloc.c (__morecore): Fix the declaration to comply with the
10866 definition.
10867
1bb8a291
JB
108682007-06-20 Juanma Barranquero <lekktu@gmail.com>
10869
10870 * w32term.c (w32_delete_display): Remove leftover declaration.
10871 (w32_define_cursor, w32_initialize): Make static.
10872
10873 * w32.c (_wsa_errlist): Fix typo in error message.
10874 (init_environment): Ignore any environment variable from the
10875 registry having a null value.
10876
92648dea
GM
108772007-06-20 Glenn Morris <rgm@gnu.org>
10878
10879 * Makefile.in (LIBGIF): Default to -lgif.
10880
ff25d115
JR
108812007-06-17 Jason Rumney <jasonr@gnu.org>
10882
10883 * w32menu.c (add_menu_item): Don't use multibyte string functions on
10884 unicode strings.
10885
a1a578a5
JB
108862007-06-16 Juanma Barranquero <lekktu@gmail.com>
10887
10888 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
10889 Fix typo in docstring.
10890
af41f8a8
EZ
108912007-06-16 Eli Zaretskii <eliz@gnu.org>
10892
10893 * w32menu.c (add_menu_item): Escape `&' characters in menu items
10894 and their keybindings.
10895
8b29cab9
CY
108962007-06-15 Chong Yidong <cyd@stupidchicken.com>
10897
10898 * composite.c (update_compositions): Fix last fix.
10899
c433c134
JR
109002007-06-14 Jason Rumney <jasonr@gnu.org>
10901
10902 * w32.c (get_process_times_fn): New function pointer.
10903 (globals_of_w32): Intialize it if present in kernel32.dll.
10904 (w32_get_internal_run_time): New function.
10905
10906 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
10907
553d3164
KH
109082007-06-14 Kenichi Handa <handa@etlken.m17n.org>
10909
10910 * composite.c (update_compositions): Check the validness of
10911 compositions.
10912
446ba96f
YM
109132007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10914
10915 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
10916 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
10917
10918 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
10919 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
10920
10921 * macgui.h (USE_MAC_TOOLBAR): New define.
10922
10923 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
10924 Return immediately unless popup is activated.
10925
10926 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
10927 background to scroll bar gap.
10928 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
10929 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
10930 scroll bars on frame edge. Check fringe background extension.
10931 Don't clear extended fringe background area.
10932 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
10933 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
10934 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
10935 [USE_MAC_TOOLBAR]: New macros.
10936 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
10937 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
10938 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
10939 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
10940 [USE_MAC_TOOLBAR]: New functions.
10941 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
10942 manually if previous repositioning has failed.
10943 (mac_handle_keyboard_event): Use precomputed event kind.
10944 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
10945 as tool bar item click. Handle mouse movement over tool bar items.
10946
10947 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
10948 toolbar_win_gravity.
10949 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
10950 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
10951 Add externs.
10952
10953 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
10954 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
10955
9720173f
CY
109562007-06-14 Chong Yidong <cyd@stupidchicken.com>
10957
10958 * image.c (search_image_cache): Remove unused variable.
10959
1217dd00
CY
109602007-06-13 Chong Yidong <cyd@stupidchicken.com>
10961
10962 * xfns.c, xmenu.c: Link to xaw3d if available.
10963
c5b8e0ea
YM
109642007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10965
10966 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
10967 frame_foreground and frame_background.
10968
10969 * image.c (lookup_image): Save frame foreground and background colors.
10970 (search_image_cache): Check if saved and current frame colors match.
10971
c69b0314
SM
109722007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10973
10974 * regex.c (regex_compile): Remove the `regnum' counter.
10975 Use bufp->re_nsub instead. Add support for \(?N:RE\).
10976
c9612b8e
SM
109772007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10978
10979 * term.c: Include intervals.h to declare Fget_text_property.
10980
843d2458
JR
109812007-06-10 Jason Rumney <jasonr@gnu.org>
10982
10983 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
10984
1e0d2d60 109852007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
10986
10987 * callint.c (Fcall_interactively):
10988 * editfns.c (Fdelete_and_extract_region):
10989 * fileio.c (Fread_file_name):
10990 * fns.c (Fmapconcat):
10991 * keyboard.c (cmd_error_internal):
10992 * keymap.c (Fkey_description):
10993 * lread.c (openp):
10994 * minibuf.c (read_minibuf):
10995 * search.c (wordify):
10996 * sunfns.c (sel_read):
10997 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
10998 * xfns.c (x_default_scroll_bar_color_parameter):
10999 * xmenu.c (menu_help_callback):
11000 * xselect.c (Fx_get_atom_name):
11001 * xterm.c (x_term_init): Use empty_unibyte_string.
11002
15bdd7a0 110032007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11004
11005 * alloc.c (init_strings): Initialize canonical empty strings.
11006 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11007 canonical empty string when the requested size is 0.
11008
11009 * emacs.c (empty_unibyte_string): Rename from empty_string.
11010 (empty_multibyte_string): New canonical empty string.
11011 (syms_of_emacs): Don't initialize empty_string.
11012
11013 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11014 string, if appropriate.
11015 (empty_unibyte_string, empty_multibyte_string): New externs.
11016 (empty_string): Remove extern.
11017
11018 * lread.c (syms_of_lread): Use empty_unibyte_string.
11019
42c4c67a
JR
110202007-06-07 Jason Rumney <jasonr@gnu.org>
11021
11022 * s/ms-w32.h: Don't define HAVE_TZNAME.
11023
11024 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11025
aa8280d3
YM
110262007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11027
11028 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11029
11030 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11031 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11032
11033 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11034 Don't call next handler.
11035 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11036 Remove argument. Install handler to application.
11037 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11038 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11039 FRAME_OUTER_TO_INNER_DIFF_Y.
11040 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11041 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11042 [HAVE_DIALOGS]: New macros.
11043 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11044 Use them.
11045 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11046
11047 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11048 init_service_handler. All callers changed. Return OSStatus value.
11049
11050 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11051 All callers changed so as not to call SetPortWindowPort.
11052 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11053 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11054 mac_draw_string_common.
11055 (mac_draw_image_string_qd): Likewise.
11056 (mac_draw_string_common): Use them. Add INLINE.
11057 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11058 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11059 GetGlobalMouse.
11060 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11061 and FRAME_OUTER_TO_INNER_DIFF_Y.
11062 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11063 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11064 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11065 repositioning window to mac_handle_window_event.
11066 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11067 saving window location to mac_handle_window_event
11068 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11069 (install_menu_target_item_handler): Remove argument in extern.
11070 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11071 Also accept command events.
11072 (do_keystroke): New function created from XTread_socket.
11073 (init_command_handler): Remove functions.
11074 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11075 and save window location by kEventWindowShowing and kEventWindowHiding
11076 handlers here. Don't call next handler for window state change and
11077 focus events.
11078 (mac_handle_application_event, mac_handle_keyboard_event)
11079 [TARGET_API_MAC_CARBON]: New functions.
11080 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11081 kEventWindowShowing and kEventWindowHiding events. Move installation
11082 of mouse, font, text input and menu target item handlers to
11083 install_application_handler.
11084 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11085 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11086 New function.
11087 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11088 Register it.
c9612b8e
SM
11089 (XTread_socket) [TARGET_API_MAC_CARBON]:
11090 Consolidate SendEventToEventTarget calls.
11091 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11092 Move application activation handler to mac_handle_application_event.
11093 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11094 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11095 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11096 init_command_handler. Call install_application_handler.
11097
11098 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11099 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11100
6926c954
GM
111012007-06-07 Glenn Morris <rgm@gnu.org>
11102
11103 * emacs.c (main): Use `emacs-copyright' in --version output.
11104
6fe04c89
CY
111052007-06-06 Chong Yidong <cyd@stupidchicken.com>
11106
c9612b8e 11107 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11108
7eb0d727
YM
111092007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11110
11111 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11112
11113 * macgui.h: Replace WindowPtr with WindowRef.
11114
11115 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11116 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11117 Replace ControlHandle with ControlRef.
11118 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11119
11120 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11121 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11122 Replace ControlHandle with ControlRef.
11123 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11124 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11125
11126 * macterm.h (struct scroll_bar): Rename member control_handle_low
11127 and control_handle_high to control_ref_low and control_ref_high.
11128 All uses changed.
11129 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11130 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11131 respectively. All uses changed.
11132 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11133 (install_window_handler, remove_window_handler): Replace WindowPtr
11134 with WindowRef in externs.
11135
65fddb74
JB
111362007-06-05 Juanma Barranquero <lekktu@gmail.com>
11137
11138 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
11139
db1213a9
NR
111402007-06-03 Nick Roberts <nickrob@snap.net.nz>
11141
11142 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
11143
65fddb74 11144 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
11145 Condition on HAVE_GPM too.
11146
11147 * term.c (term_mouse_highlight): Remove unused variables.
11148 (Fterm_open_connection): Set gpm_zerobased to 1.
11149 (term_mouse_movement, term_mouse_click, handle_one_term_event):
11150 Use zero based co-ordinates.
11151 (handle_one_term_event): Report a drag as mouse movement too.
11152
11153 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
11154
d94df25b
CY
111552007-06-03 Chong Yidong <cyd@stupidchicken.com>
11156
11157 * image.c (search_image_cache): New function. Require background
11158 color match if background color is unspecified in the image spec.
11159 (uncache_image, lookup_image): Use it.
11160
4797b6d9
JB
111612007-06-01 Juanma Barranquero <lekktu@gmail.com>
11162
11163 * window.c (Fshrink_window): Reflow docstring.
11164
1ffe7343
NR
111652007-06-02 Chong Yidong <cyd@stupidchicken.com>
11166
11167 * Version 22.1 released.
11168
111692007-06-01 Richard Stallman <rms@gnu.org>
11170
11171 * xfns.c (x_encode_text): Add GCPRO.
11172
111732007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11174
11175 * xfns.c (x_set_name_internal): Save encoded name before
11176 x_encode_text in case string data is relocated.
11177
111782007-05-31 Richard Stallman <rms@gnu.org>
11179
11180 * buffer.c (syms_of_buffer): Doc fix.
11181
111822007-05-30 Nick Roberts <nickrob@snap.net.nz>
11183
11184 * sysdep.c (init_sys_modes): Add rather than replace with
11185 O_NONBLOCK.
11186
11187 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
11188 term_mouse_moveto.
11189
11190 * termhooks.h (term_mouse_moveto): New extern.
11191
11192 * term.c (mouse_face_window): Rename...
11193 (Qmouse_face_window): ...to this.
11194 (term_show_mouse_face, term_clear_mouse_face)
11195 (term_mouse_highlight): Use Qmouse_face_window.
11196 (term_mouse_moveto): New function.
11197 (term_mouse_position): Make it work.
11198 (syms_of_term): Uncomment assignment to mouse_position_hook.
11199 Staticpro Qmouse_face_window.
11200
112012007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11202
11203 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
11204 around current_column call.
11205
112062007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
11207
11208 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
11209 * xdisp.c (next_element_from_buffer):
11210 * window.c (delete_window):
11211 * term.c (term_mouse_highlight):
11212 * msdos.c (getdefdir):
11213 * macterm.c (mac_create_bitmap_from_bitmap_data)
11214 (init_font_name_table):
11215 * fns.c (Fsxhash):
11216 * data.c (Fmake_local_variable):
11217 * ccl.c (ccl_driver): Likewise.
11218
112192007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11220
11221 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
11222 Call mac_wakeup_from_rne on window size change.
11223
112242007-05-25 Chong Yidong <cyd@stupidchicken.com>
11225
11226 * image.c (uncache_image): Fix typo.
11227
112282007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
11229
11230 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
11231
112322007-05-22 Richard Stallman <rms@gnu.org>
11233
11234 * xterm.c (x_connection_closed): Remove NO_RETURN.
11235
112362007-05-22 Martin Rudalics <rudalics@gmx.at>
11237
11238 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
11239
112402007-05-21 Chong Yidong <cyd@stupidchicken.com>
11241
11242 * image.c (uncache_image): New function.
11243 (Fimage_refresh): New function.
11244
880820fe 112452007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11246
11247 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
11248
112492007-05-20 Nick Roberts <nickrob@snap.net.nz>
11250
11251 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
11252 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
11253
112542007-05-20 Nick Roberts <nickrob@snap.net.nz>
11255
11256 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
11257 conditional on [HAVE_GPM_H].
11258
112592007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11260
11261 * syntax.c (skip_chars): Update syntax-table only after we checked that
11262 the new location is valid.
11263
112642007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11265
11266 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
11267 mac_get_window_bounds.
11268
112692007-05-20 Nick Roberts <nickrob@snap.net.nz>
11270
11271 * Makefile.in (LIBGPM): Allow it to be set from configure.
11272 If set then link Emacs with it.
11273
11274 * config.in: Regenerate.
11275
11276 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
11277 New externs.
11278
11279 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
11280 Include gpm.h.
11281 (handle_one_term_event, term_gpm): New externs.
11282
11283 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
11284 and allow it to be interrupted by SIGIO.
11285
11286 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
11287 (wait_reading_process_output): Wait on gpm_fd too.
11288 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
11289 (add_gpm_wait_descriptor_called_flag): New variable.
11290 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
11291
11292 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
11293 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
11294 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
11295 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
11296 (make_lispy_event): Add case GPM_CLICK_EVENT.
11297 (read_avail_input): Handle mouse input.
11298
11299 * term.c (write_glyphs_with_face): New function.
11300 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
11301 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
11302 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
11303 (mouse_face_face_id, term_gpm, pos_x, pos_y)
11304 (last_mouse_x, last_mouse_y): New variables.
11305 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
11306 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
11307 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
11308 (Fterm_close_connection): New functions.
11309 (term_init): Initialise mouse_face_window.
11310
113112007-05-19 Chong Yidong <cyd@stupidchicken.com>
11312
11313 * xdisp.c (redisplay_window): If first window line is a
11314 continuation line, recompute the new window start instead of
11315 recentering.
11316
113172007-05-18 Glenn Morris <rgm@gnu.org>
11318
11319 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
11320 Suggested by Alfred M. Szmidt <ams@gnu.org>.
11321
113222007-05-17 Glenn Morris <rgm@gnu.org>
11323
11324 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
11325
113262007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11327
11328 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
11329 dead key repeat and up events.
11330
113312007-05-14 Chong Yidong <cyd@stupidchicken.com>
11332
11333 * image.c (pbm_load): Check image size for monochrome pbm.
11334
113352007-05-13 Chong Yidong <cyd@stupidchicken.com>
11336
11337 * xterm.c (XTread_socket): Revert last change.
11338
113392007-05-12 Chong Yidong <cyd@stupidchicken.com>
11340
11341 * image.c (pbm_load): Correctly check image size for greyscale pbm.
11342
11343 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
11344
113452007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11346
11347 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
11348 mixup (YAILOM).
11349
113502007-05-07 Andreas Schwab <schwab@suse.de>
11351
11352 * keymap.c (Flookup_key): Fix typo in last change.
11353
113542007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11355
11356 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
11357 mapping for unibyte strings.
11358
113592007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11360
11361 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
11362 (Fx_popup_dialog) [MAC_OSX]: Likewise.
11363
113642007-04-29 Richard Stallman <rms@gnu.org>
11365
11366 * insdel.c (replace_range): For undo, record insertion first.
11367
113682007-04-29 Andreas Schwab <schwab@suse.de>
11369
11370 * lisp.h (VECSIZE): Use OFFSETOF.
11371
113722007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11373
11374 * xdisp.c (try_window_reusing_current_matrix): Fix number of
11375 disabled lines.
11376
113772007-04-28 Richard Stallman <rms@gnu.org>
11378
11379 * lread.c (read_escape): In a string, \s is always space.
11380
880820fe 113812007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11382
11383 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
11384
11385 * gtkutil.c (xg_update_menubar, create_menus): Create empty
11386 submenu for menu bar items.
11387
382c648d 11388See ChangeLog.10 for earlier changes.
6922b018
KH
11389
11390;; Local Variables:
880820fe 11391;; coding: utf-8
33462dfa 11392;; add-log-time-zone-rule: t
6922b018 11393;; End:
2a34a036 11394
59ce725a 11395 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
11396
11397 This file is part of GNU Emacs.
11398
5a1dde61 11399 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 11400 it under the terms of the GNU General Public License as published by
5a1dde61
GM
11401 the Free Software Foundation, either version 3 of the License, or
11402 (at your option) any later version.
7f6d64f8
GM
11403
11404 GNU Emacs is distributed in the hope that it will be useful,
11405 but WITHOUT ANY WARRANTY; without even the implied warranty of
11406 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11407 GNU General Public License for more details.
11408
11409 You should have received a copy of the GNU General Public License
5a1dde61 11410 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 11411
28f60c3d 11412;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40