frame.c (Fdelete_frame): Don't call font_update_drviers if
[bpt/emacs.git] / src / ChangeLog
CommitLineData
86b89713
SM
12008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
4
6750bd93
YM
52008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6
62867b11 7 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 8
79f105c9
KH
92008-05-15 Kenichi Handa <handa@m17n.org>
10
11 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12 preference.
13
6b33da9f
GM
142008-05-15 Glenn Morris <rgm@gnu.org>
15
16 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17
d0e4433b
CY
182008-05-15 Chong Yidong <cyd@stupidchicken.com>
19
20 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
22
23 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
24
5f2d79e0
KH
252008-05-15 Kenichi Handa <handa@m17n.org>
26
fd8a1cae
KH
27 * ftfont.c (ftfont_list): Downcase family name to check generic
28 families.
29
30 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
31 font-spec for QCfont value.
32
5f2d79e0
KH
33 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
34 buffer. Check the return value of it.
35
e5e29349
JR
362008-05-14 Jason Rumney <jasonr@gnu.org>
37
38 * w32term.c (w32_get_glyph_overhangs): Remove.
39 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
40
1f09f444
KH
412008-05-14 Kenichi Handa <handa@m17n.org>
42
43 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
44 (font_clear_cache): Check if the cached vector of entities is nil
45 or not.
1f09f444 46
ecae6af9 472008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
48
49 * emacs.c (main_thread): Conditionalize on
50 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
51 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
52
53 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
54 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
55 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
56
c6b278e7
KH
572008-05-14 Kenichi Handa <handa@m17n.org>
58
59 * coding.c (detect_coding_iso_2022): Ignore a coding category that
60 has no corresponding coding system.
61
622008-05-14 Jason Rumney <jasonr@gnu.org>
63
64 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
65
66 * w32font.h (w32font_open_internal): Update declaration.
67
68 * w32font.c (w32font_open_internal): Change last argument from
69 w32font_info struct to font object. Fill in font object from
70 font_entity. Get Outline metrics if possible. Use them to
71 calculate underline position and thickness. Use xlfd name as name
72 property. Don't set codepage.
73 (w32font_open): Pass font_object to w32font_open_internal. Don't
74 update dpyinfo->smallest_font_height and
75 dpyinfo->smallest_char_width.
76 (w32font_draw): Use s->font.
77 (clear_cached_metrics): Don't clear non-existent blocks.
78
79 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
80 font was not found.
81 (x_draw_glyph_string): Use underline position and thickness from
82 font.
83
84 * w32uniscribe.c (uniscribe_open): Pass font_object to
85 w32font_open_internal.
86
872008-05-14 Kenichi Handa <handa@m17n.org>
88
89 These changes are to delete all legacy font-handling codes, and
90 make Emacs use only font-backends.
91
92 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
93 (frame.o, image.o, print.o): Depend on $(FONTSRC).
94
95 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
96
97 * charset.h (Vcharset_non_preferred_head)
98 (Vcurrent_iso639_language): Extern them.
99
100 * charset.c (Vcharset_non_preferred_head): New variable.
101 (Vcurrent_iso639_language): New variable.
102 (syms_of_charset): Declare it as a Lisp variable.
103 (char_charset): Don't check non preferred charsets. As a last
104 resort, return charset_unicode.
105 (Fset_charset_priority): Update Vcharset_non_preferred_head.
106
107 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
108 conditionals. Don't check enable_font_backend. Delete all codes
109 used only when USE_FONT_BACKEND is not defined.
110
111 * dispextern.h (struct glyph_string): Change type of `font' to
112 `struct font *'.
113 (struct glyph_string): New member underline_position and
114 underline_thickness.
115 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
116 (struct face): Change type of `font' to `struct font *'. Remove
117 members `font_name', `font_info_id'.
118 (per_char_metric, encode_char): Delete externs.
119 (calc_pixel_width_or_height): Adjust the prototype.
120
121 * emacs.c (enable_font_backend): Delete extern.
122 (main): Don't set enable_font_backend. Don't check the command
123 line argument "-disable-font-backend".
124
125 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
126 (enum font_property_index): New members FONT_DPI_INDEX,
127 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
128 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
129 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
130 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
131 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
132 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
133 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
134 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
135 (struct font_spec, struct font_entity): New structs.
136 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
137 (struct font): Many members from old "struct font_info" moved to
138 here. Members font and entity deleted.
139 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
140 the new font-related objects.
141 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
142 (CHECK_FONT_GET_OBJECT): Likewise.
143 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
144 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
145 (struct font_driver): New members case_sensitive anc check. Type
146 of the member list and open changed.
147 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
148 (font_symbolic_width, font_find_object, font_get_spec)
149 (font_set_lface_from_name): Delete extern.
150 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New
151 EXFUNs.
152
153 * font.c: Include <strings.h>.
154 (enable_font_backend): Delete it.
155 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
156 (CHECK_VALIDATE_FONT_SPEC): Delete it.
157 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
158 (null_string): Delete it.
159 (null_vector): Make it static.
160 (font_family_alist): Delete it.
161 (Qnormal): Extern it.
162 (QCextra, QClanguage): Delete it.
163 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New
164 variables.
165 (font_make_spec, font_make_entity, font_make_object)
166 (font_intern_prop): Renamed from intern_downcase. Don't downcase
167 the string. Callers changed.
168 (font_pixel_size): Adjusted for the format change of font-related
169 objects.
170 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
171 (font_style_to_value, font_style_symbolic): New function.
172 (build_font_family_alist): Delete it.
173 (font_registry_charsets): Use Fassoc_string instead of
174 assq_no_quit.
175 (font_prop_validate_symbol): Don't return null_string.
176 (font_prop_validate_style): Adjusted for the change of
177 style-related values in a font vector.
178 (font_property_table): Delete entries for QClangauge and
179 QCantialias, add entries for QCavgwidth.
180 (get_font_prop_index): Delete the 2nd argument FROM.
181 (font_prop_validate): Arguments changed.
182 (font_put_extra): Adjusted for the change of font-related objects.
183 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
184 (font_parse_fcname, font_unparse_fcname)
185 (font_prepare_composition): Likewise.
186 (font_parse_family_registry): Renamed from font_merge_old_spec.
187 (otf_open): Delete the 1st arg entity.
188 (font_otf_capability): Adjusted for the above change.
189 (font_score): New arg alternate_families. Adjusted for the change
190 of font-related objects.
191 (font_sort_entites): New arg best_only.
192 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
193 Delete them.
194 (font_match_p): Check alternate families.
195 (font_find_object): Delete it.
196 (font_check_object): New function.
197 (font_clear_cache): Adjusted for the change of font-related
198 objects.
199 (font_delete_unmatched): New arg.
200 (font_list_entities): Call font_driver->list with a spec that
201 doesn't specify style-related properties.
202 (font_matching_entity): Arguments changed. Caller changed.
203 (font_open_entity): Adjusted for the change of font-related
204 objects.
205 (font_close_object, font_has_char, font_encode_char)
206 (font_get_name, font_get_spec): Likewise.
207 (font_spec_from_name, font_clear_prop, font_update_lface): New
208 functions.
209 (font_find_for_lface, font_open_for_lface, font_load_for_lface):
210 (font_prepare_for_face, font_done_for_face, font_open_by_name)
211 (font_at): Adjusted for the change of font-related objects.
212 (font_range): New function.
213 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
214 (Ffont_xlfd_name): Adjusted for the change of font-related
215 objects.
216 (Fcopy_font_spec, Fmerge_font_spec): New function.
217 (Ffont_family_list): Renamed from list-families.
218 (Finternal_set_font_style_table): Arguments changed.
219 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
220 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
221 change of font-related objects.
222 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new
223 symboles.
224
225 * fontset.h (struct font_info): Delete it. Most memnbers go to
226 struct font.
227 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
228 (enum FONT_SPEC_INDEX): Delete it.
229 (font_info, list_fonts_func, load_font_func, query_font_func)
230 (set_frame_fontset_func, find_ccl_program_func)
231 (get_font_repertory_func, new_fontset_from_font_name): Delete
232 externs.
233 (fontset_from_font_name): Extern it.
234 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
235 (FONT_INFO_FROM_FACE): Deleted.
236 (face_for_font): Adjust prototype.
237
238 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
239 conditionals. Don't check enable_font_backend. Delete all codes
240 used only when USE_FONT_BACKEND is not defined.
241 (get_font_info_func, list_font_func, load_font_func)
242 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
243 (get_font_repertory_func): Delete them.
244 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
245 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
246 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
247 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
248 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
249 (fontset_compare_rfontdef): New function.
250 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
251 ront-defs by qsort. Adjusted for the change of font-group vector.
252 (load_font_get_repertory): Deleted.
253 (fontset_find_font): Use new macros to ref/set elements of
254 font-def and rfont-def.
255 (fontset_font): Fix the timing of remembering that no font for C.
256 (free_face_fontset): Do nothing if the face has no fontset.
257 (face_suitable_for_char_p): Use new macros to ref/set elements of
258 rfont-def.
259 (face_for_char): Likewise. Call face_for_char with font_object.
260 (fs_load_font): Delete. Delete #pragma surrounding it.
261 (fs_query_fontset): Use strcasecmp instead of strcmp.
262 (generate_ascii_font_name): Adjusted for the format change of
263 font-spec.
264 (Fset_fontset_font): Likewise. Use new macros to set elements of
265 font-def.
266 (Fnew_fontset): Use font_unparse_xlfd to generate
267 FONTSET_ASCII (fontset).
268 (new_fontset_from_font_name): Deleted.
269 (fontset_from_font): Renamed from new_fontset_from_font. Check if
270 a fontset is already created for the font. FIx updating of
271 Vfontset_alias_alist.
272 (fontset_ascii_font): Deleted.
273 (Ffont_info): Adjusted for the format change of font-spec.
274 (Finternal_char_font): Likewise.
275 (Ffontset_info): Likewise.
276 (syms_of_fontset): Don't check load_font_func.
277
278 * fns.c (internal_equal): Handle PREV_FONT.
279
280 * frame.h: Delete USE_FONT_BACKEND conditional.
281
282 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
283 conditionals. Don't check enable_font_backend. Delete all codes
284 used only when USE_FONT_BACKEND is not defined.
285 (x_set_font): Call x_new_font, not x_new_fontset2.
286 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
287 already set for the frame.
288
289 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
290 a font-entity by font_make_entity. Use font_intern_prop instead
291 of intern_downcase. Use FONT_SET_STYLE to set a style-related
292 font property. If a font is scalable, set avgwidth property to 0.
293 Set font-entity property by font_put_extra.
294 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
295 (ffont_driver): Adjusted for the change of struct font_driver.
296 (ftfont_spec_pattern): New function.
297 (ftfont_list): Return a list, not vector.
298 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
299 (ftfont_list_family): Don't downcase names.
300 (ftfont_free_entity): Deleted.
301 (ftfont_open): Return a font-ojbect. Adjusted for the change of
302 struct font. Get underline_thickness and underline_position from
303 font property. Don't update dpyinfo->smallest_font_height and
304 dpyinfo->smallest_char_width.
305 (ftfont_close): Don't free `struct font'.
306 (ftfont_has_char): Adjusted for the format change of font-entity.
307 (ftfont_encode_char, ftfont_text_extents): Likewise.
308
309 * ftxfont.c (ftxfont_list): Return a list, not vector.
310 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
311 struct font. Get underline_thickness and underline_position from
312 font property. Don't update dpyinfo->smallest_font_height and
313 dpyinfo->smallest_char_width.
314 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
315 (ftxfont_draw): Adjusted for the change of struct font.
316
317 * image.c (image_ascent): Don't include "charset.h". Include
318 "character.h" and "font.h".
319
320 * lisp.h (enum pvec_type): New member PREV_FONT.
321 (Fassoc_string): EXFUN it.
322
323 * print.c: Include font.h.
324 (print_object): Handle font-related objects.
325
326 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
327 conditionals. Don't check enable_font_backend. Delete all codes
328 used only when USE_FONT_BACKEND is not defined.
329 (handle_auto_composed_prop): Do nothing if it->f is not on a
330 window system. Check how many following characters can be
331 displayed by the same font.
332 (calc_pixel_width_or_height): Type of the 4th arg is changed to
333 'struct font *'.
334 (get_char_face_and_encoding): Assign the whole encoding task to
335 the `encode-char' method of a font driver.
336 (fill_composite_glyph_string): Adjusted for the change of `struct
337 face' and `struct glyph_string'.
338 (fill_glyph_string): Likewise.
339 (get_per_char_metric): Arguments changed.
340 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
341 and `struct glyph_string'.
342 (produce_stretch_glyph, calc_line_height_property)
343 (x_produce_glyphs): Likewise.
344
345 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
346 conditionals. Don't check enable_font_backend. Delete all codes
347 used only when USE_FONT_BACKEND is not defined. Use
348 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
349 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
350 (Qp): Extern them.
351 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
352 Deleted.
353 (struct font_name): Deleted.
354 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
355 (compare_fonts_by_sort_order): New function.
356 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
357 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
358 Deleted.
359 (Fx_family_fonts): Use font_list_entities, and sort fonts by
360 compare_fonts_by_sort_order.
361 (Fx_font_family_list): Call Ffont_family_list.
362 (face_numeric_value, face_numeric_weight, face_numeric_slant)
363 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
364 (face_symbolic_slant, face_symbolic_swidth)
365 (split_font_name_into_vector, build_font_name_from_vector)
366 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
367 (font_rescale_ratio, split_font_name, build_font_name)
368 (free_font_names, sort_fonts, x_face_list_fonts)
369 (face_font_available_p, sorted_font_list, cmp_font_names)
370 (font_list_1, concat_font_list, font_list, remove_duplicates):
371 Deleted.
372 (Fx_list_fonts): Use Ffont_list.
373 (LFACE_AVGWIDTH): Deleted.
374 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
375 by FONTP.
376 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
377 (set_lface_from_font_name): Delete it.
378 (set_lface_from_font): Renamed from
379 set_lface_from_font_and_fontset. Caller changed. Don't set
380 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
381 for face.
382 (merge_face_vectors): Copy font-spec if necessary. Clear
383 properties of the font-spec if necessary.
384 (merge_face_ref): Clear properties of the font-spec if necessary.
385 (Finternal_set_lisp_face_attribute): Likewise.
386 (set_font_frame_param): Use font_load_for_lface to load a
387 font-object, and call Fmodify_frame_parameters with it.
388 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
389 font name by Ffont_xlfd_name.
390 (Finternal_lisp_face_attribute_values): Don't check QCweight,
391 QCslant, and QCwidth.
392 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
393 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
394 Compare fonts by EQ.
395 (lookup_non_ascii_face): Deleted.
396 (face_for_font): The 2nd argument changed.
397 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH. Check
398 atomic font properties by case insensitive.
399 (realize_non_ascii_face): Set face->overstrike correctly.
400 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
401 (dump_realized_face): Get font name from
402 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
403
404 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
405 conditionals. Don't check enable_font_backend. Delete all codes
406 used only when USE_FONT_BACKEND is not defined.
407 (xic_create_xfontset): Original code deleted and renamed from
408 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
409 (x_make_gc): Don't set GCFont in GCs.
410 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
411 opened by "fixed".
412 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
413 find_ccl_program_func, query_font_func, set_frame_fontset_func,
414 get_font_repertory_func.
415
416 * xfont.c: Include <stdlib.h> and "ccl.h".
417 (struct xfont_info): New structure.
418 (xfont_query_font): Deleted.
419 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
420 moved from xterm.c.
421 (xfont_driver): Adjusted for the change of struct font_driver.
422 (compare_font_names): New function.
423 (xfont_list_pattern): Sort font names case insensitively. Make
424 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
425 (xfont_list): Return a list, not vector.
426 (xfont_match): If the font doesn't have QCname property, generate
427 a name from the other font properties.
428 (xfont_open): Return a font-ojbect. Adjusted for the change of
429 struct font. Get underline_thickness and underline_position from
430 font property. Don't update dpyinfo->smallest_font_height and
431 dpyinfo->smallest_char_width.
432 (xfont_close): Don't free struct font.
433 (xfont_prepare_face): Adjusted for the change of struct font.
434 (xfont_done_face): Deleted.
435 (xfont_has_char): Adjusted for the change of struct font.
436 (xfont_encode_char, xfont_draw): Likewise.
437 (xfont_check): New function.
438
439 * xftfont.c (xftfont_list): Adjusted for the change of `list'
440 callback function.
441 (xftfont_match): Adjusted for the fontmat change of font-entity.
442 (xftfont_open): Adjusted for the format change of font-entity and
443 font-object. Adjusted for the change of struct font. Return a
444 font-object. Don't update dpyinfo->smallest_font_height and
445 dpyinfo->smallest_char_width.
446 (xftfont_close): Block input while calling XftFontClose.
447 (xftfont_prepare_face): Don't block input while calling
448 xftfont_get_colors. Adjusted for the change of struct font.
449 (xftfont_shape): Return value of error case fixed.
450
451 * xrdb.c (x_load_resources): Don't setup a fontset resource.
452
453 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
454 conditionals.
455 (FONT_WIDTH): Return (f)->max_width.
456 (struct x_display_info): Delete member `font'.
457 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
458 (x_find_ccl_program, x_get_font_repertory): Delete externs.
459 (struct x_output): Change type of `font' to `struct font *'.
460
461 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
462 conditionals. Don't check enable_font_backend. Delete all codes
463 used only when USE_FONT_BACKEND is not defined. Don't include
464 ccl.h.
465 (x_per_char_metric, x_encode_char): Deleted.
466 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
467 (x_compute_glyph_string_overhangs): Adjusted for the change of
468 `struct face'
469 (x_draw_glyph_string_foreground)
470 (x_draw_composite_glyph_string_foreground): Likewise.
471 (x_draw_glyph_string): Likewise. Use font->underline_position and
472 font->underline_thickness.
473 (x_new_font): Renamed from x_new_fontset2.
474 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
475 (x_check_font): Call `check' method of a font driver.
476 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
477 (x_query_font, x_get_font_repertory): Deleted.
478 (x_find_ccl_program): Renamed and moved to xfont.c.
479 (x_redisplay_interface): Adjusted for the change of `struct
480 redisplay_interface'.
481
482 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
483 conditionals. Don't check enable_font_backend. Delete all codes
484 used only when USE_FONT_BACKEND is not defined. Surround non-used
485 code by "#ifdef OLD_FONT" and "endif".
486 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
487
488 * w32font.h (struct w32font_info): New member.
489 (FONT_COMPAT): New macro.
490 (w32font_open_internal): Prototype adjusted.
491
492 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
493 OLD_FONT" and "endif".
494
495 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
496 conditionals. Don't check enable_font_backend. Delete all codes
497 used only when USE_FONT_BACKEND is not defined.
498 (w32font_open): Return a font-object. Make a font-object by
499 font_make_object. Adjusted for the change of struct w32font_info.
500 (w32font_close): Don't free struct font. Adjusted for the change
501 of struct w32font_info.
502 (w32font_encode_char, w32font_text_extents, w32font_draw):
503 Adjusted for the change of struct w32font_info.
504 (w32font_draw): Likewise.
505 (w32font_list_internal): Return a list, not vector.
506 (w32font_open_internal): Change the 4th arg to font-object.
507 Adjusted for the change of struct w32font_info and font-object
508 format.
509 (add_font_name_to_list): Don't downcase names.
510 (w32_enumfont_pattern_entity): Make a font-entity by
511 font_make_entity. Adjusted for the format change of font-entity.
512 Use FONT_SET_STYLE to set a style-related font property. If a
513 font is scalable, set avgwidth property to 0. Set font-entity
514 property by font_put_extra.
515 (font_matches_spec): Adjusted for the format change of
516 font-entity.
517 (w32_weight_table, w32_decode_weight): New variables.
518 (w32_encode_weight): New function.
519 (fill_in_logfont): Adjusted for the format change of font-spec.
520 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
521 weight value.
522 (w32font_driver): Adjusted for the change of struct font_driver.
523
524 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
525 conditionals. Don't check enable_font_backend. Surround non-used
526 code by "#ifdef OLD_FONT" and "endif".
527 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
528 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
529
530 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
531 conditionals. Don't check enable_font_backend. Delete all codes
532 used only when USE_FONT_BACKEND is not defined. Surround non-used
533 code by "#ifdef OLD_FONT" and "endif".
534
535 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
536 (uniscribe_open): Return value changed to font-object. Adjusted
537 for the format change of font-object.
538 (uniscribe_otf_capability): Adjusted for the change of struct
539 font.
540 (add_opentype_font_name_to_list): Don't downcase names.
541 (uniscribe_font_driver): Adjusted for the change of struct
542 font_driver.
543
f9d4c199
CY
5442008-05-13 Chong Yidong <cyd@stupidchicken.com>
545
546 * dispnew.c (update_frame_1): Check if tty output is still valid
547 before flushing it.
548
44f249c0
JD
5492008-05-13 Jan Djärv <jan.h.d@swipnet.se>
550
551 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
552 to Gtk+ menus.
553
01bb4018
SM
5542008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
555
3271a8f5
SM
556 * dired.c (file_name_completion): Tweak the code so as to always do it
557 in a single pass. Tighten the scope of some variables.
558
01bb4018
SM
559 * dired.c (Qdefault_directory): New var.
560 (file_name_completion): Use it instead of Fexpand_file_name.
561 (syms_of_dired): Initialize it.
562
728bb8e0
SM
5632008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
564
565 * fileio.c (double_dollars): Remove dead code.
566
ed4c17bb
EZ
5672008-05-10 Eli Zaretskii <eliz@gnu.org>
568
6c5665e9
EZ
569 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
570 Mention w32-get-true-file-attributes in doc string.
571
ed4c17bb
EZ
572 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
573
71e1f69d
GM
5742008-05-09 Glenn Morris <rgm@gnu.org>
575
576 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
577 2008-04-23.
578
ee7a2e7a
EZ
5792008-05-09 Eli Zaretskii <eliz@gnu.org>
580
8aaaec6b
EZ
581 Support for reporting owner and group of each file on MS-Windows:
582 * dired.c (stat_uname, stat_gname): New functions, with special
583 implementation for w32.
584 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
585
ee7a2e7a
EZ
586 * w32.c: Rename the_passwd_* to dflt_passwd_*.
587 (dflt_group_name): New static variable.
728bb8e0 588 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
589 (init_user_info): Init dflt_group fields. Get user's group name
590 from LookupAccountSid.
8aaaec6b
EZ
591 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
592 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
593 New initialization states.
594 (globals_of_w32): Initialize them to zero. Initialize the default
595 group name to "None".
596 (GetFileSecurity_Name): New global var, the name of the function
597 to call for GetFileSecurity.
598 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
599 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
600 (get_file_security, get_security_descriptor_owner)
601 (get_security_descriptor_group, is_valid_sid)
602 (get_file_security_desc, get_rid, get_name_and_id)
603 (get_file_owner_and_group): New functions.
604 (stat): Use get_file_security_desc and get_file_owner_and_group to
605 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
606 high 32 bits of file's size, now that st_size is 64-bit wide.
607 Fix test when to get true file attributes.
8aaaec6b
EZ
608 (init_user_info): Use get_rid instead of equivalent inline code.
609 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 610
b199c436
CY
6112008-05-09 Chong Yidong <cyd@stupidchicken.com>
612
613 * image.c (png_load): Use correct bit-depth for setting background
614 color.
615
86914123
EZ
6162008-05-08 Eli Zaretskii <eliz@gnu.org>
617
618 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
619 epa-hook.elc.
620
67b5d7de
JB
6212008-05-08 Juanma Barranquero <lekktu@gmail.com>
622
623 * font.c (Ffont_match_p): Don't use `iff' in docstring.
624
1a111394
DN
6252008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
626
627 * macfns.c (Fx_create_frame): Make a copy of frame parameters
628 because the original parameters are in pure storage now.
629 (mac_window): Remove unused params. Update callers.
630
6d77fa95
SM
6312008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
632
7a3d90dc
SM
633 * lread.c (substitute_object_recurse): Use lower-level primitives.
634 Don't signal errors when traversing sub-char-tables.
635 Don't loop over all the possible characters when traversing char-tables.
636
6d77fa95
SM
637 * print.c (print_preprocess): Add sub-char-tables to the print-table,
638 just like we do in print.c.
639
140eb764
SM
6402008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
641
642 * minibuf.c (Ftry_completion): Remove code left over from when we used
643 scmp instead of Fcompare_strings.
644
e9184ccb
JB
6452008-05-04 Juanma Barranquero <lekktu@gmail.com>
646
647 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
648
0e9378b3
YM
6492008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
650
651 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
652 Create bitmap context in native byte order.
653
f67e15be
MB
654 * macterm.c (XDrawLine)
655 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
656 context in native byte order.
064032d0 657
f67e15be 6582008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
659
660 * config.in: Regenerate.
661
662 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
663 New definitions for Image I/O support.
664 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
665 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
666 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
667 (mac_data_provider_release_data, image_load_image_io)
668 [USE_MAC_IMAGE_IO]: New functions.
669 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
670 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
671 (init_image_func_pointer) [MAC_OSX]: Remove function.
672 (image_load_quartz2d) [MAC_OSX]: Check availability of
673 CGImageCreateWithPNGDataProvider at compile time.
674 Use lowercase `false' for boolean constant.
675 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
676 Use image_load_image_io.
677 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
678 Don't check MyCGImageCreateWithPNGDataProvider.
679 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
680 Don't call init_image_func_pointer.
681
682 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
683
684 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
685 Make variable non-static.
686 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
687 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
688
689 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
690 (RED_FROM_ULONG): Mask off higher bits.
691 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
692
693 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
694 Include AvailabilityMacros.h.
695 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
696 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
697
c6bff69e
SM
6982008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
699
700 * chartab.c (Fset_char_table_range): If range is t, really set all
701 chars to that value.
702
7412d429
EZ
7032008-05-03 Eli Zaretskii <eliz@gnu.org>
704
705 * dired.c (Ffile_attributes): Don't allow the device number become
706 negative.
707
f83bbfac
DU
7082008-05-02 Daiki Ueno <ueno@unixuser.org>
709
5a81d3d7 710 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 711
2e3148e2
JL
7122008-05-02 Juri Linkov <juri@jurta.org>
713
714 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
715 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
716 DEFAULT argument as a list of default values in docstrings.
2e3148e2 717
923fb88c
CY
7182008-05-01 Chong Yidong <cyd@stupidchicken.com>
719
720 * puresize.h (BASE_PURESIZE): Increase to 1210000.
721
047aaeb9
MR
7222008-05-01 Martin Rudalics <rudalics@gmx.at>
723
724 * dispnew.c (change_frame_size_1): Preserve small windows when
725 shrinking frames by calling set_window_height|width with third
726 arg 2.
727
728 * window.h (struct window): Replace field too_small_ok by field
729 resize_proportionally.
730
731 * window.c (make_window): Initialize resize_proportionally.
732 (enlarge_window): Temporarily set resize_proportionally to make
733 sure that shrink_windows does scale the window proportionally.
734 (shrink_windows): When window has resize_proportionally set try
735 to shrink it proportionally by stealing from other windows.
736 (struct saved_window, Fset_window_configuration)
737 (compare_window_configurations): Handle resize_proportionally.
738 (WINDOW_TOTAL_SIZE): New macro.
739 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 740 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
741 window-min-height|width are handled by window_min_size_2 now.
742 (size_window, Fsplit_window, enlarge_window)
743 (adjust_window_trailing_edge, grow_mini_window): Don't call
744 check_min_window_sizes.
c6bff69e
SM
745 (window_min_size_2, window_min_size_1, window_min_size):
746 New argument safe_p for retrieving "safe" minimum sizes.
047aaeb9 747 (Fdisplay_buffer, Fsplit_window, enlarge_window):
c6bff69e
SM
748 (adjust_window_trailing_edge, grow_mini_window):
749 Adjust arguments of window_min_size... functions.
047aaeb9
MR
750 (shrink_windows): Argument min_size removed. New argument
751 safe_p allows shrinking windows to their safe minimum sizes.
752 Calculate minimum size and decide whether a window shall be
753 deleted for each window individually.
754 (size_window): When nodelete_p equals 2, tell shrink_windows to
755 delete windows only if their new minimum size is no more safe.
756 (shrink_window_lowest_first): Call window_min_size_1 to make
757 sure to preserve modeline of bottom-most window when resizing
758 the minibuffer.
759 (Fset_window_configuration, Fcurrent_window_configuration)
760 (compare_window_configurations): Do not handle
761 window-min-height|width any more.
762 (syms_of_window): Clarify window-min-height|width doc-strings.
763
2a54a229
SM
7642008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
765
766 * dired.c (file_name_completion): Fix up the encoding/decoding issue
767 some more. Copy some of the code from Ftry_completions.
768 Remove special case code that dates back to initial revision when the
769 slash was only added when necessary and that can't trigger nowadays.
770
384bc634
KH
7712008-04-27 Kenichi Handa <handa@m17n.org>
772
773 * font.c (font_prop_validate): Signal `error' instead of `font'.
774
2c2279c6
JR
7752008-04-29 Jason Rumney <jasonr@gnu.org>
776
777 * w32fns.c (Fw32_battery_status): New defun.
778 (syms_of_w32fns): Defsubr it.
779
fb4a622a
AS
7802008-04-28 Andreas Schwab <schwab@suse.de>
781
782 * dired.c (file_name_completion): Fix another mixing of encoded
783 and decoded names.
784
23f250f4
JB
7852008-04-28 Juanma Barranquero <lekktu@gmail.com>
786
787 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
788
d8d30dff
JB
7892008-04-27 Juanma Barranquero <lekktu@gmail.com>
790
791 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
792
ea6104a8
AS
7932008-04-27 Andreas Schwab <schwab@suse.de>
794
9c691c00
AS
795 * dired.c (file_name_completion): Fix inappropriate mixing of
796 encoded and decoded names.
797
ec1bf773
AS
798 * xterm.c (XTread_socket): Fix use of uninitialized variable.
799
ea6104a8
AS
800 * puresize.h (BASE_PURESIZE): Increase to 1200000.
801
01388a3d
EZ
8022008-04-26 Eli Zaretskii <eliz@gnu.org>
803
804 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
805 2008-03-31, it's not needed anymore with `struct stat' definition
806 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
807 for the same reasons.
808
175aea10 8092008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
810
811 * m/sparc.h: Additional redefinitions for GNU/Linux.
812
1289aeb8
YM
8132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
814
815 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
816 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
817 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
818 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
819 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
820 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
821 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
822 Likewise.
823
824 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
825 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range):
826 (mac_ax_number_of_characters): Add externs.
827 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
828 [USE_MAC_TSM]: Likewise.
829 (mac_handle_text_input_event) [MAC_OSX]:
830 Handle kEventTextInputOffsetToPos for no active input area case.
831 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
832 (mac_handle_document_access_event)
833 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
834 (install_application_handler) [MAC_OSX]: Register handlers for
835 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
836 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
837 Register mac_handle_document_access_event.
838
839 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
840 Make functions non-static.
841
dbd50d4b
SM
8422008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
843
844 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
845 (read_file_name_completion_ignore_case, insert_default_directory)
846 (Qdefault_directory): Move to minibuffer.el.
847 (Fread_file_name): Call the new `read-file-name' instead.
848
9ea37b9d 8492008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
850
851 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
852 Make function non-static.
853 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
854 Remove function.
855 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
856 Move to mactoolbox.c.
857 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
858
859 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
860 (mac_rect_make): New macro.
861
862 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
863 instead of float.
864 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
865 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
866 (XSetBackground) [USE_CG_DRAWING]: Likewise.
867 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
868 CGRectMake.
869 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
870 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
871 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
872 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
873 instead of WindowRef in argument type.
874 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
875 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
876 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
877 instead of DISPLAY. All uses changed.
878 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
879 (x_calc_absolute_position): Simplify so as not to use
880 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
881
882 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
883 instead of WindowRef in argument type.
884 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
885 [TARGET_API_MAC_CARBON]: Remove externs.
886 (create_apple_event, mac_event_parameters_to_lisp)
887 [TARGET_API_MAC_CARBON]: Add externs.
888
d8d30dff 889 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
890 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
891 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
892 is clicked.
893 (x_activate_menubar): Remove extern for saved_menu_event_location.
894 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
895 Move from mac.c.
896
9ea37b9d 8972008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
898
899 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
900 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
901
9ea37b9d 9022008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
903
904 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
905 attributes only for local files.
906
907 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 908 default to Qlocal.
bd735631 909
88970542
JL
9102008-04-22 Juri Linkov <juri@jurta.org>
911
912 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
913 read-buffer-to-switch instead of using the letter "B".
914
92ec67e3
SM
9152008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
916
917 * fileio.c (Qdefault_directory): New variable.
918 (Fread_file_name): Use it to pass `dir' to the completion functions.
919
a32b2382
CY
9202008-04-20 Chong Yidong <cyd@stupidchicken.com>
921
2a2e8de7 922 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 923
6c8b4f07
SM
9242008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
925
ece5f847
SM
926 * keyboard.c (Vpre_help_message): Remove.
927 (show_help_echo): Remove default C code.
928
6c8b4f07
SM
929 * dired.c (directory_files_internal, file_name_completion):
930 Only call ENCODE_FILE if the string is indeed decoded.
931
73d798d5
SM
9322008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
933
934 * Makefile.in (TOOLKIT_DEFINES): Remove.
935 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
936
d8d30dff 9372008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
938
939 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
940 (mactoolbox.o): New target.
941
942 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
943 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
944
945 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
946 Use mac_set_frame_window_background instead of XSetWindowBackground.
947 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
948 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
949 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
950 instead of SetWindowTitleWithCFString.
951 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
952 Move function to mactoolbox.c.
953 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
954 Use mac_set_window_modified instead of SetWindowModified.
955 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
956 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
957 (Fx_focus_frame): Use mac_front_non_floating_window instead of
958 FrontNonFloatingWindow. Use mac_activate_window instead of
959 ActivateWindow. Use mac_active_non_floating_window instead of
960 ActiveNonFloatingWindow.
961 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
962 Use mac_show_hourglass and mac_hide_hourglass.
963 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
964 instead of GetGlobalMouse.
965 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
966 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
967 Use mac_bring_window_to_front instead of BringToFront.
968 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
969 mactoolbox.c.
970 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
971 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
972 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
973 mactoolbox.c.
974
975 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
976 (XtPointer): Move typedef from macmenu.c.
977 (enum button_type): Move enum from macmenu.c.
978 (widget_value): Move typedef from macmenu.c.
979 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
980 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
981 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
982 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
983 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
984 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
985 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
986 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
987 (Selection): Move typedef from macselect.c.
988 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
989 macterm.c.
990 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
991 (mac_is_window_collapsed, mac_bring_window_to_front)
992 (mac_send_window_behind, mac_hide_window, mac_show_window)
993 (mac_collapse_window, mac_front_non_floating_window)
994 (mac_active_non_floating_window, mac_activate_window)
995 (mac_move_window_structure, mac_move_window, mac_size_window)
996 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
997
998 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
999 (enum mac_menu_kind): Move enum to mactoolbox.c.
1000 (min_menu_id): Move variable to mactoolbox.c.
1001 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1002 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1003 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1004 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1005 [TARGET_API_MAC_CARBON]: Likewise.
1006 (XtPointer): Move typedef to macgui.h.
1007 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1008 (widget_value): Move typedef to macgui.h.
1009 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1010 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1011 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1012 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1013 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1014 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1015 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1016 (popup_activated_flag): Make variable non-static.
1017 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1018 (add_menu_item, fill_menu, dispose_menus):
1019 Move functions to mactoolbox.c.
1020 (restore_show_help_function, menu_target_item_handler)
1021 (install_menu_target_item_handler, mac_handle_dialog_event)
1022 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1023 [TARGET_API_MAC_CARBON]: Likewise.
1024 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1025 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1026 (find_and_call_menu_selection, name_is_separator): Make function
1027 non-static.
1028 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1029 to mactoolbox.c.
1030 (set_frame_menubar): Don't call install_menu_quit_handler.
1031 (menu_item_selection): New variable.
1032 (mac_menu_show): Use create_and_show_popup_menu.
1033 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1034 selection but set variable menu_item_selection. All uses changed.
1035 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1036 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1037
d02fe47d
MB
1038 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1039 (Selection): Move typedef to macgui.h.
1040 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1041 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1042 Make variables non-static.
1043 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1044 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1045 Make functions non-static.
1046 (Vmac_service_selection) [MAC_OSX]: Likewise.
1047 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1048 (mac_valid_selection_target_p, mac_clear_selection)
1049 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1050 (mac_put_selection_value, mac_selection_has_target_p)
1051 (mac_get_selection_value, mac_get_selection_target_list)
1052 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1053 Move functions to mactoolbox.c.
1054 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1055 Likewise.
1056 (copy_scrap_flavor_data, mac_handle_service_event)
1057 (install_service_handler) [MAC_OSX]: Likewise.
1058 (syms_of_macselect) <Vmac_dnd_known_types>:
1059 Use mac_dnd_default_known_types.
463f55ee 1060
d02fe47d
MB
1061 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1062 Move to mactoolbox.c.
1063 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1064 (Fx_selection_owner_p): Add EXFUN.
1065 (install_window_handler, remove_window_handler, XSetWindowBackground):
1066 Remove externs.
1067 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1068 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1069 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1070 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1071 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1072 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1073 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1074 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1075 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1076 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1077 (mac_valid_selection_target_p, mac_clear_selection)
1078 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1079 (mac_put_selection_value, mac_selection_has_target_p)
1080 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1081 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1082 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1083 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1084 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1085 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1086 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1087 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1088 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1089
d02fe47d 1090 * mactoolbox.c: New file.
af253914 1091
d8d30dff 10922008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1093
d02fe47d 1094 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1095
8ee085a4
SM
10962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1097
73d798d5
SM
1098 * character.c (Fmultibyte_char_to_unibyte):
1099 Return latin1 chars unchanged.
5556875b 1100
8ee085a4
SM
1101 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1102 relocated if it points to `name'.
1103
5dff5999
KH
11042008-04-17 Kenichi Handa <handa@m17n.org>
1105
1106 * data.c (Faset): Allow setting a multibyte character in an
1107 ASCII-only unibyte string.
1108
1109 * lisp.h (STRING_SET_MULTIBYTE): New macro.
1110
a51f4969
SM
11112008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
1112
1113 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
1114 done in config.h.
1115
add553ac
JB
11162008-04-16 Juanma Barranquero <lekktu@gmail.com>
1117
1118 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
1119 (Fchar_direction): Add usage in the docstring.
1120
8ad7b280
CY
11212008-04-15 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * keyboard.c (read_key_sequence): Remove always-true checks.
1124
e157d7ba
JR
11252008-04-14 Jason Rumney <jasonr@gnu.org>
1126
1127 * w32font.c (w32font_open_internal): Set max_bounds.descent in
1128 compatibility struct, for better underline positioning.
1129
9ec3aaef 11302008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
1131
1132 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
1133 string.
1134
36c08864
DN
11352008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1136
1137 * m/hp800.h (XUINT, XSET): Remove.
1138
f5acc071
JB
11392008-04-12 Juanma Barranquero <lekktu@gmail.com>
1140
1141 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
1142 previous change.
1143
5b5a2ea1
SM
11442008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1145
1146 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
1147 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
1148
492d9fd6
SM
11492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1150
1151 * keymap.h (map_keymap_canonical): Declare.
1152 * xmenu.c (single_keymap_panes): Use it.
1153
dd60787c
GM
11542008-04-11 Glenn Morris <rgm@gnu.org>
1155
1156 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
1157 set the target's value to that of the alias.
1158
c23b5410
SM
11592008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1160
1161 * term.c (set_tty_color_mode): Left over typo.
1162
e89b536d
MA
11632008-04-10 Michael Albinus <michael.albinus@gmx.de>
1164
1165 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 1166 only after check for file name handler functions. Signal, when
e89b536d
MA
1167 native functionality is not supported.
1168 (syms_of_fileio): Declare it unconditionally.
1169
40a339c8
JR
11702008-04-10 Jason Rumney <jasonr@gnu.org>
1171
31403b24
JR
1172 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
1173 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
1174
40a339c8
JR
1175 * w32.c (logon_network_drive): Also logon to remote drives that
1176 are mapped to drive letters.
1177
96a7394f
GM
11782008-04-10 Glenn Morris <rgm@gnu.org>
1179
1180 * xdisp.c (truncate-partial-width-windows): Doc fix.
1181
34b67b0f
SM
11822008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
1183
1184 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
1185 Move functions to minibuffer.el.
1186 (syms_of_fileio): Don't declare them.
1187
c025fb0a
SM
11882008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1189
ba5ff07b
SM
1190 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
1191 (syms_of_minibuf): Remove its initialization.
1192
c025fb0a
SM
1193 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
1194
7a6a86ad
JB
11952008-04-09 Juanma Barranquero <lekktu@gmail.com>
1196
1197 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
1198
cf907d69
JR
11992008-04-09 Jason Rumney <jasonr@gnu.org>
1200
3dc94c30
JR
1201 * makefile.w32-in (distclean): Delete makefile too.
1202 (maintainer-clean): New target.
1203
8d28646b
JR
1204 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
1205
cf907d69
JR
1206 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
1207 for new font backend and composite cases.
1208
ef5eb925
JD
12092008-04-09 Jan Djärv <jan.h.d@swipnet.se>
1210
1211 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
1212 Most of the code moved to run_timers.
1213 (do_pending_atimers): Call run_timers.
1214 (run_timers): New function.
1215
cf907d69
JR
1216 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
1217 run atimers.
ef5eb925
JD
1218
1219 * process.c (wait_reading_process_output): The same as above.
1220
9b2cd403
SM
12212008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1222
32bae13c
SM
1223 * minibuf.c (last_exact_completion): Remove variable.
1224 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
1225 (complete_and_exit_1, complete_and_exit_2)
1226 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
1227 (Fdisplay_completion_list, display_completion_list_1)
1228 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
1229 (Fexit_minibuffer, Fminibuffer_message): Move functions to
1230 minibuffer.el.
32bae13c
SM
1231 (syms_of_minibuf): Remove corresponding initializations.
1232
5c4cc82a
SM
1233 * keyboard.c (Qdeactivate_mark): New var.
1234 (command_loop_1): Use it to call `deactivate-mark'.
1235 (syms_of_keyboard): Initialize it.
1236
9b2cd403
SM
1237 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
1238 to another frame.
1239 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
1240 Don't call set_tty_color_mode.
1241 (store_frame_param): Reset previous_frame rather than call
1242 set_tty_color_mode.
1243 * term.c (set_tty_color_mode): Rewrite.
1244 * dispextern.h (set_tty_color_mode): New type.
1245 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
1246
84cb7b45
SM
12472008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
1248
1249 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
1250 for generic chars, which do not exist any more in emacs-unicode.
1251
3ed051d4
MA
12522008-04-08 Michael Albinus <michael.albinus@gmx.de>
1253
1254 * coding.c (detect_coding_emacs_mule)
1255 (Ffind_operation_coding_system): Fix typo.
1256
58c3ea42
JR
12572008-04-08 Jason Rumney <jasonr@gnu.org>
1258
3bf8d230
JR
1259 * w32uniscribe.c (SNAME): Extract only symbol name.
1260
56a70cca
JR
1261 * w32font.h (struct w32_metric_cache): New struct.
1262 (w32font_info): Use it.
1263 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
1264 (CACHE_BLOCKSIZE): New constants.
3ed051d4 1265
58c3ea42
JR
1266 * w32font.c (Qja, Qko, Qzh): New symbols.
1267 (syms_of_w32font): Initialise them.
1268 (font_matches_spec): Use them to filter by language.
1269 (recompute_cached_metrics): Remove function.
1270 (compute_metrics, clear_cached_metrics): New functions.
1271 (w32font_encode_char): Use them to manage metric cache.
1272 (w32font_text_extents): Cache metrics for all glyphs on demand.
1273 Delay converting glyph indices to WORD until needed.
1274 (w32font_open_internal): Initialize metric cache to empty.
1275 (registry_to_w32_charset): Charset should always be a symbol.
1276 (fill_in_logfont, list_all_matching_fonts): Family should
1277 always be a symbol.
1278
0ce24b2d
JR
12792008-04-06 Jason Rumney <jasonr@gnu.org>
1280
1281 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
1282 Give up if glyph indices not supported. Use uniscribe obtained
1283 ABC widths for individual metrics. Map glyph clusters back to
1284 characters using fClusterStart flag. Return number of glyphs
1285 produced, not chars processed.
b7655e0c 1286 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 1287
5bc6ddff 12882008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 1289
fbf57abb
JB
1290 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
1291 Use SetMenuItemHierarchicalMenu.
56613f06 1292
5bc6ddff 12932008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 1294
5bc6ddff
MB
1295 * image.c (pbm_load): Allow color values up to 65535.
1296 Throw an error if max_color_idx is outside the supported range.
1297 Report an error when image size is invalid.
1298 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 1299
5bc6ddff 13002008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 1301
5bc6ddff
MB
1302 * w32.c (readdir): If FindFirstFile/FindNextFile return in
1303 cFileName a file name that includes `?' characters, use the 8+3
1304 alias in cAlternateFileName instead.
5ed6ba5b 1305
5bc6ddff 13062008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 1307
5bc6ddff
MB
1308 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
1309 append "CCL: Quitted" when the CCL program is quitted.
1310 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 1311
5bc6ddff 1312 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 1313
c36e15db
CY
13142008-04-05 Chong Yidong <cyd@stupidchicken.com>
1315
9605d567
CY
1316 * search.c (compile_pattern_1): Treat non-nil and non-string of
1317 search-spaces-regexp as nil.
1318
c36e15db
CY
1319 * minibuf.c (Fassoc_string): Tweak docstring.
1320
40beb147
EZ
13212008-04-05 Eli Zaretskii <eliz@gnu.org>
1322
1323 * dired.c (Ffile_attributes): Support inode numbers wider than 32
1324 bits. Remove ugly WINDOWSNT-specific kludge introduced on
1325 2008-03-14 to force inode be positive.
1326
1327 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
1328 _S_* ones, since we now use our own sys/stat.h.
1329 (stat, fstat): Don't mangle the inode number.
aa08d1ff 1330 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 1331
4591d6cb
SM
13322008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
1333
d4417eb0
SM
1334 * frame.h (struct frame): Give one more bit to `visible' since we use
1335 values larger than 1 to indicate obscured frames on ttys.
1336
00f7c5ed
SM
1337 * keymap.c (Qkeymap_canonicalize): New var.
1338 (Fmap_keymap_internal): New fun.
1339 (describe_map): Use keymap-canonicalize.
1340
4591d6cb
SM
1341 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
1342 (Fundo_boundary): Set them.
1343 (syms_of_undo): Initialize them.
1344 (record_point): Use them instead of last_point_position*.
1345 (last_undo_buffer): Change type.
1346
3187540e
JR
13472008-04-04 Jason Rumney <jasonr@gnu.org>
1348
0ce24b2d
JR
1349 * w32font.c (w32font_text_extents): Use font's ascent and descent.
1350 (recompute_cached_metrics): Don't set ascent and descent per char.
1351
3187540e 1352 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 1353 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 1354 Rearrange loop for counting features.
3187540e 1355
f1a6b216
SM
13562008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1357
1358 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
1359 buffer with byte-size of source buffer.
1360
1d8dcf63
CY
13612008-04-03 Chong Yidong <cyd@stupidchicken.com>
1362
1363 * callint.c (Fcall_interactively): Handle temporary region even
1364 when shift-select-mode is off.
1365
6b8aa22a
JR
13662008-04-03 Jason Rumney <jasonr@gnu.org>
1367
1368 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
1369
2f3cbb32
KH
13702008-04-03 Kenichi Handa <handa@m17n.org>
1371
1372 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
1373 (CATEGORY_MASK_UTF_16): Likewise.
1374 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
1375 binary file.
1376 (detect_coding): Add null-byte detection for a binary file.
1377 (detect_coding_system): Likewise.
1378
43f4f91c
JR
13792008-04-03 Jason Rumney <jasonr@gnu.org>
1380
0c1b4ae2
JR
1381 * w32uniscribe.c: New file.
1382
1383 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
1384
1385 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
1386
1387 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
1388 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
1389 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
1390 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
1391 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
1392 (Qphonetic): New symbols.
1393 (syms_of_w32font): Initialize them.
1394 (font_supported_scripts): Use them.
1395 (w32font_list_family): List all charsets.
1396 (w32font_text_extents, recompute_cached_metrics): Fix metric
1397 calculations.
1398 (w32_enumfont_pattern_entity): Make full_type a DWORD.
1399 Give opentype fonts their own format.
1400 (font_matches_spec): New arguments backend and logfont.
1401 Handle :otf spec for uniscribe backend.
1402 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
1403 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 1404
0c1b4ae2
JR
1405 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
1406 font backend.
1407 (globals_of_w32fns): Initialize uniscribe font backend.
1408
fbf57abb 1409 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
1410 dependencies.
1411 (w32uniscribe.$(O)): New file to build.
1412 (FONT_OBJ): Include w32uniscribe.$(O).
1413 (LIBS): Add uniscribe libraries.
1414
43f4f91c
JR
1415 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
1416
75043a7d
CY
14172008-04-02 Chong Yidong <cyd@stupidchicken.com>
1418
1419 * callint.c (Vshift_select_mode): New var.
1420 (Finteractive): Document new ^ spec.
1421 (Fcall_interactively): Call handle-shift-selection if the ^ spec
1422 is present.
1423
1424 * keyboard.c (Vthis_command_keys_shift_translated): New var.
1425 (command_loop_1): Avoid running the direct display versions of
1426 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
1427 (read_key_sequence): Set Vthis_command_keys_shift_translated if
1428 shift-translation takes place.
1429
1430 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
1431 avoid clobbering by define-minor-mode.
1432
1433 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
1434 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
1435
1436 * syntax.c (Fforward_word): Add ^ interactive spec.
1437
1438 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
1439 (Fscroll_right): Add ^ interactive spec.
1440
b2b7f29e
SM
14412008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
1442
a432c0a6
SM
1443 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
1444
994b75e0
SM
1445 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
1446
b2b7f29e
SM
1447 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
1448
e99c7806
JL
14492008-03-31 Juri Linkov <juri@jurta.org>
1450
1451 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
1452
1c9c1270
JD
14532008-03-30 Jan Djärv <jan.h.d@swipnet.se>
1454
1455 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 1456 (xg_resize_outer_widget): Remove.
1c9c1270
JD
1457 (x_wm_size_hint_off): Fix indentation.
1458 (xg_frame_set_char_size): Call flush_and_sync after
1459 gtk_window_resize.
1460 (x_wm_set_size_hint): Pass NULL as geometry window to
1461 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
1462 Add menu bar and tool bar height to base height.
1463 (xg_update_frame_menubar, free_frame_menubar)
1464 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
1465 (update_frame_tool_bar, free_frame_tool_bar):
1466 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 1467
90b3fc84
MA
14682008-03-30 Michael Albinus <michael.albinus@gmx.de>
1469
1470 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
1471 (Fdbus_call_method): New parameter TIMEOUT.
1472 (dbus-send-signal): Optimize UNGCPRO call.
1473
7ae6d1d1
JL
14742008-03-29 Juri Linkov <juri@jurta.org>
1475
1476 * window.c (Fdisplay_buffer): Move call to
1477 Vsplit_window_preferred_function out of conditions that check
1478 if window is eligible for vertical splitting.
1479 When Vsplit_window_preferred_function is non-nil, call it and use
1480 its non-nil return value as window. Otherwise, continue doing
1481 vertical splitting using Fsplit_window with arg horflag=nil.
1482 (syms_of_window) <Vsplit_window_preferred_function>: Change the
1483 default value from `split-window' to nil.
1484
f03f8f2c
JL
14852008-03-29 Juri Linkov <juri@jurta.org>
1486
1487 * callint.c (Fcall_interactively): Revert 2008-03-16 change
1488 for interactive code letters 'b' and 'B'.
1489
6d557778
EZ
14902008-03-29 Eli Zaretskii <eliz@gnu.org>
1491
1492 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
1493 multibyte string.
1494
58555d81
SM
14952008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
1496
1497 * keyboard.c (pending_funcalls): New var.
1498 (timer_check): Run it.
1499 (syms_of_keyboard): Initialize it.
1500 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
1501 (Vdelete_terminal_functions): New vars.
1502 (syms_of_terminal): Initialize them.
1503 (Fdelete_terminal): Run delete-terminal-functions.
1504 * xdisp.c (safe_eval): Rewrite.
1505 (safe_call2): New fun.
1506 * frame.c (Qdelete_frame_functions): New var.
1507 (syms_of_frame): Initialize it.
1508 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
1509 * lisp.h (safe_call2, pending_funcalls): Declare.
1510
4c92f429
AS
15112008-03-28 Andreas Schwab <schwab@suse.de>
1512
1513 * indent.c (Fmove_to_column): Move declaration before statements.
1514
a1567c45
SM
15152008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
1516
2806a183
SM
1517 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
1518 (struct frame): Use bit fields for boolean vars.
1519
eef60308
SM
1520 * process.c (server_accept_connection): Simplify naming.
1521 (emacs_get_tty_pgrp): Use SDATA.
1522
a1567c45
SM
1523 * coding.c (decode_coding_object): Fix last change.
1524
30076589
JR
15252008-03-27 Jason Rumney <jasonr@gnu.org>
1526
1527 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
1528
880820fe
KH
15292008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
1530
1531 * charset.c (Fdefine_charset_internal): Change the way of
1532 registering charsets in Vcharset_order_list.
1533 (syms_of_charset): Make the charset `eight-bit' supplementary.
1534
3cf8cdfb
CY
15352008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
1536
1537 * regex.c (EXTEND_BUFFER): Change order of pointer addition
1538 operations, to avoid having the difference between pointers
1539 overflow.
1540
ef6f5c0e
SM
15412008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1542
80e3db56
SM
1543 * indent.c (check_display_width): New fun.
1544 (scan_for_column): Use it.
1545
c397dc7a
SM
1546 * data.c (syms_of_data): Mark most-positive-fixnum and
1547 most-negative-fixnum as constants.
1548
bf6b4d58
SM
1549 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
1550
ef6f5c0e
SM
1551 * indent.c (scan_for_column): Extract from current_column_1.
1552 Merge with the same code from Fmove_to_column.
1553 (current_column_1, Fmove_to_column): Use it.
1554
72d5003d
SM
15552008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
1556
12270607
SM
1557 * keymap.c (map_keymap_internal): New fun.
1558 (map_keymap): Use it.
1559 (Fmap_keymap_internal): New fun.
1560 (Fmap_keymap): Remove left-out test from before make_save_value.
1561
a10cca6c
SM
1562 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
1563
d7b10f4c
SM
1564 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
1565 Use XCAR/XCDR.
1566
5431bd6a
SM
1567 * process.h (struct Lisp_Process): Remove filter_multibyte.
1568 * process.c (QCfilter_multibyte): Remove.
1569 (setup_process_coding_systems): Don't use filter_multibyte.
1570 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
1571 (read_process_output): Don't adjust multibyteness to filter_multibyte.
1572 (Fset_process_filter_multibyte): Change the coding-system to
1573 approximate the previous behavior.
1574 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
1575 coding-system.
1576
72d5003d
SM
1577 * coding.c (decode_coding_object): When not decoding into a buffer,
1578 obey the coding system's preference of (uni|multi)byte.
1579
438eba3c
SM
15802008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
1581
1582 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
1583 every char is changed and has a different byte-length.
1584 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
1585 Fix int -> EMACS_INT.
1586
9ec3aaef 15872008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 1588
438eba3c 1589 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
1590 strings. Check for NULL `interface' or `member'.
1591
b07103dc
EZ
15922008-03-22 Eli Zaretskii <eliz@gnu.org>
1593
1594 * w32.c (readdir): If FindFirstFile/FindNextFile return in
1595 cFileName a file name that includes `?' characters, use the 8+3
1596 alias in cAlternateFileName instead.
1597
5371d722
SM
15982008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
1599
1600 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
1601
6ba7f443
SM
16022008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1603
1604 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
1605 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
1606 work on current_buffer only instead (that was already the case
1607 for some of the code anyway).
1608 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
1609 (temp_set_point, temp_set_point_both): Use EMACS_INT.
1610 (SET_PT, SET_PT_BOTH): Adjust.
1611 * intervals.h (set_point, temp_set_point, set_point_both)
1612 (temp_set_point_both): Remove redundant declarations.
1613
bf1c0f27
SM
16142008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1615
1616 * fileio.c (Finsert_file_contents):
1617 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
1618 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
1619 when buffer != current_buffer anyway.
1620
acab783e
AS
16212008-03-20 Andreas Schwab <schwab@suse.de>
1622
1623 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
1624 as default.
1625
d148e14d
JR
16262008-03-19 Jason Rumney <jasonr@gnu.org>
1627
1628 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
1629 (syms_of_w32fns): Initialize them.
1630 (HOURGLASS_ID): New constant.
1631 (x_window_to_frame): Don't check hourglass_window.
1632 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
1633 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
1634 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
1635 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
1636 Only change the cursor if hourglass is not active.
1637 (Fx_create_frame): Initialize frame's current_cursor.
1638 (hourglass_atimer): Remove.
1639 (hourglass_started): New function.
1640 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
1641 (show_hourglass): Adapt to w32, changing argument to frame.
1642
1643 * w32term.h (struct w32_output): Remove hourglass_window.
1644 Add current_cursor.
1645
1646 * eval.c (call_debugger, Fsignal):
1647 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
1648 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
1649 (Fexecute_extended_command, cancel_hourglass_unwind):
1650 * minibuf.c (read_minibuf):
1651 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 1652
a5c54077
JB
16532008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
1654
1655 * window.c (run_funs): New fun.
1656 (run_window_configuration_change_hook): Use it to run the buffer-local
1657 and the global part of the hook.
1658
1659 * xdisp.c (format_mode_line_unwind_data): Add window argument.
1660 (unwind_format_mode_line): Restore selected window.
1661 (x_consider_frame_title, Fformat_mode_line): Set selected window.
1662
f9f3238f
SM
16632008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1664
253c3c82
SM
1665 * editfns.c (Fchar_equal): Check they are valid characters.
1666
f9f3238f
SM
1667 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
1668
065a118d
AS
16692008-03-17 Andreas Schwab <schwab@suse.de>
1670
0b8be006
AS
1671 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
1672 against a charset.
1673
065a118d
AS
1674 * lisp.h (Fbuffer_list): Declare.
1675
880820fe 16762008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
1677
1678 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
1679 handlebox_widget is != 0.
1680
6206d6c2
JL
16812008-03-16 Juri Linkov <juri@jurta.org>
1682
1683 * callint.c (Fcall_interactively): For interactive code letters
1684 'b' and 'B' put the buffer list into the list of default "future"
1685 values of the minibuffer.
1686
f5020181
AS
16872008-03-16 Andreas Schwab <schwab@suse.de>
1688
a864f6d6
AS
1689 * keyboard.c (read_key_sequence): Fix downcasing of letters with
1690 modifiers.
1691
f5020181
AS
1692 * regex.c (re_match_2_internal): Correct matching of a charset
1693 against latin-1 characters.
1694
03f244e2
KH
16952008-03-16 Kenichi Handa <handa@m17n.org>
1696
1697 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
1698 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
1699 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
1700 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
1701 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
1702 CHAR_STRING_ADVANCE.
1703 (produce_chars): Fix for the case that the source and the
1704 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
1705 instead of CHAR_STRING_ADVANCE.
1706 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
1707 STRING_CHAR_ADVANCE.
1708
0e2501ed
AS
17092008-03-15 Andreas Schwab <schwab@suse.de>
1710
1711 * regex.c (re_match_2_internal): Correct matching of eight bit
1712 characters in unibyte strings.
1713
7723e095
MR
17142008-03-15 Martin Rudalics <rudalics@gmx.at>
1715
1716 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
1717 at end of range when it coincides with the end of the buffer.
1718
f507f365
EZ
17192008-03-14 Eli Zaretskii <eliz@gnu.org>
1720
294f1153
EZ
1721 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
1722
f507f365
EZ
1723 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
1724
64f0809d
JR
17252008-03-14 Jason Rumney <jasonr@gnu.org>
1726
956ae531
JR
1727 * editfns.c (initial_tz): New variable.
1728 (syms_of_editfns): Initialize it.
1729 (Fset_time_zone_rule): Set it when first called.
1730 Use it when TZSTRING is nil.
1731
64f0809d
JR
1732 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
1733 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
1734 (monitor_from_point_fn, get_monitor_info_fn): New globals.
1735 (globals_of_w32fns): Initialize them.
1736 (compute_tip_xy): Use them to position tooltips.
1737
21a4ff8e
GM
17382008-03-14 Glenn Morris <rgm@gnu.org>
1739
1740 * emacs.c (main): Revert previous change.
1741 (standard_args): Revert -internal-script back to -scriptload,
1742 and remove the long-option form.
1743
a09a5b5b
GM
17442008-03-13 Glenn Morris <rgm@gnu.org>
1745
1746 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
1747 Remove option -enable-font-backend.
1748
1c55ebd1
SM
17492008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
1750
1751 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
1752
880820fe 17532008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
1754
1755 * xterm.c (x_connection_closed): For GTK: If this is the last
1756 terminal just exit without closing the display.
1757
7145be81
JR
17582008-03-11 Jason Rumney <jasonr@gnu.org>
1759
1760 * w32font.c (w32font_full_name): Use floor to round.
1761
e6201af3 17622008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
1763
1764 * sound.c (alsa_configure): Declare vol at beginning of block.
1765
e6201af3 1766 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 1767
390b81fa 17682008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 1769
56388398
MB
1770 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
1771 size of resulting string.
af0ad939 1772
390b81fa 17732008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 1774
56388398 1775 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 1776
390b81fa 17772008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 1778
56388398
MB
1779 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
1780 Don't pretend as if characters with display property haven't been
1781 consumed for string-replacing-string case.
acd37560 1782
223ed6db
KS
17832008-03-08 Kim F. Storm <storm@cua.dk>
1784
1785 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
1786 (get_next_display_element, next_element_from_string)
1787 (next_element_from_ellipsis, next_element_from_buffer): Use it.
1788
28545f7c
AS
17892008-03-08 Andreas Schwab <schwab@suse.de>
1790
1791 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
1792
c960bff8
JR
17932008-03-06 Jason Rumney <jasonr@gnu.org>
1794
290afd83
JB
1795 * w32font.c (w32_registry): Take font_type argument. Use ANSI
1796 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
1797 font_type is truetype.
1798 (w32font_coverage_ok): New function.
1799 (add_font_entity_to_list): Use it to filter unsuitable fonts.
1800
87b8ce92
KH
18012008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
1802
1803 * lread.c (Fread_char): Resolve modifiers.
1804 (Fread_char_exclusive): Likewise.
1805
1806 * character.c (char_resolve_modifier_mask): New function.
1807 (char_string): Use char_resolve_modifier_mask.
1808 (Fchar_resolve_modifiers): New function.
1809 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
1810 function.
1811
cefd56f6
JR
18122008-03-04 Jason Rumney <jasonr@gnu.org>
1813
1814 * makefile.w32-in: Always include w32font.c in the build.
1815 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
1816
03bd3c1f
AS
18172008-03-04 Andreas Schwab <schwab@suse.de>
1818
1819 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
1820 (versionclean): Likewise.
1821
6f69e89b
JB
18222008-03-04 Juanma Barranquero <lekktu@gmail.com>
1823
1824 * .cvsignore: Add oo.
1825
f4a3cc44
AS
18262008-03-03 Andreas Schwab <schwab@suse.de>
1827
1828 * coding.c (decode_coding_object): Inhibit gap shrinking while
1829 decoding in place.
1830
73f838ad
DN
18312008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
1832
1833 * w32term.c: Remove unused include "gnu.h".
6f69e89b 1834 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
1835
1836 * gnu.h: Rename to ...
1837 * emacs-icon.h: ... this.
1838 * xterm.c: Use emacs-icon.h instead of gnu.h.
1839 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
1840
ce9c1f06
JB
18412008-03-03 Juanma Barranquero <lekktu@gmail.com>
1842
1843 * w32font.c: Include math.h.
1844
34fd2d28
JR
18452008-03-03 Jason Rumney <jasonr@gnu.org>
1846
54efdcd1
JR
1847 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
1848 Compute options separately.
1849 (w32font_open_internal): Set glyph_idx before caching metrics.
1850
ce9c1f06
JB
1851 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
1852 Define if system headers don't.
1853 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
1854 (w32font_encode_char): Don't declare here.
1855
1856 * w32font.c (Quniscribe, QCformat): New symbols.
1857 (syms_of_w32font): Define them.
1858 (w32font_has_char): Indicate uncertainty.
ce9c1f06 1859 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 1860 (recompute_cached_metrics): New function.
ce9c1f06
JB
1861 (w32font_open_internal): Use it. Set font to use glyph points
1862 initially. Set format based on type of font.
34fd2d28 1863 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
1864 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
1865 on it. Set format based on information available here.
34fd2d28
JR
1866 (add_font_entity_to_list): Identify backend based on opentype_only.
1867
14daee73
AS
18682008-03-02 Andreas Schwab <schwab@suse.de>
1869
f907fb2e
AS
1870 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
1871
ce9c1f06
JB
1872 * coding.c (decode_coding_big5, produce_chars):
1873 Fix typos in last change.
14daee73 1874
c9cc6462
DN
18752008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
1876
1877 * gnu.h: New icon.
1878
119852e7
KH
18792008-03-02 Kenichi Handa <handa@m17n.org>
1880
1881 * coding.c (decode_coding_utf_8): When eol-type of CODING is
1882 `dos', don't decode '\r' if that is the last in the source.
1883 (decode_coding_utf_16, decode_coding_emacs_mule)
1884 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1885 (decode_coding_raw_text, decode_coding_charset): Likewise.
1886 (produce_chars): Don't decode EOL here. Use EMACS_INT.
1887
a823468b
JR
18882008-03-01 Jason Rumney <jasonr@gnu.org>
1889
1890 * w32font.c (w32font_full_name): Report point size for scalable fonts.
1891
4ddc7e30
KS
18922008-03-01 Kim F. Storm <storm@cua.dk>
1893
1894 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
1895
67997c79
JR
18962008-03-01 Jason Rumney <jasonr@gnu.org>
1897
1898 * w32font.c (w32font_full_name): New function.
1899 (w32font_open_internal): Use it.
1900
3f4e9c35
KS
19012008-03-01 Kim F. Storm <storm@cua.dk>
1902
1903 * dispnew.c (line_draw_cost): Fix invalid glyph check.
1904
f3b9e479
JR
19052008-03-01 Jason Rumney <jasonr@gnu.org>
1906
1907 * font.c (font_unparse_fcname): Increase len when style is a symbol.
1908
880820fe 19092008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
1910
1911 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
1912 xg_frame_resized when the event is for the edit widget.
1913
1914 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
1915
1916 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
1917 set_char_size.
1918 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
1919 operations on widgets here. Just set frame size if needed.
1920 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
1921 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
1922 (x_wm_set_size_hint): Set size hints on the edit widget only, not
1923 the whole frame.
1924 (xg_create_tool_bar): Move attachement of the tool bar to
1925 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
1926 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
1927
6c8acaa1
JR
19282008-03-01 Jason Rumney <jasonr@gnu.org>
1929
1930 * w32fns.c (w32_msg_pump): Disable debug code.
1931
51fb064b 19322008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 1933
51fb064b 1934 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 1935
60221a33
CY
19362008-02-29 Chong Yidong <cyd@stupidchicken.com>
1937
1938 * xdisp.c (next_overlay_string): Don't set
1939 overlay_strings_at_end_processed_p if we're currently reading from
1940 a display string.
1941
10cbc34f
SM
19422008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
1943
1944 * xdisp.c (get_overlay_strings_1): Fix typo.
1945
73c0054e
CY
19462008-02-29 Chong Yidong <cyd@stupidchicken.com>
1947
1948 * xdisp.c (get_overlay_strings_1): Add missing argument type.
1949
ec1c4354
KH
19502008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
1951
55082642
KH
1952 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
1953
ec1c4354
KH
1954 * xdisp.c (display_mode_element): Cancel the previous change.
1955 (decode_mode_spec): Likewise.
ee548a94
KH
1956 (handle_auto_composed_prop): Don't make composition if it->string
1957 is a string.
ec1c4354 1958
b6d898a2
KS
19592008-02-27 Kim F. Storm <storm@cua.dk>
1960
1961 * lisp.h (GLYPH): Change type from int to struct with separate char
1962 and face_id members.
1963 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
1964 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
1965 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
1966 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
1967 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
1968 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
1969 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
1970 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
1971 handle new Lisp glyph code encoding, either an integer or a cons.
1972
1973 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
1974 (GLYPH_ALIAS): Delete.
1975 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
1976 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
1977 (GLYPH_FROM_CHAR): Replace macro by ...
1978 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
1979
1980 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
1981 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
1982 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
1983 (GLYPH_INVALID_P): New macro.
1984 (spec_glyph_lookup_face): Update prototype.
1985
1986 * dispnew.c (line_draw_cost): Adapt to new glyph type.
1987 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
1988 new glyph code encoding.
1989 (spec_glyph_lookup_face): No return value; update passed glyph instead.
1990 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
1991
1992 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1993 Adapt to new glyph type and new glyph code encoding.
1994
1995 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
1996
1997 * indent.c (current_column, current_column_1, Fmove_to_column)
1998 (compute_motion): Adapt to new glyph code encoding.
1999
2000 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2001
af2080a2
CY
20022008-02-27 Chong Yidong <cyd@stupidchicken.com>
2003
2004 * process.c (wait_reading_process_output): Check for window
2005 changes caused by timers.
880820fe 2006 Suggested by Johan Bockgård.
af2080a2 2007
253ed25e
GM
20082008-02-27 Glenn Morris <rgm@gnu.org>
2009
2010 * emacs.c (USAGE1): Add `--disable-font-backend'.
2011
18a9f8d9
SM
20122008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2013
2014 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2015 is made to the buffer.
2016
0f8b27ea
SM
20172008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2018
2019 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2020 (face_at_string_position):
2021 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2022 (face_at_string_position):
2023 * xdisp.c (display_string, next_overlay_change):
2024 * buffer.h (overlays_at):
2025 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2026 Update callers.
2027
4e7c53ca
CY
20282008-02-26 Chong Yidong <cyd@stupidchicken.com>
2029
2030 * editfns.c (Fformat): Doc fix.
2031
51c01100
JB
20322008-02-26 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2035 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2036 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2037
13cda5f9
SM
20382008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * buffer.c (Fbuffer_swap_text): New function.
2041 (syms_of_buffer): Defsubr it.
2042
8018d430
CY
20432008-02-25 Chong Yidong <cyd@stupidchicken.com>
2044
2045 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2046
9bde1a21
JR
20472008-02-25 Jason Rumney <jasonr@gnu.org>
2048
2049 * w32font.c (w32font_draw): Draw one character at a time when padding.
2050
eeca6f6f
SM
20512008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2052
2053 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2054 Handle a nil arg. Use run_window_configuration_change_hook.
2055 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2056 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2057 Use run_window_configuration_change_hook.
2058
ec1c4354
KH
20592008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2060
2061 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2062 1-pixel width.
2063
ae185452
KH
20642008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2065
2066 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2067 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2068 if the glyph in the font is zero pixel with.
2069
2070 * dispextern.h (struct glyph_string): New member padding_p.
2071
2072 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2073
2074 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2075
2076 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2077
2078 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2079
eeca6f6f 2080 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2081
ffe832ea 20822008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2083
ffe832ea 2084 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2085
06045130
SM
20862008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2087
2088 Allow fine-grained image-cache flushing.
2089 * dispextern.h (struct image): Add `dependencies' field.
2090 (clear_image_caches): Change arg to Lisp_Object.
2091 * image.c (make_image): Initialize `dependencies' field.
2092 (clear_image_cache): Change arg to allow fine-grained flushing.
2093 Perform the flush even if image-cache-eviction-delay is nil.
2094 (clear_image_caches): Change arg to Lisp_Object.
2095 (Fclear_image_cache): Expand meaning of the argument.
2096 (mark_image): Mark `dependencies' field.
2097 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2098 (lface_hash): Use XHASH rather than XFASTINT.
2099 (face_at_buffer_position): Fix int -> EMACS_INT position.
2100 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2101 (select_frame_for_redisplay): Remove code duplication.
2102 (redisplay_internal): Adapt arg to call to clear_image_caches.
2103
9d2818d6
DN
21042008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2105
2106 * s/vms4-0.h:
2107 * s/vms4-2.h:
2108 * s/vms4-4.h:
2109 * s/vms5-5.h: Remove, unused.
2110
2111 * s/irix5-2.h:
2112 * s/irix6-0.h:
2113 * s/riscos5.h:
2114 * s/mach-bsd4-3.h:
2a2e8de7 2115 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
2116
2117 * Makefile.in:
2118 * filelock.c:
2119 * unexmips.c:
2120 * m/hp9000s300.h:
2121 * m/iris4d.h:
2122 * s/aix3-1.h:
2123 * s/hpux.h:
2124 * s/msdos.h:
2125 * s/usg5-0.h:
2126 * s/usg5-2-2.h:
2127 * s/usg5-2.h:
2128 * s/usg5-3.h: Remove references to obsolete variables.
2129
2130 * s/irix5-0.h: Remove, move all the contents ...
2131 * s/irix6-5.h: ... here. Simplify.
2132 * config.in: Regenerate.
2133
2a36efcf
JR
21342008-02-24 Jason Rumney <jasonr@gnu.org>
2135
c5ad7a3d 2136 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
2137 manually when cleartype is in use.
2138 (x_draw_glyph_string_foreground): Draw text transparently when
2139 cleartype is in use.
2140
2a36efcf
JR
2141 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
2142 a font into it unless we have to.
2143
b03f96dc 21442008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 2145
b03f96dc
MB
2146 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
2147 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 2148
b03f96dc 21492008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 2150
b03f96dc 2151 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 2152
b03f96dc 21532008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 2154
b03f96dc 2155 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 2156
b03f96dc 21572008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 2158
b03f96dc 2159 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 2160
d5958163
CY
21612008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
2162
2163 * xterm.c (x_set_offset): Don't change the gravity if
2164 CHANGE_GRAVITY is -1.
2165
9997701e
CY
21662008-02-23 Chong Yidong <cyd@stupidchicken.com>
2167
2168 * fileio.c (auto_save_error_occurred): New var.
2169 (auto_save_error): Set it.
2170 (Fdo_auto_save): Don't overwrite the error message if an auto-save
2171 error occurred.
2172
9d95a291
EZ
21732008-02-23 Eli Zaretskii <eliz@gnu.org>
2174
2175 * w32.c (globals_of_w32): Add initializations for
2176 g_b_init_get_sid_sub_authority and
2177 g_b_init_get_sid_sub_authority_count.
2178
43d1af23
SM
21792008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2180
43a1d19b
SM
2181 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
2182 (font_parse_xlfd): Use them for sanity check.
608c3307 2183 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 2184
354884c4
SM
2185 Consolidate the image_cache to the terminal struct.
2186 * termhooks.h (P_): Remove redundant def.
2187 (struct terminal): New field `image_cache'.
2188 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
2189 of FRAME_X_IMAGE_CACHE.
2190 * xterm.h (struct x_display_info): Remove image_cache field.
2191 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2192 * w32term.h (struct w32_display_info): Remove image_cache field.
2193 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2194 * macterm.h (struct mac_display_info): Remove image_cache field.
2195 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
2196 * xterm.c (x_term_init):
2197 * w32term.c (w32_term_init):
2198 * macterm.c (mac_term_init): Set the image_cache in the terminal.
2199 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
2200 Remove declarations.
2201 (clear_image_caches, mark_image_cache): New declarations.
2202 * xfaces.c (clear_face_cache):
2203 * xdisp.c (redisplay_internal): Use clear_image_caches.
2204 * image.c (clear_image_cache): Don't check that a frame is on
2205 a window-system before checking if it shares the same cache.
2206 (clear_image_caches): New function.
2207 (Fclear_image_cache): Use it.
2208 (mark_image): Move from allo.c.
2209 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
2210 * alloc.c (mark_image, mark_image_cache): Move to image.c.
2211 (mark_object): Don't call mark_image_cache for frames.
2212 (mark_terminals): Call mark_image_cache.
2213
c2e42690
SM
2214 * lisp.h (Fdelete_terminal): Declare.
2215
43d1af23
SM
2216 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
2217 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
2218 wrong_type_argument.
2219
cc8d1311
KH
22202008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
2221
2222 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 2223 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 2224
6bd92640
SM
22252008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
2226
2227 * xterm.c (x_connection_closed): Consolidate identical tests.
2228 (x_delete_terminal): Don't crash if called via x_connection_closed.
2229
a73b5627
KH
22302008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
2231
2232 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 2233 (display_mode_element): Adjust for the above change.
a73b5627 2234
1b511542
SM
22352008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2236
2237 * callint.c (Fcall_interactively): Use AREF.
2238
81aefea4
SM
22392008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
2242
880820fe 22432008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
2244
2245 * xfns.c (Fx_show_tip): Set string to " " if empty.
2246
a2b84f35
DN
22472008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
2248
2249 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
2250 with Qt.
2251
43c0454d
KH
22522008-02-17 Kenichi Handa <handa@m17n.org>
2253
2254 * ftfont.c (ftfont_shape): Return Lispy number.
2255
2256 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
2257 for GCs.
2258 (Finternal_set_font_selection_order): Call font_update_sort_order
2259 only when enable_font_backend is set.
2260 (realize_x_face): Set face->font_info to that of default face only
2261 when enable_font_backend is set.
2262
2263 * xdisp.c (handle_composition_prop): Set it->c to the fist
2264 characte of the composed region.
2265 (fill_composite_glyph_string): Set base_face->font_info to
2266 s->font_info. Get a face for ascii from base_face->ascii_face.
2267 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
2268 with a face already decided.
2269 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
2270 non-negative.
978bef9a
JB
2271 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
2272 call font_prepare_composition unconditionally.
43c0454d 2273
978bef9a 2274 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
2275
2276 * xterm.h (struct x_display_info): New member font.
2277
2278 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
2279 (x_set_mouse_face_gc, x_new_font): Likewise.
2280 (x_term_init): Setup display_info->font.
2281 (x_delete_terminal): Free display_info->font.
2282
2283 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
2284
2285 * ftxfont.c (ftxfont_default_fid): Delete it.
2286 (ftxfont_open): Set xfont->fid to 0.
978bef9a 2287 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
2288 font-driver.
2289
2290 * xftfont.c (xftfont_default_fid): Delete it.
2291 (xftfont_open): Set xfont->fid to 0.
2292
2293 * fontset.c (FONTSET_OBJLIST): New macro.
2294 (fontset_find_font): Update font-object list of the fontset.
2295 (free_realized_fontset): New function.
2296 (free_face_fontset): Call free_realized_fontset.
2297 (Ffont_info): Call font_close_object only when enable_font_backend
2298 is set.
2299
2300 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
2301 [HAVE_NTGUI]: Include w32term.h.
2302 [MAC_OS]: Include macterm.ch.
2303 (font_otf_ValueRecord): Use make_number.
2304 (font_finish_cache): Fix handling of reference count.
2305 (font_clear_cache): Update num_fonts.
2306 (font_open_entity): Update smallest_char_width and
2307 smallest_font_height of the frame.
2308 (font_close_object): Update num_fonts.
2309 (Fclear_font_cache): Fix finding the target cache data.
2310
be617367
GM
23112008-02-16 Glenn Morris <rgm@gnu.org>
2312
2313 * fontset.c (Finternal_char_font): Fix compilation warning.
2314
2930d117
EZ
23152008-02-16 Eli Zaretskii <eliz@gnu.org>
2316
634d3003
EZ
2317 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
2318 instead of char arrays. Enlarge the size of array passed to
2319 get_token_information.
2320
2930d117
EZ
2321 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
2322 warnings.
2323
79214046
DN
23242008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
2325
2326 * .gdbinit: Don't set `args', it breaks gdb --args.
2327
7f5d2c72
SM
23282008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
2329
2330 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
2331 within a narrowed buffer.
2332
6edacc43
KH
23332008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
2334
b270d6af
JB
2335 * coding.c (decode_coding_object, encode_coding_object):
2336 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 2337
174105f7
SM
23382008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2339
b270d6af
JB
2340 * coding.c (coding_set_destination): Use BEG_BYTE rather than
2341 hardcoding 1.
13818c30
SM
2342 (detect_coding_system):
2343 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
2344 (string_char_to_byte, string_byte_to_char, insert_from_gap):
2345 * insdel.c (insert_from_gap):
2346 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
2347 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
2348 (string_to_multibyte):
2349 * character.c (chars_in_text, multibyte_chars_in_text):
2350 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
2351
f1c99628
SM
2352 * character.h (FETCH_STRING_CHAR_ADVANCE)
2353 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
2354 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
2355 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
2356
7927d8e3
SM
2357 * casefiddle.c (casify_region): Only call after-change and composition
2358 functions on the part of the region that was changed.
2359
adf6a429 2360 * keyboard.c (read_avail_input):
174105f7
SM
2361 * frame.c (Fdelete_frame): Call Fdelete_terminal.
2362
3ee24aec
SM
23632008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2364
2365 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
2366 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
2367
4ed4b975
JB
23682008-02-11 Juanma Barranquero <lekktu@gmail.com>
2369
2370 * w32menu.c (push_submenu_start, push_submenu_end)
2371 (push_left_right_boundary, push_menu_pane, push_menu_item):
2372 * keyboard.c (read_key_sequence): Don't pass args with side effects
2373 to AREF, it fails when compiling with -DENABLE_CHECKING.
2374
79e3bfb8
KH
23752008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
2376
4ed4b975
JB
2377 * Makefile.in (${lispsource}international/charprop.el):
2378 Delete this target.
6e76043f 2379
79e3bfb8
KH
2380 * search.c (boyer_moore): Fix incorrect synching of the trunk and
2381 emacs-unicode-2.
2382
5b8de9c5
SM
23832008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2384
2385 * terminal.c (Fdelete_terminal): Clean up the `force' path.
2386
eac1939a
SM
23872008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2388
c53956fe
SM
2389 * frame.c (Qnoelisp): New symbol.
2390 (syms_of_frame): Initialize it.
2391 (Fdelete_frame): Use it to distinguish a mere `force' passed from
2392 someharmles Elisp code, from a strong `force' from x_connection_closed.
2393 * frame.h (Qnoelisp): Declare.
2394 * xterm.c (x_connection_closed): Pass `noelisp'.
2395
eac1939a
SM
2396 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
2397 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
2398 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
2399 rather than `int' for the type of `type'.
2400
13f6772b
DN
24012008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
2402
2403 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
2404
2405 * Makefile.in (GNUC): Remove support for gcc-1.x.
2406
e8455367
RS
24072008-02-10 Richard Stallman <rms@gnu.org>
2408
2409 * lisp.h (ASET): Use AREF, not ASLOT.
2410
4b75ffab
SM
24112008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
2412
2413 * lisp.h (ASET): Check bounds.
2414
d224e8c2
GM
24152008-02-10 Glenn Morris <rgm@gnu.org>
2416
2417 * buffer.c (mode-name): Doc fix.
2418
4624371d
DN
24192008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2420
290afd83
JB
2421 * Makefile.in:
2422 * emacs.c:
2423 * gmalloc.c:
2424 * keyboard.c:
2425 * lisp.h:
2426 * m/ibm370aix.h:
2427 * process.c:
2428 * regex.c:
2429 * s/hpux.h:
2430 * sysdep.c:
2431 * sysselect.h:
2432 * systty.h:
2433 * unexec.c:
2434 * w32term.c:
2435 * xsmfns.c:
2436 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
2437
2438 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
2439
2440 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
2441 nothing else needs it anymore.
2442
274ec34b
EZ
24432008-02-09 Eli Zaretskii <eliz@gnu.org>
2444
2445 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
2446 instead of unibyte_char_to_multibyte.
2447
deeaffe1
DN
24482008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
2449
2450 * s/gnu-linux.h: Remove commented out code.
2451
4ed4b975 2452 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
2453
2454 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 2455 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
deeaffe1
DN
2456 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1):
2457 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
2458 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
2459
68b587a6
SM
24602008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2461
9141ca5e
SM
2462 * keymap.c (Fkey_description): Move side effect outside of macro call.
2463
dfae5f9a 2464 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
2465 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
2466
ff7a2223
SM
2467 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
2468 (syms_of_fontset): Use ASET.
2469
68b587a6
SM
2470 * fns.c (concat): Move side effect outside of macro call.
2471 (hash_clear): Use ASET.
2472
a31787b1
RS
24732008-02-08 Richard Stallman <rms@gnu.org>
2474
2475 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
2476 If FORCE, and frame has a surrogate minibuffer for another frame,
2477 delete the other frame first.
2478
987be29b 24792008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
2480
2481 * xterm.c (x_detect_focus_change): Handle embed client message.
2482 (handle_one_xevent): Ditto.
2483 (handle_one_xevent): If embedded and we get a button press/release,
2484 request focus.
2485 (xembed_set_info, xembed_send_message): New functions.
2486 (x_make_frame_visible): Call xembed_set_info if embedded.
2487 (x_make_frame_invisible): Call xembed_set_info if embedded.
2488 (x_term_init): Initialize Xatom_XEMBED.
2489 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
2490 (x_iconify_frame): Ditto.
2491
2492 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
2493 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
2494 (enum xembed_modifier, enum xembed_accelerator): New.
2495 (xembed_set_info, xembed_send_message): Declare.
2496 (FRAME_X_EMBEDDED_P): New.
2497
2498 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
2499 gtk_plug_new.
2500
2501 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
2502 window ID of a frame.
2503 (x_window): Reparent frame if embedded.
2504 (Fx_create_frame): Don't set border width if embedded.
2505
2506 * emacs.c (USAGE3): Add --parent-id
2507 (standard_args): Ditto.
2508
880820fe 25092008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
2510
2511 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
2512
92413ef3
JD
25132008-02-07 Jim Meyering <meyering@redhat.com>
2514
6f69e89b 2515 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
2516 The latter provokes a warning from gcc about the empty else, when
2517 followed by ";". Also, without that trailing semicolon, it would
2518 silently swallow up any following statement.
2519 * syntax.h (SETUP_SYNTAX_TABLE):
2520 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
2521 * buffer.h (DECODE_POSITION): Likewise.
2522 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
2523 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
2524 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
2525 (FETCH_CHAR_ADVANCE): Likewise.
2526 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 2527
03fa5713
GM
25282008-02-07 Jim Meyering <meyering@redhat.com>
2529
2530 * lread.c [lint]: Don't include <sys/inode.h>.
2531
3ae565b3
SM
25322008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
2533
2534 * xselect.c (x_handle_dnd_message):
2535 * xmenu.c (digest_single_submenu, xmenu_show):
2536 * xdisp.c (with_echo_area_buffer_unwind_data)
2537 (format_mode_line_unwind_data, unwind_format_mode_line)
2538 (display_menu_bar):
2539 * eval.c (Ffetch_bytecode):
2540 * doc.c (store_function_docstring):
2541 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
2542 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
2543 * buffer.c (add_overlay_mod_hooklist): Use ASET.
2544
146b6e55
KH
25452008-02-07 Kenichi Handa <handa@m17n.org>
2546
2547 * ftxfont.c (ftxfont_open): Don't set
2548 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
2549
2550 * ftfont.c (ftfont_open): Fix previous change.
2551
46a923ac
JR
25522008-02-06 Jason Rumney <jasonr@gnu.org>
2553
2554 * w32font.c (w32font_text_extents): Fill in lbearing metric.
2555 Use cached metrics for ASCII characters.
3ae565b3
SM
2556 (w32font_open_internal): Don't set font's owning_frame.
2557 Cache metrics for ASCII characters.
46a923ac
JR
2558
2559 * w32font.h (struct w32font_info): Add ascii_metrics.
2560 Remove owning_frame.
2561
da7d7c21
KH
25622008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
2563
2564 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
2565 to negative value.
2566
2567 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
2568
3ae565b3 2569 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
2570
2571 * charset.c (syms_of_charset): Set QCtest and Qeq.
2572
c62c8ddb
SM
25732008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
2574
ca319910
SM
2575 * process.c (Fstart_process):
2576 * callproc.c (Fcall_process): Handle the case where
2577 Funhandled_file_name_directory returns nil.
2578
76860cbb
SM
2579 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
2580 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
2581 * font.c (check_gstring): Use them and AREF to access the vector before
2582 we know it's really a gstring.
2583 (Ffont_shape_text): Fix typo.
2584 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 2585
15139d67
SM
2586 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
2587 Declare.
2588
c62c8ddb
SM
2589 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
2590
04b65d2b
JR
25912008-02-05 Jason Rumney <jasonr@gnu.org>
2592
2593 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
2594 Set smallest_font_height and smallest_char_width in display info.
2595
fccaebfd
KH
25962008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
2597
2598 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
2599
e7d7fd8c
MB
26002008-02-05 Miles Bader <miles@gnu.org>
2601
2602 * xfaces.c (get_lface_attributes, merge_named_face)
2603 (lookup_named_face, lookup_derived_face, realize_named_face):
2604 Revert 2008-02-01 change by cyd@stupidchicken.com.
2605
3d4448a8
KH
26062008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
2607
2608 * fontset.c (Ffontset_info): Handle the case of inhibitting the
2609 fallback fonts.
15139d67 2610 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 2611
5ace1ec1
JR
26122008-02-04 Jason Rumney <jasonr@gnu.org>
2613
2614 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
2615 set full_name.
e3a77b22 2616 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 2617
ffe42183
JR
26182008-02-03 Jason Rumney <jasonr@gnu.org>
2619
2620 * makefile.w32-in (OBJ1): Include font.o here.
2621 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
2622
526dc3b3
JR
26232008-02-02 Jason Rumney <jasonr@gnu.org>
2624
a0fece35 2625 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 2626
af805c82
JR
26272008-02-01 Jason Rumney <jasonr@gnu.org>
2628
2629 * s/cygwin.h: Define VIRT_ADDR_VARIES.
2630
2631 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
2632
7f6519c5
AS
26332008-02-01 Andreas Schwab <schwab@suse.de>
2634
1f45f627 2635 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 2636 ../lisp/language/myanmar.el.
7f6519c5 2637
26f8aa27
CY
26382008-02-01 Chong Yidong <cyd@stupidchicken.com>
2639
1f45f627 2640 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
2641 (merge_named_face, lookup_named_face, lookup_derived_face)
2642 (realize_named_face): Call lface_from_face_name directly, and use
2643 the fact that merge_face_vectors does not alter its FROM argument.
2644
73acf815 26452008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2646
2647 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 2648 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 2649
73acf815 26502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2651
2652 * fontset.c (reorder_font_vector): Exclude nil elements from the
2653 font group. Don't try multiple fonts.
15139d67 2654 (fontset_font): Adjust for the above change.
aca7a3d2
MB
2655 (Finternal_char_font): Return nil if the found font doesn't
2656 contain the character ch.
2657
4c4475a8 2658 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 2659
73acf815 26602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2661
2662 * font.h (FONTP): Make it return 1 also for a font-object.
2663
2664 * .gdbinit (xfontset): New function.
2665
2666 * font.c (font_find_for_lface): Check if the character C is
2667 supported or not only for the first font.
2668
2669 * fontset.c (reorder_font_vector): Fix typo.
2670 (fontset_find_font): Don't add a font-spec specifying a script.
2671 Use 0 (not Qt) for the indication of empty font-group. Change the
2672 format of RFONT-DEF. Return Qt if no font in the font-group
2673 support the character.
15139d67 2674 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 2675 found the character, remember that.
15139d67 2676 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
2677 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
2678 no font for the target.
15139d67 2679 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 2680
73acf815 26812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2682
2683 * font.c (font_load_for_face): Handle the case that the font in
2684 face->lface is a string.
2685
73acf815 26862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2687
1f45f627 2688 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 2689
73acf815 26902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2691
2692 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
2693 Fix previous change. If the frame is not on a window system,
2694 signal an error.
2695
73acf815 26962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2697
4c4475a8
GM
2698 * coding.c (decode_coding_object, encode_coding_object): Adjust
2699 marker positions after conversion.
aca7a3d2
MB
2700
2701 * lisp.h (struct Lisp_Marker): New member need_adjustment.
2702
73acf815 27032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2704
2705 * font.c (font_find_for_lface): Fix the handling of the return
2706 value of font_has_char.
2707 (Ffont_shape_text): Fix previous change.
2708
2709 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
2710 (fontset_ref_and_range): Delete it.
2711 (fontset_find_font): Call char_table_ref_and_range instead of
2712 FONTSET_REF_AND_RANGE.
2713 (make_fontset): Don't setup font groups of Latin here.
2714 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
2715 (new_fontset_from_font): Make the specified font the default for
2716 all Latin characters.
2717
73acf815 27182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2719
2720 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
2721 is on a window system before accessing the fontset of the frame.
2722
73acf815 27232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2724
1f45f627 2725 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
2726
2727 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
2728 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
2729
2730 * font.c (Ffont_shape_text): If the font driver doesn't have a
2731 shaper function, make zero-width glyphs to have at least one-pixel
2732 width. Fix setting of `to' field of glyphs.
2733
73acf815 27342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2735
2736 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
2737 glyphs.
2738
1f45f627 2739 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 2740
73acf815 27412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2742
2743 * composite.c (syms_of_composite): Fix docstring of
2744 auto-composition-function.
2745
2746 * font.h (LGLYPH_SIZE): New macro.
2747
2748 * font.c (Ffont_fill_gstring): Stop filling when a character not
2749 supported by the font is found.
2750 (Ffont_shape_text): When a shape callback function returns nil,
2751 try at most two more times with larger gstring.
15139d67 2752 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
2753
2754 * xdisp.c (handle_auto_composed_prop): Change the argument to
2755 auto-composition-function.
2756
2757 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
2758 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
2759 Lispy glyph and store it in the lgstring.
2760
2761 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
2762
2763 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
2764
73acf815 27652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2766
2767 * font.c (Ffont_shape_text): Avoid unnecessary composition.
2768
2769 * fontset.c (Vfont_encoding_charset_alist): New variable.
2770 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
2771 (reorder_font_vector, fontset_find_font): Optimize for the case of
2772 no need of reordering.
aca7a3d2
MB
2773 (face_for_char): Map the charset property by
2774 Vfont_encoding_charset_alist.
2775
73acf815 27762008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2777
2778 * w32font.c (logfonts_match): Don't check adstyle here.
2779 (font_matches_spec): Check here against physical font instead.
2780 (add_font_entity_to_list): Avoid some substitutions.
2781
2782 * font.c (font_parse_fcname): Default weight and slant to normal.
2783 (font_score): Prefer normal fonts if weight or slant unspecified.
2784 (font_score) [WINDOWSNT]: Scale weight difference down to closer
2785 match freetype scores.
2786
73acf815 27872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2788
2789 * w32font.c (w32font_text_extents): Don't use the frame stored in the
2790 font, as it may have been deleted.
2791 (w32_enumfont_pattern_entity): Map generic family to adstyle using
2792 most common hyphenless variation.
2793 (logfonts_match): Check generic family.
2794 (font_matches_spec): Don't check generic family here.
2795 (fill_in_logfont): Set generic family based on adstyle.
2796
2797 * w32font.h (w32font_get_cache): Update declaration.
2798
73acf815 27992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2800
2801 * ftfont.c (ftfont_get_cache): Adjust the argument type.
2802
15139d67
SM
2803 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
2804 If none of the new drivers are available, call font_update_drviers
aca7a3d2
MB
2805 with the old drivers.
2806
2807 * w32font.c (w32font_get_cache): Adjust the argument type.
2808
2809 * xfont.c (xfont_get_cache): Adjust the argument type.
2810
2811 * font.h (struct font_driver): Change argument type of get_cache.
2812
2813 * xftfont.c (xftfont_start_for_frame): Delete prototype.
2814
2815 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 2816 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 2817 (font_clear_cache): New function.
4c4475a8 2818 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 2819 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
2820
2821 * fontset.c (fontset_find_font): Fix previous change.
2822
73acf815 28232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2824
2825 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
2826 dpyinfo->font_table.
2827 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 2828 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
2829
2830 * font.c (font_at): Handle the case that the arg C is negative.
2831 Handle the unibyte case.
2832 (Ffont_at): Call font_at with the arg C -1.
2833
2834 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
2835 the position here, and call font_at with the arg C -1.
2836 Don't check the range of the existing composition at the point.
aca7a3d2 2837
73acf815 28382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2839
15139d67 2840 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 2841 Change caller.
4c4475a8
GM
2842 (load_font_get_repertory, fontset_find_font): Assume that
2843 font_spec is always a font-spec object.
aca7a3d2
MB
2844 (Fset_fontset_font): Always store a font-spec object in a fontset.
2845
2846 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
2847 instead of get_property_and_range.
2848
73acf815 28492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2850
2851 * xftfont.c (struct xftfont_info): Delete the member ft_face.
2852 (xftfont_open): Don't keep locking face.
2853 (xftfont_close): Don't unlock face.
4c4475a8 2854 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
2855
2856 * fontset.c (fontset_find_font): Don't prefer a font of
2857 supplementary charset.
2858
73acf815 28592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2860
1f45f627
GM
2861 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
2862 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
2863 (OTF_TAG_STR): Terminate by '\0'.
2864 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
2865 listing to the script specified in that property. Fix arg to
2866 OTF_check_features.
2867
73acf815 28682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2869
2870 * w32font.h: New file.
2871
2872 * w32font.c: Include it.
2873 (struct w32font_info): Add owning_frame field. Move to w32font.h.
2874 (w32font_open): Set owning_frame.
2875 (w32font_text_extents): Use owning_frame.
2876 (struct font_callback_data): Add opentype_only field.
2877 (add_font_entity_to_list): Use it to filter fonts.
2878 Don't check against full name.
2879 (w32font_list_internal): New function.
2880 (w32font_list): Use it.
2881 (w32font_match_internal): New function.
2882 (w32font_match): Use it.
2883 (w32font_open_internal): New function.
2884 (w32font_open): Use it.
2885 (w32font_get_cache, w32font_close, w32font_has_char)
2886 (w32font_encode_char, w32font_text_extents, w32font_draw):
2887 Make non-static.
2888
2889 * makefile.w32-in (w32font.o): Depend on w32font.h.
2890
73acf815 28912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2892
2893 * charset.c (Fdefine_charset_internal): Record a supplementary
2894 charset at the tail of Vcharset_order_list.
2895
2896 * font.c (Ffont_shape_text): Fix the return value.
2897
2898 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
2899
2900 * xdisp.c (handle_auto_composed_prop): Fix previous change.
2901
73acf815 29022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2903
2904 * ftfont.c (struct OpenTypeSpec): New struct.
2905 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
2906 (ftfont_get_open_type_spec): New function.
2907 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
2908
15139d67 2909 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 2910
73acf815 29112008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2912
2913 * w32font.c (add_font_entity_to_list): Compare only the beginning
2914 of full name.
2915
73acf815 29162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2917
15139d67
SM
2918 * xdisp.c (handle_auto_composed_prop): Simplify the code.
2919 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 2920
73acf815 29212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2922
2923 * font.c (font_gstring_produce): Delete it.
2924
15139d67
SM
2925 * composite.h (COMPOSITION_METHOD):
2926 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 2927
73acf815 29282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2929
15139d67 2930 * xfont.c (Qx): Delete.
aca7a3d2
MB
2931 (syms_of_xfont): Don't initialize Qx.
2932
15139d67
SM
2933 * composite.h (enum composition_method):
2934 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 2935
73acf815 29362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2937
2938 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
2939 (choose_face_font): Accept new form of font-spec.
2940
2941 * frame.h (font_driver_list): Declare it unconditionally.
2942 (struct frame): Define members font_driver_list and font_data_list
2943 unconditionally.
2944
2945 * fontset.c: Include "font.h" unconditionally.
15139d67 2946 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
2947 (Fset_fontset_font): Accept a font-spec object.
2948
2949 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
2950 PIXEL_SIZE part a wild card.
2951
2952 * dispextern.h (struct glyph_string): Define members clip and
2953 num_clips unconditionally.
2954 (struct face): Define members font_info and extra unconditionally.
2955
2956 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
2957 ftfont_info only when HAVE_LIBOTF is defined.
2958
73acf815 29592008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
2960
2961 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
2962 and end.
2963
73acf815 29642008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2965
2966 * w32font.c (w32font_driver): Add new fields.
2967
73acf815 29682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 2969
aca7a3d2
MB
2970 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
2971 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
2972 (LIBES): Add @M17N_FLT_CFLAGS@.
2973
2974 * composite.c (compose_text): Don't treat the new style
2975 composition specially.
2976
2977 * emacs.c (main): Call syms_of_font unconditionally.
2978
2979 * font.h (FONT_ENTITY_NOT_LOADABLE)
2980 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 2981 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 2982 (struct font_driver): New member shape.
1f45f627 2983 (font_registry_charsets): Extern it.
4c4475a8 2984 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
2985 (font_otf_capability, font_drive_otf): Delete their externs.
2986
2987 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
2988 (font_charset_alist, font_registry_charsets): Move from xfont.c
2989 and rename.
aca7a3d2
MB
2990 (font_prop_validate_otf): New function.
2991 (font_property_table): Register it for QCotf.
2992 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 2993 (font_drive_otf): Delete.
1f45f627 2994 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
2995 lispy gstring.
2996 (font_find_for_lface): New arg C.
15139d67 2997 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
2998 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
2999 lispy gstring.
aca7a3d2
MB
3000 (Ffont_shape_text): New function.
3001 (Fopen_font): If the font size is not given, use 12-pixel.
3002 (Ffont_at): New arg STRING.
15139d67
SM
3003 (syms_of_font): Initalize font_charset_alist.
3004 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3005 conditionally.
3006
3007 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3008 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3009 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3010 Adjust for the change of RFONT-DEF.
15139d67 3011 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3012
3013 * ftfont.h: New file.
3014
3015 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3016 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3017 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3018 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3019 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3020 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3021 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3022 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3023 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
3024 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s
3025 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3026 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3027
15139d67
SM
3028 * w32term.c (x_draw_composite_glyph_string_foreground):
3029 Adjust for the change of lispy gstring.
aca7a3d2 3030
15139d67 3031 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3032 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3033 third arg it->window.
3034 (fill_composite_glyph_string): Adjust for the change of lispy string.
3035 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3036
15139d67 3037 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3038 font_find_for_lface.
3039
1f45f627
GM
3040 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3041 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3042 (syms_of_xfont): Don't handle x_font_charset_alist.
3043
3044 * xftfont.c: Include "ftfont.h".
15139d67 3045 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3046 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3047 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3048 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3049 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3050 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3051
15139d67 3052 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3053 the change of lispy gstring.
3054
73acf815 30552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3056
3057 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3058
73acf815 30592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3060
3061 * w32font.c (w32font_draw): Fill background manually.
3062
73acf815 30632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3064
3065 * font.c (Qfontp): Remove unused symbol.
3066 (QCantialias): New symbol.
3067 (syms_of_font): Define it.
3068 (font_property_table): Set a validator for QCantialias.
3069
15139d67
SM
3070 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3071 Define if not already.
aca7a3d2
MB
3072 (QCfamily): Share with xfaces.c.
3073 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3074 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3075 (w32_antialias_type, lispy_antialias_type): New functions.
3076 (w32_enumfont_pattern_entity): New arg requested_font.
3077 Set antialias parameter if non-default was requested.
3078 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3079
73acf815 30802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3081
3082 * lread.c (read1): Undo the previous change.
3083
73acf815 30842008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3085
3086 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3087 USE_FONT_BACKEND is defined.
aca7a3d2 3088
73acf815 30892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3090
3091 * font.h (struct font_bitmap): New member bits_per_pixel.
3092 (struct font_driver): New members start_for_frame and end_for_frame.
3093 (struct font_data_list): New struct.
3094 (font_put_frame_data, font_get_frame_data): Extern them.
3095
3096 * frame.h (struct frame): New member font_data_list.
3097
3098 * font.c (font_update_drivers): Call driver->start_for_frame and
3099 driver->end_for_frame at proper timings.
3100 (font_put_frame_data, font_get_frame_data): New functions.
3101 (Ffont_spec): Add usage in the docstring.
3102
3103 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3104 (Fdelete_frame): Call font_update_drivers.
3105
3106 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 3107 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
3108 (xftfont_get_xft_draw): New function.
3109 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
3110 (xftfont_end_for_frame): New function.
3111 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
3112
15139d67 3113 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 3114 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
3115 (struct ftxfont_frame_data): New struct.
3116 (ftxfont_draw_bitmap): New arg gc_fore and flush.
3117 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 3118 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
3119 (ftxfont_end_for_frame): New function.
3120 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
3121
3122 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
3123
73acf815 31242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3125
3126 * xselect.c (Vselection_coding_system)
3127 (Vnext_selection_coding_system): Delete them.
3128 (syms_of_xselect): Don't declare selection-coding-system and
3129 next-selection-coding-system. They are declared in select.el.
3130
73acf815 31312008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3132
3133 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
3134
3135 * w32fns.c: Include imm.h.
3136 (get_composition_string_fn, get_ime_context_fn): New optional
3137 system functions.
3138 (globals_of_w32fns): Load them from imm32.dll.
3139 (ignore_ime_char): New flag.
3140 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
3141 WM_IME_ENDCOMPOSITION messages.
3142
3143 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
3144 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
3145
73acf815 31462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3147
3148 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
3149 (READCHAR_REPORT_MULTIBYTE): New macro.
3150 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
3151 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
3152 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
3153 source.
3154
73acf815 31552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3156
3157 * xfaces.c (face_for_overlay_string): Call lookup_face with
3158 correct arguments (fix of synching with the trunk).
3159
73acf815 31602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3161
4c4475a8
GM
3162 * font.c (font_prop_validate_symbol, font_prop_validate_style)
3163 (font_prop_validate_non_neg, font_prop_validate_spacing):
3164 Delete argument prop_index.
15139d67
SM
3165 (font_property_table): Change arguments to validater. Change Callers.
3166 (font_lispy_object): Delete.
aca7a3d2
MB
3167 (font_at): Use font_find_object instead fo font_lispy_object.
3168
73acf815 31692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3170
3171 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
3172 and file names.
3173
73acf815 31742008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3175
3176 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
3177 (font_matches_spec): Remove debug output.
3178 (add_font_entity_to_list): Avoid using substituted fonts.
3179
73acf815 31802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3181
3182 * doc.c (Fsnarf_documentation):
3183 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
3184
73acf815 31852008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 3186
290afd83 3187 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
3188 HAVE_WINDOW_SYSTEM is defined.
3189
73acf815 31902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3191
3192 Fix up multi-tty merge.
3193
3194 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
3195 and indentation.
3196
3197 * xfaces.c (free_realized_face, clear_face_gcs):
3198 Include font_done_for_face in the input_blocked section, just in case.
3199
3200 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
3201 (get_char_face_and_encoding): Undo last change and remove the *other*
3202 duplicate definition (i.e. keep the one that's better scoped and that
3203 includes code for the font-backend).
3204
3205 * terminal.c (create_terminal): Default keyboard_coding to
3206 `no-conversion' and terminal_coding to `undecided'.
3207
3208 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
3209
3210 * fontset.c (free_realized_fontsets): Check that the table entry does
3211 contain a fontset before trying to compare it to `base'.
3212
3213 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
3214 syms_of_charset, and syms_of_coding earlier because init_window_once
3215 now needs Vcoding_system_hash_table to be setup.
3216
3217 * coding.h (default_buffer_file_coding): Remove.
3218
3219 * coding.c (default_buffer_file_coding): Remove.
3220 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
3221 than ->symbol, and use the terminal-local coding system.
3222 (syms_of_coding): Don't setup the coding-systems that are not
3223 terminal-local.
3224 (Fdefine_coding_system_internal): Use XCAR/XCDR.
3225
3226 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
3227 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
3228
3229 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
3230 in chartab.c and were re-added here by mistake.
3231 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
3232
3233 * doc.c (Fsnarf_documentation):
3234 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
3235 src to etc.
3236
3237 * ChangeLog.10: Add mistakenly removed entry.
3238
73acf815 32392008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
3240
3241 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
3242
73acf815 32432008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3244
3245 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
3246 Add extra args to FACE_FOR_CHAR.
3247
73acf815 32482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3249
3250 * keymap.c (where_is_internal_1): If key is a cons, store the copy
3251 in sequence.
3252
4c4475a8
GM
3253 * chartab.c (map_sub_char_table, map_char_table): If the range
3254 contains just one character, call the function with that character
3255 even if the depth is not 3.
aca7a3d2 3256
73acf815 32572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3258
3259 * w32font.c (w32font_text_extents): Calculate metrics for the
3260 whole string.
3261
73acf815 32622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3263
3264 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
3265
73acf815 32662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3267
3268 * w32term.c (x_set_glyph_string_clipping): Use
3269 get_glyph_string_clip_rects.
4c4475a8
GM
3270 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3271 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3272
3273 * w32font.c (w32font_draw): Do clipping here.
3274
73acf815 32752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3276
1f45f627 3277 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
3278 glyph_string.
3279
3280 * xterm.c (x_set_glyph_string_clipping): Use
3281 get_glyph_string_clip_rects.
4c4475a8
GM
3282 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
3283 Adjust for the change of struct glyph_string.
aca7a3d2
MB
3284
3285 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
3286 the resulting clip(s}.
1f45f627 3287 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
3288 row->clip temporarily.
3289 (expose_window): Redraw rows overlapping the exposed area.
3290
3291 * dispextern.h (struct glyph_row): New member clip.
3292 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
3293 clip_height, new member clip, and num_clips.
3294
73acf815 32952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3296
3297 * data.c (Fchar_or_string_p): Fix docstring.
3298
73acf815 32992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3300
3301 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
3302 create a temporal XftDraw object.
3303
73acf815 33042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3305
3306 * font.c (Ffontp): Fix docstring.
3307
3308 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
3309 strong evidence of ISO-2022.
3310
73acf815 33112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3312
3313 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
3314 SYNTAX_ENTRY_FOLLOW_PARENT.
3315
73acf815 33162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
3317
3318 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
3319 its type.
3320 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
3321 Update to the new type of weak_hash_tables and next_weak.
3322
3323 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
3324 a plain C pointer to Lisp_Hash_Table.
3325
3326 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
3327 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
3328 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
3329 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
3330 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
3331 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
3332 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
3333 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
3334 (GC_EQ): Remove since they've been identical to their non-GC_
3335 alter-egos ever since the markbit was eradicated.
3336
290afd83
JB
3337 * alloc.c:
3338 * buffer.c:
3339 * buffer.h:
3340 * data.c:
3341 * fileio.c:
3342 * filelock.c:
3343 * fns.c:
3344 * frame.h:
3345 * lisp.h:
3346 * macterm.c:
3347 * print.c:
3348 * process.c:
3349 * w32fns.c:
3350 * w32menu.c:
3351 * w32term.c:
3352 * xfns.c:
3353 * xmenu.c:
3354 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 3355
73acf815 33562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3357
3358 * chartab.c (map_sub_char_table): Make it work for the top-level
3359 char-table. Fix handling of parent char-table.
c5ad7a3d 3360 (map_char_table): Adjust for the above change.
aca7a3d2 3361
73acf815 33622008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3363
3364 * w32font.c (Qgdi): Rename from Qw32.
3365
73acf815 33662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3367
3368 * w32bdf.c (get_quoted_string): Make function static.
3369
73acf815 33702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3371
3372 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
3373 bigger ascent and descent than those of the font, use them as
3374 font's ascent and descent.
3375
73acf815 33762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3377
3378 * Makefile.in (${lispsource}international/charprop.el): Move this
3379 target within "#ifdef HAVE_UNIDATA" and "#endif".
3380
73acf815 33812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3382
3383 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
3384 (shortlisp): Add ../lisp/language/tai-viet.el.
3385
1f45f627 33862008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
3387
3388 * Makefile.in (${lispsource}international/charprop.el): Depend on
3389 temacs${EXEEXT}.
3390
73acf815 33912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3392
3393 * w32font.c (w32font_close): Delete the GDI font object.
3394
6f69e89b 3395 * w32menu.c: Include character.h.
aca7a3d2
MB
3396
3397 * w32proc.c: Likewise.
3398
3399 * w32select.c: Likewise.
3400
6f69e89b 3401 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 3402
73acf815 34032008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3404
3405 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
3406
3407 * w32menu.c (syms_of_w32menu): Likewise.
3408
3409 * w32proc.c (syms_of_ntproc): Likewise.
3410
3411 * w32select.c (syms_of_w32select): Likewise.
3412
3413 * w32term.c (syms_of_w32term): Likewise.
3414
73acf815 34152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3416
3417 * w32font.c (w32font_draw): Delete brush after using it.
3418
73acf815 34192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3420
3421 * w32font.c (w32font_open): Don't set font_idx.
3422 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
3423 to font settings.
3424 (w32font_draw): Fill background explicitly.
3425
73acf815 34262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3427
3428 * w32term.c (w32_initialize): Don't call w32font_initialize.
3429
3430 * w32font.c (w32font_info): Remove subranges.
3431 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
3432 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
3433 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
3434 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
3435 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
3436 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
3437 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
3438 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
3439 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
3440 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
3441 New symbols.
3442 (font_callback_data): New struct.
3443 (w32font_list, w32font_match): Use it.
3444 (w32font_open): Don't populate subranges.
3445 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
3446 (w32font_encode_char): Always return unicode code-point as-is.
3447 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
3448 GetGlyphOutline. Never look up by glyph index. Avoid looping
3449 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2
MB
3450 glyph index version.
3451 (set_fonts_frame): Remove
3452 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
3453 set frame parameter. Use backward compatible fake foundries.
3454 Save generic family in extra slot under QCfamily. Make width slot
3455 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
3456 binary subranges.
3457 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 3458 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
3459 unwanted fonts.
3460 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
3461 (w32_registry): Default to iso10646_1.
3462 (fill_in_logfont): Use dpi from extra slot. Don't bother with
3463 string font registries. Don't fill in font name if it is a generic
3464 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
3465 extra info to fill pitch, family and charset fields.
3466 (list_all_matching_fonts): Use font_callback_data struct.
3467 (unicode_range_for_char): Remove.
3468 (font_supported_scripts): New function.
3469 (w32font_initialize): Remove.
3470 (syms_of_w32font): Update which symbols are defined.
3471
73acf815 34722008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3473
3474 * font.c (font_pixel_size): Reverse assq_no_quit args.
3475
3476 * w32term.h (FONT_WIDTH): Report max width, not average.
3477 (FONT_MAX_WIDTH): Remove.
3478 (FONT_AVG_WIDTH): New macro.
3479
3480 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
3481 redefinition of FONT_WIDTH.
3482
3483 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
3484 (w32_cache_char_metrics): Use FONT_WIDTH.
3485
3486 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
3487
73acf815 34882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3489
3490 * w32font.c (w32font_open): Make lfHeight negative.
3491
3492 * w32fns.c (x_default_font_parameter): Use new style font name.
3493 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
3494
73acf815 34952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3496
3497 * w32font.c (QCsubranges): New symbol.
3498 (w32font_open, w32font_has_char): Get subranges from subproperty
3499 of extra.
3500 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
3501 (syms_of_w32font): Define :subranges symbol.
3502
3503 * font.c (font_put_extra): Expose externally.
3504
1f45f627 3505 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
3506
3507 * font.c (Ffont_get): Use font driver to determine otf capability.
3508 (adjust_anchor): Check if driver defines anchor_point before using.
3509
3510 * w32font.c (w32font_open): Handle size, height and pixel_size better.
3511 (w32font_draw): Use options.
3512 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
3513 Fix detection of truetype fonts.
3514 (registry_to_w32_charset): Handle charsets other than iso8859-1
3515 expressed as lisp symbols.
3516 (w32_registry): Express charset as lisp symbol.
3517 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 3518 Don't set width here. Set quality to default.
aca7a3d2
MB
3519
3520 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
3521 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
3522
3523 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
3524 Remove redundant loop and allocation.
3525
3526 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 3527 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
3528 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
3529
3530 * xdisp.c (fill_composite_glyph_string): Make the first arg to
3531 STORE_XCHARB a valid l-value.
3532
3533 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
3534 calculations for non-Truetype fonts.
3535 (x_draw_glyph_string): Sync with xterm.c.
3536 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove
3537 redundant code.
3538 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
3539
3540 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
3541 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
3542
3543 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
3544 (x_to_w32_charset, w32_to_x_charset): Expose externally.
3545
3546 * w32font.c: New file for w32 font backend.
3547
73acf815 35482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3549
3550 * term.c: Don't include "buffer.h" twice.
3551
73acf815 35522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3553
3554 * character.c (Funibyte_string): New function.
3555 (syms_of_character): Defsubr it.
3556
73acf815 35572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3558
3559 * w32term.c [USE_FONT_BACKEND]:
3560 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc):
3561 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly):
3562 (x_draw_glyph_string, x_draw_glyph_string_foreground):
3563 (x_draw_composite_glyph_string_foreground, x_new_fontset2):
3564 (x_free_frame_resources): Sync with xterm.c.
3565
73acf815 35662008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3567
3568 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
3569 char-table size.
3570
73acf815 35712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3572
3573 * font.c (check_otf_features): Define it regardless of
3574 HAVE_LIBOTF.
3575
73acf815 35762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3577
3578 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
3579 font_otf_gpos, add font_drive_otf.
3580
3581 * fontset.c (fontset_find_font): Pay attention to font size
3582 specified for a font.
3583 (reorder_font_vector): Check contents of font_def.
3584
3585 * font.c (struct otf_list): Delete it.
6f69e89b 3586 (otf_list): Make it a lisp variable.
aca7a3d2 3587 (otf_open): Use lispy otf_list.
1f45f627 3588 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2
MB
3589 (check_otf_features): New function.
3590 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): New
3591 functinos.
3592 (font_drive_otf): New function merging font_otf_gsub and
3593 font_otf_gpos.
3594 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 3595 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
3596 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
3597 Ffont_otf_gpos.
3598 (syms_of_font): Staticpro otf_list. Delete defsubr of
3599 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
3600
1f45f627 3601 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3602 font_open_for_lface.
3603
3604 * font.h (font_open_for_lface): Adjust prototype.
3605 (struct font_driver): Delete members otf_gsub and otf_gpos, add
3606 member otf_drive.
3607 (font_otf_gsub, font_otf_gpos): Delete externs.
3608 (font_drive_otf): Extern it.
3609
73acf815 36102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3611
3612 * font.c (font_at): If the window W is not on a window system,
3613 return Qnil.
3614
4c4475a8
GM
3615 * coding.c (produce_chars, encode_coding): Don't call
3616 insert_from_gap if no characters to produce.
aca7a3d2 3617
73acf815 36182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3619
3620 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
3621 Fclear_face_cache.
3622
3623 * xfaces.c (face_for_font): Check also face->font==font->font.font.
3624
73acf815 36252008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3626
3627 * emacs.c (main): Change default value of `enable_font_backend' to 1.
3628 Parse "--disable-font-backend" option.
3629 (standard_args): Add "--disable-font-backend" option.
3630
73acf815 36312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3632
3633 * fontset.c (fontset_find_font): New function.
3634 (fontset_font): Use fontset_find_font.
3635 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
3636 Register the specified font for all Latin characters.
3637 (new_fontset_from_font): Register the specified font for all Latin
3638 characters.
3639 (dump_fontset): For a realized fontset, include the base fontset
3640 name in the returned vector.
3641
73acf815 36422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3643
3644 * character.h (CHAR_STRING): Cast C to unsigned on calling
3645 char_string.
3646
3647 * character.c (char_string): Type of arg C changed to unsigned.
3648 Signal an error if C is an invalid character code.
3649
4c4475a8
GM
3650 * editfns.c (general_insert_function, Fchar_to_string):
3651 Use CHARACTERP, not INTEGERP.
aca7a3d2 3652
73acf815 36532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3654
3655 * character.h (MIN_MULTIBYTE_LEADING_CODE)
3656 (MAX_MULTIBYTE_LEADING_CODE): New macros.
3657
3658 * regex.c (analyse_first): Fix for multibyte characters in "case
3659 charset:" and "case categoryspec:".
3660
73acf815 36612008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3662
3663 * Makefile.in (LIBES): Move standard libraries to the end.
3664
73acf815 36652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3666
3667 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
3668 nonzero, don't shrink the buffer nextb.
3669
3670 * buffer.h (struct buffer_text): New member inhibit_shrinking.
3671
3672 * coding.c (coding_alloc_by_making_gap): New arg offset.
3673 (alloc_destination): Call coding_alloc_by_making_gap with the arg
3674 offset.
3675 (decode_coding_iso_2022): Update coding->safe_charsets.
3676 (decode_coding_gap): Temporarily set
3677 current_buffer->text->inhibit_shrinking to 1.
3678
73acf815 36792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3680
3681 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
3682 indexing into elements of s->cmp and s->char2b.
3683
73acf815 36842008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
3685
3686 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
3687
73acf815 36882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3689
3690 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
3691 target_multibyte instead of multibyte.
3692 (re_match_2_internal): Call bcmp_translate with target_multibyte.
3693 (bcmp_translate): Change the argument name from multibyte to
3694 target_multibyte.
3695
73acf815 36962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3697
3698 These changes are to compile a regexp into a pattern that can be
3699 used both for multibyte and unibyte targets.
3700
3701 * Makefile.in (search.o): Depend on charset.h.
3702
3703 * character.c (multibyte_char_to_unibyte_safe): New function.
3704
3705 * search.c: Include "charset.h".
3706 (compile_pattern_1): Delete argument multibyte. Don't set
3707 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
3708 (compile_pattern): Don't compare cp->buf.target_multibyte.
3709 Compare cp->buf.charset_unibyte.
3710 (compile_pattern): Set cp->buf.target_multibyte.
3711
3712 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
3713
3714 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
3715
3716 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 3717 multibyte. Change callers.
aca7a3d2 3718 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
3719 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
3720 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
3721 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
3722 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
3723 (regex_compile): Make the compiled pattern usable both for
3724 multibyte and unibyte targets.
3725 (analyse_first): Make the fastmap usable both for multibyte and
3726 unibyte targets.
1f45f627 3727 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
3728 (re_match_2_internal): Pay attention to the case that the
3729 multibyteness of bufp and target may be different.
3730
73acf815 37312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3732
3733 * xdisp.c (x_produce_glyphs): When a font is not found, make the
3734 empty box occupy at least one column width.
3735
73acf815 37362008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3737
3738 * Makefile.in: Remove redundant HAVE_XFT clause.
3739
73acf815 37402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3741
3742 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
3743
73acf815 37442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3745
3746 * fontset.c (Finternal_char_font): Fix for the case of POSITION
3747 being nil.
3748
73acf815 37492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3750
3751 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
3752
73acf815 37532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3754
3755 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
3756
73acf815 37572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3758
3759 * search.c (simple_search): Fix previous change.
3760
73acf815 37612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3762
3763 * xftfont.c (ftfont_font_format): Extern declaration.
3764
3765 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
3766
3767 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
3768 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
3769
3770 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
3771 (ftfont_font_format): Fix previous change.
3772
3773 * font.h (Ffont_xlfd_name): EXFUN it.
3774
3775 * font.c (font_parse_xlfd): Fix the array size of `f'.
3776 (register_font_driver): Use EQ to compare driver->type.
3777
3778 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
3779 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
3780 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
3781
73acf815 37822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3783
4c4475a8
GM
3784 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
3785 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 3786
73acf815 37872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3788
3789 * xfont.c (xfont_open): Set font->format.
3790
3791 * xftfont.c (xftfont_open): Set font->format.
3792
3793 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
3794 (ftfont_list): Include FC_FONTFORMAT in FcObject.
3795 (ftfont_open): Set font->format.
3796 (ftfont_font_format): New function.
3797
3798 * font.h (struct font): New memeber format.
3799
3800 * font.c (Qopentype): New variable.
3801 (syms_of_font): Defsym it.
3802 (Fquery_font): Change the format of the last element of the return
3803 value.
3804
73acf815 38052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3806
3807 * xfns.c (xic_create_xfontset): Try the default fontset name as a
3808 last resort.
3809
73acf815 38102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3811
3812 * coding.c (detect_coding_charset): Fix detection of multi-byte
3813 charset.
3814
73acf815 38152008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
3816
3817 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
3818
73acf815 38192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3820
3821 * xdisp.c (get_next_display_element): Set it->face_id for the
3822 first component of a composition.
1f45f627 3823 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 3824
73acf815 38252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3826
3827 (get_next_display_element): Set it->face_id for the
3828 first component of a composition.
1f45f627 3829 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 3830
73acf815 38312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3832
3833 * fontset.c (Qlatin): New variable.
3834 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 3835 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 3836
73acf815 38372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3838
3839 * font.c (font_unparse_fcname): Pay attention to the case that
3840 some of font property is a null string.
3841
73acf815 38422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3843
3844 * term.c: Include "composite.h".
3845 (encode_terminal_code): Output all components of composition.
3846 Check the size of encode_terminal_src.
424c157f 3847 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
3848 (append_composite_glyph, produce_composite_glyph): New functions.
3849
3850 * xdisp.c (x_produce_glyphs): In handling composition, if a font
3851 is not found, get font_info from the current ascii face.
3852
73acf815 38532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3854
3855 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
3856 buffer-file-name to Qnil before calling insert_from_buffer.
3857
3858 * font.c (font_unparse_fcname): Pay attention to the case that
3859 foundry is a null string.
3860
73acf815 38612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3862
3863 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
3864
3865 * font.c (Qunicode_sip): New variable.
3866 (syms_of_font): Declare it as a Lisp symbol.
3867
3868 * font.h (Qunicode_sip): Extern it.
3869
73acf815 38702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3871
1f45f627 3872 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
3873
3874 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 3875 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
3876 the first elememnt of allocated memory.
3877
1f45f627 3878 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
3879
3880 * xdisp.c (handle_composition_prop): Set it->c to the first
3881 non-TAB component.
1f45f627
GM
3882 (fill_composite_glyph_string): Change argument.
3883 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
3884 (x_produce_glyphs): Fix handling of left/right padding.
3885
73acf815 38862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3887
3888 * coding.c (detect_coding_system): Fix for handling off
3889 inhibit_iso_escape_detection. Fix for the case that no coding
3890 system is defined for a specific coding category.
3891
73acf815 38922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3893
1f45f627 3894 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
3895
3896 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
3897 opening a font.
3898
3899 * fileio.c (Finsert_file_contents): On recovering a file, assume
3900 Unix-like eol.
3901 (choose_write_coding_system): On auto-saving a file, force
3902 Unix-like eol.
3903
3904 * coding.c (setup_coding_system): Fix setting of
3905 coding->common_flags based on eol_type.
3906 (coding_inherit_eol_type): If PARENT is not nil, be sure to
3907 inherit from it.
3908
73acf815 39092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3910
1f45f627 3911 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 3912
73acf815 39132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3914
1f45f627 3915 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
3916 (ftfont_list): Don't check :name property.
3917 (ftfont_match): New function.
3918 (ftfont_pattern_entity): If the pattern doesn't contain
3919 FC_SPACING, don't assuce FC_MONO.
3920
3921 * font.h (struct font_driver): New member `match'.
1f45f627 3922 (font_update_drivers): Adjust prototype.
aca7a3d2 3923
4c4475a8
GM
3924 * font.c (font_parse_fcname, font_parse_name): Don't change :name
3925 property of FONT.
aca7a3d2
MB
3926 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
3927 them unconditionally.
3928 (font_matching_entity): New function.
3929 (font_open_by_name): Try font_matching_entity if exact match is
3930 not found.
3931 (font_update_drivers): Delete the arg FONT. Return a list of
3932 actually used backends. Don't free faces, font caches here.
3933 Don't store data in frame parameters. Don't call x_set_font.
3934 (Ffont_spec): Store :name property as is.
3935 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
3936 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
3937 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
3938 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
3939 Call font->driver->otf_gsub instead of font_otf_gsub.
3940
3941 * frame.c (x_set_font_backend): Do more works that were done in
3942 font_update_drivers before.
3943
3944 * xfont.c (xfont_match): New function.
3945 (xfont_driver): Set xfont_driver.match to xfont_match.
3946 (xfont_draw): Set font in GC if necessary.
3947
3948 * ftxfont.c (ftxfont_match): New function.
3949 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
3950
3951 * xftfont.c (xftfont_match): New function.
3952 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
3953
73acf815 39542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3955
3956 * font.h (struct font): New member scalable.
3957 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 3958 (font_otf_gsub): Adjust prototype.
aca7a3d2 3959
1f45f627
GM
3960 * font.c (font_otf_capability): Fix handling of the default langsys.
3961 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
3962 Check the contents of SPEC.
3963 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
3964 (check_gstring): New function.
3965 (REPLACEMENT_CHARACTER): New macro.
3966 (font_otf_gsub): New arg alternate_subst. Be sure to set all
3967 glyph codes of GSTRING.
3968 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
3969 (font_prepare_composition): Set cmp->glyph_len.
3970 (font_open_entity): Set font->scalable.
3971 (Ffont_get): Handle :otf property.
3972 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
3973 functions.
3974 (Fquery_font): Use font->font.full_name.
3975 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
3976 Sfont_otf_alternates.
3977
3978 * ftfont.c (ftfont_open): Set font->font.full_name and
3979 font->font.name properly. Fix calculation of font->font.height
3980 and font->min_width.
3981
3982 * ftxfont.c (ftxfont_create_gcs): New function.
3983 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
3984 (ftxfont_draw_backgrond): Fix filling region.
3985 (ftxfont_default_fid): New function.
3986 (ftxfont_open): Set xfotn->fid to the return value of
3987 ftxfont_default_fid.
3988 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
3989 (ftxfont_done_face): Free only GCs that are created by
3990 ftxfont_create_gcs.
3991 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
3992
3993 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
3994 Clip to src->width, etc (not src->clip_XXX).
3995
3996 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
3997 FontBackend frame parameter.
3998
73acf815 39992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4000
4001 * font.h (struct font_driver_list): New member `on'.
4002 (Fclear_font_cache): EXFUN it.
4003 (font_update_drivers): Extern it.
4004
4005 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4006 (font_list_entities): Check driver_list->on.
4007 (register_font_driver): Initalize `on' member to 0.
4008 (font_update_drivers): New function.
4009 (Fclear_font_cache): Check driver_list->on.
4010
4011 * frame.h (Qfont_backend): Extern it.
4012 (x_set_font_backend): Extern it.
4013
4014 * frame.c (Qfont_backend): New variable.
4015 (frame_parms): New element for font-backend.
4016 (x_set_font_backend): New function.
4017
4018 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4019 FontBackend frame parameter.
4020 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4021 x_set_font_backend.
4022
4023 * xfont.c (xfont_list): Don't try listing by :name property if the
4024 name is not for XLFD.
4025
73acf815 40262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4027
4028 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4029 (LGLYPH_SET_TO): New macros.
4030 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4031 element of G is vector or not.
4032 (font_at): Extern it.
4033
4034 * font.c: Include window.h.
4035 (font_lispy_object): New function.
4036 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4037 end of valid glyph.
4038 (font_close_object): Fix getting (struct font *).
4039 (font_at): New function.
4040 (Ffont_get): If FONT is a font-object, get entity from it.
4041 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4042 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4043 range check.
4044 (Ffont_at): New function.
4045 (syms_of_font): Defsubr Sfont_at.
4046
4047 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4048 before the entry for Qcomposition.
1f45f627 4049 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4050 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4051 the font in gstring.
4052 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4053 LGLYPH_FORM (g) to detect the end of valid glyph.
4054 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4055 we are composing with gstring.
4056
4057 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4058 Check if adjustment is vector or not.
4059
4060 * Makefile.in (font.o): Make it depends on window.h.
4061
73acf815 40622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4063
4064 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4065 adjustment is vector or not.
4066
73acf815 40672008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4068
4069 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4070
73acf815 40712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4072
4073 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4074 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4075 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4076
1f45f627 4077 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4078 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4079 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4080 LGLYPH format.
aca7a3d2 4081
1f45f627 4082 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4083 the change of LGLYPH format.
4084
73acf815 40852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4086
4087 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4088 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4089
880820fe 40902008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4091
4092 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4093
4094 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4095 xftface_info is non-NULL.
4096
880820fe 40972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4098
1f45f627 4099 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4100
73acf815 41012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4102
4103 * ftfont.c (ftfont_list): Pay attention to the case that
4104 FC_CAPABILITY is not defined.
4105
73acf815 41062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4107
4108 * xftfont.c (xftfont_open): Set charset related members to -1.
4109
1f45f627
GM
4110 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4111 QCname.
aca7a3d2
MB
4112 (ftfont_open): Set charset related members to -1.
4113
4114 * fontset.c (Votf_script_alist): New variable.
4115 (syms_of_fontset): Initialize it.
4116 (fontset_font): Delete unused variable.
4117
4118 * fontset.h (Votf_script_alist): Extern it.
4119
1f45f627 4120 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
4121
4122 * font.h (font_close_object, font_merge_old_spec): Extern them.
4123
73acf815 41242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4125
4126 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
4127 (syms_of_font): Initialize them.
4128 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
4129 (font_prop_validate_type): Delete.
4130 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
4131 Change caller.
4132 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
4133 (font_prop_validate_extra): Delete.
aca7a3d2
MB
4134 (font_prop_validate_spacing): New function.
4135 (font_property_table): Add elements for all known properties.
1f45f627
GM
4136 (get_font_prop_index): Rename from check_font_prop_name. New
4137 argument FROM. Change caller.
aca7a3d2 4138 (font_prop_validate): Validate all known properties.
1f45f627 4139 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
4140 (font_expand_wildcards): Make it static. Fix the way of shrinking
4141 the possible range.
1f45f627 4142 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 4143 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 4144 Change caller.
aca7a3d2 4145 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
4146 (font_parse_fcname): Delete argument merge. Fix parsing of point
4147 size. Don't validate properties values here. Change caller.
4148 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
4149 (font_open_by_name): Delete unused variable.
4150 (Ffont_spec): Likewise. Validate property values.
4151 (Ffont_match_p): New function.
4152
4153 * font.h (QCscalable): Extern it.
1f45f627 4154 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 4155
1f45f627 4156 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 4157
1f45f627 4158 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
4159 (xfont_list_pattern): New function.
4160 (xfont_list): Use xfont_list_pattern.
4161
73acf815 41622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4163
4164 * font.h (Flist_fonts): EXFUN it.
4165
73acf815 41662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4167
4168 * w32term.c (w32_initialize): Add back smoothing_type and
4169 smoothing_enabled definitions.
4170
73acf815 41712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4172
4173 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
4174 s->face->font on determining underline position.
4175
73acf815 41762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4177
4178 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
4179 (font_has_char): Accept font-object too.
4180 (font_find_for_lface): Try at first with a size specified in face.
4181
73acf815 41822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4183
4184 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
4185 font_open_by_name.
4186
73acf815 41872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4188
4189 * font.h (QCspacing, QCdpi): Extern them.
4190 (enum font_spacing): New enum.
4191 (FONT_PIXEL_SIZE_QUANTUM): New macro.
4192
4193 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
4194 (QCspacing, QCdpi): New variables.
4195 (syms_of_font): Initialize them.
4196 (font_pixel_size): New function.
4197 (font_put_extra): New function.
4198 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
4199 in FONT_EXTRA.
e9184ccb
JB
4200 (font_parse_fcname): Handle enumenrated values (e.g. bold).
4201 Fix handling font size. Add QCname property that contains only
aca7a3d2 4202 unknown properties.
1f45f627 4203 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 4204 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
4205 (font_sort_entites, font_list_entities, font_find_for_lface)
4206 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 4207 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
4208
4209 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
4210 include weight in listing pattern, instead check weight of each
4211 listed font. Don't include scalable in pattern. Pay attention to
4212 FONT_PIXEL_SIZE_QUANTUM.
4213
73acf815 42142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4215
aca7a3d2 4216 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 4217 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
4218 (font_list_entities): Handle float size correctly.
4219 (font_open_by_name): Prefer `normal' property values if the name
4220 doesn't specify them.
4221
4222 * fontset.c (Finternal_char_font): Use font_get_name, not
4223 Ffont_xlfd_name.
4224
4225 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
4226 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
4227 pattern. Don't force scalable.
4228
4229 * xftfont.c (xftfont_open): For generating a name, start from
4230 96-byte buffer.
4231
880820fe 42322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4233
4234 * frame.h (x_new_fontset2): Fix prototype.
4235
73acf815 42362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4237
1f45f627 4238 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
4239 (font_match_p, font_get_spec, font_parse_fcname)
4240 (font_unparse_fcname): Extern them.
1f45f627 4241 (font_get_name): Adjust prototype.
aca7a3d2
MB
4242
4243 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
4244 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
4245 (font_expand_wildcards): Fix handling ENCODING field. Avoid
4246 unnecessary checks for weight, slant, and swidth.
4247 (font_parse_fcname): New function.
4248 (font_unparse_fcname): New function.
4249 (font_parse_name): New function.
4250 (font_match_p): New function.
1f45f627 4251 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
4252 (font_get_spec): New function.
4253 (Qunspecified, Qignore_defface): Don't extern them.
4254 (font_find_for_lface): Assume that LFACE is fully specified.
4255 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
4256 object, use it for FACE.
4257 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
4258 driver->parse_name.
4259 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
4260
1f45f627
GM
4261 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
4262 prototype.
aca7a3d2 4263
1f45f627
GM
4264 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
4265 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
4266 make_fontset.
4267
1f45f627 4268 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 4269
1f45f627 4270 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
4271 of x_new_fontset2.
4272
4273 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
4274 (Qsans__serif): New variables.
4275 (ftfont_generic_family_list): New variable.
4276 (syms_of_ftfont): Initialize the above variables.
1f45f627 4277 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
4278 (ftfont_list_generic_family): New function.
4279 (ftfont_parse_name): Delete this function.
1f45f627 4280 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
4281 (ftfont_list_family): Fix args to FcObjectSetBuild.
4282
4283 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
4284 object in attrs[LFACE_FONT_INDEX].
4285 (set_lface_from_font_name): Cancel all changes for font-backend.
4286 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
4287 function.
4288 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
4289 font object in QCfont attribute.
4290 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
4291 (realize_default_face) [USE_FONT_BACKEND]: Call
4292 set_lface_from_font_and_fontset.
4293
4294 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
4295 "fixed", and signal error here if no suitable font was found.
4296
4297 * xfont.c (xfont_parse_name): Delete this function.
4298
4299 * xftfont.c (xftfont_open): Change coding style of error
4300 handling. Generate fontconfig's fontname pattern.
4301
4302 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
4303 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
4304
4305 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
4306 Both args FONTSET and FONT_OBJECT must be existing ones.
4307
73acf815 43082008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4309
4310 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
4311
73acf815 43122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4313
4314 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
4315
4316 * font.h (struct font): Fix typo.
4317
4318 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
4319 XLFD_XXX_INDEX.
4320 (enum xlfd_field_mask): New enum.
1f45f627 4321 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
4322 are followed by non-digits, return a symbol.
4323 (font_expand_wildcards): New function.
4324 (font_parse_xlfd): Fix wildcard handling.
4325 (Ffont_spec): If :name is specified, reflect the info in the other
4326 properties.
4327
4328 * ftfont.c (ftfont_pattern_entity): Fix typo.
4329 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
4330 locale.
4331
73acf815 43322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4333
4334 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
4335
1f45f627 4336 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
4337 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
4338 registry doesn't specify encoding part.
4339 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
4340 (font_open_by_name): At first try parsing the name.
4341 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
4342 as Lisp symbols.
4343
4344 * fontset.c (reorder_font_vector): Pay attention to the case that
4345 the 3rd element of font_def is nil.
4346 (fontset_font): For the default fontset, append one more fontset
4347 elements for a script-based font specification. Don't add script
4348 attribute on finding a font.
4349 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
4350 font name.
4351 (fontset_ascii_font): If a font can't be opened, return nil.
4352
1f45f627 4353 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
4354 (ftfont_pattern_entity): New function.
4355 (ftfont_get_cache): Assume that freetype_font_cache is already
4356 initialized.
4357 (ftfont_list): Handle the case that a file is specified in font
4358 name. Use ftfont_pattern_entity to generate entities.
4359 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
4360 (syms_of_ftfont): Initialize freetype_font_cache.
4361
4362 * xftfont.c (xftfont_open): Make the font name fontconfig's
4363 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
4364 (xftfont_close): Free font->font.name if not NULL.
4365
4366 * xfont.c (xfont_list): If script is specified for a font, return
4367 null_vector.
4368 (xfont_list_family): Declare argument type.
4369
4370 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
4371 name, set LFACE_FONT (lface) to nil.
4372
4373 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
4374 return Qnil.
4375
73acf815 43762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4377
1f45f627 4378 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
4379 (standard_args): Add "-enable-font-backend".
4380
73acf815 43812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4382
4383 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
4384 (struct xftdraw_list, xftdraw_list): Delete them.
4385 (register_xftdraw, check_xftdraw): Delete them.
4386 (xftfont_prepare_face): Don't call register_xftdraw.
4387 (xftfont_done_face): Don't call check_xftdraw.
4388 (xftfont_draw): Get backroudn color only when with_background is
4389 nonzero.
4390
4391 * xfont.c (xfont_encode_char): Fix calculation of char2b.
4392
73acf815 43932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4394
4395 These changes are for the new font handling codes.
4396
4397 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
4398 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
4399 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
4400 (FONTSRC, FONTOBJ): New variables.
4401 (obj): Add $(FONTOBJ).
4402 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
4403 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
4404 @LIBOTF_LIBS@.
4405 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 4406 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 4407
1f45f627 4408 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
4409
4410 * character.h (Vscript_representative_chars): Extern it.
4411
4412 * character.c (Vscript_representative_chars): New variable.
4413 (syms_of_character): Declare it as a Lisp variable.
4414
4415 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
4416 enable_font_backend is nonzero, accept the composition method
4417 COMPOSITION_WITH_GLYPH_STRING.
4418
4419 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
4420 enumeration COMPOSITION_WITH_GLYPH_STRING.
4421
aca7a3d2
MB
4422 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
4423 members clip_x, clip_y, clip_width, and clip_height.
4424 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
4425
4426 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
4427 --enable-font-backend. Call syms_of_font.
4428
4429 * fns.c (assoc_no_quit): New function.
4430
4431 * fontset.h (FONT_INFO_FROM_FACE): New macro.
4432 (face_for_font, new_fontset_from_font)
4433 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
4434
4435 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
4436 (fontset_font, fontset_ascii, face_for_char)
4437 (make_fontset_for_ascii_face, Ffont_info)
4438 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
4439 is nonzero, use font-backend mechanism.
4440 (find_font_encoding): Make it non-static.
4441 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
4442 New functions.
4443
4444 * frame.h (struct frame): New members resx and resy.
4445 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
4446 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
4447
4448 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 4449 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
4450
4451 * lisp.h (assoc_no_quit): Extern it.
4452
4453 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
4454 Through out the file, use FONT_INFO_FROM_FACE instead of
4455 FONT_INFO_FROM_ID, use get_per_char_metric instead of
4456 rif->per_char_metric.
4457 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
4458 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
4459 (get_glyph_face_and_encoding, fill_composite_glyph_string)
4460 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
4461 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
4462 nonzero, use font-backend mechanism.
4463 (get_per_char_metric): New function.
4464
4465 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
4466 (set_lface_from_font_name)
4467 (set_font_frame_param, free_realized_face)
4468 (prepare_face_for_display, clear_face_gcs)
4469 (Finternal_set_font_selection_order, realize_x_face)
4470 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
4471 font-backend mechanism.
1f45f627 4472 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
4473 (load_face_font) [USE_FONT_BACKEND]: Abort.
4474 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 4475 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
4476
4477 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
4478 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
4479 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
4480 nonzero, register all available font drivers. Call
4481 x_default_font_parameter for deciding a font.
4482 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
4483
4484 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
4485 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
4486 (x_set_glyph_string_clipping_exactly)
4487 (x_compute_glyph_string_overhangs)
4488 (x_draw_glyph_string_foreground)
4489 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
4490 (x_free_frame_resources) [USE_FONT_BACKEND]: If
4491 enable_font_backend is nonzero, use font-backend mechanism.
4492 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
4493
73acf815 44942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4495
fcb314b2 4496 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
4497 system_eol_type.
4498 (syms_of_coding): Initialize system_eol_type.
4499
fcb314b2
GM
4500 * process.c (Fset_process_coding_system): Inherit system's eol
4501 format if necessary.
aca7a3d2 4502
73acf815 45032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4504
4505 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
4506
73acf815 45072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4508
4509 * coding.c (decode_eol): Pay attention to buffer relocation in
4510 del_range_2.
4511 (decode_coding): Call decode_eol before restoring undo_list.
4512
73acf815 45132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4514
4515 * charset.c (Fdefine_charset_internal): Fix setting of
4516 emacs_mule_bytes.
4517
73acf815 45182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4519
4520 * keyboard.c (read_char): Check if C is a character or not before
4521 looking up Vkeyboard_translate_table.
4522
73acf815 45232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4524
4525 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
4526 condition to terminate the loop.
4527
73acf815 45282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4529
4530 * coding.c (produce_composition): Compare charbuf[i] instead of
4531 args[i] against 0.
4532 (Fterminal_coding_system): Use EQ to compare Lisp objects.
4533
73acf815 45342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4535
4536 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
4537 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
4538 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
4539 detect_coding.
4540 (emacs_mule_char): Handle old style (Emacs 20) component character
4541 of a composition.
4c4475a8
GM
4542 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
4543 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
4544 composition rule.
aca7a3d2
MB
4545 (decode_coding_emacs_mule): Handle invalid bytes correctly.
4546
73acf815 45472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4548
4549 * coding.c (encode_coding_ccl): Allocate destination dynamically
4550 when necessary.
4551
73acf815 45522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4553
4554 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
4555 the loop. When quitted, show a proper error message.
4556
73acf815 45572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4558
aca7a3d2
MB
4559 * xterm.c (x_set_glyph_string_clipping_exactly): Set
4560 src->clip_head and src->clip_tail temporarily instead of src->hl.
4561
4562 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
4563 character sequence.
4564 (Fccl_execute_on_string): Use ASET, not XSET.
4565
73acf815 45662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4567
1f45f627 4568 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 4569
73acf815 45702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4571
4572 * coding.c (decode_coding): Fix the condition of terminating the
4573 decoding loop.
4574
73acf815 45752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4576
4577 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 4578 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 4579
73acf815 45802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4581
4582 * charset.c (map_charset_chars): Fix for ascii-compatible charset
4583 made by a mapping table.
4584
73acf815 45852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4586
4587 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
4588 not.
4589 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
4590 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
4591
4592 * xterm.c (x_draw_composite_glyph_string_foreground): Check
4593 s->face is NULL or not.
4594
73acf815 45952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4596
4597 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
4598 (x_draw_glyph_string): Fix drawing of right_overhang and
4599 left_overhang around/on cursor.
4600
1f45f627 4601 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 4602
73acf815 46032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4604
4605 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
4606
73acf815 46072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4608
4c4475a8
GM
4609 * coding.c (Fdefine_coding_system_internal)
4610 (Fdefine_coding_system_alias): Avoid a duplicated element in
4611 Vcoding_system_alist.
aca7a3d2 4612
73acf815 46132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4614
4615 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4616
fcb314b2 4617 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
4618 (syms_of_coding): Intern and staticpro it.
4619 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 4620 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
4621
4622 * coding.h (CODING_SYSTEM_P): If ID is not available, call
4623 Fcoding_system_p.
4624 (CHECK_CODING_SYSTEM): If ID is not available, call
4625 Fcheck_coding_system.
4c4475a8
GM
4626 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
4627 Try also Fcheck_coding_system.
aca7a3d2 4628
73acf815 46292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4630
aca7a3d2
MB
4631 * coding.c (code_conversion_restore): GCPRO arg.
4632
73acf815 46332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4634
4635 * character.c (lisp_string_width): Check multibyteness of STRING.
4636
73acf815 46372008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4638
4639 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
4640 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
4641 (decode_mac_font_name): Use decode_coding_c_string instead of
4642 decode_coding.
4643 (x_load_font): Initialize fontp->fontset to -1. Set
4644 fontp->encoding_type.
4645
73acf815 46462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4647
4648 * search.c (search_buffer): Give up BM search on case-fold-search
4649 if one of a target character has a case-equivalence of different
4650 byte length even if that target charcter is an ASCII.
1f45f627
GM
4651 (simple_search): Fix calculation of byte length of matched text.
4652 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 4653
73acf815 46542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4655
4656 * coding.c (decode_coding): Fix handling of invalid bytes.
4657
73acf815 46582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4659
4660 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4661 Unicode characters.
4662
73acf815 46632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4664
4665 * coding.c (encode_coding_object): If a pre-write-conversion
4666 function makes a new buffer, kill it.
4667
73acf815 46682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4669
4670 * coding.c (QCascii_compatible_p): New variable.
4671 (syms_of_coding): Initialize it.
4c4475a8
GM
4672 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
4673 calling string_char.
aca7a3d2
MB
4674 (record_conversion_result): Add `default:' case.
4675 (coding_charset_list): Delete unused variable `coding_type'.
4676 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
4677 property in the plist of the coding system.
4678 (Fcoding_system_put): Check QCascii_compatible_p.
4679
73acf815 46802008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4681
4682 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
4683 removed calculation of frame `f', as it's now used.
4684
73acf815 46852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4686
1f45f627 4687 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
4688 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
4689 (UNIDATA): New variable.
4690 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
4691 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
4692 $(RUN_TEMACS) unconditionally.
4693
73acf815 46942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4695
1f45f627 4696 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
4697 (admindir): New variable.
4698 ($(lispsource)international/charprop.el): New target.
4699
73acf815 47002008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4701
1f45f627 4702 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
4703 (syms_of_character): Remove its initialization.
4704
73acf815 47052008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
4706
4707 * w32select.c (validate_coding_system)
4708 (setup_windows_coding_system): New functions.
4709 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
4710 setup_windows_coding_system.
4711 (setup_config, Fw32_get_clipboard_data): Use
4712 validate_coding_system.
4713 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 4714 where signals are allowed.
aca7a3d2
MB
4715
4716 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
4717 (Fcheck_coding_system): Add declarations.
4718
73acf815 47192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4720
1f45f627 4721 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 4722
73acf815 47232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4724
4725 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
4726 string as the second argument for x_new_fontset.
4727
73acf815 47282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4729
4730 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
4731 (encode_coding_object): Use safe_call instead of call2.
4732
73acf815 47332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4734
1f45f627 4735 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
4736
4737 * Makefile.in (lisp): Include charprop.el.
4738
73acf815 47392008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
4740
4741 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
4742 Not sure if it's unnecessary.
4743
73acf815 47442008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
4745
4746 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
4747 some possibly unnecessary fontset checking code that crashed
1f45f627 4748 when creating a new frame.
aca7a3d2 4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4751
4752 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
4753 lookup_face.
4754
4755 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
4756
1f45f627 4757 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 4758
73acf815 47592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4760
73acf815 4761 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
4762 (coding_charset_list): New function.
4763
4764 * coding.h (coding_charset_list): Extern it.
4765
73acf815 47662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4767
4768 * fontset.c (Fset_fontset_font): Call find_font_encoding with
4769 concatenation of family and registry.
4770
73acf815 47712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4772
4773 * character.h (BYTE8_STRING): Fix typo.
4774
4775 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
4776 string to multibyte (sync to HEAD).
4777
4778 * casefiddle.c (casify_region): Handle changes in byte-length
4779 using replace_range_2 (sync to HEAD).
4780
73acf815 47812008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4782
4783 * chartab.c (map_char_table): GCPRO table and arg.
4784
73acf815 47852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4786
4787 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
4788 already at limit.
4789
73acf815 47902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4791
4792 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
4793 instead of fast_c_string_match_ignore_case.
1f45f627 4794 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 4795 fast_string_match_ignore_case instead of
1f45f627 4796 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 4797
73acf815 47982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4799
4800 * xdisp.c (get_next_display_element): In unibyte case, decide to
4801 display in octal form by checking a chacter by
4802 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
4803
1f45f627 4804 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
4805
4806 * character.c (unibyte_has_multibyte_table): New variable.
4807
4808 * character.h (unibyte_has_multibyte_table): Extern it.
4809 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
4810
73acf815 48112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4812
4813 * coding.c (encode_coding_iso_2022): Fix handling of charset
4814 annotation.
4815
73acf815 48162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4817
4818 * coding.c (setup_coding_system): If coding_system is nil, use
4819 Qundecided.
4820 (Fterminal_coding_system): Return nil if terminal coding system is
4821 `undecided'.
4822 (syms_of_coding): Define coding-system `undecided' here. Setup
4823 terminal_coding as `undecided'.
4824
73acf815 48252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4826
4827 * xdisp.c (message_dolog, set_message_1): Call
4828 unibyte_char_to_multibyte with arg type int.
4829
aca7a3d2
MB
4830 * lread.c (read1): Fix reading of a char-table.
4831
4832 * print.c (print_object): Include sub char-table in cicularities
4833 detection.
4834
73acf815 48352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4836
4837 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 4838 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 4839
73acf815 48402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4841
4842 * fileio.c (report_file_error): Make a unibyte string from
4843 strerror (errorno).
4844 (Fsubstitute_in_file_name): Fix the arg to
4845 unibyte_char_to_multibyte. It is evaluated twice.
4846
73acf815 48472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4848
4849 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
4850
73acf815 48512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4852
4853 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
4854 BOM is not found.
4c4475a8
GM
4855 (detect_coding, detect_coding_system): Optimization for ISO-2022
4856 when no 8-bit data is found.
aca7a3d2 4857
73acf815 48582008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4859
4860 * w32fns.c (x_to_w32_font): Update to use new coding struct.
4861
73acf815 48622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4863
4c4475a8
GM
4864 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
4865 CHARS.
aca7a3d2 4866
73acf815 48672008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
4868
4869 * macterm.c (mac_encode_char): Add charset argument and update
4870 to use encoding_type.
2a2e8de7 4871 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
4872 switch to pure fontset.
4873 (decode_mac_font_name): Temporarily remove decoding.
4874 (x_font_name_to_mac_font_name): Temporarily remove encoding.
4875 (x_load_font): Temporarily remove encoding.
aca7a3d2 4876
73acf815 48772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4878
4879 * xfaces.c (Fface_font): If frame is not on a window system,
4880 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
4881 refer to face->font.
4882 (split_font_name_into_vector, build_font_name_from_vector)
4883 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
4884 whne HAVE_WINDOW_SYSTEM is defined.
4885
73acf815 48862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4887
4888 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
4889 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 4890 cmp->glyph_len is zero.
aca7a3d2 4891
1f45f627 4892 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
4893 (Ffontset_info): Make it backward compatible. New arg ALL.
4894
73acf815 48952008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
4896
4897 * process.c (read_process_output): Grow decoding_buf when needed;
4898 this could cause a crash in allocate_string and compact_small_strings.
4899
73acf815 49002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4901
1f45f627 4902 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 4903
73acf815 49042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4905
4906 * coding.c (setup_coding_system): Set coding->common_flags
4907 correctly for raw-text.
4908 (consume_chars): On encoding unibyte text by raw-text, don't check
4909 multibyte form.
1f45f627 4910 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
4911
4912 * fileio.c (e_write): Short cut for the case of no encoding.
4913
73acf815 49142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4915
4c4475a8
GM
4916 * coding.c (detect_coding, detect_coding_system): Delete unused
4917 variables.
aca7a3d2 4918
73acf815 49192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4920
4921 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
4922 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
4923
73acf815 49242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4925
4926 * coding.c (Ffind_coding_systems_region_internal): Include
4927 raw-text and no-conversion in the result.
4928
73acf815 49292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4930
1f45f627 4931 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
4932 (load_font_get_repertory): Delete unnecessary check of ENCODING of
4933 FONT_DEF.
4934 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 4935 (set_fontset_font): Change argument.
aca7a3d2
MB
4936 (Fset_fontset_font): Fix for the case that TARGET is a script
4937 name and charset name.
4938 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
4939
73acf815 49402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4941
1f45f627
GM
4942 * fontset.c (fontset_font): Rename from fontset_face. Change return
4943 value.
4c4475a8
GM
4944 (face_suitable_for_char_p, face_for_char): Adjust for the change
4945 of fontset_font.
aca7a3d2
MB
4946 (make_fontset_for_ascii_face): Fix setting of the fontset element
4947 for ASCII.
4948 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
4949 to get a font name.
1f45f627 4950 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 4951
fcb314b2 4952 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
4953
4954 * character.h (LEADING_CODE_LATIN_1_MIN)
4955 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
4956
73acf815 49572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4958
fcb314b2 4959 * editfns.c (check_translation): New function.
aca7a3d2
MB
4960 (Ftranslate_region_internal): Handle M:N mapping.
4961
73acf815 49622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4963
4964 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
4965
73acf815 49662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4967
4968 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
4969 goto invalid_code.
4970 (decode_coding_iso_2022): Fix handling of invalid designation.
4971
4972 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
4973 after calling code_conversion_save.
4974
73acf815 49752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4976
4977 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
4978
4979 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
4980
4981 * fontset.c: Include "intervals.h".
4982 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
4983 (free_face_fontset, new_fontset_from_font_name): Fix
4984 Lisp_Object/int mixup.
aca7a3d2
MB
4985
4986 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
4987
4988 * coding.c: Add many prototypes for static functions.
4989 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 4990 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
4991 (Funencodable_char_position, Fcheck_coding_systems_region): Call
4992 get_translation_table with max_lookup NULL.
aca7a3d2 4993
73acf815 49942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4995
4996 * coding.c (get_translation_table): Declare it as Lisp_Object.
4997 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
4998 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
4999 instead of CHAR_TABLE_REF.
aca7a3d2 5000
73acf815 50012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5002
1f45f627 5003 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5004 annotation data format.
5005 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5006 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5007 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5008 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5009 (decode_coding_ccl, decode_coding_charset): Pay attention to
5010 coding->charbuf_used.
aca7a3d2
MB
5011 (get_translation): New function.
5012 (produce_chars): New arguments translation_table and last_block.
5013 Translate characters here. Return number of carryover chars.
1f45f627
GM
5014 Change caller.
5015 (produce_composition): New argument pos. Change caller.
5016 Adjust for the change of annotation data format.
aca7a3d2
MB
5017 (produce_charset, produce_annotation): Likewise.
5018 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5019 (consume_chars): New arg translation_table. Change caller.
5020 (translate_chars): Delete.
5021 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5022
73acf815 50232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5024
5025 * search.c (simple_search): Fix setting this_pos_byte in backward
5026 search.
5027
5028 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5029 byte sequence.
5030 (detect_coding_ccl): Fix setting of the variable valids.
5031
73acf815 50322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5033
5034 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5035
5036 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5037
1f45f627 5038 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5039 Ftranslate_region. Accept a char-table in TABLE.
5040 (syms_of_editfns): Defsubr Stranslate_region_internal.
5041
5042 * xfaces.c (set_lface_from_font_name): If a font is specified for
5043 a frame, generate a fontset from the font.
5044 (build_scalable_font_name): If the scalable font is requested for
5045 a specific size, don't change that size.
5046 (try_font_list): Try a scalable font also in the case that a
1f45f627 5047 pattern string is specified.
aca7a3d2 5048
73acf815 50492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5050
5051 * xfaces.c (Fface_font): New optional arg CHARACTER.
5052
73acf815 50532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5054
5055 * charset.h (CHARSET_OFFSET): New macro.
5056
73acf815 50572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5058
5059 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5060
5061 * fontset.c (fontset_face): Handle the case that repertory is a
5062 char-table.
5063 (find_font_encoding): Return nil for unknown encoding.
5064 (Fset_fontset_font): Ignore a font of unknown encoding.
5065
73acf815 50662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5067
1f45f627 5068 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5069
5070 * fontset.c (fontset_face): Handle fallback fonts correctly.
5071 (Ffontset_info): Return infomation about fallback fonts.
5072
73acf815 50732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5074
5075 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5076 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5077 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5078 the case that it is nil.
5079 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5080 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5081
5082 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5083 subset or superset.
5084
73acf815 50852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5086
5087 * emacs.c (main): Call init_charset after syms_of_XXX.
5088
1f45f627 5089 * charset.c (Vcharset_map_directory): Delete.
aca7a3d2
MB
5090 (Vcharset_map_path): New variable
5091 (load_charset_map_from_file): Use Vcharset_map_path instead.
5092 (init_charset): Initialize Vcharset_map_path.
5093 (syms_of_charset): Delete declaration of "charset-map-directory",
5094 add declaration of "charset-map-path".
5095
73acf815 50962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5097
4c4475a8
GM
5098 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5099 ASCII only string.
aca7a3d2
MB
5100
5101 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5102
5103 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5104 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5105
73acf815 51062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5107
5108 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5109
5110 * coding.c (QCmnemonic, QCdefalut_char)
5111 (QCdecode_translation_table, QCencode_translation_table)
5112 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5113 (get_translation_table): Return a list of translation tables if
5114 necessary.
5115 (decode_coding): Call get_translation_table with ENCODEP 0.
5116 (char_encodable_p): If translation_table is non-nil, always call
5117 translate_char.
5118 (Fdefine_coding_system_internal): Accept list of translation
5119 tables as :encode-translation-table and :decode-translation-table.
5120 (Fcoding_system_put): New function.
5121 (syms_of_coding): Declare new symbols. Defsubr
5122 Scoding_system_put.
4c4475a8
GM
5123 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
5124 typically JISX0212.
aca7a3d2
MB
5125
5126 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
5127 when the charset is superset type.
5128
5129 * character.c (translate_char): Accept list of translation tables.
5130
73acf815 51312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5132
1f45f627 5133 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
5134 (CODING_ATTR_TRANS_TBL): New macro.
5135
5136 * coding.c (get_translation_table): New function.
5137 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
5138 (decode_coding, encode_coding): Utilize get_translation_table.
5139 (char_encodable_p, Funencodable_char_position): Translate char if
5140 necessary.
5141 (Ffind_coding_systems_region_internal)
5142 (Fcheck_coding_systems_region): Setup translation table for encode
5143 in a coding system attribute vector in advance.
aca7a3d2
MB
5144 (Fdefine_coding_system_internal): Allow a symbol as translation
5145 table. For shift-jis type coding system, allow 4th charset.
5146
73acf815 51472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5148
5149 * coding.c (decode_coding_sjis): Check the first byte rigidly.
5150
5151 * xdisp.c (get_next_display_element): Pass -1 as POS to
5152 FACE_FOR_CHAR if displaying a C-string.
5153
73acf815 51542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5155
5156 * composite.c (get_composition_id): Handle xoff and yoff in a
5157 composition rule.
5158
5159 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
5160 (struct composition): New member lbearing and rbearing.
5161
5162 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
5163 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 5164 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
5165
5166 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
5167 composition glyph.
5168
73acf815 51692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5170
5171 * print.c: Include charset.h.
5172 (Vprint_charset_text_property): New variable.
5173 (Qdefault): Extern it.
5174 (PRINT_STRING_NON_CHARSET_FOUND)
5175 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
5176 (print_check_string_result): New variable.
5177 (print_check_string_charset_prop): New function.
5178 (print_prune_charset_plist): New variable.
5179 (print_prune_string_charset): New function.
5180 (print_object): Call print_prune_string_charset if
5181 Vprint_charset_text_property is not t.
5182 (print_interval): Print nothing if itnerval->plist is nil.
5183 (syms_of_print): Declare Vprint_charset_text_property as a lisp
5184 variable. Init and staticpro print_prune_charset_plist.
5185
73acf815 51862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5187
5188 * fontset.c (new_fontset_from_font_name): Use the specified font
5189 for all characters in the new fontset.
5190
5191 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5192 OBJECT args.
5193
5194 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
5195 OBJECT args for composition too.
5196
5197 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
5198 OBJECT args.
5199
73acf815 52002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5201
5202 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
5203
1f45f627 5204 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 5205 FONT_DEF format.
1f45f627 5206 (fontset_face): New arg id. Change caller.
aca7a3d2 5207 (face_for_char): New args pos and object.
1f45f627 5208 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF
aca7a3d2
MB
5209 format.n
5210 (fs_query_fontset): Check NAME by Fassoc too.
5211 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 5212 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 5213
1f45f627 5214 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 5215
4c4475a8
GM
5216 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
5217 (append_space, extend_face_to_end_of_line)
5218 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5219 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
5220
5221 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
5222 POS and OBJECT args.
5223
5224 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
5225 POS and OBJECT args.
5226
73acf815 52272008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5228
5229 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
5230 of GlobalAlloc'ed memory.
5231
73acf815 52322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5233
5234 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
5235
5236 * charset.h (charset_table_used): Delete extern.
5237
5238 * charset.c (charset_table_used): Make it static.
5239 (map_charset_chars): Fix args to c_function with.
5240
5241 * chartab.c (map_sub_char_table_for_charset): Fix args to
5242 c_function with.
5243
5244 * coding.h (enum coding_result_code): Delete
5245 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
5246
5247 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 5248 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
5249 (Vlast_code_conversion_error): New variables.
5250 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
5251 (ONE_MORE_BYTE): Record error if any instead of signaling an
5252 error. If non-ASCII multibyte char is found, return the negative
5253 value of the code. All callers changed to check it.
5254 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
5255 (record_conversion_result): New function. Change all codes setting
5256 coding->result to call this function.
4c4475a8
GM
5257 (detect_coding_utf_8, decode_coding_utf_8)
5258 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
5259 Don't use the local variable incomplete.
aca7a3d2 5260 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
5261 (decode_coding): Fix of flushing out unprocessed data.
5262 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 5263 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
5264
5265 * fontset.c (set_fontset_font): Fix args.
5266
5267 * lisp.h (CHARACTERBITS): Define as 22.
5268
5269 * process.c (send_process): Be sure to set coding->src_multibyte.
5270
5271 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
5272
73acf815 52732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5274
5275 * xdisp.c (handle_auto_composed_prop): Give limit to
5276 Fnext_single_char_property_change.
5277
73acf815 52782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5279
424c157f 5280 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 5281 table weak.
aca7a3d2
MB
5282
5283 * fontset.c (Fset_fontset_font): Fix docstring.
5284
5285 * lisp.h (detect_coding_system): Adjust prototype.
5286
5287 * fileio.c (kill_workbuf_unwind): Delete this function.
5288 (Finsert_file_contents): Adjust the call of detect_coding_system.
5289 Get conversion_buffer by code_conversion_save. Use the macor
5290 CODING_MAY_REQUIRE_DECODING. After decoding, update
5291 coding_system.
5292
5293 * coding.h (make_conversion_work_buffer): Delete extern.
5294 (code_conversion_save): Extern it.
5295
5296 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 5297 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
5298 (decode_coding_utf_8): Don't do eol converion.
5299 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 5300 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
5301 (decode_coding_emacs_mule, decode_coding_iso_2022)
5302 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
5303 Don't do eol converion.
aca7a3d2
MB
5304 (adjust_coding_eol_type): Return a new coding system.
5305 (detect_coding): Don't detect eol. Fix for utf-16 detection.
5306 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
5307 each change.
5308 (decode_coding): Pay attention to undo_list. Do eol convesion for
5309 all types of coding-systems (if necessary).
5310 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 5311 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
5312 Vcode_conversion_reused_work_buf.
5313 (Vcode_conversion_workbuf_name): New variable.
5314 (reused_workbuf_in_use): New variable.
5315 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 5316 (code_conversion_restore): Change argument to cons.
1f45f627
GM
5317 (code_conversion_save): Delete the argument BUFFER. Change callers.
5318 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
5319 Fix for utf-16 detection.
5320 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 5321 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
5322 reused_workbuf_in_use.
5323
73acf815 53242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5325
5326 * keymap.c (store_in_keymap): Pay attention to the case that idx
5327 is a cons specifying a character range.
5328
73acf815 53292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5330
5331 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
5332 HANDLED_RECOMPUTE_PROPS.
5333
5334 * coding.c (Fdefine_coding_system_internal): Fix checking of
5335 ascii compatibility.
5336
73acf815 53372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5338
1f45f627 5339 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
5340 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
5341
5342 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
5343 Resync charset_list to Vemacs_mule_charset_list.
5344
5345 * keymap.c (store_in_keymap): Pay attention to the case that idx
5346 is a cons specifying a character range.
5347
73acf815 53482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5349
5350 * composite.c (update_compositions): Bind inhibit-read-only, etc
5351 to t before calling remove-list-of-text-properties.
5352
5353 * print.c (print_object): Always print ASCII chars as is.
5354
73acf815 53552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5356
1f45f627 5357 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 5358
4c4475a8
GM
5359 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
5360 is a char table.
aca7a3d2 5361
73acf815 53622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5363
1f45f627 5364 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 5365
73acf815 53662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5367
5368 * xfaces.c (set_lface_from_font_name): Fix for the case that
5369 FONTNAME is not fontset name.
5370
73acf815 53712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5372
5373 * fns.c (base64_encode_1): Fix previous change.
5374
73acf815 53752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5376
5377 * fontset.c (set_fontset_font): New function.
5378 (Fset_fontset_font): If a font is specified for a charset, use
5379 map_charset_chars to store the font spec in a fontset.
5380
73acf815 53812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5382
5383 * fontset.c (fontset_face): Create a fallback fontset on demand
5384 (make_fontset): Don't create a fallback fontset here.
5385 (free_face_fontset): Free a fallback fontset (if any) too.
5386 (n_auto_fontsets): Delete this variable.
5387 (auto_fontset_alist): New variable.
5388 (new_fontset_from_font_name): Check auto_fontset_alist.
5389 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
5390 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
5391 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
5392 Defsubr Sfontset_list_all.
5393
73acf815 53942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5395
5396 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
5397
73acf815 53982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5399
5400 * fontset.c (Fnew_fontset): Check NAME more rigidly.
5401
73acf815 54022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5403
5404 * editfns.c (Fgoto_char): Fix docstring.
5405
73acf815 54062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5407
5408 * insdel.c (insert_from_gap): Adjust intervals correctly.
5409
73acf815 54102008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5411
5412 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
5413 (pfnGetFontUnicodeRanges): New dynamically loaded function.
5414 (w32_initialize): Try to load it.
5415 (x_get_font_repertory): Use it if available.
5416 (w32_encode_char): Add shortcut for unicode output.
5417
5418 * w32fns.c (w32_load_system_font): Default charset to -1.
5419 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 5420 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
5421 or wildcard charsets.
5422 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
5423 (w32_codepage_for_font): Return CP_UNICODE for unicode.
5424 (w32_to_x_font): Match charset to real charset.
5425 (enum_font_cb2): Always list unicode versions.
5426
5427 * makefile.w32-in (temacs): Increase EMHEAP.
5428
73acf815 54292008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5430
5431 * w32term.c (w32_encode_char): New charset parameter.
5432 font_info.encoding becomes encoding_type.
1f45f627 5433 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
5434 (x_new_font): Return quickly if font already set.
5435 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
5436 Use new fs_query_fontset. Try new_fontset_from_font_name.
5437 Use fontset_name for return value.
aca7a3d2
MB
5438
5439 * w32term.h: Declare x_get_font_repertory.
5440
5441 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 5442 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
5443 of encode_coding.
5444 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
5445 decode_coding.
5446
5447 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
5448 of x_new_fontset.
5449 (w32_load_system_font): Initialize charset as unicode.
5450 font_info.encoding becomes encoding_type.
1f45f627
GM
5451 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
5452 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
5453 (syms_of_w32fns): Set get_font_repertory_func.
5454
1f45f627 5455 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 5456 from term.c.
1f45f627 5457 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
5458 encode_coding_object in place of encode_coding.
5459
5460 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
5461 encoding becomes encoding_type.
5462
5463 * term.c (terminal_encode_buffer): Make externally visible.
5464
5465 * makefile.w32-in: Add character.h dependancies.
5466 (character.o, chartab.o): New targets.
5467
73acf815 54682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5469
5470 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 5471 CODING_ID_EOL_TYPE.
aca7a3d2 5472
73acf815 54732008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5474
5475 * coding.c (produce_chars): Revert last change.
5476
73acf815 54772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5478
5479 * charset.h (charset_unicode): Extern it.
5480
5481 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 5482 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 5483 arg MULTIBYTE.
1f45f627 5484 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
5485 change of find_charsets_in_text.
5486 (Fsplit_char): Fix doc. Never return unknown.
5487
5488 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
5489
5490 * coding.c (Fdefine_coding_system_alias): Update
5491 Vcoding_system_list.
5492
5493 * fontset.c (load_font_get_repertory): Pay attention to the case
5494 that ENCODING of a font is specified by a char-table.
5495
5496 * xterm.c (x_get_font_repertory): Handle the case that the
5497 encoding of font is other than Unicode.
5498
73acf815 54992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5500
5501 * term.c (encode_terminal_code): Don't handle glyph-table. Check
5502 if a character is encodable by the terminal coding system. If
5503 not, produces proper number of `?'s. Update
5504 terminal_encode_buffer and terminal_encode_buf_size if necessary.
5505 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
5506
73acf815 55072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5508
5509 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
5510 variables.
1f45f627 5511 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
5512 characters at once. Store the result of encoding in
5513 terminal_encode_buffer.
4c4475a8
GM
5514 (write_glyphs, insert_glyphs): Adjust for the change of
5515 encode_terminal_code.
aca7a3d2
MB
5516 (term_init): Initialize terminal_encode_buffer and
5517 terminal_encode_buf_size.
5518
5519 * coding.c (consume_chars): If coding->src_object is nil, don't
5520 check annotation.
5521
73acf815 55222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5523
5524 * character.c (char_string): Use ASCII_CHAR_P instead of
5525 SINGLE_BYTE_CHAR_P.
5526
73acf815 55272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5528
5529 * xdisp.c (handle_auto_composed_prop): Check if the last
5530 characters of auto-composed region is newly composed with the
5531 following characters.
5532 (handle_composition_prop): Fix checking of point being inside
5533 composition.
5534
73acf815 55352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5536
5537 * fns.c (concat): Don't change multibyteness of the result by
5538 concatenating an 8-bit character.
5539
5540 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
5541 multibyteness of the result when newelt is an 8-bit character.
5542
73acf815 55432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5544
5545 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
5546 EMACS_INT.
5547
5548 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
5549
5550 * xfaces.c (face_numeric_value): Declare dim size_t.
5551 (Finternal_lisp_face_equal_p): Remove unused f.
5552
5553 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
5554 (MATRIX_ROW): Remove unused vars.
5555 (draw_glyphs, x_insert_glyphs, fast_find_position)
5556 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
5557 byte/char counts.
5558
5559 * regex.c (regex_compile): Remove unused var.
5560
5561 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
5562
5563 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5564 (Faccessible_keymaps, where_is_internal): Remove unused vars.
5565
5566 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
5567
5568 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
5569
5570 * fileio.c (Fwrite_region): Remove unused var.
5571
5572 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
5573 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
5574
5575 * composite.c (Fremove_list_of_text_properties): Declare.
5576
1f45f627
GM
5577 * coding.c (inhibit_pre_post_conversion): Remove (unused).
5578 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
5579 (coding_inherit_eol_type): Remove unused attrs.
5580 (detect_coding): Cast arg of detect_eol.
5581
5582 * charset.c (syms_of_charset): Remove unused var p.
5583 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
5584 byte/char counts.
5585
5586 * casetab.c (set_case_table): Remove unused var.
5587
5588 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 5589 unused vars.
aca7a3d2 5590
73acf815 55912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5592
5593 * xterm.c (x_bitmap_mask): Declare.
5594
73acf815 55952008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5596
5597 * xterm.c (x_term_init): Fix type error.
5598
5599 * lisp.h: Add Funibyte_char_to_multibyte.
5600
5601 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
5602 (Fset_coding_system_priority): Doc fix.
5603
aca7a3d2
MB
5604 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
5605
5606 * indent.c (check_composition): Make start and end EMACS_INT.
5607
5608 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
5609
5610 * xdisp.c (handle_composition_prop, check_point_in_composition):
5611 Make buffer positions EMACS_INT.
5612
5613 * composite.c (find_composition, run_composition_function)
5614 (update_compositions, Ffind_composition_internal): Make buffer
5615 positions EMACS_INT.
5616
5617 * composite.h (find_composition, update_compositions): Make
5618 position args EMACS_INT.
5619
1f45f627 5620 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
5621
5622 * intervals.c (get_property_and_range):
5623 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
5624
5625 * unexalpha.c: Don't include varargs.h.
5626
73acf815 56272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5628
5629 * coding.h (ENCODE_UTF_8): New.
5630
5631 * Makefile.in (gtkutil.o): Depend on coding.h.
5632
5633 * coding.c (Fset_coding_system_priority): Doc fix.
5634
73acf815 56352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5636
5637 * fileio.c (Finsert_file_contents): Call setup_coding_system in
5638 the case of auto saving.
5639
73acf815 56402008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 5641
4c4475a8
GM
5642 * chartab.c (map_char_table, map_char_table_for_charset): Protect
5643 `range' from GC.
aca7a3d2 5644
73acf815 56452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5646
5647 * coding.c (decode_coding_sjis): Check bytes more rigidly.
5648
73acf815 56492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5650
1f45f627 5651 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
5652 (Fwrite_region): Set Vlast_coding_system_used to the return value
5653 of choose_write_coding_system.
5654
73acf815 56552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5656
5657 * charset.c (Fset_charset_priority): Pay attention to duplicated
5658 arguments.
5659
5660 * coding.c (QCcategory): New variable.
5661 (syms_of_coding): Defsym it. Set all elements of
5662 Vcoding_category_table and their symbol values.
5663 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
5664 coding-category-XXX, and coding-category-list.
5665 (Fdefine_coding_system_internal): Add category in the plist.
5666
73acf815 56672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5668
5669 * callproc.c (Fcall_process): Handle carryover correctly.
5670
1f45f627 5671 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
5672 (raw_text_coding_system): Check NILP (coding_system).
5673 (coding_inherit_eol_type): Check NILP (coding_system) and
5674 NILP (parent).
5675 (consume_chars): Fix for the case of raw-text.
5676
5677 * process.c (read_process_output): Handle carryover correctly.
5678
73acf815 56792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5680
5681 * regex.c (re_search_2): Fix last change.
5682
73acf815 56832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5684
5685 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
5686 target_multibyte. Even in a unibyte case, return a converted
5687 multibyte char.
5688 (GET_CHAR_AFTER): New macro.
5689 (PATFETCH): Translate via multibyte char.
5690 (HANDLE_UNIBYTE_RANGE): Delete this macro.
5691 (SETUP_MULTIBYTE_RANGE): New macro.
5692 (regex_compile): Setup compiled code so that its multibyteness
5693 matches that of a target. Fix the handling of "[X-YZ]" using
5694 SETUP_MULTIBYTE_RANGE.
5695 (analyse_first) <charset>: For filling fastmap for all multibyte
5696 characters, don't check by BASE_LEADING_CODE_P.
5697 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
5698 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 5699 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
5700 (TARGET_CHAR_AND_LENGTH): Delete this macro.
5701 (TRANSLATE_VIA_MULTIBYTE): New macro.
5702 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
5703 It is the same as RE_MULTIBYTE_P (bufp) now.
5704 <exactn>: Translate via multibyte.
5705 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
5706 translate it.
5707 <charset, charset_not>: Fetch a character by
5708 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
5709 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
5710 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
5711 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
5712 by GET_CHAR_AFTER.
c5ad7a3d 5713 (bcmp_translate): Likewise.
aca7a3d2
MB
5714
5715 * search.c (compile_pattern): Check the member target_multibyte,
5716 not the member multibyte of buf.
5717
5718 * lread.c (read1): While reading a string, set force_singlebyte
5719 and force_multibyte correctly.
5720
4c4475a8
GM
5721 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
5722 up of unibyte_to_multibyte_table.
aca7a3d2 5723
73acf815 57242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5725
5726 * coding.c (setup_coding_system): If coding has
5727 post-read-conversion or pre-write-conversion, set
5728 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
5729 respectively.
5730 (decode_coding_gap): Run post-read-conversion if any.
5731
5732 * fileio.c (Finsert_file_contents): Even if we read into a
5733 unibyte buffer, check if we must decode the result or not.
5734
73acf815 57352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5736
5737 * coding.c (make_conversion_work_buffer): Change the work buffer
5738 name to the same one as that of Emacs 21.
5739
73acf815 57402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5741
1f45f627 5742 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
5743 (code_conversion_restore): Don't extern it.
5744
5745 * coding.c (detected_mask): Delete unused variable.
5746 (decode_coding_iso_2022): Pay attention to the byte sequence of
5747 CTEXT extended segment, and retain those bytes as is.
5748 (decode_coding_ccl): Delete unused variable `valids'.
5749 (setup_coding_system): Delete unused variable `category'.
5750 (consume_chars): Delete unused variable `category'. Make it work
5751 for non-multibyte case.
1f45f627 5752 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
5753 (saved_coding): Delete unused variable.
5754 (code_conversion_restore): Don't check saved_coding->destination.
5755 (code_conversion_save): New function.
5756 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
5757 instead of record_unwind_protect.
1f45f627 5758 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 5759 (detect_coding_system): Delete unused variable `mask'.
1f45f627 5760 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
5761
5762 * fileio.c (kill_workbuf_unwind): New function.
5763 (Finsert_file_contents): On replacing, call
5764 make_conversion_work_buffer with correct args, and call
5765 record_unwind_protect with the first arg kill_workbuf_unwind.
5766
5767 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
5768
73acf815 57692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5770
1f45f627 5771 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
5772 (fontset_add): Fix for the case that TO is less than TO1.
5773 (Ffontset_info): Don't use fallback fontset on checking the
5774 default fontset.
5775 (dump_fontset): New function for debugging.
5776
5777 * coding.c (Fdefine_coding_system_internal): Fix for the case that
5778 coding_type is Qcharset.
5779
73acf815 57802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5781
5782 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
5783 (map_char_table): Don't inherit the value from the parent on
1f45f627 5784 initializing VAL. Adjust for the above change.
aca7a3d2 5785
73acf815 57862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5787
5788 * coding.c (Qsignature, Qendian): Delete these variables.
5789 (syms_of_coding): Don't initialize them.
5790 (CATEGORY_MASK_UTF_16_AUTO): New macro.
5791 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
5792 detect_info->found.
5793 (decode_coding_utf_16): Don't detect BOM here.
5794 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
5795 is NOT utf_16_without_bom.
5796 (setup_coding_system): For a coding system of type utf-16, check
5797 if the attribute :endian is Qbig or not (not nil or not), and set
5798 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
5799 (detect_coding): If coding type is utf-16 and BOM detection is
5800 required, detect it.
5801 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 5802 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 5803
73acf815 58042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5805
5806 * coding.c (coding_set_source): Fix for the case that the current
5807 buffer is different from coding->src_object.
5808 (decode_coding_object): Don't use the conversion work buffer if
5809 DST_OBJECT is a buffer.
5810
73acf815 58112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5812
5813 * lread.c (read_emacs_mule_char) [len==2]: Index
5814 emacs_mule_charset correctly.
5815
73acf815 58162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5817
5818 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
5819 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 5820 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
5821 treated specially.)
5822 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
5823 (detected_mask): Remove Big5 bits.
5824
73acf815 58252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5826
5827 The following changes are to make the font rescaling facility
5828 compatible with Emacs 21.
5829
1f45f627 5830 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
5831 Vface_resizing_fonts.
5832 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 5833 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
5834 (split_font_name): Set font->rescale_ratio.
5835 (better_font_p): Pay attention to font->rescale_ratio.
5836 (build_scalable_font_name): Likewise. Change RESX, and RESY
5837 fields.
1f45f627 5838 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 5839
73acf815 58402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5841
5842 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
5843 (Qutf_16_le): Remove these variables.
5844 (syms_of_coding): Don't DEFSYM them.
5845 (decode_coding_utf_16): Fix handling of BOM.
5846 (encode_coding_utf_16): Fix handling of BOM.
5847
73acf815 58482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5849
5850 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 5851 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 5852
73acf815 58532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5854
5855 * coding.c (Fcheck_coding_systems_region): Fix type errors.
5856
73acf815 58572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5858
5859 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
5860 and fix C types.
5861
73acf815 58622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5863
5864 * xdisp.c (SKIP_GLYPHS): New macro.
5865 (set_cursor_from_row): Pay attention to string display properties.
5866
5867 * category.c (copy_category_entry): Fix for the case that RANGE
5868 is an integer.
5869
5870 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
5871
1f45f627 5872 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 5873
73acf815 58742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5875
5876 * charset.c (Fcharset_id_internal): New function.
5877 (syms_of_charset): Defsubr it.
5878
5879 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
5880 with the last arg charset_list acquired from coding.
5881 (Fdefine_coding_system_internal): For ccl-based coding system, fix
5882 the attribute coding_attr_ccl_valids.
5883
5884 * coding.h (enum define_coding_ccl_arg_index): Set the first
5885 member coding_arg_ccl_decoder to coding_arg_max.
5886
1f45f627 5887 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
5888
5889 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
5890 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
5891 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
5892 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
5893 last arg Qnil.
aca7a3d2 5894
73acf815 58952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5896
5897 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
5898 call encode_char.
5899
1f45f627 5900 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 5901
73acf815 59022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 5903
1f45f627 5904 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 5905
73acf815 59062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5907
5908 * dispextern.h (check_face_attributes, generate_ascii_font_name)
5909 (font_name_registry): Don't extern them.
1f45f627 5910 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
5911
5912 * fontset.h (Qfontset): Don't extern it.
5913 (new_fontset_from_font_name): Extern it.
5914
5915 * fontset.c: Give 8 extra slots to fontset objects.
5916 (Qfontset_info): New variable.
5917 (syms_of_fontset): Defsym it.
5918 (FONTSET_FALLBACK): New macro.
5919 (fontset_face): Try also the default fontset.
1f45f627
GM
5920 (make_fontset): Realize a fallback fontset from the default fontset.
5921 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
5922 using split_font_name_into_vector and build_font_name_from_vector.
5923 (Fset_fontset_font): Access the elements of font_spec by enum
5924 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
5925 name by using split_font_name_into_vector.
5926 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
5927 generate a proper font name from the fontset name. Update
5928 Vfontset_alias_alist.
5929 (n_auto_fontsets): New variable.
5930 (new_fontset_from_font_name): New function.
5931 (Ffont_info): Store the information about fonts generated from the
1f45f627 5932 default fontset in the first extra slot of the returned char-table.
aca7a3d2 5933
1f45f627
GM
5934 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
5935 (font_name_registry): Delete function.
aca7a3d2
MB
5936 (split_font_name_into_vector): New function.
5937 (build_font_name_from_vector): New function.
1f45f627 5938 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
5939 (choose_face_font): If we are choosing an ASCII font, and ATTRS
5940 specifies an explicit font name, return the name as is. Make a
5941 list of registy names.
5942
1f45f627 5943 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
5944 of x_new_fontset.
5945 (Fx_create_frame): Don't call x_new_fontset here. Just use
5946 x_list_fonts to check the existence of fonts.
5947
1f45f627 5948 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
5949
5950 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
5951 string. Use new_fontset_from_font_name to create a fontset from a
5952 font name.
5953
1c8658b9
GM
59542008-02-01 Kenichi Handa <handa@m17n.org>
5955
5956 * syntax.c (Vfind_word_boundary_function_table): New name for
5957 Vnext_word_boundary_function_table.
5958 (find-word-boundary-function-table): New name for
5959 next-word-boundary-function-table.
5960
73acf815 59612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5962
5963 * Makefile.in: Fix some dependencies.
5964
5965 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
5966 set it to nil before returning.
5967
5968 * composite.c (update_compositions): Fix type error.
5969
5970 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
5971
73acf815 59722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5973
5974 * xterm.c (x_new_font): Optimize for the case that the font is
5975 already set for the frame.
5976
73acf815 59772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5978
5979 * chartab.c (char_table_ascii): Check if the char table contents
5980 is sub-char-table or not.
4c4475a8
GM
5981 (char_table_set, char_table_set_range): Fix argument to
5982 char_table_ascii.
aca7a3d2
MB
5983
5984 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
5985 (detect_coding_utf_8, detect_coding_utf_16)
5986 (detect_coding_emacs_mule, detect_coding_iso_2022)
5987 (detect_coding_sjis, detect_coding_big5)
5988 (detect_coding_ccl, detect_coding_charset): Change argument MASK
5989 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 5990 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
5991 (MAX_ANNOTATION_LENGTH): New macro.
5992 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
5993 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
5994 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 5995 (ADD_CHARSET_DATA): New macro.
1f45f627 5996 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
5997 (decode_coding_emacs_mule, decode_coding_iso_2022)
5998 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
5999 Produce charset annotation data in coding->charbuf.
6000 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6001 to charset annotation data in coding->charbuf.
6002 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6003 coding->common_flags if the coding system is iso-2022 based and
6004 uses designation.
1f45f627 6005 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6006 (produce_charset): New function.
6007 (produce_annotation): Handle charset annotation.
6008 (handle_composition_annotation, handle_charset_annotation): New
6009 functions.
6010 (consume_chars): Handle charset annotation. Utilize the above two
6011 functions.
6012 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6013 buffer, get the deleted text as a string and set
6014 coding->src_object to that string.
6015 (detect_coding, detect_coding_system): Use the new struct
6016 coding_detection_info.
6017
6018 * coding.h (struct coding_detection_info): New structure.
1f45f627 6019 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6020 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6021
73acf815 60222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6023
6024 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6025
73acf815 60262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6027
1f45f627 6028 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6029 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6030 to new local and nullify apropos_accumulate before returning.
6031 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6032
73acf815 60332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6034
6035 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6036 correctly.
6037
73acf815 60382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6039
6040 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6041
73acf815 60422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6043
6044 The following changes are to make character composition happen
6045 automatically on displaying.
6046
2a2e8de7 6047 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6048
1f45f627
GM
6049 * composite.h (Qauto_composed, Vauto_composition_function)
6050 (Qauto_composition_function): Extern them.
aca7a3d2 6051
1f45f627
GM
6052 * composite.c (Vcomposition_function_table)
6053 (Qcomposition_function_table): Delete variables.
6054 (Qauto_composed, Vauto_composition_function)
6055 (Qauto_composition_function): New variables.
aca7a3d2
MB
6056 (run_composition_function): Don't call
6057 compose-chars-after-function.
6058 (update_compositions): Clear `auto-composed' text property.
6059 (compose_chars_in_text): Delete this function.
6060 (syms_of_composite): Staticpro Qauto_composed and
6061 Qauto_composition_function. Declare Vauto_composition_function as
6062 a Lisp variable.
6063
6064 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6065
6066 * xdisp.c (it_props): Add an entry for Qauto_composed.
6067 (handle_auto_composed_prop): New function.
6068
6069 * xselect.c (selection_data_to_lisp_data): Don't call
6070 compose_chars_in_text.
6071
73acf815 60722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6073
6074 * keyboard.c (read_char): Modify checking around use of
6075 Vkeyboard_translate_table.
6076
6077 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6078 and fix C types.
6079
73acf815 60802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6081
4c4475a8
GM
6082 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6083 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6084 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6085 the case that the last byte is '\r' correctly.
1f45f627
GM
6086 (decode_coding): Flush out the unprocessed data correctly.
6087 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6088
73acf815 60892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6090
6091 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6092 XK_ISO... case.
6093 (xaw_scroll_callback): Revert last change.
6094
73acf815 60952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6096
1f45f627 6097 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6098
73acf815 60992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6100
6101 * xfaces.c (Vface_resizing_fonts): New variable.
6102 (struct font_name): New member `resizing_ratio'.
6103 (font_resizing_ratio): New function.
6104 (split_font_name): Set font->resizing_ratio.
6105 (better_font_p): Pay attention to font->resizing_ratio.
6106 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6107 RESX, and RESY fields.
6108 (try_alternative_families): Try scalable fonts if
6109 Vscalable_fonts_allowed is not Qt.
6110 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6111
73acf815 61122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6113
6114 * xterm.c (xaw_scroll_callback): Cast correctly.
6115
73acf815 61162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6117
6118 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
6119 (lispy_kana_keys): Comment out.
6120 (make_lispy_event) [XK_kana_A]: Comment out.
6121
6122 * xterm.c (xaw_scroll_callback): Cast call_data.
6123 (XTread_socket): Deal with ASCII keysyms.
6124 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
6125
73acf815 61262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6127
6128 * xterm.c (Vx_keysym_table): New.
6129 (syms_of_xterm): Initialize it.
6130 (XTread_socket): Use it.
6131 From head: Eliminate incorrect optimization that tried to avoid
6132 decoding the output of X*LookupString.
6133 (x_get_font_repertory): Delete charset declaration.
6134
73acf815 61352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6136
1f45f627
GM
6137 * coding.c (detect_coding_charset): If only ASCII bytes are found,
6138 return 0.
aca7a3d2
MB
6139 (Fdefine_coding_system_internal): Setup
6140 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
6141
73acf815 61422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6143
6144 * coding.c (Fcheck_coding_system): Doc fix.
6145
6146 * editfns.c (Finsert_byte): Return a proper value.
6147
73acf815 61482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6149
6150 * coding.c (decode_coding): Fix args to translate_chars. Pay
6151 attention to Vstandard_translation_table_for_decode.
6152 (encode_coding): Fix args to translate_chars. Pay attention to
6153 Vstandard_translation_table_for_encode.
6154
6155 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
6156 SINGLE_BYTE_CHAR_P.
6157
6158 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
6159 not by SINGLE_BYTE_CHAR_P.
6160
6161 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
6162 SINGLE_BYTE_CHAR_P.
6163
6164 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
6165 SINGLE_BYTE_CHAR_P.
6166
6167 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
6168 by SINGLE_BYTE_CHAR_P.
6169
6170 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
6171 SINGLE_BYTE_CHAR_P.
6172
73acf815 61732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6174
6175 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
6176
73acf815 61772008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6178
6179 * fns.c (Flanginfo): Fix typo.
6180
6181 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
6182
73acf815 61832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6184
4c4475a8
GM
6185 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
6186 (detect_coding_emacs_mule, detect_coding_iso_2022)
6187 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
6188 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 6189 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 6190 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 6191 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 6192
73acf815 61932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6194
1f45f627
GM
6195 * character.c (char_string): Rename from
6196 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
6197 (string_char): Rename from string_char.
aca7a3d2 6198
4c4475a8
GM
6199 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
6200 if C is greater than MAX_3_BYTE_CHAR.
6201 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
6202 string_char instead of string_char_with_unification.
aca7a3d2 6203
73acf815 62042008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6205
6206 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
6207
73acf815 62082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6209
1f45f627 6210 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
6211
6212 * regex.c (re_search_2): Fix for the case of unibyte buffer.
6213
73acf815 62142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6215
6216 * charset.c (define_charset_internal): Rename `supprementary'.
6217
6218 * Makefile.in (lisp, shortlisp): Remove latin-N.
6219
73acf815 62202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6221
6222 * xfns.c (x_window, x_window): Use use_xim.
6223
6224 * xterm.c (use_xim): Initialize.
6225 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6226 (x_term_init): Maybe set use_xim.
6227
6228 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6229
73acf815 62302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6231
6232 * search.c (search_buffer): Fix case-fold-search of multibyte
6233 characters.
6234 (boyer_moore): Rename the last argument to char_high_bits.
6235
73acf815 62362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6237
6238 * xdisp.c (display_string): Fix for the case of zero width glyph.
6239
6240 * xfns.c (x_set_font): Change the error message of the case that
6241 x_new_fontset returns Qt.
6242
6243 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
6244 (Finternal_set_lisp_face_attribute): Use signal_error for the
6245 error of invalid fontset.
6246
6247 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
6248 fontset, return Qt.
6249
73acf815 62502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6251
aca7a3d2
MB
6252 * unexelf.c (unexec): Make .got handling not SGI-specific.
6253
6254 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
6255
6256 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
6257
6258 * keyboard.c (read_key_sequence): Fix type error.
6259
6260 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
6261 type error.
6262
6263 * fontset.c (fontset_add): Return Lisp_Object.
6264
73acf815 62652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6266
6267 * charset.h (charset_ordered_list_tick): Declare extern.
6268
73acf815 62692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6270
73acf815 6271 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
6272 for handling syntax, category, and case conversion for unibyte
6273 characters by converting them to multibyte on the fly. With these
6274 changes, we don't have to setup syntax and case tables for unibyte
6275 characters in each language environment.
6276
6277 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
6278 multibyte if necessary.
6279
6280 * bytecode.c (Fbyte_code): Likewise.
6281
6282 * character.h (LEADING_CODE_LATIN_1_MIN)
6283 (LEADING_CODE_LATIN_1_MAX): New macros.
6284 (unibyte_to_multibyte_table): Extern it.
6285 (unibyte_char_to_multibyte): New macro.
6286 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
6287 (CHAR_LEADING_CODE): New macro.
6288 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
6289
6290 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 6291 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
6292 (multibyte_char_to_unibyte): If C is an eight-bit character,
6293 convert it to the corresponding byte value.
6294
6295 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
6296 not 1, singals an error. Update the elements of
6297 unibyte_to_multibyte_table.
6298 (init_charset_once): Initialize unibyte_to_multibyte_table.
6299 (syms_of_charset): Define the charset `iso-8859-1'.
6300
aca7a3d2
MB
6301 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
6302 as is without converting it to unibyte. In a unibyte buffer,
6303 convert C to multibyte before checking the syntax.
6304
1f45f627 6305 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
6306
6307 * minibuf.c (Fminibuffer_complete_word): Use the macro
6308 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
6309
6310 * regex.h (struct re_pattern_buffer): New member target_multibyte.
6311
6312 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
6313 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
6314 that is zero, convert an eight-bit char to multibyte.
6315 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
6316 non-emacs case.
6317 (PATFETCH): Convert an eight-bit char to multibyte.
6318 (HANDLE_UNIBYTE_RANGE): New macro.
6319 (regex_compile): Setup the compiled pattern for multibyte chars
6320 even if the given regex string is unibyte. Use PATFETCH_RAW
6321 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 6322 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 6323 only for ASCII chars.
1f45f627 6324 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
6325 is multibyte.
6326 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
6327 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 6328 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
6329 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
6330 multibyte always 1.
6331 (re_search_2): In emacs, set the locale variable multibyte to 1,
6332 otherwise to 0. New local variable target_multibyte. Check it
6333 to decide the multibyteness of STR1 and STR2. If
6334 target_multibyte is zero, convert unibyte chars to multibyte
6335 before translating and checking fastmap.
6336 (TARGET_CHAR_AND_LENGTH): New macro.
6337 (re_match_2_internal): In emacs, set the locale variable multibyte
6338 to 1, otherwise to 0. New local variable target_multibyte. Check
6339 it to decide the multibyteness of STR1 and STR2. Use
6340 TARGET_CHAR_AND_LENGTH to fetch a character from D.
6341 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 6342 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
6343 target_multibyte, not with multibyte.
6344 <begline>: Declare the local variable C as `unsigned'.
6345 (bcmp_translate): Change the last arg name to target_multibyte.
6346
6347 * search.c (compile_pattern_1): Don't adjust the multibyteness of
6348 the regexp pattern and the matching target. Set cp->buf.multibyte
6349 to the multibyteness of the regexp pattern. Set
1f45f627 6350 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
6351 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
6352 FETCH_STRING_CHAR_ADVANCE.
6353 (Freplace_match): Convert unibyte chars to multibyte.
6354
4c4475a8
GM
6355 * syntax.c (char_quoted, back_comment, scan_words)
6356 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
6357 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 6358 unibyte chars to multibyte.
1f45f627
GM
6359 (skip_chars): Delete the arg syntaxp, and move the code for
6360 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
6361 Fix the case that the multibyteness of STRING and the current
6362 buffer doesn't match.
6363 (skip_syntaxes): New function.
6364 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
6365 SINGLE_BYTE_CHAR_P.
aca7a3d2 6366
73acf815 63672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6368
6369 * xfaces.c (QCfontset): New variable.
6370 (LFACE_FONTSET): New macro.
6371 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
6372 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
6373 (Finternal_set_lisp_face_attribute)
6374 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
6375 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
6376 check also LFACE_FONTSET_INDEX.
6377 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
6378 attrs[LFACE_FONT_INDEX].
6379 (syms_of_xfaces): Intern and staticpro QCfontset.
6380
6381 * dispextern.h (enum lface_attribute_index): New member
6382 LFACE_FONTSET_INDEX.
6383
6384 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
6385
73acf815 63862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6387
6388 * coding.c (coding_set_destination): Fix coding->destination for
6389 the case converting a region.
6390 (encode_coding_utf_8): Encode eight-bit chars as single byte.
6391 (encode_coding_object): Fix coding->dst_pos and
6392 coding->dst_pos_byte for the case converting a region.
6393
6394 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
6395
6396 * character.h (BYTE8_STRING): New macro.
6397
6398 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
6399
73acf815 64002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6401
6402 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
6403 characters by octal form.
6404
6405 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
6406
1f45f627 6407 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
6408 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
6409 _fetch_multibyte_char_len.
aca7a3d2
MB
6410 (FETCH_CHAR_AS_MULTIBYTE): New macro.
6411
1f45f627 6412 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 6413
1f45f627 6414 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 6415 the case conversion change the byte length.
1f45f627 6416 (casify_region): Likewise.
aca7a3d2 6417
1f45f627 6418 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 6419
1f45f627 6420 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
6421 (syms_of_character): Setup Vprintable_chars.
6422
6423 * editfns.c (Fchar_equal): Fix for the unibyte case.
6424 (Finsert_byte): New function.
6425 (syms_of_editfns): Defsubr it.
6426
6427 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
6428 of direct code 0x3ffff.
6429
6430 * search.c (Freplace_match): Fix for the unibyte case.
6431
73acf815 64322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6433
6434 * lread.c (safe_to_load_p): Fix the logic.
6435
6436 * syntax.c (scan_words): Don't treat characters belonging to
6437 different scripts as constituting a word.
6438
6439 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
6440
1f45f627 6441 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
6442
6443 * emacs.c (main): In the case of --unibyte, instead of aborting on
6444 finding non-empty buffer, make it unibyte.
6445
73acf815 64462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6447
6448 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
6449 to create a fontset.
6450
73acf815 64512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6452
6453 * character.c (Funibyte_char_to_multibyte): Doc fix.
6454
6455 * xfns.c [HAVE_STDLIB_H]: Fix last change.
6456
73acf815 64572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6458
6459 * fontset.c (fontset_add): Make the type `int'.
6460 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
6461
4c4475a8
GM
6462 * character.c (unibyte_char_to_multibyte)
6463 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 6464 charset_unibyte, not charset_primary.
aca7a3d2 6465
1f45f627 6466 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 6467
1f45f627
GM
6468 * charset.c (charset_unibyte): Rename from charset_primary.
6469 (Funibyte_charset): Rename from Fprimary_charset.
6470 (Fset_unibyte_charset): Rename from Fset_primary_charset.
6471 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
6472
6473 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
6474 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
6475 it->multibyte_p is zero.
6476
6477 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 6478 Delete extern.
aca7a3d2 6479
73acf815 64802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6481
6482 * coding.c (Fdefine_coding_system_internal): Fix category setting
6483 for a coding system of type iso-2022.
6484
73acf815 64852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6486
1f45f627 6487 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 6488
73acf815 64892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6490
6491 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
6492 (next-word-boundary-function-table): Declare it as a Lisp variable
6493 in syms_of_syntax.
aca7a3d2
MB
6494 (scan_words): Call functions in Vnext_word_boundary_function_table
6495 if any.
6496
6497 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
6498
6499 * fontset.c (fs_load_font): If fontp->charset is not negative,
6500 return fontp without setting its members.
6501
73acf815 65022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6503
aca7a3d2
MB
6504 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
6505
6506 * m/sparc.h (HAVE_ALLOCA): Delete.
6507
6508 * s/irix6-5.h: Don't include strings.h.
6509 (bcopy, bzero, bcmp): Don't undef.
6510
6511 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
6512
6513 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
6514 (TIOCSIGSEND): Don't test IRIX6.
6515 (bcopy, bzero, bcmp): Define conditionally.
6516
73acf815 65172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6518
6519 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 6520 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
6521 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
6522
6523 * callproc.c (Fcall_process): Don't call insert_1_both directly if
6524 we are inserting a process output into a multibyte buffer.
6525
6526 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
6527 multibyte_char_to_unibyte.
6528
6529 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
6530 by the primary charset, make it eight-bit char.
6531 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
6532
1f45f627
GM
6533 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
6534 (charset_8_bit__control, charset_8_bit_graphic)
6535 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
6536 (define_charset_internal): New function.
6537 (syms_of_charset): Call define_charset_internal for pre-defined
6538 charsets.
6539
6540 * charset.h (charset_8_bit): Extern it.
6541
1f45f627 6542 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
6543 of Fset_buffer_multibyte.
6544 (encode_coding_raw_text): Increment p0 in the loop.
6545
1f45f627 6546 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 6547
1f45f627 6548 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
6549 for the change of Fset_buffer_multibyte.
6550
6551 * fns.c (Fstring_to_multibyte): New function.
6552 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
6553
73acf815 65542008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6555
6556 * xfns.c (x_put_x_image): Declare args.
6557
1f45f627 6558 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
6559 (try_font_list): Declare an arg.
6560
6561 * xdisp.c (message2_nolog, set_message): Declare an arg.
6562
6563 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
6564
6565 * syntax.c (scan_sexps_forward): Declare an arg.
6566
6567 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
6568 Declare an arg.
6569
6570 * lisp.h (Fnew_fontset): Declare.
6571
6572 * keymap.c (push_key_description): Call CHARACTERP correctly.
6573
1f45f627 6574 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
6575 (face_for_char): Delete unused vars.
6576 (Fset_fontset_font): Doc fix. Delete unused vars.
6577
6578 * doc.c (Fsubstitute_command_keys): Delete unused vars.
6579
6580 * composite.c (update_compositions): Declare arg.
6581
6582 * cm.c (calccost, cmgoto): Declare args.
6583
6584 * charset.c: Remove `emacs' conditional. Doc fixes.
6585 (map_char_table_for_charset): Declare.
6586
1f45f627 6587 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 6588
1f45f627 6589 * ccl.c: Remove `emacs' conditional.
aca7a3d2 6590
73acf815 65912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6592
6593 The following changes are to allow specifying multiple font
6594 patterns for a character range (specified by script or charset).
6595
6596 * Makefile.in (abbrev.o): Depend on syntax.h.
6597 (xfaces.o): Depend on charset.h.
6598
6599 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
6600 SINGLE_BYTE_CHAR_P.
6601
6602 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
6603
6604 * character.h (Vchar_script_table): Extern it.
6605
1f45f627 6606 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
6607 (Vchar_script_table, Qchar_script_table): New variable.
6608 (syms_of_character): Declare Vchar_script_table as a lisp variable
6609 and initialize it.
6610
1f45f627 6611 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
6612 have property char-table-extra-slots, make no extra slot.
6613
1f45f627 6614 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
6615 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
6616 SINGLE_BYTE_CHAR_P.
1f45f627
GM
6617 (choose_face_font, lookup_non_ascii_face, font_name_registry):
6618 Add prototypes.
6619 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
6620 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
6621
6622 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 6623 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
6624 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
6625
6626 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 6627 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
6628 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
6629 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
6630 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
6631 (fontset_ref_and_range, fontset_add, reorder_font_vector)
6632 (load_font_get_repertory): New functions.
1f45f627 6633 (fontset_set): Delete.
aca7a3d2 6634 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 6635 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
6636 (free_face_fontset): Use ASET istead of AREF (X) = Y.
6637 (face_for_char): Don't call lookup_face.
6638 (make_fontset_for_ascii_face): New arg FACE.
6639 (fs_load_font): New arg CHARSET_ID. Don't check
6640 Vfont_encoding_alist here.
6641 (find_font_encoding): New function.
6642 (list_fontsets): Use STRINGP, not ! NILP.
6643 (accumulate_script_ranges): New function.
6644 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
6645 re-written to handle new fontset structure.
6646 (Ffontset_font): Return a copy of element.
6647 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
6648 docstring of font-encoding-alist.
6649
6650 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
6651 (Fset_fotset_font): Fix arguments to 5.
6652
1f45f627 6653 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
6654
6655 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
6656 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 6657 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
6658 lookup_named_face.
6659
6660 * xfaces.c: Include charset.h.
1f45f627
GM
6661 (load_face_font): Delete argument C. Change caller.
6662 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
6663 (font_name_registry): New function.
6664 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 6665 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
6666 Lookup only ascii faces.
6667 (lookup_non_ascii_face): New function.
1f45f627
GM
6668 (lookup_named_face): Delete argument C. Change caller.
6669 (lookup_derived_face): Delete argument C. Change caller.
6670 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 6671 a string, just call font_list with it.
1f45f627
GM
6672 (choose_face_font): Delete arguments FACE and C. New arg
6673 FONT_SPEC. Change caller.
4c4475a8
GM
6674 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
6675 Change caller.
aca7a3d2
MB
6676 (realize_non_ascii_face): New function.
6677 (realize_x_face): Call load_face_font here.
1f45f627 6678 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
6679 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
6680 get a face ID.
6681 (dump_realized_face): Don't print charset of FACE.
6682
6683 * xfns.c (x_set_font): Always call x_new_fontset and
6684 store_frame_parameter.
6685 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 6686 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
6687
6688 * xterm.h (x_get_font_repertory): Extern it.
6689
6690 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
6691 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
6692 it->multibyte_p is zero.
6693 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
6694 (x_new_fontset): If FONTSETNAME doesn't match any existing
6695 fontsets, create a new one.
6696 (x_get_font_repertory): New function.
6697
73acf815 66982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6699
6700 * coding.c (Ffind_coding_systems_region_internal): Detect an
6701 ASCII only string correctly.
6702
6703 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
6704 version is 0.
6705
73acf815 67062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6707
6708 * lread.c: Include "coding.h".
1f45f627
GM
6709 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
6710 (load_each_byte, unread_char): New variables.
6711 (readchar_backlog): Delete.
aca7a3d2
MB
6712 (readchar): Return a character unless load_each_byte is nonzero.
6713 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
6714 cons. If unread_char is not -1, simply return it.
6715 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
6716 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
6717 (read_multibyte): Delete.
aca7a3d2
MB
6718 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
6719 (read_emacs_mule_char): New functions.
6720 (Fload): Even if the file doesn't have the extention ".elc", if
6721 safe_to_load_p returns a positive version number, assume that the
6722 file contains bytecompiled code. If the version is less than 22,
6723 load the file while decoding multibyte sequences by emacs-mule.
6724 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
6725 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
6726 (Fread_from_string): Pay attention to the case that STREAM is a cons.
6727 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
6728 (read1): Set load_each_byte to 1 temporarily while handling
6729 #@NUMBER. Don't call read_multibyte.
6730 (read_vector): Call Fread with a cons. If readcharfun is
6731 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 6732 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
6733 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
6734 and Qload_force_doc_strings.
6735
73acf815 67362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6737
6738 * xdisp.c (face_before_or_after_it_pos): Call
6739 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
6740
73acf815 67412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6742
6743 * character.h (TRAILING_CODE_P): New macro.
1f45f627 6744 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
6745 (string_char_with_unification): Fix prototype.
6746 (Vscript_alist): Extern it.
6747
6748 * character.c (Vscript_alist): New variable.
4c4475a8
GM
6749 (string_char_with_unification, str_as_unibyte)
6750 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
6751 (syms_of_character): Declare script-alist as a Lisp variable.
6752
6753 * charset.h (Vcharset_ordered_list): Extern it.
6754 (charset_ordered_list_tick): Extern it.
6755 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
6756 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
6757 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
6758 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros
1f45f627 6759 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
6760
6761 * charset.c (charset_ordered_list_tick): New variable.
6762 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
6763 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6764 deunify intead of unify a charset.
6765 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
6766 (find_charsets_in_text): Add `const' to arguemnts and local variables.
6767 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
6768 detecting of invalid code.
6769 (Fset_charset_priority): Increment charset_ordered_list_tick.
6770 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
6771 and TO_CODE.
6772
6773 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
6774 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
6775 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
6776 (decode_coding_ccl, consume_chars)
6777 (Ffind_coding_systems_region_internal)
6778 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
6779
6780 * print.c (print_object): Use octal form for printing the
6781 contents of a bool vector.
6782
73acf815 67832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6784
6785 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
6786 <version == 20>: Refuse to load.
6787
73acf815 67882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6789
6790 * fns.c: Move coding.h.
6791 (Qcodeset, Qdays, Qmonths): New.
6792 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 6793 (Flocale_codeset): Delete.
aca7a3d2 6794 (Flanginfo): New function.
1f45f627 6795 (syms_of_fns): Change accordingly.
aca7a3d2
MB
6796
6797 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
6798
73acf815 67992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6800
6801 * casetab.c (init_casetab_once, init_casetab_once): Fix
6802 CHAR_TABLE_SET call.
6803
6804 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
6805
6806 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
6807
6808 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
6809 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
6810 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
6811
6812 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
6813
6814 * coding.c (ENCODE_DESIGNATION, decode_eol)
6815 (make_conversion_work_buffer, code_conversion_restore)
6816 (Fdefine_coding_system_internal): Convert Lisp types.
6817 (code_conversion_restore): Use EQ, not ==.
6818 (Fencode_coding_string): Fix code_convert_string call.
6819
6820 * coding.h (code_convert_region): Fix prototype.
6821
1f45f627 6822 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
6823
6824 * fontset.c (fontset_ref, fontset_set, fs_load_font)
6825 (Ffontset_info): Convert Lisp types.
6826
6827 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
6828
6829 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
6830
6831 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
6832
6833 * chartab.c: Include "...h", not <...h> in some cases.
6834
6835 * callproc.c (Fcall_process): Remove unused variables.
6836
73acf815 68372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6838
6839 * coding.c (Fset_coding_system_priority): Allow null arg list.
6840
73acf815 68412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6842
6843 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6844 (Fself_insert_and_exit): Use CHARACTERP.
6845
6846 * callproc.c (Fcall_process): Remove unused vars.
6847
6848 * xterm.c (XTread_socket): Add extra dead keysyms.
6849
6850 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
6851
6852 * dispextern.h: Remove prototypes for redraw_frame,
6853 redraw_garbaged_frames.
6854
6855 * cmds.c (Fself_insert_command): Use CHARACTERP.
6856
6857 * chartab.c (make_sub_char_table): Remove unused var.
6858 (Fset_char_table_default, Fmap_char_table): Doc fix.
6859
6860 * keymap.c (access_keymap): Remove generic char code.
6861 (push_key_description): Use CHARACTERP.
6862
73acf815 68632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6864
6865 * charset.c: Doc fixes.
6866 (Funify_charset): Extra checking.
6867
73acf815 68682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6869
6870 * lread.c: Remove some unused variables.
6871 (safe_to_load_p): If safe, return the magic number version byte.
6872 (Fload): Maybe use load-with-code-conversion.
6873
73acf815 68742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6875
6876 * category.c (Fmodify_category_entry): Don't modify the contents
6877 of category_set for characters out of the range. Avoid
6878 unnecessary modification.
6879
1f45f627 6880 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
6881 Vchar_unify_table. The default value of the table is now nil.
6882
6883 * character.c (syms_of_character): Setup Vchar_width_table for
6884 eight-bit-control and raw-byte chars.
6885
6886 * charset.h (enum define_charset_arg_index): Delete
6887 charset_arg_parents and add charset_arg_subset and
6888 charset_arg_superset.
6889 (enum charset_attr_index): Delete charset_parents and add
6890 charset_subset and charset_superset.
6891 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
6892 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 6893 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
6894 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
6895 (CHARSET_SUPERSET): New macros.
6896 (charset_work): Extern it.
6897 (ENCODE_CHAR): Use charset_work.
1f45f627 6898 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
6899 (map_charset_chars): Extern it.
6900
6901 * charset.c (load_charset_map): Set the default value of encoder
6902 and deunifier char-tables to nil.
1f45f627 6903 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
6904 map_char_table_for_charset instead of map_char_table.
6905 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 6906 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
6907 `define-charset' (:parents -> :subset or :superset).
6908 (charset_work): New variable.
4c4475a8
GM
6909 (encode_char, syms_of_charset): Adjust for the change of
6910 Fdefine_charset_internal.
aca7a3d2
MB
6911 (Ffind_charset_string): Setup the vector `charsets' correctly.
6912
1f45f627 6913 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 6914 the previous change.
1f45f627 6915 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
6916 (map_sub_char_table_for_charset): New function.
6917 (map_char_table_for_charset): New function.
6918
6919 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 6920 (describe_char_table): Delete.
aca7a3d2 6921
1f45f627 6922 * lisp.h (map_charset_chars): Delete.
aca7a3d2 6923
73acf815 69242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6925
6926 * fns.c (count_combining): Comment out (unused).
6927 (Flocale_codeset): New.
6928 (syms_of_fns): Defsubr it.
6929
6930 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 6931 (size_t): Remove.
aca7a3d2 6932
73acf815 69332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6934
6f69e89b 6935 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 6936
73acf815 69372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6938
6939 * character.c (syms_of_character): Set the default value of
6940 Vprintable_chars to Qnil.
6941
73acf815 69422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6943
6944 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
6945
73acf815 69462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6947
6948 * charset.c (load_charset_map): Handle the case that from < to
6949 correctly.
6950
4c4475a8
GM
6951 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
6952 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
6953 Pay attention to raw-8-bit chars.
aca7a3d2 6954
73acf815 69552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6956
4c4475a8
GM
6957 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
6958 It is not bytecompiled now.
aca7a3d2
MB
6959
6960 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
6961 (charset_jisx0208): New variables.
6962 (Fdefine_charset_internal): Setup them if appropriate.
6963 (init_charset_once): Initialize them to -1.
6964
1f45f627
GM
6965 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
6966 (charset_jisx0208): Extern them.
aca7a3d2
MB
6967
6968 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
6969 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
6970 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
6971 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
6972 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
6973 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
6974 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
6975 (encode_coding_iso_2022): Change the 1st arg to
6976 ENCODE_ISO_CHARACTER to a variable.
6977
73acf815 69782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6979
6980 * charset.h (enum define_charset_arg_index): New enums
6981 charset_arg_min_code and charset_arg_max_code.
6982 (struct charset): New member char_index_offset.
6983
4c4475a8
GM
6984 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
6985 Take charset->char_index_offset into account.
aca7a3d2
MB
6986 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
6987 args[charset_arg_max_code]. Setup charset.char_index_offset.
6988 (syms_of_charset): Fix args to Fdefine_charset_internal.
6989
73acf815 69902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6991
6992 * coding.c (decode_coding_utf_8): Reject overlong sequences.
6993
73acf815 69942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6995
6996 * coding.c: Doc fixes.
6997 (Fcoding_system_aliases): Fix return value.
6998 (Qmac): Remove (duplicated) definition.
6999
73acf815 70002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7001
7002 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7003 functions.
7004
7005 * character.c (Fstring): Doc fix.
7006
7007 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7008
7009 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7010 ids.
7011 (font-encoding-alist): Doc fix.
7012
73acf815 70132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7014
7015 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7016 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7017
7018 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7019 for K&R.
7020
7021 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7022
7023 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7024 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7025
1f45f627 7026 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7027
7028 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7029
73acf815 70302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7031
7032 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7033
1f45f627 7034 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7035
2a2e8de7 70362008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7037
7038 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7039
1f45f627 7040 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7041
73acf815 70422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7043
4c4475a8 7044 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7045 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7046
73acf815 70472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7048
1f45f627 7049 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7050 Fdefine_coding_system_internal.
7051 (Fdefine_coding_system_internal): For a coding system of
7052 `charset' type, store a list of charset IDs in
7053 `charset_attr_charset_valids' element of coding attributes.
7054
73acf815 70552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7056
7057 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7058 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7059 caller. Handle 2-byte and 3-byte charsets correctly.
7060 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7061 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7062 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7063 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7064 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7065 sequence.
7066 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7067 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7068 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7069 and alt&rule composition.
7070 (decode_coding_iso_2022): Handle composition correctly.
7071 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7072
7073 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7074 re-defining a charset. If the charset has :emacs-mule-id, setup
7075 emacs_mule_bytes.
1f45f627 7076 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7077
73acf815 70782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7079
4c4475a8
GM
7080 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7081 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7082 encoding, produce a character specified by
7083 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7084
73acf815 70852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7086
7087 * xterm.c (XSetIMValues): Declare.
7088
7089 * process.c: Conditionally include sys/wait.h, pty.h.
7090
1f45f627 7091 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7092
1f45f627 7093 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7094
7095 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7096
7097 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7098 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7099 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7100 variables.
7101
7102 * character.h (string_escape_byte8): Declare.
7103
7104 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7105 unused vars.
7106 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7107 (Fmap_charset_chars): Doc fix.
7108
1f45f627 7109 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7110 (Fset_coding_system_priority, Fset_coding_system_priority)
7111 (Fdefine_coding_system_internal): Doc fix.
7112
73acf815 71132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7114
7115 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
7116
73acf815 71172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7118
7119 * character.c (string_escape_byte8): Make multibyte string with
7120 correct size.
7121
7122 * charset.c (Fmake_char): Delete unnecessary code.
7123
73acf815 71242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7125
7126 * xfns.c (x_encode_text): Allocate coding.destination here, and
7127 call encode_coding_object with dst_object Qnil.
7128
7129 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
7130 multibyte form correctly.
7131
7132 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
7133 against Vfont_encoding_alist.
7134
7135 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
7136 handling of charset list.
7137 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
7138 (decode_coding_object): Move point to coding->dst_pos before
7139 calling post-read-conversion function.
7140 (encode_coding_object): Give correct arguments to
7141 pre-write-conversion. Ignore the return value of
7142 pre-write-conversion function. Pay attention to the case that
7143 pre-write-conversion changes the current buffer. If dst_object is
7144 Qt, even if coding->src_bytes is zero, allocate at least one byte
7145 to coding->destination.
7146
7147 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
7148
7149 * charset.c (Fmake_char): Make it more backward compatible.
7150 (Fmap_charset_chars): Fix docstring.
7151
73acf815 71522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7153
7154 * coding.c: Doc fixes.
7155 (Fdefine_coding_system_alias): Use names, not symbols, in
7156 coding-system-alist.
7157
73acf815 71582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7159
7160 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
7161 of calling free_realized_face.
7162
2a2e8de7 71632008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 7164
1f45f627
GM
7165 * charset.c (read_hex): Don't treat SPC as a comment starter.
7166 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
7167 (Fdecode_char): Fix typo.
7168
73acf815 71692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7170
7171 * charset.h (struct charset): New member `code_space_mask'.
7172
1f45f627 7173 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
7174 (encode_coding_charset, Fdefine_coding_system_internal):
7175 Delete the local variable charset.
aca7a3d2
MB
7176 (Fdefine_coding_system_internal): Setup
7177 attrs[coding_attr_charset_valids] correctly.
7178
7179 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
7180 member to check if CODE is valid or not.
7181 (Fdefine_charset_internal): Initialize `code_space_mask' member.
7182 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
7183 is within the range of charset->min_code and carset->max_code.
7184
73acf815 71852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7186
7187 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
7188
7189 * dispextern.h (generate_ascii_font): Fix return type.
7190
7191 * xfaces.c (generate_ascii_font): Fix arg declaration.
7192
7193 * coding.c (coding_inherit_eol_type)
7194 (Fset_terminal_coding_system_internal)
7195 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
7196
73acf815 71972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7198
7199 * coding.c (decode_coding_charset, encode_coding_charset): Handle
7200 multiple charsets correctly.
7201
73acf815 72022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7203
7204 * search.c (boyer_moore): Fix handling of mulitbyte character
7205 translation.
7206
7207 * xdisp.c (display_mode_element): When the variable `elt' is
7208 changed, update `this' and `lisp_string'.
7209
73acf815 72102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7211
7212 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
7213
7214 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 7215 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
7216
7217 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
7218 (load_charset_map): Rename from parse_charset_map. New args
7219 entries and n_entries. Change caller.
7220 (load_charset_map_from_file): Rename from load_charset_map.
7221 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
7222 the tail.
7223 (load_charset_map_from_vector): New function.
7224 (Fdefine_charset_internal): Setup charset.compact_codes_p.
7225 (encode_char): If the charset is compact, change a character index
7226 to a code point.
7227
7228 * coding.c (coding_alloc_by_making_gap): Check the case that the
7229 source and destination are the same correctly.
7230 (decode_coding_raw_text): Set coding->consumed_char and
7231 coding->consumed to 0.
7232 (produce_chars): If coding->chars_at_source is nonzero, update
7233 coding->consumed_char and coding->consumed before calling
7234 alloc_destination.
7235 (Fdefine_coding_system_alias): Register ALIAS in
7236 Vcoding_system_alist.
7237 (syms_of_coding): Define `no-convesion' coding system at the tail.
7238
7239 * fileio.c (Finsert_file_contents): Set coding_system instead of
7240 val. If the current buffer is multibyte, always call
7241 decode_coding_gap.
7242
7243 * xfaces.c (try_font_list): Give higher priority to fontset's
7244 family than face's family.
7245
73acf815 72462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7247
7248 * callproc.c (Fcall_process): Be sure to give the current buffer
7249 to decode_coding_c_string.
7250
7251 * xfaces.c (try_font_list): Give a family specified in a fontset
7252 higher priority than a family specified in a face.
7253
73acf815 72542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7255
7256 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
7257 Fix arguments to insert_from_buffer.
7258
7259 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
7260
73acf815 72612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7262
7263 * coding.c (produce_chars): Set the variable `multibytep' correctly.
7264 (decode_coding_gap): Set coding->dst_multibyte correctly.
7265
73acf815 72662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7267
7268 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 7269 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
7270 (encode_coding_utf_16): Substitute coding->default_char for
7271 non-Unicode characters.
7272 (decode_coding): Don't call record_insert here.
7273 (setup_coding_system): Initialize `surrogate' of
7274 coding->spec.utf_16 to 0.
7275 (EMIT_ONE_BYTE): Fix for multibyte case.
7276
7277 * insdel.c (insert_from_gap): Call record_insert.
7278
73acf815 72792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7280
7281 * casefiddle.c (casify_region): Fix multibyte case.
7282
7283 * character.c (c_string_width): Add return type `int'.
1f45f627 7284 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
7285
7286 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 7287 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
7288 (CHAR_STRING_ADVANCE): Make it do-while statement.
7289
1f45f627 7290 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
7291 DEPTH == 3. Add workaround code for a GCC optimization bug.
7292
7293 * charset.c (parse_charset_map): Remove an unused variable.
7294
7295 * coding.c: Delete unused variables.
7296
7297 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
7298 earlier. If inserted is zero and the coding system doesn't
7299 require flushing, don't call decode_coding_gap.
7300
7301 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
7302
73acf815 73032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7304
7305 The following changes are for using Unicode as an internal
7306 character model, and use UTF-8 format for buffer/string
7307 representation.
7308
1f45f627 7309 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
7310 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
7311
7312 * Makefile.in (obj): Add character.o and chartab.o.
7313 (lisp, shortlisp): Remove utf-8.elc:
7314 (*.o): For many files, change dependency on charset.h to
7315 character.h, and add dependency on character.h.
7316 (character.o, chartab.o): New targets.
7317
1f45f627
GM
7318 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
7319 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
7320 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
7321 of "charset.h".
7322
7323 * dired.c, filelock.c: Include "character.h".
7324
7325 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 7326 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7327 (syms_of_alloc): Remove defsubr for Smake_char_table.
7328
7329 * buffer.c: Include "character.h" instead of "charset.h", don't
7330 include "coding.h".
1f45f627 7331 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
7332
7333 * buffer.h: EXFUN Fbuffer_live_p.
7334
7335 * callproc.c: Include "character.h" instead of "charset.h".
7336 (Fcall_process): Big change for the new code-conversion APIs.
7337
7338 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 7339 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
7340 map_char_table spec.
7341 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
7342 accessing the char table structure.
7343
7344 * chartab.c: New file that implements char table.
7345
7346 * category.c: Include "character.h".
7347 (copy_category_entry): New function.
7348 (copy_category_table): Call map_char_table and copy_category_entry.
7349 (Fmake_category_table): Initialize all top-vel slots.
7350 (char_category_set): New function.
1f45f627 7351 (modify_lower_category_set): Delete.
aca7a3d2
MB
7352 (Fmodify_category_entry): Call char_table_ref_and_range.
7353
7354 * category.h (CATEGORY_SET): Just call char_category_set.
7355
7356 * ccl.c: Include "character.h".
7357 (Qccl, Qcclp): New variables.
7358 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
7359 it's less than 256.
1f45f627
GM
7360 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
7361 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 7362 and DST type.
1f45f627
GM
7363 (ccl_driver): Change types of argument, adjust code accordingly.
7364 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
7365 ccl_driver.
7366 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
7367
1f45f627
GM
7368 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
7369 New members src_multibyte, dst_multibyte, consumed, and produced.
7370 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 7371 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 7372 (ccl_driver): Update prototype.
aca7a3d2
MB
7373 (Qccl, Qcclp, Fccl_program_p): Extern them.
7374 (CHECK_CCL_PROGRAM): New macro.
7375
7376 * character.c, character.h, chartab.c: New files.
7377
1f45f627
GM
7378 * charset.c: Mostly re-written. Move character and multibyte sequence
7379 handling codes to character.c.
aca7a3d2 7380
1f45f627
GM
7381 * charset.h: Mostly re-written. Move character and multibyte sequence
7382 handling codes to character.h.
aca7a3d2
MB
7383
7384 * coding.c, coding.h: Mostly re-written.
7385
7386 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
7387 (CHAR_WIDTH): Move to character.h.
7388 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 7389
1f45f627
GM
7390 * composite.h (enum composition_method): Change order of enumeration
7391 symbols.
aca7a3d2
MB
7392
7393 * data.c: Include "character.h" instead of "charset.h".
7394 (Faref): Call CHAR_TABLE_REF for a char table.
7395 (Faset): Call CHAR_TABLE_SET for a char table.
7396
1f45f627
GM
7397 * dispextern.h (free_realized_face, check_face_attribytes)
7398 (generate_ascii_font): Extern them.
7399 (free_realized_multibyte_face): Delete extern.
aca7a3d2 7400
1f45f627 7401 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
7402 table structure.
7403
7404 * editfns.c: Include "character.h" instead of "charset.h".
7405 (Fchar_to_string): Always call CHAR_STRING.
7406
7407 * emacs.c (main): Call init_charset_once, init_charset,
7408 syms_of_chartab, and syms_of_character.
7409
7410 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 7411 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 7412 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 7413 (build_annotations_2): Delete.
aca7a3d2
MB
7414 (e_write): Big change for the new code-conversion API.
7415
7416 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 7417 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
7418 (Fcopy_sequence): Call copy_char_table for a char table.
7419 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
7420 (string_char_to_byte, string_byte_to_char): Adjust for the new
7421 multibyte form.
1f45f627
GM
7422 (internal_equal): Adjust for the change of char table structure.
7423 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
7424 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
7425 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
7426 (char_table_translate, optimize_sub_char_table)
7427 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 7428 chartab.c.
1f45f627
GM
7429 (char_table_ref_and_index): Delete.
7430 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 7431 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
7432 Vcoding_category_list. Adjust for the new code-conversion API.
7433 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
7434 chartab.c.
7435
7436 * fontset.c: Mostly re-written.
7437
1f45f627 7438 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 7439 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
7440 (fontset_font_pattern, fs_load_font): Update prototype.
7441 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
7442
7443 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 7444 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
7445
7446 * insdel.c: Include "character.h" instead of "charset.h".
7447 (copy_text): Don't refer to Vnonascii_translation_table.
7448 (insert_from_gap): New function.
7449
7450 * keyboard.c: Include "character.h" instead of "charset.h".
7451 (command_loop_1): Never call direct_output_forward_char before
7452 a non-ASCII character.
7453 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 7454 translate a character.
aca7a3d2
MB
7455
7456 * keymap.c: Include "character.h".
7457 (store_in_keymap): Handle the case that IDX is a cons.
7458 (Fdefine_key): Handle the case that KEY is a cons and the car part
7459 is also a cons (range).
1f45f627 7460 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
7461 (describe_vector): Call describe_char_table for a char table.
7462 (describe_char_table): New function.
7463
7464 * keymap.h (describe_char_table): Extern it.
7465
7466 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
7467 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
7468 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
7469 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
7470 Delete.
7471 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
7472 structure.
7473 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
7474 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
7475 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 7476 (chartab_size): Extern it.
1f45f627 7477 (struct Lisp_Char_Table): Re-design.
aca7a3d2 7478 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
7479 (HASH_KEY, HASH_VALUE): Move from fns.c.
7480 (CHARACTERBITS): Define as 22.
7481 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
7482 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
7483 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
7484 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
7485 (code_convert_string_norecord): Deleted extern.
7486 (init_character_once, syms_of_character, init_charset)
7487 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
7488
7489 * lread.c: Include "character.h".
7490 (read_multibyte): New arg NBYTES.
1f45f627
GM
7491 (read_escape): Change the meaning of returned *BYTEREP.
7492 (to_multibyte): Delete.
7493 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
7494
7495 * print.c: Include "character.h" instead of "charset.h".
7496 (print_string): Convert 8-bit raw bytes to octal form by
7497 string_escape_byte8.
1f45f627 7498 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
7499 raw bytes always in octal form. Handle sub char table correctly.
7500
7501 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
7502 (read_process_output, send_process): Adjust for the new
7503 code-conversion API.
aca7a3d2 7504
1f45f627 7505 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
7506
7507 * regex.c: Include "character.h" instead of "charset.h".
7508 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
7509 (regex_compile): Accept a range whose starting and ending
7510 character have different leading bytes.
1f45f627 7511 (analyse_first): Adjust for the above change.
aca7a3d2
MB
7512
7513 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
7514 (search_buffer, boyer_moore): Adjust for the new multibyte form.
7515 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
7516
7517 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 7518 (syntax_parent_lookup): Delete.
aca7a3d2 7519 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 7520 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
7521 (init_syntax_once): Call char_table_set_range instead of directly
7522 accessing the structure of a char table.
7523
7524 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 7525 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
7526 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
7527 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
7528
7529 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
7530 (encode_terminal_code, write_glyphs): Adjust for the new
7531 code-conversion API.
aca7a3d2
MB
7532 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
7533
1f45f627 7534 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
7535
7536 * xdisp.c: Include "character.h".
1f45f627
GM
7537 (get_next_display_element): Adjust for the new multibyte form.
7538 (disp_char_vector): Adjust for the new char table structure.
7539 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 7540 coding system.
1f45f627 7541 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
7542
7543 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 7544 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
7545 FS_LOAD_FONT.
7546 (generate_ascii_font): New function.
1f45f627
GM
7547 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
7548 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 7549 (free_realized_face): Make it public.
1f45f627 7550 (free_realized_faces_for_fontset): Rename from
aca7a3d2 7551 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 7552 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
7553 fontset_font_pattern and FS_LOAD_FONT.
7554
7555 * xfns.c: Include "character.h".
1f45f627 7556 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
7557
7558 * xselect.c: Don't include "charset.h".
1f45f627 7559 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
7560
7561 * xterm.c: Include "character.h".
1f45f627 7562 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
7563 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
7564 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
7565 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
7566 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
7567 (XTread_socket): Adjust for the new code-conversion API.
7568 (x_new_font): Adjust for the change of FS_LOAD_FONT.
7569 (x_load_font): Adjust for the change of struct font.
aca7a3d2 7570
d6abfc14
SM
75712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
7572
7573 * xfaces.c (face_at_buffer_position): Remove unused vars.
7574
0acdaf8d
KH
75752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7576
4c4475a8
GM
7577 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
7578 Fix overflow checking.
0acdaf8d 7579
6c8a0ebf
GM
75802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
7581
7582 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
7583 Cancel previous change.
7584
75852008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
7586
7587 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
7588 ccl->eight_bit_control. Fix check for buffer overflow.
7589 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
7590 (ccl_driver): Initialize extra_bytes to 0.
7591
a32aad64
KH
75922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
7593
7594 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
7595 return it ORed with ctrl_modifier.
7596
8b329dba
MB
75972008-01-29 Miles Bader <miles@gnu.org>
7598
7599 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
7600
548667aa
JR
76012008-01-28 Jason Rumney <jasonr@gnu.org>
7602
7603 * w32.c (stat): Don't double check for networked drive.
7604
0975aa24
SM
76052008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
7606
ef264c42
SM
7607 * window.c (run_window_configuration_change_hook): New function.
7608 Code extracted from set_window_buffer. Set the selected frame.
7609 (set_window_buffer): Use it.
7610 * window.h (run_window_configuration_change_hook): Declare.
7611 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
7612
0975aa24
SM
7613 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
7614
9c28b587
DN
76152008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
7616
7617 * Makefile.in: Remove references to unused macros.
7618
c617afce
EZ
76192008-01-26 Eli Zaretskii <eliz@gnu.org>
7620
7621 * w32.c (g_b_init_get_sid_sub_authority)
7622 (g_b_init_get_sid_sub_authority_count): New static variables.
7623 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
7624 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
7625 (init_user_info): Use them to retrieve uid and gid.
7626 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
7627 (fstat): Use pw_uid and pw_gid from the_passwd structure for
7628 st_uid and st_gid of the file.
c617afce 7629
302d7d54
JR
76302008-01-26 Jason Rumney <jasonr@gnu.org>
7631
7632 * w32.c (logon_network_drive): New function.
7633 (stat): Use it.
7634
3ac7a21e
CY
76352008-01-26 Chong Yidong <cyd@stupidchicken.com>
7636
7637 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
7638 invisible text covered with an ellipsis.
7639
bbb9fc1f
RS
76402008-01-25 Richard Stallman <rms@gnu.org>
7641
7642 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
7643 jump back to beginning. Move some other initializations after that.
7644 (Qwindow_text_change_functions, Vwindow_text_change_functions):
7645 New variables.
7646 (syms_of_xdisp): Init them.
7647
7648 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
7649
0975aa24
SM
7650 * buffer.c (reset_buffer_local_variables):
7651 Implement `permanent-local-hook'.
bbb9fc1f 7652 (Qpermanent_local_hook): New variable.
0975aa24 7653 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 7654
79235cbe
MA
76552008-01-25 Michael Albinus <michael.albinus@gmx.de>
7656
7657 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
7658
ccd8f7fe
TTN
76592008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
7660
7661 * fns.c (Fclrhash): Return TABLE.
7662
dfbe40f2 76632008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
7664
7665 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
7666 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
7667 is set even without positional changes.
7668 (x_scroll_bar_clear): Set bar->redraw_needed_p.
7669
7670 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
7671
dfbe40f2 76722008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 7673
d6169680
JR
7674 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
7675
602e142f
JR
7676 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
7677 the unicode range available in MULE by locale-coding-system.
c041e2d1 7678 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
7679 earlier.
7680
dfbe40f2 76812008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
7682
7683 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
7684 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 7685 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
7686 when used on child processes.
7687
8c7a4ac5
MA
76882008-01-21 Michael Albinus <michael.albinus@gmx.de>
7689
e0df1b73 7690 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 7691 Fdbus_method_return.
e0df1b73 7692 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 7693 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 7694 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 7695
8abe0f97
MR
76962008-01-20 Martin Rudalics <rudalics@gmx.at>
7697
7698 * undo.c (undo_inhibit_record_point): New variable.
7699 (syms_of_undo): Initialize it.
7700 (record_point): Don't record point when undo_inhibit_record_point
7701 is set.
7702
c3b232e4
SM
77032008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
7704
e69c4cae
SM
7705 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
7706
823e0ebb
SM
7707 * xdisp.c (Qauto_hscroll_mode): New var.
7708 (syms_of_xdisp): Initialize it.
7709 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
7710 window's buffer.
7711 (hscroll_windows): Don't check automatic_hscrolling_p here.
7712
c3b232e4
SM
7713 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
7714 vscroll if we're setting window-buffer to the value it already has.
7715
76ed5e01
DN
77162008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
7717
7718 * m/intel386.h: Remove references to XENIX.
7719
55e6d9b2
AS
77202008-01-17 Andreas Schwab <schwab@suse.de>
7721
7722 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
7723 instead of HAVE_X86_64_LIB64_DIR.
7724 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
7725
b16ed52d
GM
77262008-01-17 Glenn Morris <rgm@gnu.org>
7727
7728 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
7729 to HAVE_X86_64_LIB64_DIR.
7730
6bed5c4a
DN
77312008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
7732
7733 * s/irix3-3.h:
7734 * s/irix4-0.h:
7735 * s/386-ix.h:
7736 * s/domain.h:
7737 * s/hpux9-x11r4.h:
7738 * s/hpux9shxr4.h: Remove files for systems no longer supported.
7739
7740 * sysdep.c: Remove code containing references to symbols defined
7741 by unsupported systems.
7742
fdecf907
GM
77432008-01-16 Glenn Morris <rgm@gnu.org>
7744
7745 * coding.c (select-safe-coding-system-function): Doc fix.
7746
9292328f
GM
77472008-01-15 Glenn Morris <rgm@gnu.org>
7748
7749 * config.in: Revert 2008-01-13 change: this is a generated file.
7750
944df511
MO
77512008-01-13 Tom Tromey <tromey@redhat.com>
7752
7753 * lisp.h: Fix typo.
7754
8111ec05
DN
77552008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
7756
f40f5dc3
DN
7757 * m/sequent-ptx.h:
7758 * m/sequent.h:
7759 * s/ptx.h:
7760 * s/ptx4-2.h:
7761 * s/ptx4.h: Remove files for systems no longer supported.
7762
ce20b664 7763 * callproc.c (Fcall_process): Fix previous change.
8111ec05 7764
e39a993c
DN
77652008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
7766
052e457f 7767 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 7768
290afd83
JB
7769 * m/mips.h:
7770 * m/intel386.h:
e39a993c
DN
7771 * callproc.c:
7772 * config.in:
7773 * ecrt0.c:
7774 * emacs.c:
7775 * fileio.c:
7776 * frame.c:
7777 * getpagesize.h:
7778 * keyboard.c:
7779 * lread.c:
7780 * process.c:
7781 * puresize.h:
7782 * sysdep.c:
7783 * systty.h:
7784 * syswait.h:
7785 * unexec.c:
7786 * xdisp.c:
7787 * alloc.c: Remove code containing references to symbols defined by
7788 unsupported systems.
7789
81cd7687
KH
77902008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
7791
7792 * coding.c (detect_coding_mask): Fix previous change.
7793
218b3b76
KH
77942008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
7795
7796 * coding.c (detect_coding_iso2022): New arg
7797 latin_extra_code_state. Allow Latin extra codes only
7798 when *latin_extra_code_state is nonzero.
7799 (detect_coding_mask): If there is a NULL byte, detect the encoding
7800 as UTF-16 or binary. If Latin extra codes exist, detect the
7801 encoding as ISO-2022 only when there's no other proper encoding is
7802 found.
7803
59ce725a 78042008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 7805
59ce725a
MB
7806 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
7807 #ifdef MAC_OS.
048addec 7808
59ce725a 78092008-01-08 Richard Stallman <rms@gnu.org>
048addec 7810
59ce725a 7811 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 7812
8290574e
NR
78132008-01-06 Nick Roberts <nickrob@snap.net.nz>
7814
a0a3805c 7815 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
7816 menu bar in parentheses.
7817
f3041af1
DN
78182008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
7819
7820 * m/7300.h:
7821 * m/acorn.h:
7822 * m/alliant-2800.h:
7823 * m/alliant.h:
7824 * m/alliant1.h:
7825 * m/alliant4.h:
7826 * m/altos.h:
7827 * m/amdahl.h:
7828 * m/apollo.h:
7829 * m/att3b.h:
7830 * m/aviion-intel.h:
7831 * m/aviion.h:
7832 * m/celerity.h:
7833 * m/clipper.h:
7834 * m/cnvrgnt.h:
7835 * m/convex.h:
7836 * m/cydra5.h:
7837 * m/delta88k.h:
7838 * m/dpx2.h:
7839 * m/dual.h:
7840 * m/elxsi.h:
7841 * m/f301.h:
7842 * m/gould-np1.h:
7843 * m/gould.h:
7844 * m/i860.h:
7845 * m/ibmps2-aix.h:
7846 * m/ibmrt-aix.h:
7847 * m/ibmrt.h:
7848 * m/irist.h:
7849 * m/is386.h:
7850 * m/isi-ov.h:
7851 * m/mega68.h:
7852 * m/mg1.h:
7853 * m/news-r6.h:
7854 * m/news-risc.h:
7855 * m/news.h:
7856 * m/nh3000.h:
7857 * m/nh4000.h:
7858 * m/ns16000.h:
7859 * m/ns32000.h:
7860 * m/nu.h:
7861 * m/orion.h:
7862 * m/orion105.h:
7863 * m/paragon.h:
7864 * m/pfa50.h:
7865 * m/plexus.h:
7866 * m/pyramid.h:
7867 * m/pyrmips.h:
7868 * m/sh3el.h:
7869 * m/sps7.h:
7870 * m/sr2k.h:
7871 * m/stride.h:
7872 * m/sun1.h:
7873 * m/sun2.h:
7874 * m/sun3-68881.h:
7875 * m/sun3-fpa.h:
7876 * m/sun3-soft.h:
7877 * m/sun3.h:
7878 * m/sun386.h:
7879 * m/symmetry.h:
7880 * m/tad68k.h:
7881 * m/tahoe.h:
7882 * m/targon31.h:
7883 * m/tek4300.h:
7884 * m/tekxd88.h:
7885 * m/tower32.h:
7886 * m/tower32v3.h:
7887 * m/ustation.h:
7888 * m/wicat.h:
7889 * m/xps100.h:
7890 * s/cxux.h:
7891 * s/cxux7.h:
7892 * s/dgux.h:
7893 * s/dgux4.h:
7894 * s/dgux5-4-3.h:
7895 * s/dgux5-4r2.h:
7896 * s/esix.h:
7897 * s/esix5r4.h:
7898 * s/hiuxmpp.h:
7899 * s/hiuxwe2.h:
7900 * s/iris3-5.h:
7901 * s/iris3-6.h:
7902 * s/isc2-2.h:
7903 * s/isc3-0.h:
7904 * s/isc4-0.h:
7905 * s/isc4-1.h:
7906 * s/newsos5.h:
7907 * s/newsos6.h:
7908 * s/osf1.h:
7909 * s/osf5-0.h:
7910 * s/riscix1-1.h:
7911 * s/riscix12.h:
7912 * s/sco4.h:
7913 * s/sco5.h:
7914 * s/sunos4-0.h:
7915 * s/sunos4-1.h:
7916 * s/sunos413.h:
7917 * s/sunos4shr.h:
7918 * s/umax.h:
7919 * s/unipl5-2.h:
7920 * s/xenix.h:
7921 * cxux-crt0.s:
7922 * unexapollo.c:
7923 * unexconvex.c:
7924 * unexenix.c:
7925 * unexsni.c: Remove files for systems no longer supported.
7926
7927 * m/intel386.h: Remove references to unsupported systems.
7928
7929 * w32.c (get_emacs_configuration): Remove reference to i860.
7930
7931 * sysdep.c: Remove dead code.
7932
d35e1cd7
DN
79332008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
7934
7935 * s/rtu.h:
a0a3805c 7936 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 7937
abe136ee
MA
79382008-01-04 Michael Albinus <michael.albinus@gmx.de>
7939
7940 * dbusbind.c (Fdbus_method_return): New function.
7941 (xd_read_message): Add the serial number to the event.
7942 (Fdbus_register_method): Activate the function.
7943
87df3c32
SM
79442008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
7945
7946 * keyboard.c (read_key_sequence): Fix typo.
7947
5125905e
MA
79482008-01-03 Michael Albinus <michael.albinus@gmx.de>
7949
7950 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
7951 (xd_signature, xd_append_arg): Handle element type detection for
7952 empty arrays.
7953 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
7954 SDATA () calls; this must be solved more general.
7955 (Fdbus_register_signal): Use SBYTES instead of strlen.
7956
8bba1b5c
MH
79572008-01-03 Magnus Henoch <magnus@zemdatav>
7958
7959 * dbusbind.c (xd_append_arg): Use unsigned char instead of
7960 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 7961 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 7962
a0a3805c 79632007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
7964
7965 * dbusbind.c (xd_read_message): Use non-static input_event struct.
7966
a271e124
MH
79672007-12-31 Magnus Henoch <mange@freemail.hu>
7968
7969 * dbusbind.c (xd_signature): Signature of variant is just "v".
7970
17bc8f94
MA
79712007-12-30 Michael Albinus <michael.albinus@gmx.de>
7972
87df3c32
SM
7973 * dbusbind.c: Fix several errors and compiler warnings.
7974 Reported by Tom Tromey <tromey@redhat.com>
17bc8f94
MA
7975 (XD_ERROR, XD_DEBUG_MESSAGE)
7976 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
7977 (xd_append_arg): Part for basic D-Bus types rewitten.
7978 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
7979 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
7980 appropriate.
7981 (xd_read_message): Return Qnil. Don't signal an error; it is not
7982 useful during event reading.
7983 (Fdbus_register_signal): Signal an error if the check for
7984 FUNCTIONP fails.
7985 (Fdbus_register_method): New function. The implementation is not
7986 complete, the call of the function signals an error therefore.
7987 (Fdbus_unregister_object): New function, renamed from
7988 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 7989 the object is not well formed.
17bc8f94 7990
dd6f2802
RS
79912007-12-30 Richard Stallman <rms@gnu.org>
7992
7993 * textprop.c (get_char_property_and_overlay):
7994 Signal error if POSITION is out of range in a buffer.
7995
1da8a031
MR
79962007-12-29 Martin Rudalics <rudalics@gmx.at>
7997
7998 * w32fns.c (Fx_create_frame): Make copy of frame parameters
7999 because the original parameters are in pure storage now.
8000
5742be86
YM
80012007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8002
8003 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8004
b014713c
EZ
80052007-12-22 Eli Zaretskii <eliz@gnu.org>
8006
b17f53ab
MB
8007 * callint.c (syms_of_callint) <command-history>: Add reference to
8008 history-length in the doc string.
048addec 8009
b17f53ab 80102007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8011
b17f53ab
MB
8012 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8013 before passing as wParam.
048addec 8014
9af5078b
MA
80152007-12-22 Michael Albinus <michael.albinus@gmx.de>
8016
8017 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8018 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8019 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8020 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8021 as number.
8022 (Fdbus_call_method): Fix docstring.
8023
87cf1a39
MA
80242007-12-21 Michael Albinus <michael.albinus@gmx.de>
8025
8026 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8027 New macros.
87df3c32 8028 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8029 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8030 Simplify.
87cf1a39
MA
8031 (xd_signature): New function.
8032 (xd_append_arg): Compute also signatures. Major rewrite.
8033 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8034 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8035 Check for signatures of arguments.
87cf1a39 8036
54371585
MA
80372007-12-19 Michael Albinus <michael.albinus@gmx.de>
8038
8039 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8040 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8041 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8042 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8043 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8044 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8045 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8046 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8047 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8048 (xd_append_arg): New function.
8049 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8050
f5306ca3
MA
80512007-12-16 Michael Albinus <michael.albinus@gmx.de>
8052
8053 * dbusbind.c (top): Include <stdio.h>.
8054 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8055 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8056 (Fdbus_register_signal): Rename unique_name to uname.
8057 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8058 non-existing unique name. Fix typos in matching rule. Return an
8059 object which is useful in Fdbus_unregister_signal.
8060 (Fdbus_unregister_signal): Reimplementation, in order to remove
8061 only the corresponding entry.
8062 (Vdbus_registered_functions_table): Change the order of entries.
8063 Apply these changes in xd_read_message and Fdbus_register_signal.
8064
77a28bbf
AS
80652007-12-16 Andreas Schwab <schwab@suse.de>
8066
8067 * fileio.c (Finsert_file_contents): Fix overflow check to not
8068 depend on undefined integer overflow.
8069
2e3566d8
JR
80702007-12-14 Jason Rumney <jasonr@gnu.org>
8071
8072 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8073 for characters above 127.
8074
bf254037
JR
80752007-12-13 Jason Rumney <jasonr@gnu.org>
8076
8077 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8078 before dereferencing array.
8079 (lookup_vk_code): Remove zero comparison.
8080
eb7c7bf5
MA
80812007-12-14 Michael Albinus <michael.albinus@gmx.de>
8082
8083 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8084 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8085 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8086 (xd_read_message, Fdbus_register_signal): Split expressions into
8087 multiple lines before operators "&&" and "||", according to the
8088 GNU Coding Standards.
8089
34fb0fc9
EZ
80902007-12-14 Eli Zaretskii <eliz@gnu.org>
8091
8092 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8093
c7d97628
JL
80942007-12-12 Juri Linkov <juri@jurta.org>
8095
8096 * buffer.c (Frename_buffer): In interactive spec replace
8097 `read-buffer' with `read-string' that uses `buffer-name-history'
8098 as history, and the current buffer's name as default.
8099
3709505e
SM
81002007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8101
8102 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8103 manipulating the backtrace manually.
8104 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8105 (struct backtrace, backtrace_list): Remove.
8106 (command_loop_1): Remove dead var `no_direct'.
8107
8108 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8109 preserve non-built-in buffer-local variables.
8110 (Fkill_all_local_variables): Don't re-create&re-set permanent
8111 buffer-local variables.
8112
e2bec886
JL
81132007-12-09 Juri Linkov <juri@jurta.org>
8114
8115 * buffer.c (Frename_buffer): Change interactive spec from "s" to
8116 Lisp code that uses `read-buffer' with current buffer as default.
8117
a31d47c7
MA
81182007-12-08 Michael Albinus <michael.albinus@gmx.de>
8119
8120 * dbusbind.c (xd_read_message): Generate an event for every
8121 registered handler. There might be several handlers registered
8122 for the same signal.
8123 (Fdbus_register_signal): Don't overwrite a registration for the
8124 same signal. Add a new registration if handlers are different.
8125 (Vdbus_registered_functions_table): Rework doc string.
8126
52da95fa
MA
81272007-12-07 Michael Albinus <michael.albinus@gmx.de>
8128
8129 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
8130 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
8131 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
8132 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
8133 Unify argument lists.
a0a3805c 8134 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
8135 arguments and hash table keys. Use unique name for service.
8136 (Fdbus_unregister_signal): Remove checks.
8137 (Vdbus_registered_functions_table): Fix doc string.
8138
e5e76c04 81392007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
8140
8141 * process.c (make_process): Initialize pty_flag to 0.
8142
e5e76c04 81432007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
8144
8145 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
8146 specified XBMs.
8147
e5e76c04 81482007-12-05 Richard Stallman <rms@gnu.org>
048addec 8149
e5e76c04 8150 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 8151
e5e76c04 81522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8153
e5e76c04
MB
8154 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
8155 New variable.
8156 (mac_try_close_socket) [MAC_OSX]: New function.
8157 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
8158 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 8159
e5e76c04
MB
8160 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
8161 Use mac_try_close_socket.
048addec 8162
e5e76c04 81632007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8164
e5e76c04
MB
8165 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
8166 reloc_base.
8167 (copy_dysymtab): Compute relocation base here.
8168 (rebase_reloc_address) [__ppc64__]: New function.
8169 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
8170 changed.
048addec 8171
e5e76c04 81722007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 8173
e5e76c04 8174 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 8175
e5e76c04 81762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 8177
e5e76c04
MB
8178 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
8179 __objc_* sections.
8180 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 8181
96faeb40
MA
81822007-12-05 Michael Albinus <michael.albinus@gmx.de>
8183
8184 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
8185 Move check for Vdbus_registered_functions_table to
8186 xd_read_queued_messages.
8187 (xd_read_queued_messages): Protect xd_read_message calls by
8188 internal_condition_case_1.
8189
39abdd4a
MA
81902007-12-04 Michael Albinus <michael.albinus@gmx.de>
8191
87df3c32 8192 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 8193 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 8194 (Vdbus_intern_symbols): Remove.
39abdd4a 8195 (Vdbus_registered_functions_table): New hash table.
87df3c32 8196 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 8197 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 8198 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
8199 Vdbus_registered_functions_table.
8200
880820fe 82012007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
8202
8203 * xterm.c: Update URL to Window Manager Specification in comment.
8204
033b73e2
MA
82052007-12-02 Michael Albinus <michael.albinus@gmx.de>
8206
8207 * config.in (HAVE_DBUS): Add.
8208
a0a3805c 8209 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
8210 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
8211 (obj): Add $(DBUS_OBJ).
8212 (LIBES): Add $(DBUS_LIBS).
8213 (dbusbind.o): New target.
8214
8215 * dbusbind.c: New file.
8216
8217 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
8218
8219 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 8220 (Qdbus_event): New Lisp symbol.
033b73e2 8221 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 8222 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
8223 (keys_of_keyboard ): Define dbus-event.
8224
8225 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
8226
39d0bf74
RS
82272007-12-01 Richard Stallman <rms@gnu.org>
8228
8229 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
8230
f3157c65
JR
82312007-11-30 Jason Rumney <jasonr@gnu.org>
8232
8233 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
8234 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
8235 (w32_face_attributes): Don't use color indexes that are out of range.
8236 Only reverse the default colors.
f3157c65
JR
8237
8238 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
8239 WINDOWSNT.
8240
8241 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
8242
b510360c
JR
82432007-11-29 Jason Rumney <jasonr@gnu.org>
8244
8245 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
8246 (w32_face_attributes): Use Vtty_defined_color_alist to determine
8247 if the terminal colors are initialized.
8248 (unspecified_fg, unspecified_bg): Remove unused declarations.
8249
4b7ab1c4
AS
82502007-11-29 Andreas Schwab <schwab@suse.de>
8251
8252 * keyboard.c (apply_modifiers): Fix typo.
8253
4bb6c266
RS
82542007-11-29 Richard Stallman <rms@gnu.org>
8255
8256 * keymap.c (Fcurrent_local_map): Doc fix.
8257
aa44cd84
GM
82582007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
8259
8260 * s/gnu-kfreebsd.h: New file.
8261
21ec2c43
SM
82622007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
8263
cc648cef
SM
8264 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
8265 Don't cast redundantly.
8266
21ec2c43
SM
8267 * keyboard.c (KEY_TO_CHAR): New macro.
8268 (parse_modifiers, apply_modifiers): Accept integer arguments.
8269 (read_key_sequence): Use them to unify the "shift->unshift" mapping
8270 for chars and symbol keys.
8271 After doing such remapping, apply function-key-map again.
8272
73e72da4
DN
82732007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
8274
8275 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
8276 compiled anymore.
8277
254693ff
AS
82782007-11-26 Andreas Schwab <schwab@suse.de>
8279
8280 * process.c (list_processes_1): Fix indentation level of the
8281 command column.
8282
ff6e6ac8
AS
82832007-11-23 Andreas Schwab <schwab@suse.de>
8284
8285 * editfns.c (Fformat): Handle %c specially since it requires the
8286 argument to be of type int.
8287
f7cf8b20
SM
82882007-11-23 Markus Triska <markus.triska@gmx.at>
8289
8290 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 8291 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 8292
569c11e3
SM
82932007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8787dd73
SM
8295 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
8296 (find_symbol_value): Use do_symval_forwarding.
8297
569c11e3
SM
8298 * data.c (set_internal): Set the value in the `cons-cell' (for
8299 Buffer_Local_values) not only for frame-local variables.
8300
6af1696d
AS
83012007-11-22 Andreas Schwab <schwab@suse.de>
8302
8303 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
8304 values to sprintf.
8305 * keymap.c (Fsingle_key_description): Likewise.
8306 * print.c (print_object): Likewise.
8307
880820fe 83082007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
8309
8310 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
8311 file for image is nil.
8312
7c401d15
DN
83132007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
8314
8315 * term.c: Include stdarg.h.
569c11e3 8316 (fatal): Implement using varargs.
a0a3805c 8317 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 8318
64e16c3c
SM
83192007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8320
8321 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
8322 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
8323 Update call to buffer_slot_type_mismatch.
8324 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
8325 (buffer_slot_type_mismatch): Update.
8326 * buffer.c (buffer_local_types): Remove.
8327 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
8328 (defvar_per_buffer): Set the type in the buffer_objfwd.
8329
d4aa48db 83302007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 8331
64e16c3c
SM
8332 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
8333 CreateFileMapping returns NULL on failure.
5f42a7eb 8334
d4aa48db 83352007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 8336
d4aa48db
MB
8337 * search.c (Fset_match_data): Remove the `evaporate' feature.
8338 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 8339
bdae0540
JR
83402007-11-21 Jason Rumney <jasonr@gnu.org>
8341
8342 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
8343
8344 * w32console.c (w32con_write_glyphs): Remove unused variables.
8345
202c09a8
DN
83462007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
8347
b951420f
DN
8348 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
8349
202c09a8
DN
8350 * s/darwin.h (MULTI_KBOARD): Remove.
8351
8352 * macfns.c (x_create_tip_frame, Fx_create_frame)
8353 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
8354
bae72c12
SM
83552007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
8356
e7c10f83
SM
8357 * buffer.c (Fbuffer_local_value): Remove redundant test.
8358 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
8359 than in `current-buffer' to match the comment.
8360 Do the swap using swap_in_global_binding.
8361
136eb6ed
SM
8362 * data.c (store_symval_forwarding, set_internal):
8363 * eval.c (specbind): Remove dead code.
8364
bae72c12
SM
8365 * coding.c (detect_coding, Fupdate_coding_systems_internal):
8366 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
8367 Since we do not want to see internal Lisp_*fwd objects here.
8368
880820fe 83692007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 8370
3d66b985
JD
8371 * sysdep.c (init_system_name): Use getaddrinfo if available.
8372
95fbaefc
JD
8373 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
8374 (x_scroll_bar_note_movement): start, end, with, height in struct
8375 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
8376
6c1d8cb6
DN
83772007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
8378
8379 * puresize.h (BASE_PURESIZE): Increase to 1190000.
8380
30f95089
SM
83812007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
8382
66b04bd4
SM
8383 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
8384 This undoes Richard's change of 14-Oct-2002.
8385
6d3f2bb2
SM
8386 * alloc.c (allocate_other_vector):
8387 * lisp.h (allocate_other_vector): Remove.
8388
b05b4e27
SM
8389 * window.c (struct save_window_data): Move non-lisp data to the end
8390 and make it `int' rather than Lisp_Object.
8391 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
8392 Done wrap/unwrap integer values.
8393 (Fset_window_configuration, compare_window_configurations):
8394 Update use of fields to their new types.
8395
056ce195
SM
8396 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
8397 Turn integer fields into `int'. Merge x_window_low and x_window_high.
8398 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
8399 (SET_SCROLL_BAR_X_WINDOW): Remove.
8400 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
8401 Access the new x_window field directly.
8402 * xterm.c (x_scroll_bar_create): Use a pseudovector.
8403 Don't wrap/unwrap integers into Lisp_Objects.
8404 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
8405 (x_scroll_bar_report_motion):
8406 Don't wrap/unwrap integers into Lisp_Objects.
8407 (x_term_init): Use SDATA.
8408 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
8409 (x_scroll_bar_set_handle, x_scroll_bar_remove)
8410 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
8411 (x_scroll_bar_report_motion, x_scroll_bar_clear):
8412 * xfns.c (x_set_background_color):
8413 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
8414 Access the new x_window field directly.
8415
30f95089
SM
8416 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
8417 (allocate_pseudovector): Make non-static.
6d3f2bb2 8418
30f95089
SM
8419 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
8420 (allocate_pseudovector): Declare.
6f69e89b 8421 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 8422
9b6112e8
AS
84232007-11-15 Andreas Schwab <schwab@suse.de>
8424
30f95089
SM
8425 * editfns.c (Fformat): Correctly format EMACS_INT values.
8426 Also take precision into account when formatting an integer.
0f860bd7 8427
9b6112e8
AS
8428 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
8429
262fcd41
SM
84302007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
8431
58da34c7
SM
8432 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
8433 (syms_of_keyboard): Defsubr it.
8434
262fcd41
SM
8435 * data.c (swap_in_global_binding): Fix longstanding bug where
8436 store_symval_forwarding was not called with the right second argument,
8437 thus causing objfwd-ing from being dropped.
8438
d29a9848
JB
84392007-11-14 Juanma Barranquero <lekktu@gmail.com>
8440
8441 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
8442 (Fx_display_pixel_height, Fx_display_planes)
8443 (Fx_display_color_cells, Fx_server_max_request_size)
8444 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
8445 (Fx_display_visual_class, Fx_display_save_under):
8446 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
8447 (Fx_display_pixel_height, Fx_display_planes)
8448 (Fx_display_color_cells, Fx_server_max_request_size)
8449 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8450 (Fx_display_mm_height, Fx_display_mm_width)
8451 (Fx_display_backing_store, Fx_display_visual_class)
8452 (Fw32_select_font, Fx_display_save_under):
8453 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
8454 (Fx_display_pixel_height, Fx_display_planes)
8455 (Fx_display_color_cells, Fx_server_max_request_size)
8456 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
8457 (Fx_display_save_under): Fix typos in docstrings.
8458
74084731
JB
84592007-11-14 Juanma Barranquero <lekktu@gmail.com>
8460
8461 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
8462 corresponding to deleted entries; they are an implementation detail.
8463 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
8464 Remove variables.
8465 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
8466 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
8467 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
8468 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
8469 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 8470 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 8471 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
8472 Fix typos in docstrings.
8473 (Fx_server_version): Reflow docstring.
8474 (Fw32_shell_execute): Doc fixes.
74084731 8475
fb053a1f
JB
84762007-11-13 Juanma Barranquero <lekktu@gmail.com>
8477
8478 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
8479 if w32_parse_hot_key returned nil.
8480
a457417e 84812007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 8482
a457417e 8483 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 8484
4b219faa
JR
84852007-11-09 Jason Rumney <jasonr@gnu.org>
8486
8487 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
8488
8489 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
8490
8491 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
8492 Remove W32_SCROLL_BAR_CLICK_EVENT.
8493
8494 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
8495 Add MULTIMEDIA_KEY_EVENT.
8496
8497 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
8498 (lispy_multimedia_keys) [WINDOWSNT]: New array.
8499 (make_lispy_event) [WINDOWSNT]: Use it to translate
8500 MULTIMEDIA_KEY_EVENT.
8501
8502 * w32term.h (WM_APPCOMMAND): Define if not already.
8503 (GET_APPCOMMAND_LPARAM): Likewise.
8504
8505 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
8506 WM_APPCOMMAND.
8507
8508 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
8509 (syms_of_w32fns): Export and initialize it.
8510 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
8511
c12ecb0a 85122007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
8513
8514 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
8515 twice.
8516
8517 * xdisp.c (handle_face_prop): Fix last change.
8518
c12ecb0a 85192007-11-09 Richard Stallman <rms@gnu.org>
048addec 8520
c12ecb0a
MB
8521 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
8522 not just for after-strings and before-strings.
8523 Call face_for_overlay_string and pass the overlay to it.
8524 (handle_display_prop): Determine whether property came from an overlay.
8525 Pass OVERLAY arg to handle_single_display_spec.
8526 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
8527 (load_overlay_strings): Fill in it->string_overlays.
8528 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 8529
c12ecb0a
MB
8530 * xfaces.c (face_for_overlay_string): Function renamed from
8531 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 8532
c12ecb0a
MB
8533 * dispextern.h (struct it): New elt string_overlays.
8534 New elt from_overlay, also in stack.
8535 Rearrange a few elements.
8536 (face_for_overlay_string): Decl renamed from
8537 face_at_buffer_position_no_overlays, and add argument.
15fff01d 8538
c12ecb0a 85392007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 8540
c12ecb0a
MB
8541 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
8542 to get the base face for an overlay string.
0d8466cc 8543
c12ecb0a 8544 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 8545
c12ecb0a 8546 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 8547
c12ecb0a 8548 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 8549
c12ecb0a 85502007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 8551
c12ecb0a
MB
8552 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
8553 Fix conversion from Lisp object to ATSUFontID.
07025a55 8554
c12ecb0a 85552007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 8556
c12ecb0a 8557 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 8558
c12ecb0a 85592007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 8560
c12ecb0a
MB
8561 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
8562 Don't assume regions are aligned to page boundary.
8563 (print_load_command_name): Add LC_UUID if defined.
3a232704 8564
c12ecb0a 85652007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 8566
c12ecb0a 8567 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 8568
b8ddfbcc
JR
85692007-11-07 Jason Rumney <jasonr@gnu.org>
8570
8571 * s/windows95.h: Remove.
8572
880820fe 85732007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
8574
8575 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
8576 abort with a message on unhandled store_type values.
8577
880820fe 85782007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
8579
8580 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
8581 Remove HAVE_X11R5 and HAVE_X11R4.
8582
04a697fe
DN
85832007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
8584
8585 * Makefile.in: Remove references to sunfns.c and sunfns.o.
8586
880820fe 85872007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
8588
8589 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 8590 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
8591 x_set_glyph_string_gc from x_draw_glyph_string.
8592
07e5c0b0
DN
85932007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
8594
2a2e8de7 8595 * sunfns.c: Remove file.
07e5c0b0
DN
8596
8597 * m/sun386.h:
8598 * m/sun2.h:
8599 * m/sparc.h: Remove Sun windows code.
8600
1bc973c2
SM
86012007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
8602
8603 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
8604 (init_keyboard): Set current_kboard's window-system to nil.
8605 (tty_read_avail_input): Typo.
8606 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
8607
c22140f6
DN
86082007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
8609
8610 * s/usg5-4.h:
8611 * s/usg5-3.h:
8612 * s/ptx.h:
8613 * m/is386.h:
8614 * m/ibmps2-aix.h:
2a2e8de7 8615 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
8616
8617 * dispnew.c (syms_of_display): Don't mention version 10.
8618
660a8219
JB
86192007-10-28 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
8622 ($(BLD)/abbrev.$(O)): Remove.
8623
e047f448
SM
86242007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8625
8626 Rewrite abbrev.c in Elisp.
8627 * image.c (Qcount): Don't declare as extern.
8628 (syms_of_image): Initialize and staticpro `Qcount'.
8629 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
8630 * emacs.c (main): Don't call syms_of_abbrev.
8631 * Makefile.in (obj): Remove abbrev.o.
8632 (abbrev.o): Remove.
8633 * abbrev.c: Remove.
8634
67b73e3a
MR
86352007-10-26 Martin Rudalics <rudalics@gmx.at>
8636
8637 * window.c (window_min_size_2): Don't count header-line.
8638
e3d7bd83
DN
86392007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
8640
8641 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 8642 field to take advantage of the available space. Group all the
e3d7bd83
DN
8643 chars together to reduce wasted space due to padding.
8644
a3547743
JB
86452007-10-26 Juanma Barranquero <lekktu@gmail.com>
8646
e298936f
JB
8647 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
8648
d3d47262
JB
8649 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
8650 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
8651 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
8652 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
8653 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
8654 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
8655 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
8656 (last_marked, mark_object_loop_halt): Make static.
8657
a3547743
JB
8658 * frame.c (syms_of_frame) <delete-frame-functions>:
8659 Fix typo in docstring.
8660
14c71d8b
JB
86612007-10-25 Juanma Barranquero <lekktu@gmail.com>
8662
8663 * w32.c (init_environment): Fix tiny memory leak.
66199f74 8664 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 8665
70b8d0a4
SM
86662007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
8667
8668 Make `window-system' into a keyboard-local variable (rather than
8669 frame-local as done originally by multi-tty).
8670
8671 * keyboard.h (struct kboard): Add Vwindow_system.
8672 * keyboard.c (init_kboard): Set a default for Vwindow_system.
8673 (mark_kboards): Mark Vwindow_system.
8674
8675 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
8676 (init_display): Don't set the obsolete `window-system' frame-param.
8677
8678 * xterm.c (x_term_init):
8679 * w32term.c (w32_create_terminal):
8680 * term.c (init_tty): Set Vwindow_system.
8681 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
8682 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
8683
8684 * xfns.c (Fx_create_frame, x_create_tip_frame):
8685 * w32fns.c (Fx_create_frame, x_create_tip_frame):
8686 * macfns.c (Fx_create_frame):
8687 Don't set the obsolete `window-system' frame-param.
8688
8689 * frame.h (Qwindow_system): Remove.
8690 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
8691 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
8692
fdc90613 86932007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 8694
fdc90613
MB
8695 * frame.c (x_figure_window_size): For fullscreen case,
8696 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 8697
fdc90613 8698 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 8699
fdc90613 8700 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 8701
7357cb04
SM
87022007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8703
98228e72
SM
8704 * process.c (unwind_request_sigio): Only define if __ultrix__.
8705
1baf6db9
SM
8706 * callproc.c (child_setup): Remove spurious *.
8707
4d0ac3d7
SM
8708 * lisp.h (Fget_text_property): Declare.
8709 (have_menus_p): Declare it here rather than in sys-dep header files.
8710 * macterm.h (have_menus_p):
8711 * msdos.h (have_menus_p):
8712 * xterm.h (have_menus_p): Remove.
8713
7357cb04
SM
8714 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8715 (Fmake_variable_frame_local): Just check the variable's const-ness
8716 rather than checking nil or t.
8717
866e6dd6
JR
87182007-10-22 Jason Rumney <jasonr@gnu.org>
8719
b00afeae
JR
8720 * w32fns.c: Include math.h.
8721 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 8722
c8f7c76b
JR
8723 * s/ms-w32.h (HAVE_STDLIB_H): Define.
8724 (abort): Redefinition moved to nt/config.nt.
8725
866e6dd6
JR
8726 * m/windowsnt.h: Remove.
8727
e79beb56
JB
87282007-10-22 Juanma Barranquero <lekktu@gmail.com>
8729
8730 * emacs.c (Fdump_emacs): Fix typo in message.
8731 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
8732 <installation-directory>: Reflow docstring.
8733
fb30dfd2
JL
87342007-10-22 Juri Linkov <juri@jurta.org>
8735
8736 * minibuf.c: Allow minibuffer default to be a list of default values.
8737 With empty input use the first element of this list as returned default.
e79beb56 8738 (string_to_object)
0f7f11b7 8739 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
8740 (read_minibuf): If defalt is cons, set histstring to its car.
8741 (Fread_string): If default_value is cons, set val to its car.
8742 (Fread_buffer): If def is cons, use its car.
8743 (Fcompleting_read): If defalt is cons, set val to its car.
8744
1f163f28
MA
87452007-10-21 Michael Albinus <michael.albinus@gmx.de>
8746
8747 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
8748
db3534c3
JB
87492007-10-20 Juanma Barranquero <lekktu@gmail.com>
8750
8751 * doc.c (Fdocumentation): Check for advice in all cases.
8752
c6f18a07
CY
87532007-10-19 Chong Yidong <cyd@stupidchicken.com>
8754
8755 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
8756
2a1534d3
RS
87572007-10-19 Richard Stallman <rms@gnu.org>
8758
8759 * doc.c (Fdocumentation): Check for and handle an advised function.
8760
7b82c3b6
JB
87612007-10-19 Juanma Barranquero <lekktu@gmail.com>
8762
8763 * process.c (Fset_process_filter): Doc fix.
8764
3278f20e
SM
87652007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8766
8767 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
8768 which caused key-translation-map to applied repeatedly (thus breaking
8769 double-mode).
8770
99784d63
SM
87712007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
8772
8773 * xselect.c (x_own_selection, x_handle_selection_clear)
8774 (x_clear_frame_selections):
8775 * w32menu.c (list_of_panes, list_of_items):
8776 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
8777 * textprop.c (validate_plist, interval_has_all_properties)
8778 (interval_has_some_properties, interval_has_some_properties_list)
8779 (add_properties, text_property_list):
8780 * process.c (Fget_buffer_process, list_processes_1, status_notify):
8781 * minibuf.c (Fassoc_string):
8782 * macselect.c (x_own_selection, x_clear_frame_selections)
8783 (Fx_disown_selection_internal):
8784 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
8785 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
8786
44bb704d
CY
87872007-10-17 Chong Yidong <cyd@stupidchicken.com>
8788
8789 * process.c: Link to libs for calling res_init() if available.
8790 (Fmake_network_process): Call res_init() before getaddrinfo or
8791 gethostbyname, if possible.
8792
d314756e
SM
87932007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
8794
2504022a
SM
8795 * lread.c (read1): Set pvectype for char_tables.
8796
19fa82b9
SM
8797 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
8798 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
8799 Add type checks.
8800 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
8801
d314756e
SM
8802 * alloc.c (free_misc): Use XMISCTYPE.
8803 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
8804
94b9aaa2
GM
88052007-10-17 Glenn Morris <rgm@gnu.org>
8806
8807 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
8808 (syms_of_minibuf): Add Qcompletion_ignore_case.
8809 * dired.c (Qcompletion_ignore_case): Change to external.
8810 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
8811 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
8812 (Fread_file_name): Use it rather than intern'ing.
8813
8814 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
8815 (Fread_coding_system): Ignore case of user input.
8816
da6658e8
YM
88172007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8818
8819 * xdisp.c (handle_display_prop): Ignore display specs after
8820 replacing one when string text is being replaced.
8821 (handle_single_display_spec): Pretend as if characters with display
8822 property haven't been consumed only when buffer text is being replaced.
8823
11fb4bdb
SM
88242007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
8825
9beb8baa
SM
8826 * xfns.c (Fx_create_frame, Fx_display_list):
8827 * window.c (window_fixed_size_p, enlarge_window)
8828 (shrink_window_lowest_first):
8829 * macterm.c (init_font_name_table):
8830 * macfns.c (Fx_create_frame, Fx_display_list):
8831 * lread.c (close_load_descs):
8832 * keyboard.c (read_char_x_menu_prompt):
8833 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
8834 * coding.c (code_convert_region_unwind): Test the type of an object
8835 rather than just !NILP before extracting data from it.
8836
d3f41ff5
SM
8837 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
8838
67ee9f6e
SM
8839 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
8840 (XMISCANY): New macro.
8841 (XMISCTYPE): Use it.
8842 (struct Lisp_Misc_Any): New type.
8843 (union Lisp_Misc): Use it.
8844 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
8845 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
8846 (find_symbol_value, set_internal, default_value, Fset_default)
8847 (Fmake_variable_buffer_local, Fmake_local_variable)
8848 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
8849 (Flocal_variable_if_set_p, Fvariable_binding_locus):
8850 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
8851 * alloc.c (allocate_buffer): Set the size and tag.
8852 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
8853 Use XMISCANY.
8854 (die): Follow the GNU convention for error messages.
8855 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
8856 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
8857 tag any more.
8858 (set_buffer_internal_1):
8859 * frame.c (store_frame_param):
8860 * eval.c (specbind):
8861 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
8862
11fb4bdb
SM
8863 * doc.c (Fsnarf_documentation): Simplify.
8864
decb374a
JB
88652007-10-14 Juanma Barranquero <lekktu@gmail.com>
8866
8867 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
8868 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
8869
b5a40ee7
SM
88702007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
8871
8872 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
8873
35277b03
JB
88742007-10-14 Juanma Barranquero <lekktu@gmail.com>
8875
8876 * eval.c (do_autoload): Don't save autoloads.
8877
8878 * data.c (Ffset): Save autoload of the function being set.
8879
35fdaa62
GM
88802007-10-07 John Paul Wallington <jpw@pobox.com>
8881
8882 * xfns.c (x_create_tip_frame): Set the `display-type' frame
8883 parameter before setting up faces.
8884
1ea40aa2
EZ
88852007-10-13 Eli Zaretskii <eliz@gnu.org>
8886
35fdaa62 8887 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
8888 * keyboard.c (append_tool_bar_item): Reformat last change.
8889
1ea40aa2
EZ
8890 * lisp.h (eabs): Rename from `abs'. All callers changed.
8891
35277b03 88922007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
8893
8894 * buffer.c (add_overlay_mod_hooklist):
8895 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
8896 * fontset.c (make_fontset):
8897 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
8898 (append_tool_bar_item):
8899 * macmenu.c (grow_menu_items):
35fdaa62 8900 * w32menu.c (grow_menu_items):
71d00ce4 8901 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 8902
bc82f120
EZ
89032007-10-13 Eli Zaretskii <eliz@gnu.org>
8904
8905 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
8906 selected frame'' on MSDOS).
8907
d57d5a78
MR
89082007-10-12 Martin Rudalics <rudalics@gmx.at>
8909
8910 * frame.c (Qexplicit_name): New variable.
8911 (x_report_frame_params): Report it in parameter alist.
8912 (syms_of_frame): Intern and staticpro it.
8913
35277b03 89142007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
8915
8916 * macfns.c (x_create_tip_frame): Set terminal for frame.
8917
c7a4b95b
SM
89182007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
8919
26f9c7b7
SM
8920 * frame.c (Qenvironment): Remove.
8921 (syms_of_frame) <Qenvironment>: Don't initialize.
8922 (Fdelete_frame): Don't treat the `environment' param specially.
8923 * frame.h (Qenvironment): Don't declare.
8924 * callproc.c (set_initial_environment): Don't set unused frame param.
8925
c7a4b95b
SM
8926 * frame.c (Fframe_with_environment): Remove.
8927 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 8928
c7a4b95b
SM
8929 * lisp.h (Fframe_with_environment): Don't declare.
8930
c86f7377
JB
89312007-10-10 Juanma Barranquero <lekktu@gmail.com>
8932
8933 * indent.c (indent_tabs_mode, last_known_column)
8934 (last_known_column_modified): Make static.
8935 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
8936
d1b3a122
KY
89372007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
8938
8939 * puresize.h (BASE_PURESIZE): Increase to 1170000.
8940
d57d5a78
MR
89412007-10-09 Jason Rumney <jasonr@gnu.org>
8942
8943 * w32term.c (x_set_window_size): Disable code that attempts to tell
8944 Lisp code about a size change before it actually happens.
8945
81d3d428 89462007-10-09 Richard Stallman <rms@gnu.org>
91175673 8947
81d3d428
MB
8948 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
8949 return HANDLED_RETURN.
91175673 8950
1af74d06 89512007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 8952
1af74d06
MB
8953 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
8954 when there's an unread command event.
e0fead5d 8955
c7a4b95b 8956 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
8957 window autoselection act appropriately when leaving selected frame.
8958 (syms_of_frame): Initialize focus_follows_mouse.
8959 * frame.h (focus_follows_mouse): Extern it.
8960 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 8961 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
8962 * msdos.c (dos_rawgetc): Likewise.
8963 * w32term.c (w32_read_socket): Likewise.
8964 * xterm.c (handle_one_xevent): Likewise.
8965 * xdisp.c (syms_of_xdisp): In doc-string of
8966 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 8967
1af74d06 89682007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 8969
1af74d06
MB
8970 * macterm.c (mac_load_query_font): Fix missing return value.
8971 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
8972 Add BLOCK_INPUT.
c186cdb3 8973
1af74d06 89742007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 8975
1af74d06
MB
8976 * xdisp.c (get_window_cursor_type): Implement documented behavior
8977 for cursor-in-non-selected-windows = t.
c186cdb3 8978
1af74d06 89792007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 8980
1af74d06 8981 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 8982
1af74d06 89832007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 8984
1af74d06 8985 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 8986
1af74d06 8987 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 8988
1af74d06 89892007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 8990
c7a4b95b 8991 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 8992
1af74d06 89932007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 8994
1af74d06 8995 * buffer.c (Foverlays_at): Doc fix.
036e218d 8996
1af74d06 89972007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 8998
1af74d06 8999 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9000
1af74d06 90012007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9002
1af74d06 9003 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9004
1af74d06 9005 * frame.h (enum): Remove trailing comma.
90647b07 9006
1af74d06 90072007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 9008
1af74d06 9009 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9010
1af74d06 90112007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9012
1af74d06 9013 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9014
1af74d06
MB
9015 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9016 last-repeatable-command.
9017 (init_kboard): Initialize Vlast_repeatable_command.
9018 (command_loop_1): Set it to real_this_command unless that was
9019 bound to an input event.
9020 (mark_kboards): Mark it.
9fbc32aa 9021
1af74d06 90222007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9023
1af74d06 9024 * eval.c (condition-case): Doc fix.
9fbc32aa 9025
1af74d06 90262007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9027
1af74d06
MB
9028 * xfaces.c (tty_supports_face_attributes_p): Fix code
9029 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9030 was copied and not edited.
9fbc32aa 9031
beb9f745
SM
90322007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9033
c86f7377 9034 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9035 escape sequences.
9036 * keyboard.h (struct kboard): Add Vinput_decode_map.
9037 Remove Vlocal_key_translation_map.
9038 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9039 (init_kboard): Init input-decode-map.
9040 Replace local-key-translation-map back with key-translation-map.
9041 (syms_of_keyboard): Declare input-decode-map.
9042 Remove local-key-translation-map. Update docstrings.
9043 (mark_kboards): Mark Vinput_decode_map.
9044 Don't mark Vlocal_key_translation_map.
9045 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9046 Replace local-key-translation-map back with key-translation-map.
9047 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9048 Bind in input-decode-map rather than function-key-map.
9049
beb9f745
SM
9050 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9051 This was made redundant by the previous introduction of XSETPVECTYPE.
9052
65342ae3
RS
90532007-10-09 Richard Stallman <rms@gnu.org>
9054
beb9f745 9055 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9056
90572007-09-29 Richard Stallman <rms@gnu.org>
9058
9059 * eval.c (internal_condition_case_2, internal_condition_case_1)
9060 (internal_condition_case): Reenable abort if x_catching_errors ()
9061 to see if that really happens and why.
9062
6cff77fd
AS
90632007-10-06 Andreas Schwab <schwab@suse.de>
9064
9065 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9066
bbe6f2aa
JB
90672007-10-04 Juanma Barranquero <lekktu@gmail.com>
9068
9069 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9070
a390930c
SM
90712007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9072
9073 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9074
d6aa1876
SM
90752007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9076
d0fdb6da
SM
9077 * window.h (struct window):
9078 * window.c (struct save_window_data, struct saved_window):
9079 * termhooks.h (struct terminal):
9080 * process.h (struct Lisp_Process):
9081 * frame.h (struct frame):
9082 * buffer.h (struct buffer):
9083 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9084 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9085 The size field of (pseudo)vectors is now unsigned.
9086 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9087
878f97ff
SM
9088 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9089 Turn `count' into an integer.
d0fdb6da 9090
878f97ff
SM
9091 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9092 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9093 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9094 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9095 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9096
d2029e5b
SM
9097 * alloc.c (allocate_pseudovector): New fun.
9098 (ALLOCATE_PSEUDOVECTOR): New macro.
9099 (allocate_window, allocate_terminal, allocate_frame)
9100 (allocate_process): Use it.
9101 (mark_vectorlike): New function.
9102 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9103 (mark_terminals): Use it.
9104 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9105 (Fmake_byte_code): Use XSETPVECTYPE.
9106
9107 * frame.c (Fframe_parameters): Minor simplification.
9108
9109 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9110
9111 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9112
9113 * buffer.c (Fget_buffer_create, init_buffer_once):
9114 * lread.c (defsubr):
9115 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
9116
9117 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
9118 defined differently in the m/*.h files.
9119 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
9120 (XSETPVECTYPE): New macro.
9121 (XSETPSEUDOVECTOR): Use it.
9122
d6aa1876
SM
9123 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
9124 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 9125
d6aa1876
SM
9126 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
9127 * lread.c (defvar_per_buffer):
9128 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
9129
9130 * window.c (candidate_window_p): Only consider as visible frames that
9131 are on the same terminal.
9132
9133 * m/ibms390x.h (MARKBIT): Remove unused macro.
9134
88852d45
JB
91352007-10-01 Juanma Barranquero <lekktu@gmail.com>
9136
9137 * lread.c (Fload): Fix typo in docstring.
9138
880820fe 91392007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
9140
9141 * floatfns.c (Fexpt): Manually check for overflows, so that a power
9142 of a non-zero value can't yield zero.
9143
ed0c79c6
SM
91442007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
9145
b870aa61
SM
9146 * term.c (term_clear_mouse_face, term_mouse_highlight)
9147 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
9148
4c37a414
SM
9149 * print.c (safe_debug_print): Use XHASH.
9150
b9466edb
SM
9151 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
9152 Lisp elements such as tags.
9153 (XHASH): New macro.
9154 (EQ): Use it.
9155 (SREF, SSET, STRING_COPYIN): Use SDATA.
9156 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
9157
9c545a55
SM
9158 * alloc.c (mark_terminal): Remove left-over declaration.
9159 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
9160 (allocate_vectorlike): Remove type argument. Adjust callers.
9161 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
9162 Only handle the one remaining MEM_TYPE_VECTORLIKE.
9163
dafc79fa
SM
9164 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
9165 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
9166 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
9167 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
9168 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
9169 Use them.
9170
ed0c79c6
SM
9171 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
9172 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
9173 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
9174
3c81afd4
DN
91752007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9176
9177 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
9178 loaded by default.
9179
6178ce5e
SM
91802007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
9181
4ce5ab77
SM
9182 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
9183 on this tty.
9184 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
9185
6178ce5e
SM
9186 * term.c (mouse_face_window): Rename from Qmouse_face_window.
9187 Update all users.
9188 (handle_one_term_event): Use Gpm_DrawPointer.
9189 (Fgpm_mouse_start): Rename from Fterm_open_connection.
9190 Signal errors instead of returning nil. Always return nil.
9191 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
9192 Make it a noop if gpm-mouse was not activated.
9193 (syms_of_term): Update names.
9194
bdf5f8ef
SM
91952007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
9196
75a8734b
SM
9197 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
9198 (init_sys_modes): Check that gpm_tty is the current tty.
9199
13559ee0
SM
9200 * alloc.c (allocate_terminal): Set the vector size to only count the
9201 lisp fields. Initialize those to nil.
9202 (mark_object): Don't treat terminals specially.
9203 (mark_terminal): Remove.
9204 (mark_terminals): Use mark_object instead.
9205
ff16b875
SM
9206 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
9207 the GC to the beginning.
9208
83155776
SM
9209 * indent.h:
9210 * indent.c: Use EMACS_INT for ints coming from Elisp data.
9211
bdf5f8ef
SM
9212 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
9213
ec8705b6
JR
92142007-09-25 Jason Rumney <jasonr@gnu.org>
9215
9216 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
9217
9218 * w32console.c (create_w32cons_output): Remove.
9219
9220 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
9221
9222 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
9223 (reset_sys_modes): Use reset_terminal_modes_hook.
9224
7351b242
SM
92252007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
9226
9227 * eval.c (do_autoload): Don't output any message.
9228
16706228
JL
92292007-09-24 Juri Linkov <juri@jurta.org>
9230
9231 * emacs.c (standard_args): Change priority of "--no-splash"
9232 from 40 to 3. Add "--no-desktop" with the same priority.
9233
3ae2e3a3
RS
92342007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
9235
9236 * alloc.c (gc_sweep): Check cons cell mark bits word by word
9237 and optimize the case where they are all 1.
9238
7a58fb43
GM
92392007-09-23 Johannes Weiner <hannes@saeurebad.de>
9240
3ae2e3a3
RS
9241 * lisp.h (abs): Define if not defined.
9242 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
9243 Don't define `abs', since it's defined in lisp.h.
7a58fb43 9244
78048085
EZ
92452007-09-22 Eli Zaretskii <eliz@gnu.org>
9246
c7a4b95b 9247 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
9248 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
9249 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
9250 (init_tty): Use DEV_TTY instead of "/dev/tty".
9251 [WINDOWSNT]: No need to protect from NAME arg being null.
9252
23d4cba5
DN
92532007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9254
9255 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
9256 up the tty state.
9257
71f44e7a
SM
92582007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9259
9260 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
9261 (gpm_tty): Change its type.
9262 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
9263 (gpm_tty): Change its type and initialize it.
9264 (Fterm_open_connection): Check the frame is indeed a tty.
9265 Use the new gpm_tty.
9266 (Fterm_close_connection): Use the new gpm_tty.
9267 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
9268 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
9269
def7fa34
JB
92702007-09-21 Juanma Barranquero <lekktu@gmail.com>
9271
9272 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
9273 underline_color, to draw strike-through.
9274
d2bb6598
SM
92752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
9276
273f164c
SM
9277 * lisp.h (allocate_terminal): Declare.
9278
ca2d5566
SM
9279 * window.c (candidate_window_p): Consider frames that are being placed
9280 by the user as somewhere between visible and iconified.
9281 (window_loop): Prefer windows on the current frame.
9282 (Fselect_window): Move the use of select-frame to the beginning so we
9283 can just delegate all the work (it'll call us back anyway).
9284
6168122d
SM
9285 * frame.c (Qdisplay_environment_variable):
9286 * frame.h (Qdisplay_environment_variable): Delete.
9287
c51842ec
SM
9288 * .gdbinit (xbacktrace): Print the arg's address rather than the value
9289 of the first arg, since that value may be a union.
9290
d2bb6598
SM
9291 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
9292 parameter rather than Qdisplay_environment_variable. If all else
9293 fails, look for DISPLAY in initial-environment.
9294
6f022c19
GM
92952007-09-21 Glenn Morris <rgm@gnu.org>
9296
9297 * Makefile.in (emacstool): Remove target.
f466320b 9298 (lisp, shortlisp): Remove termdev.elc.
6f022c19 9299
ea1bf8c7
GM
93002007-09-21 Markus Triska <markus.triska@gmx.at>
9301
d2bb6598 9302 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 9303
d30a25b3
SM
93042007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
9305
db699fc6
SM
9306 * callproc.c (getenv_internal_1): New function.
9307 (getenv_internal): Use it.
9308 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
9309
d2bb6598 9310 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
9311 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
9312 (Fset_terminal_parameter): Work with dead terminals as well.
9313 (Fmodify_terminal_parameters): Remove.
9314
d30a25b3
SM
9315 * terminal.c (get_terminal): Handle terminals.
9316 Make sure the terminal returned is live.
9317 (create_terminal): Use allocate_terminal.
9318 (mark_terminals): Move to alloc.c.
9319 (delete_terminal): Use terminal->name as liveness status.
9320 NULL out fields after freeing their contents.
9321 Don't deallocate the object.
9322 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
9323 rather than an int.
9324 (Fterminal_live_p): Accept non-integer arguments.
9325 (Fterminal_list): Return terminal objects rather than an ints.
9326
9327 * alloc.c (enum mem_type): New member for `terminal' objects.
9328 (allocate_terminal): New function.
d2bb6598
SM
9329 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
9330 Handle terminals.
d30a25b3
SM
9331 (mark_terminal): New fun.
9332 (mark_terminals): Move from terminal.c.
9333
9334 * term.c (get_tty_terminal): Don't treat output_initial specially.
9335 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
9336 (delete_tty): Use terminal->name as liveness status.
9337
9338 * termhooks.h (struct terminal): Make it into a pseudovector.
9339 Remove `deleted' replaced by checking `name's nullness.
9340
9341 * print.c (print_object): Handle terminals.
9342
9343 * lisp.h (enum pvec_type): New `terminal' pseudovector.
9344 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
9345
9346 * frame.c (make_terminal_frame):
9347 * keyboard.c (tty_read_avail_input):
9348 * w32term.c (x_delete_terminal):
9349 * xfns.c (Fx_create_frame, x_create_tip_frame):
9350 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
9351
eba25e7c
GM
93522007-09-20 Glenn Morris <rgm@gnu.org>
9353
9354 * process.c (Fmake_network_process): Doc fix.
9355
2a29c3c1
JR
93562007-09-19 Jason Rumney <jasonr@gnu.org>
9357
9358 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
9359
880820fe 93602007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
9361
9362 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
9363 Fix a C warning regarding variable constness.
9364
9365 * xterm.c (handle_one_xevent): Fix a C warning.
9366
334a1195
JR
93672007-09-18 Jason Rumney <jasonr@gnu.org>
9368
9369 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
9370
880820fe 93712007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
9372
9373 * gtkutil.c (gdpy_def): New variable.
9374 (xg_initialize): Initialize gdpy_def.
9375 (xg_display_close): If no other display exists, set gdpy_def to a
9376 new connection.
9377
880820fe 93782007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
9379
9380 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
9381 when we have no file name for the icon.
9382 (xg_tool_bar_expose_callback): Remove.
9383 (xg_create_tool_bar): Don't connect expose signal to
9384 xg_tool_bar_expose_callback.
9385 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
9386
4d580af2
AS
93872007-09-16 Andreas Schwab <schwab@suse.de>
9388
9389 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
9390 values instead of zapping them.
9391
aca946f3
GM
93922007-09-14 Glenn Morris <rgm@gnu.org>
9393
9394 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
9395 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
9396 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
9397 scope and rename to omfib_buffer for clarity.
9398 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
9399
25c460e5
KH
94002007-09-14 Kenichi Handa <handa@m17n.org>
9401
9402 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
9403
09b69f01
JR
94042007-09-13 Jason Rumney <jasonr@gnu.org>
9405
9406 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
9407
9408 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
9409
9410 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
9411 (mac_term_init): Call here instead, passing rif.
9412
442218db
GM
94132007-09-13 Glenn Morris <rgm@gnu.org>
9414
9415 * s/hpux.h: No longer define `static' as nothing.
9416
880820fe 94172007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
9418
9419 * callint.c (Fcall_interactively): Remove unused var `fun'.
9420
1971a872
RF
94212007-09-12 Romain Francoise <romain@orebokech.com>
9422
9423 * window.c (prefer_window_split_horizontally, display_buffer):
9424 Revert 2007-09-08 change.
9425
2d33f506
GM
94262007-09-12 Glenn Morris <rgm@gnu.org>
9427
585474ae 9428 * alloca.c: Remove file.
ca7af97a
GM
9429 * Makefile.in (alloca): Do not undef.
9430 (allocaobj, alloca.o): Remove.
9431 (otherobj): Remove allocaobj.
9432 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
9433 * regex.c (C_ALLOCA): Remove all references and code that was only
9434 used when this was defined.
9435 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
9436 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
9437 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
9438
2d33f506 9439 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
9440
9441 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
9442 (menu_grab_callback): All uses changed.
9443
9444 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
9445 (x_reply_selection_request): All uses changed.
2d33f506 9446
18a4a65e
SM
94472007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9448
9449 * lread.c (load_warn_old_style_backquotes): Change message to look
9450 better when it appears in the middle of byte-compiler messages.
9451
47cc8819
DN
94522007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
9453
b7ea0894
DN
9454 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
9455
47cc8819
DN
9456 * xterm.c (x_create_terminal): Add comment.
9457
9458 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
9459
5632bd0f
RS
94602007-09-10 Richard Stallman <rms@gnu.org>
9461
9462 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
9463
880820fe 94642007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 9465
4bca9161
MC
9466 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
9467 (DEFUN): Document `intspec', use it instead of `prompt'.
9468
04724b69
MC
9469 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
9470
8a6d230a
MC
9471 * data.c (Finteractive_form): If the interactive specification starts
9472 with a `(', use it as a Lisp form.
9473
09fbdf6c
MC
9474 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
9475 name and file modes.
9476
ccb5c14f
MC
9477 * callint.c (Fcall_interactively): Comment fixes.
9478
023accd6
SM
94792007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9480
9481 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
9482 and compiled functions.
9483
f26b9544
EZ
94842007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
9485
9486 * window.c (prefer_window_split_horizontally): New variable.
9487 (display_buffer): Consider splitting window horizontally depending
9488 on prefer_window_split_horizontally.
9489
4d395425
EZ
94902007-09-08 Eli Zaretskii <eliz@gnu.org>
9491
97ddc760 9492 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 9493
08c1d235
SM
94942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9495
179cef48
SM
9496 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
9497
08c1d235
SM
9498 * frame.c (x_set_frame_parameters): Check number is positive before
9499 using XFASTINT.
9500
9501 * window.c (freeze_window_start): Don't presume selected_window holds
9502 a window object.
92f94a12 9503 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 9504
97ddc760 95052007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
9506
9507 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
9508
90ab5c62
SM
95092007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * window.c (Vsplit_window_preferred_function): New var.
9512 (Fdisplay_buffer): Use it.
9513 (syms_of_window): Export, and initialize it.
9514
1ab2cd43
TTN
95152007-09-06 Pixel <pixel@mandriva.com> (tiny change)
9516
9517 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
9518
0b0515bc
GM
95192007-09-06 Glenn Morris <rgm@gnu.org>
9520
57fd5c55 9521 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
9522 * xselect.c (x_reply_selection_request) <cnt>: Move static
9523 variable to file scope.
9524
98594580
SM
95252007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
9526
9527 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
9528 consistent values of selected_frame and selected_window.
9529
0f4c7aef
JR
95302007-09-04 Jason Rumney <jasonr@gnu.org>
9531
9532 * w32console.c (initialize_w32_display): Zero unused hooks.
9533
e4019195
DN
95342007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
9535
9536 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
9537 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
9538
bce179b5
JR
95392007-09-04 Jason Rumney <jasonr@gnu.org>
9540
a0236551
JR
9541 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
9542 in w32console.c. Set up input. Remove XXX comments that have been
9543 confirmed as correct.
9544
a4926668
JR
9545 * s/ms-w32.h (MULTI_KBOARD): Define.
9546
953bf0dc
JR
9547 * w32console.c (one_and_only_w32cons): Remove.
9548 (initialize_w32_display): Take terminal argument.
9549
9550 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
9551 initialize_w32_display.
9552 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
9553
bce179b5
JR
9554 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
9555
9556 * keyboard.c (discard_mouse_events): Discard it.
9557 (make_lispy_event): Translate it to a lisp event.
9558 (lispy_wheel_names): Add wheel-left and right events.
9559 (syms_of_keyboard): Enlarge wheel_syms.
9560
9561 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
9562 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
9563
9564 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
9565
9566 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
9567 from WM_MOUSEHWHEEL.
9568 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
9569
9570 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
9571 terminal.
9572
9573 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
9574 keyboard for the terminal.
9575
92cd6a7c
DN
95762007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
9577
9578 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
9579 (Vresume_tty_hook): Rename from Vresume_tty_functions.
9580 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
9581 and resume-tty-function to resume-tty-hook.
9582 (Fsuspend_tty, Fresume_tty): Use new names.
9583
880820fe 95842007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
9585
9586 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
9587 if it starts with "n:".
9588
880820fe 95892007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
9590
9591 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
9592
6b8e474c
SM
95932007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9594
92d9c1d4
SM
9595 * frame.h:
9596 * frame.c (Qterm_environment_variable): Remove.
9597 (syms_of_frame): Don't init and staticpro it.
9598
92d9c1d4
SM
9599 * callproc.c (getenv_internal): Remove special case for $TERM.
9600
6b8e474c
SM
9601 * callproc.c (Vinitial_environment): New variable.
9602 (set_initial_environment): Initialize it.
9603 (syms_of_callproc): Declare it.
9604 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
9605 TERM under which a process runs is never related to the TERM in which
9606 Emacs is running.
9607
0f1444e1
DN
96082007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
9609
9610 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
9611 * s/darwin.h: ... do it here.
9612
b8866860
SM
96132007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9614
9615 * lisp.h (set_initial_environment): Rename from set_global_environment.
9616
9617 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
9618 removed by mistake on the multi-tty branch.
9619
9620 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
9621 (Fmodify_frame_parameters): Return a value.
9622
9623 * image.c (png_load): Comment-out var only used in commented-out code.
9624
9625 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
9626 before passing it to mark_object.
9627
9628 * xfaces.c (internal_resolve_face_name): Return a value.
9629 (internal_resolve_face_name, resolve_face_name_error): Comment out.
9630
9631 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
9632 (x_icon): Comment-out var only used in commented-out code.
9633
0a42be6d
RF
96342007-08-29 Romain Francoise <romain@orebokech.com>
9635
9636 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
9637 QUIT hasn't been provided.
9638
8d9cc0b7
MB
96392007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
9640
9641 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 9642 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
9643 (set_initial_environment): Initialise Vprocess_environment.
9644
9645 * config.in: Disable multi-keyboard support on a mac.
9646
9647 * frame.c (Qterm_environment_variable)
9648 (Qdisplay_environment_variable): New variables.
9649 (syms_of_frame): Intern and staticpro them.
9650 (Fmake_terminal_frame): Disable output method test.
9651
9652 * frame.h: Declare them here.
9653
9654 * macfns.c (x_set_mouse_color): Get rif from the frame.
9655 (x_set_tool_bar_lines): Don't use updating_frame.
9656 (mac_window): Add 2 new parameters for consistency with other systems.
9657 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
9658 frame parameters following what is done in X11 and w32. Don't use
9659 FRAME_MAC_DISPLAY_INFO.
9660 (Fx_open_connection, start_hourglass): Remove window-system check.
9661 (x_create_tip_frame): Get the keyboard from the terminal.
9662
9663 * macmenu.c: Reorder includes.
9664 (Fx_popup_menu): Use terminal specific mouse_position_hook.
9665
9666 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
9667 terminal parameter.
9668 (x_clear_frame): Add a frame parameter.
9669 (note_mouse_movement): Get rif from the frame.
9670 (mac_term_init): Initialize the terminal.
9671 (mac_initialize): Make static and move terminal initialization ...
9672 (mac_create_terminal): ... to this new function.
9673
9674 * macterm.h (struct mac_display_info): Add terminal.
7196c970 9675 (mac_initialize): Delete declaration.
8d9cc0b7 9676
381864b2 9677 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
9678
9679 * sysdep.c: Comment out text after #endif.
9680
9681 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
9682 is defined. Better initialize ttys in windows. Use terminal
9683 specific mouse_position_hook.
9684
9685 * termhooks.h (union display_info): Add mac_display_info.
9686
b8866860
SM
9687 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
9688 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
9689 frame parameters following what is done in X11.
9690
9691 * w32term.c (w32_initialize): Make static.
9692
9693 * xselect.c (x_handle_selection_clear): Only access
9694 terminal->kboard when MULTI_KBOARD is defined.
9695
9696 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
9697 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
9698
96992007-08-29 Jason Rumney <jasonr@gnu.org>
9700
9701 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
9702 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
9703
9704 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
9705 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
9706
9707 * keyboard.c (restore_kboard_configuration): Only define when
9708 MULTI_KBOARD defined.
9709
35277b03 9710 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
9711 (OBJ1): Add terminal.$(O)
9712
b8866860
SM
9713 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
9714 Don't define function body.
8d9cc0b7
MB
9715 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
9716
9717 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
9718
9719 * w32.c (request_sigio, unrequest_sigio): Remove.
9720
9721 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
9722 (w32con_clear_frame, w32con_clear_end_of_line)
9723 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
9724 (w32con_delete_glyphs, w32con_set_terminal_window)
9725 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
9726 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
9727 Add terminal arg.
8d9cc0b7
MB
9728 (PICK_FRAME): Remove.
9729 (w32con_write_glyphs): Use frame specific terminal coding.
9730 (one_and_only_w32cons): New global variable.
9731 (initialize_w32_display): Use it for storing hooks.
9732 (create_w32cons_output): New function.
9733
9734 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
9735 arg a frame.
9736
b8866860
SM
9737 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
9738 Set window_system.
8d9cc0b7
MB
9739 (x_set_tool_bar_lines): Don't use updating_frame.
9740 (Fx_create_frame): Set terminal and ref count.
9741 (Fx_open_connection): Remove window-system check.
9742
9743 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
9744
9745 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
9746 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
9747 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
9748 Add frame arg.
9749 (x_delete_terminal, w32_create_terminal): New functions.
9750 (w32_term_init): Create a terminal.
9751 (w32_initialize): Move terminal specific initialization to
9752 w32_create_terminal.
9753
b8866860 9754 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
9755 (w32_clear_rect, w32_clear_area): Use background from frame.
9756 (w32_display_info): Add terminal.
9757 (w32_sys_ring_bell, x_delete_display): Declare here.
9758
9759 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
9760
9761 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
9762
97632007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
9764
9765 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
9766 Fix get_named_tty calls for the controlling tty.
9767
97682007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
9769
9770 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
9771
97722007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
9773
9774 * term.c (tty_insert_glyphs): Add missing first parameter.
9775
880820fe 97762007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 9777
b8866860
SM
9778 * buffer.c (Fbuffer_list, Fbury_buffer):
9779 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
9780
9781 * cm.c (current_tty): New variable, for cmputc().
9782 (cmputc): Use it.
9783 (cmcheckmagic): Add tty parameter, look up terminal streams there.
9784 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
9785 (cmgoto): Add tty parameter. Pass it on to calccost().
9786 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
9787
9788 * cm.h (emacs_tputs): New macro to set current_tty, and then call
9789 tputs().
9790 (current_tty): New variable, for cmputc().
9791 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
9792
9793 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
9794 (internal_condition_case, internal_condition_case_1)
9795 (internal_condition_case_2): Don't abort when x_catching_errors.
9796
9797 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
9798 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
9799 prevent crashes caused by bogus longjmps in read_char.
9800
9801 * keymap.h (Fset_keymap_parent): Add EXFUN.
9802
9803 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
9804 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
9805 Remove redundant definition.
9806
b8866860
SM
9807 * macfns.c (x_set_mouse_color, x_make_gc):
9808 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 9809
b8866860
SM
9810 * w32term.c (x_free_frame_resources):
9811 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9812 (w32_initialize): Use the accessor macros for terminal characteristics.
9813
9814 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
9815 Use the accessor macros for terminal characteristics.
9816 * msdos.c (internal_terminal_init): Use the accessor macros for
9817 terminal characteristics.
b8866860
SM
9818 (ScreenVisualBell, internal_terminal_init):
9819 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9820
9821 * termopts.h (no_redraw_on_reenter): Declare.
9822
9823 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 9824 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 9825 (Fgarbage_collect): Call them.
03f06e5c 9826 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
9827
9828 * prefix-args.c: Include stdlib.h for exit.
9829
9830 * syssignal.h: Add comment.
9831
9832 * indent.c: Include stdio.h.
9833
9834 * window.h (Vinitial_window_system): Declare.
9835 (Vwindow_system): Delete declaration.
9836
9837 * fontset.c (Finternal_char_font): Use FRAME_RIF.
9838
9839 * image.c (lookup_image): Don't initialize `c' until the xasserts
9840 have been run.
9841
9842 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
9843 FRAME_FOREGROUND_PIXEL.
9844
9845 * print.c (print_preprocess): Don't lose print_depth levels while
9846 iterating.
9847
b8866860
SM
9848 * widget.c (update_from_various_frame_slots):
9849 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
9850
9851 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
9852 frames.
9853 (window_internal_height): Remove bogus make_number call.
b8866860 9854 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
9855
9856 * fileio.c (Fread_file_name): Update comment.
9857
b8866860
SM
9858 * callint.c (Fcall_interactively):
9859 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
9860 Make sure it is correctly unwound.
9861
9862 * xsmfns.c (x_session_close): New function.
9863
03f06e5c 9864 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
9865 Delete declarations.
9866
9867 * xterm.h: Remove declaration for x_fully_uncatch_errors.
9868 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 9869 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
8d9cc0b7
MB
9870 (x_delete_device):
9871 (x_session_close): Declare.
9872
9873 * lread.c: Include setjmp.h. Update declaration of `read_char'.
9874 (read_filtered_event): Call `read_char' with a local
9875 `wrong_kboard_jmpbuf'.
9876
b8866860
SM
9877 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
9878 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
9879
9880 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
9881 systems.
9882
b8866860 9883 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 9884 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 9885 (Fset_quit_char): EXFUN.
03f06e5c 9886 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
9887 (init_sys_modes, reset_sys_modes): Update prototypes.
9888 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
9889
b8866860
SM
9890 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
9891 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 9892 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 9893 Delete declarations.
03f06e5c
JB
9894 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
9895 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
9896 New declarations.
9897
9898 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
9899 already does that during init_display(). Call syms_of_keymap
b8866860
SM
9900 before syms_of_keyboard. Call `syms_of_terminal'.
9901 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
9902 (shut_down_emacs): Call reset_all_sys_modes() instead of
9903 reset_sys_modes().
9904
9905 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
9906 (internal_resolve_face_name, resolve_face_name_error): New functions.
9907 (resolve_face_name): Protect against loops and errors thrown by Fget.
9908 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
9909 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
9910
9911 * scroll.c: Replace CURTTY() with local variables throughout the
9912 file (where applicable).
9913 (calculate_scrolling, calculate_direct_scrolling)
9914 (scrolling_1, scroll_cost): Use the accessor macros for terminal
9915 characteristics.
9916
9917 * keymap.c (Vfunction_key_map): Remove.
b8866860 9918 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
9919 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
9920 (Vkey_translation_map): Remove.
9921 (syms_of_keymap): Remove DEFVAR for key-translation-map.
9922 (Fdescribe_buffer_bindings):
9923 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
9924 Update for terminal-local key-translation-map.
9925
9926 * Makefile.in (callproc.o): Update dependencies.
9927 (lisp, shortlisp): Add termdev.elc.
9928 (obj): Add terminal.o.
9929 (terminal.o): Add dependencies.
9930 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
9931 (data.o, fns.o): Add termhooks.h dependency.
9932 (SOME_MACHINE_LISP): Add dnd.elc.
9933 (minibuf.o): Fix typo.
9934 Update dependencies.
9935
9936 * data.c (do_symval_forwarding, store_symval_forwarding)
9937 (find_symbol_value): Use the selected frame's keyboard, not
9938 current_kboard.
9939
9940 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
9941 Vwindow_system.
9942
9943 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
9944 Fmenu_bar_open.
9945 (syms_of_xmenu): Update defsubr.
9946 (mouse_position_for_popup, Fx_popup_menu)
9947 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
9948 (set_frame_menubar, free_frame_menubar)
9949 (create_and_show_popup_menu, xmenu_show, )
9950 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
9951 an X frame.
9952
9953 * xselect.c (x_own_selection): Abort if not an X frame.
9954 (some_frame_on_display): Check if it is an X frame.
9955 (x_handle_selection_clear): Deal with MULTI_KBOARD.
9956
9957 * coding.c: Include frame.h and termhooks.h.
03f06e5c 9958 (terminal_coding, keyboard_coding): Delete.
8d9cc0b7
MB
9959 (Fset_terminal_coding_system_internal):
9960 (Fset_keyboard_coding_system_internal):
9961 (Fkeyboard_coding_system):
03f06e5c
JB
9962 (Fterminal_coding_system): Add a terminal parameter.
9963 Get terminal_coding from the terminal.
8d9cc0b7
MB
9964 (init_coding_once): Don't call setup_coding_system here.
9965
9966 * dispextern.h (set_scroll_region, turn_off_insert)
9967 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
9968 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 9969 (delete_tty, updating_frame)
8d9cc0b7
MB
9970 (produce_special_glyphs, produce_glyphs, write_glyphs)
9971 (insert_glyphs): Remove.
9972 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 9973 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 9974 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
9975
9976 * frame.h (enum output_method): Add output_initial.
9977 (struct x_output): Delete.
b8866860
SM
9978 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
9979 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
9980 (tty_display): Delete.
9981 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 9982 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
9983 (union output_data): Add tty.
9984 (FRAME_KBOARD): Get the kboard from the terminal.
9985 (FRAME_INITIAL_P): New macro.
9986 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
9987 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
9988 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
9989 New declarations.
8d9cc0b7
MB
9990
9991 * termchar.h (tty_output, tty_display_info): New structures.
9992 (tty_list): Declare.
9993 (FRAME_TTY, CURTTY): New macros.
9994 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
9995 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
9996 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
9997 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
9998
9999 * callproc.c: Include frame.h and termhooks.h, for terminal
10000 parameters.
10001 (add_env): New function.
10002 (child_setup): Use it.
b8866860 10003 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10004 (getenv_internal): Fix get_terminal_param call.
10005 (Fgetenv_internal, egetenv): Update doc.
10006 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10007 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10008 strings.
10009 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10010 (getenv_internal): Add terminal parameter.
10011 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10012 (Fgetenv_internal): Add terminal parameter.
10013 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10014 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10015 (set_initial_environment): Rename from set_global_environment.
10016 Store Emacs environment in initial frame parameter.
10017
10018 * xdisp.c (redisplay_internal): Update references to
10019 `previous_terminal_frame'.
10020 (display_mode_line, Fformat_mode_line): Replace calls to
10021 `push_frame_kboard' with `push_kboard'.
10022 (get_glyph_string_clip_rects): Add extra parentheses and
10023 braces to prevent compiler warnings.
10024 (calc_pixel_width_or_height): Add xassert to check that the
10025 frame is alive. Don't call `lookup_image' on a termcap frame.
10026 (message2_nolog, message3_nolog, redisplay_internal)
10027 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10028 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10029 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10030 (Fx_display_pixel_width, Fx_display_pixel_height)
10031 (Fx_display_planes, Fx_display_color_cells)
10032 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10033 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10034 (Fx_display_backing_store, Fx_display_visual_class)
10035 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10036 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10037
10038 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10039 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10040 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10041 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10042 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10043 terminal that is being deleted.
10044 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10045 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10046 (Fx_close_connection, Fx_synchronize): Unify argument names with
10047 the rest of the DEFUNs.
10048
10049 * dispnew.c (Fsend_string_to_terminal): Update call to
10050 `get_tty_terminal'.
10051 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10052 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10053 FRAME_TERMCAP_P and FRAME_TTY.
10054 (window_change_signal): Don't believe width/height values that are
10055 impossibly small.
10056 (Vinitial_window_system): Rename from Vwindow_system.
10057 (termscript, Wcm, rif): Delete.
10058
10059 * termhooks.h (struct terminal): New struct containing the
10060 previously global text display hooks and new members NAME,
10061 DELETED and PARAM_ALIST.
10062 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10063 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10064 (FRAME_RIF): New macros.
10065 (get_terminal_param, get_device): New declarations.
10066 (termscript): Delete declaration.
10067
10068 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10069 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10070 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10071 FRAME_FOREGROUND_PIXEL.
10072 (x_fully_uncatch_errors): Disable definition.
10073 (x_scroll_bar_expose): Fix reference to foreground pixel.
10074 (XTread_socket): Disable loop on all X displays.
10075 (x_delete_terminal): Don't set terminal->deleted and let
10076 delete_terminal delete the frames on the terminal.
10077 (x_delete_display): Doc update to reflect changes in
10078 delete_terminal.
10079 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10080 (deleting_tty): Remove old variable.
10081 (Fsuspend_tty): Call clear_tty_hooks.
10082 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10083 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10084 errors on X frames.
10085 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10086 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10087 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10088 (XTset_terminal_modes, XTreset_terminal_modes)
10089 (XTread_socket, x_connection_closed, x_term_init)
10090 (x_term_init, x_delete_display): Add terminal parameter.
10091 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10092 X connections.
10093
bf380f53
GM
10094 * frame.c: Include termchar.h.
10095 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10096 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10097 (Qdisplay_environment_variable): New vars.
10098 (Fframep): Deal with output_initial.
10099 (Fframe-live-p): Doc fix.
10100 (Fwindow-system): New function.
8d9cc0b7
MB
10101 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10102 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10103 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10104 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10105 (Fmake_terminal_frame): Handle NULL tty names correctly.
10106 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10107 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10108 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10109 (Fframe_with_environment): New function.
b8866860 10110 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10111 (get_future_frame_param): New function.
10112 (Fmake_terminal_frame): Use it.
2d33f506 10113 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10114
10115 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
10116 * sysdep.c (reset_sys_modes): Update for renames.
10117
10118 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 10119 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
10120 (syms_of_keyboard): Defsubr them.
10121 (Fset_input_meta_mode, Fset_quit_char): New functions.
10122 (Fset_input_mode): Split to above functions.
10123
10124 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
10125 parameter. Use it in call to `read_char'.
b8866860
SM
10126 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
10127 Set wrong_kboard_jmpbuf correctly in recursive calls.
10128 Use current_kboard to access Vkeyboard_translate_table.
10129 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
10130 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
10131 Update longjmp invocations. Remember the original current_kboard,
10132 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
10133 changes it. Comment out unnecessary calls to
10134 `record_single_kboard_state' and `any_kboard_state'.
10135 Update recursive calls.
8d9cc0b7
MB
10136 (wrong_kboard_jmpbuf): Remove global variable.
10137 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
10138 Handle deleted interrupted_kboards correctly; that is a legal
10139 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 10140 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
10141 (any_kboard_state, single_kboard_state)
10142 (push_frame_kboard): Remove function.
10143 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
10144 been deleted. Remove unused variable. Help debugging by not
10145 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
10146 kboard of the selected frame when the stored kboard object has
10147 been deleted before pop_kboard.
10148 (temporarily_switch_to_single_kboard): Change first parameter to a
10149 frame pointer. Throw an error when caller wants to change kboards
10150 while in single_kboard mode. Don't push_kboard if we weren't in
10151 single kboard state. Don't pop_kboard if we popped into any
10152 kboard state.
10153 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 10154 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
10155 up single_kboard mode.
10156 (Frecursive_edit): Switch to single_kboard mode only in nested
10157 command loops.
b8866860
SM
10158 (cmd_error, command_loop, command_loop_1, timer_check):
10159 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
10160 `record_single_kboard_state'.
10161 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 10162 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
10163 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
10164 `fatal_error_signal'.
10165 (record_single_kboard_state): Don't push_kboard if we weren't in
10166 single kboard state. Don't pop_kboard if we popped into any
10167 kboard state.
10168 (push_frame_kboard): Rename to push_kboard.
10169 (kbd_buffer_get_event): Use FRAME_TERMINAL.
10170 (read_avail_input): Read input from all terminals.
10171 (mark_kboards): Also mark Vkeyboard_translate_table.
10172 (kbd_buffer_store_event_hold): Simplify condition.
10173 (read_key_sequence): Reinitialize fkey and keytran at each replay.
10174 (Vkeyboard_translate_table): Move to struct kboard.
10175 (init_kboard): Initialize Vkeyboard_translate_table.
10176 (syms_of_keyboard): Use DEFVAR_KBOARD to define
10177 Vkeyboard_translate_table. Update doc strings. Update docs of
10178 local-function-key-map and function-key-map.
10179
10180 * terminal.c: New file.
10181
10182 * term.c: Include errno.h.
10183 (Vring_bell_function, device_list, initial_device)
10184 (next_device_id, ring_bell, update_begin, update_end)
10185 (set_terminal_window, cursor_to, raw_cursor_to)
10186 (clear_to_end, clear_frame, clear_end_of_line)
10187 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
10188 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
10189 (syms_of_term): Move their initialization to terminal.c.
10190 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
10191 (Ftty_display_color_cells)
10192 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 10193 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
10194 (init_tty, maybe_fatal): New functions.
10195 (Ftty_type): Return nil if terminal is not on a tty instead of
10196 throwing an error. Doc update.
10197 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 10198 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
10199 (delete_tty): Use terminal->deleted.
10200 (tty_set_terminal_modes): Rename from set_terminal_modes.
10201 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
10202 (set_scroll_region): Rename to `tty_set_scroll_region'.
10203 (turn_on_insert): Rename to `tty_turn_on_insert'.
10204 (turn_off_insert): Rename to `tty_turn_off_insert'.
10205 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
10206 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
10207 (toggle_highligh): Rename to `tty_toggle_highlight'.
10208 (background_highlight): Rename to `tty_background_highlight'.
10209 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
10210 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
10211 (tty_set_scroll_region, tty_background_highlight)
10212 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
10213 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
10214 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
10215 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
10216 Add static modifier.
10217 (tty_reset_terminal_modes, tty_set_terminal_window)
10218 (tty_set_scroll_region, tty_background_highlight)
10219 (tty_highlight_if_desired, tty_cursor_to)
10220 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
10221 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
10222 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
10223 renames.
10224
880820fe 102252007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
10226
10227 * keyboard.c: Qrtl is new.
10228 (parse_tool_bar_item): Handle :rtl keyword.
10229 (syms_of_keyboard): Intern :rtl keyword.
10230
10231 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
10232
10233 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
10234 so no Lisp code is executed.
10235 (file_for_image, find_rtl_image): New functions.
10236 (xg_get_image_for_pixmap): Use file_for_image
10237 (update_frame_tool_bar): If direction is RTL, use RTL image if
10238 defined. Use Gtk stock images if defined.
10239
83cc8d35
YM
102402007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10241
10242 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
10243 for nonexistent or zero-width glyph in composition glyph.
10244
e60c4e15
SM
102452007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
10246
d7e2a28f
SM
10247 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
10248
e60c4e15
SM
10249 * xdisp.c (Finvisible_p): New function.
10250 (syms_of_xdisp): defsubr it.
10251
ee163e6d
JB
102522007-08-24 Juanma Barranquero <lekktu@gmail.com>
10253
10254 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
10255 Doc fixes.
10256
90fa408d
YM
102572007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10258
35277b03 10259 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 10260
cac4219c
MR
102612007-08-24 Martin Rudalics <rudalics@gmx.at>
10262
10263 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
10264 whether decoding has modified buffer contents.
10265
5fc9fdeb
JR
102662007-08-24 Jason Rumney <jasonr@gnu.org>
10267
10268 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
10269 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
10270 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
10271 (init_svg_functions) [HAVE_NTGUI]: New function.
10272 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
10273 (svg_load_image): Use them.
10274 (svg_load_image) [HAVE_NTGUI]: Implement background.
10275
93b23406
YM
102762007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10277
10278 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
10279 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
10280 (LIBX): Remove @RSVG_LIBS@.
10281 (LIBES): Add $(RSVG_LIBS).
10282
10283 * image.c (svg_load_image): Blend with specified background if exists.
10284 Use IMAGE_BACKGROUND. Add Mac OS Support.
10285
10286 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
10287 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
10288 Remove macros.
10289 [MAC_OSX] (socket_callback): Do nothing.
10290 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
10291 ReceiveNextEvent.
10292 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
10293 socket_callback.
10294 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
10295
2467875c
GM
102962007-08-22 Glenn Morris <rgm@gnu.org>
10297
ff8da443 10298 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 10299
4ab27a43
GM
103002007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
10301
10302 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 10303
666e0eda
GM
10304 * image.c: Add support for SVG images. Some additional comments
10305 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
10306 (svg_image_p): New function to test for SVG image.
10307 (svg_load): New function to load SVG image.
10308 (svg_load_image): New function, helper for svg_load.
10309 (Qsvg): New Lisp_object.
10310 (svg_keyword_index): New enum.
10311 (svg_format): New static `image_keyword' struct.
10312 (svg_type): New static `image_type' struct.
10313 (librsvg/rsvg.h): Include it.
4ab27a43 10314
b636b4c1
SM
103152007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
10316
10317 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
10318
9ecb827b
SM
103192007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
10320
1d064697
SM
10321 * lread.c (Qold_style_backquotes): New var.
10322 (syms_of_lread): Init and staticpro it.
10323 (load_warn_old_style_backquotes): New fun.
10324 (Fload): Use them to warn about old style backquotes.
10325 (end_of_file_error, Fload): Remove unused vars.
10326
5772ed4b
SM
10327 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
10328
9ecb827b 10329 * lread.c (Vold_style_backquotes): New var.
5aa273b0 10330 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
10331 (read1): Set it when we find an old-style (back)quote.
10332
32e1c7b1
JR
103332007-08-22 Jason Rumney <jasonr@gnu.org>
10334
10335 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
10336
b8fa755b
KY
103372007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
10338
10339 * puresize.h (BASE_PURESIZE): Increase to 1140000.
10340
1283140e
RS
103412007-08-19 Richard Stallman <rms@gnu.org>
10342
10343 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
10344
2c4685ee
AS
103452007-08-19 Andreas Schwab <schwab@suse.de>
10346
10347 * alloc.c (pure): Round PURESIZE up.
10348
880820fe 103492007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
10350
10351 * xterm.c (handle_one_xevent): Remove check that mouse click is in
10352 active frame.
10353
6e33efc4
RS
103542007-08-16 Richard Stallman <rms@gnu.org>
10355
10356 * eval.c (Fcommandp): Add parens to clarify.
10357
10358 * minibuf.c (Fall_completions): Use enum for type of table.
10359
10360 * emacs.c (USAGE2): Improve text.
10361
fcf8ff2e
GM
103622007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
10363
5205ee62
GM
10364 * term.c (tty_default_color_capabilities): Declare static
10365 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 10366
880820fe 103672007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
10368
10369 * gtkutil.c (update_frame_tool_bar): Use -1 as index
10370 to gtk_toolbar_insert.
10371
4a181359
SM
103722007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
10373
1bc99c9c
SM
10374 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
10375
4a181359
SM
10376 * insdel.c (reset_var_on_error): New fun.
10377 (signal_before_change, signal_after_change):
10378 Use it to reset (after|before)-change-functions to nil in case of error.
10379 Bind inhibit-modification-hooks to t.
10380 Don't bind (after|before)-change-functions to nil while they run.
10381
6c28435c
YM
103822007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10383
10384 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
10385 filling pixmap with stippled background.
10386
ad3b3e02
YM
103872007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10388
10389 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
10390 Don't use invisible frame as parent window for repositioning.
10391
a22dec27
SM
103922007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * print.c (new_backquote_output): Rename from old_backquote_output.
10395 (print): Inverse its logic (according to its name) so as to match the
10396 behavior of new_backquote_flag in lread.c.
10397
7b7d07bb
YM
103982007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10399
10400 * gmalloc.c (posix_memalign): New function.
10401
10402 * macterm.c (frame_highlight, frame_unhighlight): Don't call
10403 ActivateControl/DeactivateControl here.
10404 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
10405 frame-notice-user-settings is non-nil.
10406 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
10407 for kEventParamFMFontStyle.
10408 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
10409 mac_pass_command_to_system and mac_pass_control_to_system here.
10410 (XTread_socket): Call ActivateControl/DeactivateControl here.
10411 (XTread_socket) [TARGET_API_MAC_CARBON]:
10412 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
10413 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
10414 for window repositioning.
7b7d07bb 10415
22e9fe24
GM
104162007-08-08 Glenn Morris <rgm@gnu.org>
10417
10418 * Replace `iff' in doc-strings and comments.
10419
ae494350
CY
104202007-08-07 Chong Yidong <cyd@stupidchicken.com>
10421
10422 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
10423
6f2528d8
MR
104242007-08-07 Martin Rudalics <rudalics@gmx.at>
10425
10426 * fileio.c (Finsert_file_contents): Run format-decode and
10427 after_insert_file_functions on entire buffer when REPLACE is
10428 non-nil and inhibit modification_hooks and point_motion_hooks.
10429 For consistency, run after_insert_file_functions iff something
10430 got inserted. Move signal_after_change and update_compositions
10431 after code running after_insert_file_functions. Make sure that
6b8e474c 10432 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 10433
3ceeb306
YM
104342007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10435
10436 * emacs.c (main)
10437 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
10438 Call malloc_enable_thread on interactive startup.
10439
10440 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
10441 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
10442 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
10443 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
10444 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
10445 New functions.
10446
ca5e6fd5
CY
104472007-08-06 Chong Yidong <cyd@stupidchicken.com>
10448
32bfce5d
CY
10449 * xdisp.c (redisplay_window): When restoring original buffer
10450 position, make sure it is still valid.
10451
ca5e6fd5
CY
10452 * image.c (png_load): Ignore png-supplied background color.
10453
a5b11587
YM
104542007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10455
10456 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
10457 Use kCFAbsoluteTimeIntervalSince1970.
10458
10459 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
10460 New variable.
10461 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
10462 event loop should be quit.
10463 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
10464 Quit dialog event loop if quit_dialog_event_loop is set.
10465
10466 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
10467 (Selection): New typedef. Use instead of ScrapRef.
10468 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
10469 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
10470 (mac_clear_selection): Rename from clear_scrap.
10471 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 10472 scrap_has_target_type. All uses changed.
a5b11587
YM
10473 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10474 (mac_selection_has_target_p): New functions.
10475 (mac_put_selection_value): Rename from put_scrap_string.
10476 (mac_get_selection_value): Rename from get_scrap_string.
10477 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
10478 (put_scrap_private_timestamp, scrap_has_target_type)
10479 (get_scrap_private_timestamp): Remove functions.
10480 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
10481 (x_own_selection, x_get_local_selection):
10482 Use mac_valid_selection_value_p.
10483 (x_own_selection): Don't use put_scrap_private_timestamp.
10484 Record OWNERSHIP-INFO into Vselection_alist instead.
10485 (x_get_local_selection): Don't check type if request is local.
10486 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
10487 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
10488
880820fe 104892007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
10490
10491 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
10492 add comment explaining why.
10493
73ff9d42
RS
104942007-08-03 Richard Stallman <rms@gnu.org>
10495
10496 * fileio.c (Fvisited_file_modtime): Use make_time.
10497
54ed9a2d 104982007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
10499
10500 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
10501 build.
10502
65a9c8e2
SM
105032007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
10504
10505 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
10506
c5925799
KY
105072007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
10508
10509 * puresize.h (BASE_PURESIZE): Increase to 1130000.
10510
adef3de7
RS
105112007-07-30 Richard Stallman <rms@gnu.org>
10512
10513 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
10514
880820fe 105152007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
10516
10517 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
10518
a10421a1
NR
105192007-07-28 Nick Roberts <nickrob@snap.net.nz>
10520
10521 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
10522 remote default-directory.
10523
10524 * buffer.c (mode-line-format): Update doc string.
10525
0cb1ae20
YM
105262007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10527
10528 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
10529 scroll bar gap.
10530 (x_scroll_bar_create): Set bar->fringe_extended_p.
10531 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
10532 on frame edge. Check fringe background extension. Don't clear
10533 extended fringe background area.
10534
10535 * w32term.h (struct scroll_bar): New member fringe_extended_p.
10536 (w32_fill_area): Enclose multiple statements with do ... while (0).
10537
10538 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
10539 Extend fringe background to scroll bar gap.
10540 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
10541 Set bar->fringe_extended_p.
10542 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10543 Put leftmost/rightmost scroll bars on frame edge. Check fringe
10544 background extension. Don't clear extended fringe background area.
10545
10546 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
10547 New member fringe_extended_p.
10548
cacc7b51
GM
105492007-07-25 Glenn Morris <rgm@gnu.org>
10550
10551 * Relicense all FSF files to GPLv3 or later.
10552
10553 * COPYING: Switch to GPLv3.
10554
89835619
SM
105552007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
10556
c4f46926
SM
10557 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
10558
10559 * data.c (Finteractive_form): Check for the presence of an
10560 `interactive-form' symbol property more thoroughly.
10561
10562 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
10563 present, analogous to the function-documentation property.
10564
ee04257d
JR
105652007-07-24 Jason Rumney <jasonr@gnu.org>
10566
10567 * w32fns.c (x_real_positions): Get real position from OS instead of
10568 calculating it.
10569
50624218
JR
105702007-07-23 Jason Rumney <jasonr@gnu.org>
10571
10572 * filelock.c (current_lock_owner): Allow for @ sign in username.
10573
3650f60e
NR
105742007-07-22 Nick Roberts <nickrob@snap.net.nz>
10575
10576 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
10577 remote default-directory.
10578
10579 * buffer.c (mode-line-format): Describe above case in doc string.
10580
1e899515 105812007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 10582
75be5258
EZ
10583 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
10584 Define if not defined.
10585
2b6e2f4d
JR
105862007-07-18 Jason Rumney <jasonr@gnu.org>
10587
10588 * w32proc.c (w32_executable_type): Handle 64 bit executables.
10589
23dacf80
JB
105902007-07-18 Richard Stallman <rms@gnu.org>
10591
10592 * data.c (Fsetq_default): Doc fix.
10593
10594 * eval.c (Fsetq): Doc fix.
10595
105962007-07-18 Juanma Barranquero <lekktu@gmail.com>
10597
10598 * coding.c (Ffind_operation_coding_system):
10599 * eval.c (For, Fand): Doc fixes.
880820fe 10600 Reported by Johan Bockgård.
23dacf80 10601
880820fe 106022007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 10603
23dacf80 10604 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 10605
23dacf80 10606 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
10607
10608 * xterm.c (x_ewmh_activate_frame): New function.
10609 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
10610
71ec17e6
MR
106112007-07-17 Martin Rudalics <rudalics@gmx.at>
10612
10613 * window.c (Fdisplay_buffer): If largest or LRU window is the
10614 only window, split it even if it is not eligible for splitting.
10615 This restores the original behavior broken by the 2007-07-15
10616 change.
10617
e9818042
GM
106182007-07-17 Glenn Morris <rgm@gnu.org>
10619
10620 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
10621 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
10622 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
10623 constituents. Doc fix.
10624
e6fca843
SM
106252007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10626
10627 * process.c (Fstart_process, Fmake_network_process)
10628 (read_process_output): Fix up last changes.
10629
b5d2b4ab
EZ
106302007-07-16 Eli Zaretskii <eliz@gnu.org>
10631
10632 * makefile.w32-in (clean): Don't delete *~.
10633
413a79ad
AS
106342007-07-16 Andreas Schwab <schwab@suse.de>
10635
10636 * window.c (Fdisplay_buffer): Use NILP.
10637 (Fset_window_scroll_bars): Likewise.
10638
f1de8c77
MR
106392007-07-15 Martin Rudalics <rudalics@gmx.at>
10640
10641 * window.c (window_min_size_2): New function.
10642 (window_min_size_1, size_window, Fdisplay_buffer)
10643 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
10644 windows without mode- or header-lines when window-min-height is
10645 too small.
10646 (size_window): Reset nodelete_p after testing it, following an
10647 earlier note by Kim F. Storm.
10648 (display_buffer): Do not set split_height_threshold to twice the
10649 value of window_min_height to avoid changing the value of a
10650 customizable variable. Rather explicitly check whether the
10651 height of the window that shall be splitted is at least as large
10652 as split_height_threshold.
1af74d06
MB
10653 (Fwindow_full_width_p): New defun.
10654 (syms_of_window): Defsubr it.
d31053f9 10655
1af74d06 10656 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 10657
5e1ab613
JR
106582007-07-14 Jason Rumney <jasonr@gnu.org>
10659
10660 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
10661
f01cbfdd
RS
106622007-07-14 Richard Stallman <rms@gnu.org>
10663
10664 * eval.c (maybe_call_debugger): New function.
10665 (find_handler_clause): Use maybe_call_debugger.
10666 Call it when the handler says `debug'.
10667 Eliminate DEBUGGER_VALUE_PTR.
10668 (Fsignal): Eliminate debugger_value.
10669 (Qdebug): New variable.
10670 (syms_of_eval): Initialize it.
10671
1bab435a
JB
106722007-07-14 Juanma Barranquero <lekktu@gmail.com>
10673
10674 * eval.c (Fprogn):
10675 * keyboard.c (Ftrack_mouse):
10676 * print.c (Fwith_output_to_temp_buffer):
10677 * window.c (Fsave_window_excursion): Doc fix.
10678
be436d23
SM
106792007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
10680
10681 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
10682
60f0fb11
SM
106832007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
10684
10685 * process.h (struct Lisp_Process): Turn slots infd, outfd,
10686 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
10687 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
10688 read_output_delay, and read_output_skip from Lisp_Objects to ints.
10689 Remove unused encoding_carryover.
10690 * process.c: Adjust all functions accordingly.
10691
d8b18043
RS
106922007-07-12 Richard Stallman <rms@gnu.org>
10693
10694 * term.c: Include unistd.h only if HAVE_UNISTD_H.
10695
d5781bb6
JR
106962007-07-11 Jason Rumney <jasonr@gnu.org>
10697
10698 * makefile.w32-in (LIBS): Include OLE32.
10699
10700 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
10701 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
10702
5bb7dfee
SM
107032007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
10704
10705 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
10706 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
10707 from a Lisp_Object into a bare pointer.
10708 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10709 Adjust the code correspondingly.
10710
10711 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
10712
10713 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
10714 (term_show_mouse_face): Remove unused var `j'.
10715 (handle_one_term_event): Remove unused vars `i' and `j'.
10716 Don't cast return value of ttyname since it's not necessary.
10717
a1be1ce8
SM
107182007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
10719
5045e68e
SM
10720 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
10721 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
10722
8071c00f
SM
10723 * fns.c (map_char_table): Use an array of int for `indices' rather than
10724 an array of Lisp_Objects (which are only ever integers anyway).
10725 (Fmap_char_table): Update caller.
10726 * lisp.h: Update prototype.
10727 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
10728 * fontset.c (Ffontset_info):
10729 * casetab.c (set_case_table): Update callers.
10730
10731 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
10732
fab84e3c
SM
10733 * keymap.c (struct accessible_keymaps_data)
10734 (struct where_is_internal_data): New structures.
10735 (accessible_keymaps_1, where_is_internal_1): Use them to change
10736 interface to adhere to the one used by map_keymap.
10737 (Faccessible_keymaps, where_is_internal): Use map_keymap.
10738 (accessible_keymaps_char_table, where_is_internal_2): Remove.
10739
a1be1ce8
SM
10740 * keymap.h (map_keymap_function_t): More informative prototype.
10741
ef887810
RS
107422007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
10743
10744 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
10745 (looking_at_1): Don't change search_regs and last_thing_searched
10746 if `inhibit-changing-match-data' is non-nil.
10747 (string_match_1, search_buffer, set_search_regs): Likewise.
10748 (syms_of_search): Add Lisp level definition for
10749 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
10750 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
10751 start and end of the match, instead of using values in search_regs.
ef887810 10752
4d02fc25
SM
107532007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
10754
10755 * minibuf.c (Fcompleting_read): New value `confirm-only'
10756 for `require-match'.
10757
fe45b81f
SM
107582007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
10759
10760 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
10761 part of the 2007-06-27 change to syms_of_fileio.
10762
a56dd283
YM
107632007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10764
10765 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
10766 Check WINDOWP before using XWINDOW. Consolidate return statements.
10767
0cf9f5b5
RS
107682007-06-27 Richard Stallman <rms@gnu.org>
10769
10770 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10771
a66f285a
JB
107722007-06-27 Juanma Barranquero <lekktu@gmail.com>
10773
10774 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
10775
8d0d84d2
YM
107762007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10777
10778 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
10779 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
10780 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
10781 (_free_internal, memalign): Use them.
10782 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
10783 Initialize to PTHREAD_MUTEX_INITIALIZER.
10784 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
10785 (morecore_nolock): Rename from morecore. All uses changed.
10786 Use only nolock versions of internal allocation functions.
10787 (_malloc_internal_nolock, _realloc_internal_nolock)
10788 (_free_internal_nolock): New functions created from
10789 _malloc_internal, _realloc_internal, and _free_internal.
10790 (_malloc_internal, _realloc_internal, _free_internal): Use them.
10791 Copy hook value to automatic variable before its use.
10792 (memalign): Copy hook value to automatic variable before its use.
10793
5a0bbd9a
KH
107942007-06-26 Kenichi Handa <handa@m17n.org>
10795
10796 * coding.c (Ffind_operation_coding_system): Docstring improved.
10797 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
10798
9a51747b
DK
107992007-06-25 David Kastrup <dak@gnu.org>
10800
10801 * keymap.c (Fcurrent_active_maps): Add `position' argument.
10802 (Fwhere_is_internal): Adjust call to `current-active-maps' to
10803 cater for additional parameter.
10804
10805 * keymap.h: Adjust number of parameters to `current-active-maps'.
10806
10807 * doc.c (Fsubstitute_command_keys): Adjust call of
10808 `current-active-maps'.
10809
e4305426
DK
108102007-06-25 David Kastrup <dak@gnu.org>
10811
10812 * callint.c (Fcall_interactively): Make the parsing of interactive
10813 specs somewhat more readable.
10814
511a18d9
YM
108152007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10816
10817 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
10818 to scroll bar gap also when bitmap fills fringe. Draw only foreground
10819 if extended background has already been filled.
10820
512eb161
YM
108212007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10822
10823 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
10824 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
10825
10826 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
10827 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
10828 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
10829 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
10830 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
10831 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
10832 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
10833 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
10834 Run timers during dialog popup.
10835 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
10836
2386b1f1
JR
108372007-06-21 Jason Rumney <jasonr@gnu.org>
10838
10839 * image.c (convert_mono_to_color_image): Swap fore and background.
10840
fab8b787
JR
108412007-06-20 Jason Rumney <jasonr@gnu.org>
10842
10843 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
10844 (w32_free_bdf_font): Unmap memory not handle.
10845
15bdd7a0 108462007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
10847
10848 * gmalloc.c (__morecore): Fix the declaration to comply with the
10849 definition.
10850
1bb8a291
JB
108512007-06-20 Juanma Barranquero <lekktu@gmail.com>
10852
10853 * w32term.c (w32_delete_display): Remove leftover declaration.
10854 (w32_define_cursor, w32_initialize): Make static.
10855
10856 * w32.c (_wsa_errlist): Fix typo in error message.
10857 (init_environment): Ignore any environment variable from the
10858 registry having a null value.
10859
92648dea
GM
108602007-06-20 Glenn Morris <rgm@gnu.org>
10861
10862 * Makefile.in (LIBGIF): Default to -lgif.
10863
ff25d115
JR
108642007-06-17 Jason Rumney <jasonr@gnu.org>
10865
10866 * w32menu.c (add_menu_item): Don't use multibyte string functions on
10867 unicode strings.
10868
a1a578a5
JB
108692007-06-16 Juanma Barranquero <lekktu@gmail.com>
10870
10871 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
10872 Fix typo in docstring.
10873
af41f8a8
EZ
108742007-06-16 Eli Zaretskii <eliz@gnu.org>
10875
10876 * w32menu.c (add_menu_item): Escape `&' characters in menu items
10877 and their keybindings.
10878
8b29cab9
CY
108792007-06-15 Chong Yidong <cyd@stupidchicken.com>
10880
10881 * composite.c (update_compositions): Fix last fix.
10882
c433c134
JR
108832007-06-14 Jason Rumney <jasonr@gnu.org>
10884
10885 * w32.c (get_process_times_fn): New function pointer.
10886 (globals_of_w32): Intialize it if present in kernel32.dll.
10887 (w32_get_internal_run_time): New function.
10888
10889 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
10890
553d3164
KH
108912007-06-14 Kenichi Handa <handa@etlken.m17n.org>
10892
10893 * composite.c (update_compositions): Check the validness of
10894 compositions.
10895
446ba96f
YM
108962007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10897
10898 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
10899 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
10900
10901 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
10902 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
10903
10904 * macgui.h (USE_MAC_TOOLBAR): New define.
10905
10906 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
10907 Return immediately unless popup is activated.
10908
10909 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
10910 background to scroll bar gap.
10911 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
10912 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
10913 scroll bars on frame edge. Check fringe background extension.
10914 Don't clear extended fringe background area.
10915 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
10916 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
10917 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
10918 [USE_MAC_TOOLBAR]: New macros.
10919 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
10920 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
10921 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
10922 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
10923 [USE_MAC_TOOLBAR]: New functions.
10924 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
10925 manually if previous repositioning has failed.
10926 (mac_handle_keyboard_event): Use precomputed event kind.
10927 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
10928 as tool bar item click. Handle mouse movement over tool bar items.
10929
10930 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
10931 toolbar_win_gravity.
10932 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
10933 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
10934 Add externs.
10935
10936 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
10937 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
10938
9720173f
CY
109392007-06-14 Chong Yidong <cyd@stupidchicken.com>
10940
10941 * image.c (search_image_cache): Remove unused variable.
10942
1217dd00
CY
109432007-06-13 Chong Yidong <cyd@stupidchicken.com>
10944
10945 * xfns.c, xmenu.c: Link to xaw3d if available.
10946
c5b8e0ea
YM
109472007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10948
10949 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
10950 frame_foreground and frame_background.
10951
10952 * image.c (lookup_image): Save frame foreground and background colors.
10953 (search_image_cache): Check if saved and current frame colors match.
10954
c69b0314
SM
109552007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10956
10957 * regex.c (regex_compile): Remove the `regnum' counter.
10958 Use bufp->re_nsub instead. Add support for \(?N:RE\).
10959
c9612b8e
SM
109602007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10961
10962 * term.c: Include intervals.h to declare Fget_text_property.
10963
843d2458
JR
109642007-06-10 Jason Rumney <jasonr@gnu.org>
10965
10966 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
10967
1e0d2d60 109682007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
10969
10970 * callint.c (Fcall_interactively):
10971 * editfns.c (Fdelete_and_extract_region):
10972 * fileio.c (Fread_file_name):
10973 * fns.c (Fmapconcat):
10974 * keyboard.c (cmd_error_internal):
10975 * keymap.c (Fkey_description):
10976 * lread.c (openp):
10977 * minibuf.c (read_minibuf):
10978 * search.c (wordify):
10979 * sunfns.c (sel_read):
10980 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
10981 * xfns.c (x_default_scroll_bar_color_parameter):
10982 * xmenu.c (menu_help_callback):
10983 * xselect.c (Fx_get_atom_name):
10984 * xterm.c (x_term_init): Use empty_unibyte_string.
10985
15bdd7a0 109862007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
10987
10988 * alloc.c (init_strings): Initialize canonical empty strings.
10989 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
10990 canonical empty string when the requested size is 0.
10991
10992 * emacs.c (empty_unibyte_string): Rename from empty_string.
10993 (empty_multibyte_string): New canonical empty string.
10994 (syms_of_emacs): Don't initialize empty_string.
10995
10996 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
10997 string, if appropriate.
10998 (empty_unibyte_string, empty_multibyte_string): New externs.
10999 (empty_string): Remove extern.
11000
11001 * lread.c (syms_of_lread): Use empty_unibyte_string.
11002
42c4c67a
JR
110032007-06-07 Jason Rumney <jasonr@gnu.org>
11004
11005 * s/ms-w32.h: Don't define HAVE_TZNAME.
11006
11007 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11008
aa8280d3
YM
110092007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11010
11011 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11012
11013 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11014 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11015
11016 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11017 Don't call next handler.
11018 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11019 Remove argument. Install handler to application.
11020 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11021 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11022 FRAME_OUTER_TO_INNER_DIFF_Y.
11023 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11024 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11025 [HAVE_DIALOGS]: New macros.
11026 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11027 Use them.
11028 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11029
11030 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11031 init_service_handler. All callers changed. Return OSStatus value.
11032
11033 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11034 All callers changed so as not to call SetPortWindowPort.
11035 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11036 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11037 mac_draw_string_common.
11038 (mac_draw_image_string_qd): Likewise.
11039 (mac_draw_string_common): Use them. Add INLINE.
11040 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11041 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11042 GetGlobalMouse.
11043 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11044 and FRAME_OUTER_TO_INNER_DIFF_Y.
11045 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11046 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11047 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11048 repositioning window to mac_handle_window_event.
11049 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11050 saving window location to mac_handle_window_event
11051 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11052 (install_menu_target_item_handler): Remove argument in extern.
11053 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11054 Also accept command events.
11055 (do_keystroke): New function created from XTread_socket.
11056 (init_command_handler): Remove functions.
11057 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11058 and save window location by kEventWindowShowing and kEventWindowHiding
11059 handlers here. Don't call next handler for window state change and
11060 focus events.
11061 (mac_handle_application_event, mac_handle_keyboard_event)
11062 [TARGET_API_MAC_CARBON]: New functions.
11063 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11064 kEventWindowShowing and kEventWindowHiding events. Move installation
11065 of mouse, font, text input and menu target item handlers to
11066 install_application_handler.
11067 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11068 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11069 New function.
11070 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11071 Register it.
c9612b8e
SM
11072 (XTread_socket) [TARGET_API_MAC_CARBON]:
11073 Consolidate SendEventToEventTarget calls.
11074 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11075 Move application activation handler to mac_handle_application_event.
11076 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11077 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11078 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11079 init_command_handler. Call install_application_handler.
11080
11081 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11082 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11083
6926c954
GM
110842007-06-07 Glenn Morris <rgm@gnu.org>
11085
11086 * emacs.c (main): Use `emacs-copyright' in --version output.
11087
6fe04c89
CY
110882007-06-06 Chong Yidong <cyd@stupidchicken.com>
11089
c9612b8e 11090 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11091
7eb0d727
YM
110922007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11093
11094 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11095
11096 * macgui.h: Replace WindowPtr with WindowRef.
11097
11098 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11099 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11100 Replace ControlHandle with ControlRef.
11101 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11102
11103 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11104 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11105 Replace ControlHandle with ControlRef.
11106 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11107 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11108
11109 * macterm.h (struct scroll_bar): Rename member control_handle_low
11110 and control_handle_high to control_ref_low and control_ref_high.
11111 All uses changed.
11112 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11113 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11114 respectively. All uses changed.
11115 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11116 (install_window_handler, remove_window_handler): Replace WindowPtr
11117 with WindowRef in externs.
11118
65fddb74
JB
111192007-06-05 Juanma Barranquero <lekktu@gmail.com>
11120
11121 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
11122
db1213a9
NR
111232007-06-03 Nick Roberts <nickrob@snap.net.nz>
11124
11125 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
11126
65fddb74 11127 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
11128 Condition on HAVE_GPM too.
11129
11130 * term.c (term_mouse_highlight): Remove unused variables.
11131 (Fterm_open_connection): Set gpm_zerobased to 1.
11132 (term_mouse_movement, term_mouse_click, handle_one_term_event):
11133 Use zero based co-ordinates.
11134 (handle_one_term_event): Report a drag as mouse movement too.
11135
11136 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
11137
d94df25b
CY
111382007-06-03 Chong Yidong <cyd@stupidchicken.com>
11139
11140 * image.c (search_image_cache): New function. Require background
11141 color match if background color is unspecified in the image spec.
11142 (uncache_image, lookup_image): Use it.
11143
4797b6d9
JB
111442007-06-01 Juanma Barranquero <lekktu@gmail.com>
11145
11146 * window.c (Fshrink_window): Reflow docstring.
11147
1ffe7343
NR
111482007-06-02 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * Version 22.1 released.
11151
111522007-06-01 Richard Stallman <rms@gnu.org>
11153
11154 * xfns.c (x_encode_text): Add GCPRO.
11155
111562007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11157
11158 * xfns.c (x_set_name_internal): Save encoded name before
11159 x_encode_text in case string data is relocated.
11160
111612007-05-31 Richard Stallman <rms@gnu.org>
11162
11163 * buffer.c (syms_of_buffer): Doc fix.
11164
111652007-05-30 Nick Roberts <nickrob@snap.net.nz>
11166
11167 * sysdep.c (init_sys_modes): Add rather than replace with
11168 O_NONBLOCK.
11169
11170 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
11171 term_mouse_moveto.
11172
11173 * termhooks.h (term_mouse_moveto): New extern.
11174
11175 * term.c (mouse_face_window): Rename...
11176 (Qmouse_face_window): ...to this.
11177 (term_show_mouse_face, term_clear_mouse_face)
11178 (term_mouse_highlight): Use Qmouse_face_window.
11179 (term_mouse_moveto): New function.
11180 (term_mouse_position): Make it work.
11181 (syms_of_term): Uncomment assignment to mouse_position_hook.
11182 Staticpro Qmouse_face_window.
11183
111842007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11185
11186 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
11187 around current_column call.
11188
111892007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
11190
11191 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
11192 * xdisp.c (next_element_from_buffer):
11193 * window.c (delete_window):
11194 * term.c (term_mouse_highlight):
11195 * msdos.c (getdefdir):
11196 * macterm.c (mac_create_bitmap_from_bitmap_data)
11197 (init_font_name_table):
11198 * fns.c (Fsxhash):
11199 * data.c (Fmake_local_variable):
11200 * ccl.c (ccl_driver): Likewise.
11201
112022007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11203
11204 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
11205 Call mac_wakeup_from_rne on window size change.
11206
112072007-05-25 Chong Yidong <cyd@stupidchicken.com>
11208
11209 * image.c (uncache_image): Fix typo.
11210
112112007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
11212
11213 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
11214
112152007-05-22 Richard Stallman <rms@gnu.org>
11216
11217 * xterm.c (x_connection_closed): Remove NO_RETURN.
11218
112192007-05-22 Martin Rudalics <rudalics@gmx.at>
11220
11221 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
11222
112232007-05-21 Chong Yidong <cyd@stupidchicken.com>
11224
11225 * image.c (uncache_image): New function.
11226 (Fimage_refresh): New function.
11227
880820fe 112282007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11229
11230 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
11231
112322007-05-20 Nick Roberts <nickrob@snap.net.nz>
11233
11234 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
11235 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
11236
112372007-05-20 Nick Roberts <nickrob@snap.net.nz>
11238
11239 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
11240 conditional on [HAVE_GPM_H].
11241
112422007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11243
11244 * syntax.c (skip_chars): Update syntax-table only after we checked that
11245 the new location is valid.
11246
112472007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11248
11249 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
11250 mac_get_window_bounds.
11251
112522007-05-20 Nick Roberts <nickrob@snap.net.nz>
11253
11254 * Makefile.in (LIBGPM): Allow it to be set from configure.
11255 If set then link Emacs with it.
11256
11257 * config.in: Regenerate.
11258
11259 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
11260 New externs.
11261
11262 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
11263 Include gpm.h.
11264 (handle_one_term_event, term_gpm): New externs.
11265
11266 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
11267 and allow it to be interrupted by SIGIO.
11268
11269 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
11270 (wait_reading_process_output): Wait on gpm_fd too.
11271 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
11272 (add_gpm_wait_descriptor_called_flag): New variable.
11273 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
11274
11275 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
11276 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
11277 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
11278 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
11279 (make_lispy_event): Add case GPM_CLICK_EVENT.
11280 (read_avail_input): Handle mouse input.
11281
11282 * term.c (write_glyphs_with_face): New function.
11283 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
11284 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
11285 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
11286 (mouse_face_face_id, term_gpm, pos_x, pos_y)
11287 (last_mouse_x, last_mouse_y): New variables.
11288 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
11289 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
11290 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
11291 (Fterm_close_connection): New functions.
11292 (term_init): Initialise mouse_face_window.
11293
112942007-05-19 Chong Yidong <cyd@stupidchicken.com>
11295
11296 * xdisp.c (redisplay_window): If first window line is a
11297 continuation line, recompute the new window start instead of
11298 recentering.
11299
113002007-05-18 Glenn Morris <rgm@gnu.org>
11301
11302 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
11303 Suggested by Alfred M. Szmidt <ams@gnu.org>.
11304
113052007-05-17 Glenn Morris <rgm@gnu.org>
11306
11307 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
11308
113092007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11310
11311 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
11312 dead key repeat and up events.
11313
113142007-05-14 Chong Yidong <cyd@stupidchicken.com>
11315
11316 * image.c (pbm_load): Check image size for monochrome pbm.
11317
113182007-05-13 Chong Yidong <cyd@stupidchicken.com>
11319
11320 * xterm.c (XTread_socket): Revert last change.
11321
113222007-05-12 Chong Yidong <cyd@stupidchicken.com>
11323
11324 * image.c (pbm_load): Correctly check image size for greyscale pbm.
11325
11326 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
11327
113282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11329
11330 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
11331 mixup (YAILOM).
11332
113332007-05-07 Andreas Schwab <schwab@suse.de>
11334
11335 * keymap.c (Flookup_key): Fix typo in last change.
11336
113372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
11338
11339 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
11340 mapping for unibyte strings.
11341
113422007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11343
11344 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
11345 (Fx_popup_dialog) [MAC_OSX]: Likewise.
11346
113472007-04-29 Richard Stallman <rms@gnu.org>
11348
11349 * insdel.c (replace_range): For undo, record insertion first.
11350
113512007-04-29 Andreas Schwab <schwab@suse.de>
11352
11353 * lisp.h (VECSIZE): Use OFFSETOF.
11354
113552007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11356
11357 * xdisp.c (try_window_reusing_current_matrix): Fix number of
11358 disabled lines.
11359
113602007-04-28 Richard Stallman <rms@gnu.org>
11361
11362 * lread.c (read_escape): In a string, \s is always space.
11363
880820fe 113642007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
11365
11366 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
11367
11368 * gtkutil.c (xg_update_menubar, create_menus): Create empty
11369 submenu for menu bar items.
11370
382c648d 11371See ChangeLog.10 for earlier changes.
6922b018
KH
11372
11373;; Local Variables:
880820fe 11374;; coding: utf-8
33462dfa 11375;; add-log-time-zone-rule: t
6922b018 11376;; End:
2a34a036 11377
59ce725a 11378 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
11379
11380 This file is part of GNU Emacs.
11381
5a1dde61 11382 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 11383 it under the terms of the GNU General Public License as published by
5a1dde61
GM
11384 the Free Software Foundation, either version 3 of the License, or
11385 (at your option) any later version.
7f6d64f8
GM
11386
11387 GNU Emacs is distributed in the hope that it will be useful,
11388 but WITHOUT ANY WARRANTY; without even the implied warranty of
11389 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11390 GNU General Public License for more details.
11391
11392 You should have received a copy of the GNU General Public License
5a1dde61 11393 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 11394
28f60c3d 11395;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40