Update Back-Cover Text as per maintain.info.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d434fef5 12008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
2
3 * lread.c (Fload): Use xfree, not free on saved_doc_string.
4
9c5e177e
JM
52008-06-12 Jim Meyering <meyering@redhat.com>
6
d434fef5 7 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
8 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9
2afc21f5
SM
102008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11
12 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15 (WEAK_ALIAS): Simplify.
16 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
17 when searching a unibyte buffer.
18
76c0de62
CY
192008-06-12 Chong Yidong <cyd@stupidchicken.com>
20
21 * xfns.c (Fx_select_font): Rename from x-font-dialog.
22
0500dcc9
JB
232008-06-12 Juanma Barranquero <lekktu@gmail.com>
24
25 * w32font.c: Include ctype.h.
26
f42adef6
JR
272008-06-11 Jason Rumney <jasonr@gnu.org>
28
2afc21f5
SM
29 * w32font.c (w32font_encode_char): Detect missing glyphs that are
30 misreported as space.
31 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
32 as aliases for registry iso10646-1.
f42adef6 33
4b7cdc0e
SM
342008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
35
36 * buffer.c (clone_per_buffer_values): Skip `name'.
37
cc02ebe1
CY
382008-06-11 Chong Yidong <cyd@stupidchicken.com>
39
40 * font.c (font_parse_fcname): Fix last change; accept decimal
41 points in font size.
42
351ccb76
JR
432008-06-10 Jason Rumney <jasonr@gnu.org>
44
0500dcc9
JB
45 * w32uniscribe.c (add_opentype_font_name_to_list):
46 Skip non unicode fonts.
351ccb76 47
f473ed6f
CY
482008-06-10 Chong Yidong <cyd@stupidchicken.com>
49
50 * xfns.c (Fx_font_dialog): New function.
51
5d6333d5 52 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
53 xg_file_response_callback.
54 (pop_down_dialog): Rename from pop_down_file_dialog.
55 (xg_get_file_name): Callers changed.
56 (xg_get_font_name): New function.
57
5d6333d5 58 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 59
2a3bd2e1
SM
602008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
61
62 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
63 x_underline_minimum_display_offset.
64 (syms_of_xdisp): Declare it here rather than in xterm.c.
65 * dispextern.h (underline_minimum_offset): Declare it.
66 * w32term.c (x_draw_glyph_string): Use it.
67 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
68 (syms_of_xterm): Don't declare it any more.
69 (x_draw_glyph_string): Adjust to the new name.
70
d5dc6163
SM
712008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
72
73 * xterm.c (x_underline_minimum_display_offset): New var.
74 (x_draw_glyph_string): Use it.
75 (syms_of_xterm): Declare it.
76
0abdd197
CY
772008-06-10 Chong Yidong <cyd@stupidchicken.com>
78
79 * font.c (font_parse_fcname): Accept GTK-style font names too.
80
a1562258
SM
812008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
82
928b5acc
SM
83 * dired.c (file_name_completion): Don't return t if the match is exact
84 but with different capitalization.
85 * minibuf.c (Ftry_completion): Simplify.
86
a1562258
SM
87 * window.c (Vwindow_point_insertion_type): New var.
88 (set_window_buffer): Use it.
89 (syms_of_window): Init and export it to Lisp.
90
9552dbd1
KH
912008-06-10 Kenichi Handa <handa@m17n.org>
92
93 * font.h (font_intern_prop): Prototype adjusted.
94
95 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
96 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
97 Adjust for the change of font_intern_prop.
9552dbd1 98
a1562258
SM
99 * ftfont.c (ftfont_pattern_entity):
100 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
101 (w32_registry):
102 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
103 the change of font_intern_prop.
104
8993ad2e
JB
1052008-06-09 Juanma Barranquero <lekktu@gmail.com>
106
107 * w32menu.c (digest_single_submenu): Declare extern.
108
0c2258fc
JR
1092008-06-09 Jason Rumney <jasonr@gnu.org>
110
a1562258 111 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 112
a1562258
SM
113 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
114 (parse_single_submenu): Remove.
115 (digest_single_submenu): Remove.
116 (syms_of_w32menu): Don't initialise variables that have moved
117 to menu.c.
118 (set_frame_menubar): Sync with version in xmenu.c.
119 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 120
8993ad2e
JB
121 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
122 Make static again.
0c2258fc 123
02246cb8
JR
1242008-06-09 Jason Rumney <jasonr@gnu.org>
125
8993ad2e
JB
126 Changes to w32 files related to the move of common menu code
127 to menu.c on 2008-06-08 by Chong Yidong.
128
129 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
130 defs to w32gui.h.
131 (single_keymap_panes, push_menu_item, push_menu_pane):
132 Make globally visible.
133
d434fef5
JB
134 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
135 (local_free, malloc_widget_value, free_widget_value)
136 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
137 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
138 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 139 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 140 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
141 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
142 (init_menu_items, finish_menu_items, discard_menu_items)
143 (grow_menu_items, push_submenu_start, push_submenu_end)
144 (push_left_right_boundary, push_menu_pane, push_menu_item)
145 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 146 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
147 (update_submenu_strings): Remove functions.
148 (xmalloc_widget_value): Remove and declare extern.
149
150 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
151 (OBJ1): Build it.
152
153 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
154 (local_heap, local_alloc, local_free, malloc_widget_value)
155 (free_widget_value): Define here.
02246cb8 156
9e1bb909
KH
1572008-06-09 Kenichi Handa <handa@m17n.org>
158
366664ad
KH
159 * font.h (Qascii_0): Extern it.
160
9e1bb909
KH
161 * font.c (Qascii_0): New variable.
162 (syms_of_font): DEFSYM it.
163 (font_open_by_name): If the registry "iso8859-1" fails, try also
164 "ascii-0".
165
166 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
167
b2ee479e
KH
1682008-06-08 Kenichi Handa <handa@m17n.org>
169
8f440b79 170 * .gdbinit (xfont): New command.
b2ee479e 171
01ef9d36
AS
1722008-06-08 Andreas Schwab <schwab@suse.de>
173
a4240420
AS
174 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
175 * Makefile.in (menu.o): Update dependencies.
176
0181bf66 177 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
178 * emacs.c (main): Always call syms_of_menu.
179 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
180
c07cbae6
CY
1812008-06-08 Chong Yidong <cyd@stupidchicken.com>
182
183 * Makefile.in: Compile menu.c.
184
185 * lisp.h: Declare syms_of_menu.
186
187 * emacs.c (main): Call syms_of_menu.
188
189 * keyboard.h: Relocate platform-independent menu definitions from
190 xmenu.c.
191
192 * menu.c: New file. Relocate platform-independent menu
904d8c69 193 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
194
195 * xmenu.c: Remove platform-independent menu definitions.
196 (menu_items menu_items_inuse, menu_items_allocated)
197 (menu_items_used, menu_items_n_panes)
198 (menu_items_submenu_depth): Move to keyboard.h.
199 (init_menu_items, finish_menu_items, unuse_menu_items)
200 (discard_menu_items, restore_menu_items, save_menu_items)
201 (grow_menu_items, push_submenu_start, push_submenu_end)
202 (push_left_right_boundary, push_menu_pane, push_menu_item)
203 (keymap_panes, single_keymap_panes, single_menu_item)
204 (list_of_panes, list_of_items, find_and_call_menu_selection)
205 (xmalloc_widget_value, free_menubar_widget_value_tree)
206 (parse_single_submenu, digest_single_submenu)
207 (update_submenu_strings): Move to menu.c.
208
4958ed94
SM
2092008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
210
211 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
212
408b8ab4
MB
2132008-06-06 Miles Bader <miles@gnu.org>
214
215 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
216 face, not frame default.
217
87478b52
SM
2182008-06-05 Martin Rudalics <rudalics@gmx.at>
219
220 * window.c (pop_up_windows, pop_up_frames)
221 (display_buffer_reuse_frames, Vpop_up_frame_function)
222 (Vdisplay_buffer_function, Veven_window_heights)
223 (Vspecial_display_buffer_names, Vspecial_display_regexps)
224 (Vspecial_display_function, Vsame_window_buffer_names)
225 (Vsame_window_regexps, split_height_threshold)
226 (Vsplit_window_preferred_function): Move those vars to window.el.
227 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
228 (Fdisplay_buffer): Move those functions to window.el.
229 (syms_of_window): Remove corresponding declarations.
230 (display_buffer): New function.
231 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
232 * dispnew.c (Flast_nonminibuf_frame): New function.
233 * buffer.c (Fpop_to_buffer): Move to window.el.
234
9e0e0d77
SM
2352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
236
237 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
238
4a485df8
KH
2392008-06-05 Kenichi Handa <handa@m17n.org>
240
241 * coding.c (detect_coding): Fix previous change.
242 (detect_coding_system): Likewise.
243
8ba31f36
SM
2442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
245
c0dc8f64
SM
246 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
247
8ba31f36
SM
248 * keymap.c (Vminibuffer_local_filename_must_match_map):
249 Rename from Vminibuffer_local_must_match_filename_map.
250 (syms_of_keymap):
251 * minibuf.c (Fcompleting_read): Adjust accordingly.
252 * commands.h: Rename declaration as well.
253
7740d2c7
KH
2542008-06-05 Kenichi Handa <handa@m17n.org>
255
e7438ece
KH
256 * font.c (Ffont_spec): Don't use font_parse_family_registry for
257 family name.
258 (Ffont_put): Likewise.
259
260 * fontset.c (fontset_find_font): Call font_open_for_lface with the
261 current font-spec.
262
7740d2c7
KH
263 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
264 is unspecified.
265
266 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
267 are the same as those of default face, realize a new fontset from
268 default->fontset.
9e0e0d77 269 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 270
c876b227
SM
2712008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
272
273 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
274 (move_it_in_display_line): New wrapper.
275
276 * window.c (window_scroll_pixel_based_preserve_x)
277 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
278 (window_scroll_pixel_based, window_scroll_line_based):
279 Use them to preserve column positions.
280 (syms_of_window): Initialize them.
281
282 * indent.c (Fvertical_motion): Extend first arg to allow passing an
283 (HPOS . VPOS) pair.
284
285 * dispextern.h (move_it_in_display_line): Declare.
286
927abf37
JB
2872008-06-05 Juanma Barranquero <lekktu@gmail.com>
288
289 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
290 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
291 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
292
9d14503e
JB
2932008-06-04 Juanma Barranquero <lekktu@gmail.com>
294
295 * window.c (Fset_window_parameter): Doc fix.
296 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
297
e6841c3b
JB
2982008-06-04 Joakim Verona <joakim@verona.se>
299
300 * window.h (struct window): Add new member window_parameters.
301
302 * window.c (Fwindow_parameters, Fwindow_parameter)
303 (Fset_window_parameter): New defuns.
304 (syms_of_window): Defsubr the new defuns.
305 (make_window): Initialize window_parameters to nil.
306
4ba50634
JPW
3072008-06-04 John Paul Wallington <jpw@pobox.com>
308
309 * eval.c (Fdefmacro): Doc fix.
310
c0e16b14
KH
3112008-06-04 Kenichi Handa <handa@m17n.org>
312
313 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 314 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
315 (detect_coding_system): Fix handling of coding->head_ascii.
316
0615d903
AS
3172008-06-03 Andreas Schwab <schwab@suse.de>
318
319 * font.c (font_prop_validate_spacing): Fix last change.
320
8a1816bb
KH
3212008-06-03 Kenichi Handa <handa@m17n.org>
322
eea9c5c4
KH
323 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
324 (font_parse_fcname): Fix handling of unknown key.
325
326 * xfont.c (xfont_list): Try an alias.
327
8a1816bb
KH
328 * charset.c (char_charset): Return NULL if the arg charset_list is
329 specified and C doesn't belong to any of them.
330
2f593f4c 3312008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
332
333 * font.c (font_pixel_size): Don't take cdr of an integer.
334
c2cd06e6
JM
3352008-06-02 Jim Meyering <meyering@redhat.com>
336
70fdbb46
JM
337 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
338 * alloc.c (xfree): Return right away for a NULL arg.
339 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
340 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
341 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
342 (create_apple_event_from_drag_ref, cfstring_create_normalized):
343 Likewise.
70fdbb46
JM
344 * doprnt.c (doprnt1): Likewise.
345 * frame.c (frame): Likewise.
346 * keyboard.c (wipe_kboard): Likewise.
1f204af3 347 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
348 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
349 * term.c (tty_default_color_capabilities, maybe_fatal)
350 (delete_tty): Likewise.
351 * w16select.c (string): Likewise.
352 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
353 * w32bdf.c (w32_free_bdf_font): Likewise.
354 * w32fns.c (w32_unload_font): Likewise.
355 * w32font.c (w32font_close): Likewise.
356 * window.c (size_window): Likewise.
357 * xselect.c (receive_incremental_selection): Likewise.
358 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
359 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
360 * w32.c (stat): Likewise.
361
2f593f4c 362 Remove useless if-before-free tests.
70fdbb46
JM
363 * editfns.c (Fset_time_zone_rule): Likewise.
364 * lread.c (nosuffix): Likewise.
365 * ralloc.c (get_bloc): Likewise.
366 * regex.c (reg_free): Likewise.
367 * xftfont.c (xftfont_open, xftfont_close): Likewise.
368 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
369 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 370
4fc1984a
KH
3712008-06-02 Kenichi Handa <handa@m17n.org>
372
1d1e1245
KH
373 * font.c (font_find_for_lface): Handle float font size.
374 (font_open_for_lface): Likewise.
375
4fc1984a
KH
376 * xfaces.c (x_supports_face_attributes_p): Check face->font before
377 comparing the properties.
378
aee986fd
JR
3792008-06-01 Jason Rumney <jasonr@gnu.org>
380
e6841c3b
JB
381 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
382 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
383 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
384 Don't add empty script list.
385 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 386
60a3d7ee
DN
3872008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
388
aee986fd 389 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
390 ".." has been used elsewhere in the file for a long time.
391 (LIBXT_STATIC): Remove conditional based on unused variable.
392
f2cec7a9
MB
3932008-06-01 Miles Bader <miles@gnu.org>
394
395 * xfaces.c (Vface_remapping_alist): New variable.
396 (syms_of_xfaces): Initialize it.
397 (enum named_merge_point_kind): New type.
398 (struct named_merge_point): Add `named_merge_point_kind' field.
399 (push_named_merge_point): Make cycle detection respect different
400 named-merge-point kinds.
c876b227 401 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
402 Remove face-name alias resolution.
403 (lface_from_face_name): New definition using
404 `lface_from_face_name_no_resolve'.
c876b227 405 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
406 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
407 (get_lface_attributes): New definition that layers face-remapping on
408 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
409 (lookup_basic_face): New function.
410 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
411 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
412 `get_lface_attributes'.
413 (face_at_buffer_position): Use `lookup_basic_face' to lookup
414 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
415 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
416
417 * xdisp.c (init_iterator): Pass base_face_id through
418 `lookup_basic_face' when we actually use it as a face-id.
419 (handle_single_display_prop): Use `lookup_basic_face' to lookup
420 DEFAULT_FACE_ID.
421
422 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
423 lookup the initial face-id.
424
425 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
426
518c0b83
JB
4272008-06-01 Juanma Barranquero <lekktu@gmail.com>
428
429 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
430 (Fremove_text_properties): Fix typos in docstrings.
431
719b3d63
KH
4322008-05-31 Kenichi Handa <handa@m17n.org>
433
e4c93315
KH
434 * font.c (font_list_entities): Fix the car part of data to be
435 stored in the cache.
436
719b3d63
KH
437 * ftfont.c (ftfont_font_format): Don't use strcasestr.
438
d0827857
SM
4392008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
440
441 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
442 Add a `test' argument so another predicate than `equal' can be used.
443 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
444 (map_char_table): Remove unused vars `c' and `i'.
445 * lisp.h (Foptimize_char_table): Adjust declaration.
446 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
447
a266686a
KH
4482008-05-30 Kenichi Handa <handa@m17n.org>
449
d0827857 450 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
451 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
452 defined.
453
fd9440c5
SM
4542008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
455
456 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
457 (Fmake_variable_frame_local): Disallow mixing buffer-local and
458 frame-local settings for the same variable.
459
fd2ae9b2
KH
4602008-05-30 Kenichi Handa <handa@m17n.org>
461
9e0e0d77 462 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
463 (syms_of_fontset): Delete defsubr of Sfont_info.
464
465 * font.c (font_style_to_value, font_score): Delete casting of the
466 args to xstcasecmp.
467 (register_font_driver): Increment num_font_drivers only when
468 registering the driver globally.
9e0e0d77 469 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
470 (syms_of_font): Defsubr Sfont_info.
471
eaf11618
KH
4722008-05-29 Kenichi Handa <handa@m17n.org>
473
474 * coding.h (enum define_coding_utf8_arg_index): New enum.
475 (enum coding_attr_index): Change coding_attr_utf_16_bom to
476 coding_attr_utf_bom.
fd9440c5
SM
477 (enum utf_bom_type): Rename from utf_16_bom_type.
478 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
479 (struct coding_system): Add utf_8_bom in `spec' union.
480
481 * coding.c (CODING_UTF_8_BOM): New macro.
482 (enum coding_category): Delete coding_category_utf_8, add
483 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
484 coding_category_utf_8_sig.
485 (CATEGORY_MASK_UTF_8): Delete it.
486 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
487 (CATEGORY_MASK_UTF_8_SIG): New macros.
488 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
489 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
490 CATEGORY_MASK_UTF_8_SIG.
491 (CATEGORY_MASK_UTF_8): New macro.
492 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
493 (detect_coding_utf_8): Check BOM.
494 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 495 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
496 (encode_coding_utf_16): Likewise.
497 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
498 (detect_coding, detect_coding_system): Handle utf-8-auto.
499 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
500 (syms_of_coding): Fix setting up of Vcoding_category_table.
501
891bd142
SM
5022008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
503
504 * process.c (Faccept_process_output): If `millisec' is non-nil,
505 `seconds' default to 0.
506 (wait_reading_process_output): Also return non-nil if we read output
507 from a non-running process.
508
1519d52e
JR
5092008-05-29 Jason Rumney <jasonr@gnu.org>
510
fd9440c5
SM
511 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
512 `raster' specified.
513 (add_font_entity_to_list): Allow non-opentype truetype fonts back
514 in the uniscribe backend, but disallow any font that has no
515 unicode subrange support.
1519d52e 516
d5ab09cd
JB
5172008-05-29 Juanma Barranquero <lekktu@gmail.com>
518
519 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
520 Fix typos in docstrings.
521
a4eec626
KH
5222008-05-29 Kenichi Handa <handa@m17n.org>
523
524 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 525 (Fx_family_fonts): Set frame correctly.
a4eec626 526
a6e0b7e5
JR
5272008-05-28 Jason Rumney <jasonr@gnu.org>
528
d5ab09cd 529 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 530
6b3d752c
SM
5312008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
532
533 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
534 calling build_annotations.
535
c3f9fba8
JB
5362008-05-28 Juanma Barranquero <lekktu@gmail.com>
537
538 * coding.c (Fdecode_coding_region, Fencode_coding_region)
539 (Fencode_coding_string):
540 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
541 <latin-extra-code-table>: Fix typos in docstrings.
542 (syms_of_coding) <coding-system-alist>: Doc fix.
543 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
544
00c670e1
KH
5452008-05-28 Kenichi Handa <handa@m17n.org>
546
b75d7f28
KH
547 * fontset.c (Ffont_info): Don't call font_close_object.
548
549 * font.c (font_parse_family_registry): Use Ffont_put to validate
550 foundry and family.
551 (font_delete_unmatched): Don't check spacing.
552 (font_list_entities): Add spacing to the spec to list fonts.
553
554 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 555 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 556
00c670e1
KH
557 * coding.c (encode_coding_raw_text): Fix previous change.
558 (encode_coding_object): When the dst_object is a buffer and is
559 different from src_object, move gap to PT.
560
45feca91
CY
5612008-05-27 Chong Yidong <cyd@stupidchicken.com>
562
c3f9fba8 563 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 564
5dd5d9eb
SM
5652008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
566
01d45367
SM
567 * coding.c (encode_coding_raw_text): Set coding->produced_char for
568 all branches. Compute it differently.
569
5dd5d9eb
SM
570 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
571
9c623c85
JB
5722008-05-27 Juanma Barranquero <lekktu@gmail.com>
573
574 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
575 into "else if () ... else ...".
576
943f2093
JR
5772008-05-27 Jason Rumney <jasonr@gnu.org>
578
5dd5d9eb
SM
579 * w32font.c (w32font_open_internal): Determine if glyph indices
580 are likely to work here.
943f2093 581
7385fe74
CY
5822008-05-27 Chong Yidong <cyd@stupidchicken.com>
583
584 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
585 draw overlap glyphs with appropriate highlighting.
586
4f64a164
KH
5872008-05-27 Kenichi Handa <handa@m17n.org>
588
589 * xfont.c (xfont_open): Fix calculation of font->average_width.
590
1fb5aad7
SM
5912008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 * casefiddle.c (casify_object): Try to guess better whether the
594 argument is a byte or a char.
595
f8eb1603
AS
5962008-05-26 Andreas Schwab <schwab@suse.de>
597
1fb5aad7
SM
598 * xselect.c (x_reply_selection_request): Properly handle format == 32.
599 Always send multiples of format size.
5a9c35e5 600
f8eb1603
AS
601 * xterm.c (x_set_frame_alpha): Fix type mismatch.
602
ba93d684
JR
6032008-05-26 Jason Rumney <jasonr@gnu.org>
604
1fb5aad7
SM
605 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
606 (compute_metrics): Don't set failure if we just cleared the cache.
607 (w32_weight_table): Remove unused variable.
608 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
609 backwards compatibility.
ba93d684 610
505ecc49
KH
6112008-05-25 Kenichi Handa <handa@m17n.org>
612
1fb5aad7
SM
613 * w32term.c (x_draw_glyph_string):
614 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
615
616 * xfaces.c: Delete unused function prototypes.
617 (xstrlwr, font_frame): Delete them.
618 (clear_face_cache): Delete unused variable.
619
1fb5aad7
SM
620 * xftfont.c (xftfont_open): Delete unused variable.
621 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
622
623 * ftxfont.c (ftxfont_open): Delete unused variable.
624
625 * fontset.c (face_for_char): Optimize for the case of no charset
626 property.
627
628 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
629 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
630 (otf_open, font_otf_capability, generate_otf_features)
631 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 632 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
633 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
634 (syms_of_font): Codes for accessing above commented out.
635
f481eb31
EZ
6362008-05-24 Eli Zaretskii <eliz@gnu.org>
637
638 * w32proc.c: Include dispextern.h.
639
640 * w32.c: Include dispextern.h.
641
20746fe4
JB
6422008-05-23 Juanma Barranquero <lekktu@gmail.com>
643
644 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
645 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
646 Fix typos in docstrings.
647
e7150846
JR
6482008-05-23 Jason Rumney <jasonr@gnu.org>
649
20746fe4 650 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 651
dbf46ba6
KH
6522008-05-23 Kenichi Handa <handa@m17n.org>
653
6c652beb
KH
654 * charset.c (Qemacs, charset_emacs): New variables.
655 (char_charset): Fix for non-Unicode characters.
656 (syms_of_charset): Define charset_emacs.
657
baf4d3b3 658 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
659 s->underline_thickness and s->underline_position. Be sure to draw
660 underline within the current line area.
baf4d3b3
KH
661
662 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 663 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 664 underline within the current line area.
baf4d3b3 665
dbf46ba6
KH
666 * fontset.c: Delete unused variables and add casting for char *
667 throughout the file.
668 (fontset_font): Try the fallback fonts of the current fontset
669 before consulting the default fontset.
670
671 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
672
9e0e0d77 673 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 674
3b780338
JR
6752008-05-22 Jason Rumney <jasonr@gnu.org>
676
20746fe4 677 * font.c: Don't include strings.h.
577eba22 678
9e0e0d77 679 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 680
20746fe4
JB
681 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
682 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
683 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
684 to call xstrcasecmp.
05131107 685
b1722a46 686 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 687
b1722a46 688 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 689
b1722a46 690 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 691
b1722a46 692 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 693
a30e1957
KH
6942008-05-22 Kenichi Handa <handa@m17n.org>
695
20746fe4 696 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 697
20746fe4 698 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
699 change of font_style_table.
700
a30e1957
KH
701 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
702 two args.
703
704 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
705 two args.
706
631248e5
SM
7072008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
708
709 * minibuf.c (keys_of_minibuf): Delete.
710 * lisp.h (keys_of_minibuf): Delete.
711 * emacs.c (main): Don't call keys_of_minibuf.
712
318548be
KH
7132008-05-22 Kenichi Handa <handa@m17n.org>
714
631248e5 715 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
716 ftfont_list_generic_family. Return a single family for each
717 generic family.
718 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
719 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
720 Call font_add_log.
318548be
KH
721 (ftfont_match): Call font_add_log.
722
723 * font.h (Ffont_xlfd_name): EXFUN adjusted.
724 (FONT_DEBUG): Define it.
725 (font_add_log): Extern it.
631248e5 726 (font_assert): Rename from xassert.
318548be
KH
727
728 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
729 (xfont_list_family): Call font_add_log.
730 (xfont_match): Likewise.
631248e5 731 (memq_no_quit): Delete.
318548be
KH
732
733 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
734 call of Ffont_xlfd_name.
735
736 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 737 (swidth_table): Move to font.c.
318548be
KH
738
739 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 740 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
741 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
742 New variables.
631248e5
SM
743 (struct table_entry): Move from xfaces.c and modified.
744 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 745 contents adjusted for the change of struct table_entry.
20746fe4 746 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 747 format change of font_style_table.
318548be
KH
748 (font_parse_family_registry): Don't overwrite existing foundry and
749 family of font_spec.
750 (font_score): Fix calculation of diff for sizes.
751 (font_sort_entites): Call font_add_log.
752 (font_delete_unmatched): Return a newly created list.
753 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
754 (font_matching_entity, font_open_entity, font_close_entity):
755 Call font_add_log.
318548be 756 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 757 (Finternal_set_font_style_table): Delete.
318548be
KH
758 (BUILD_STYLE_TABLE): New macro.
759 (build_style_table): New function.
760 (Vfont_log, font_log_env_checked): New variables.
761 (font_add_log): New function.
762 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
763 Declare Lisp variables "font-weight-table", "font-slant-table",
764 "font-width-table", and "font-log". Initialize font_style_table.
765
6aac1c03
DN
7662008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
767
bcc850aa 768 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 769
7950790f
GM
7702008-05-21 Seiji Zenitani <zenitani@mac.com>
771 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 772
7950790f 773 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 774 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 775 (x_set_alpha): New function.
a2979e8e 776
7950790f 777 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 778
7950790f
GM
779 * xfns.c (x-create-frame, Qalpha):
780 Initialize the frame parameter `alpha'.
b9fb2c45
GM
781 * xterm.c (OPAQUE, OPACITY): New.
782 (x_set_frame_alpha): New function.
783 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 784
7950790f
GM
785 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
786 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 787
5c2a72d9
JR
7882008-05-20 Jason Rumney <jasonr@gnu.org>
789
20746fe4
JB
790 * w32font.c (add_font_entity_to_list): Don't add non-opentype
791 truetype fonts to opentype list.
5c2a72d9 792
eb152aa9
JB
7932008-05-20 Juanma Barranquero <lekktu@gmail.com>
794
795 * fontset.c (Ffontset_info): Doc fix.
796 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
797 <ignore-relative-composition>: Fix typos in docstrings.
798
799 * font.c (syms-of-font) <font-encoding-alist>:
800 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
801 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
802 (Ffont_otf_alternates): Doc fixes.
803
ad00e1a3
KH
8042008-05-20 Kenichi Handa <handa@m17n.org>
805
806 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
807 font.h through out the file.
9e0e0d77 808 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 809 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
810 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
811
812 * emacs.c (main): Call syms_of_font unconditionally.
813
814 * font.h (find_font_encoding): Extern it.
815
9e0e0d77 816 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
817 fontset.c.
818 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
819 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
820 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
821 only when HAVE_WINDOW_SYSTEM is defined.
822 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
823 when HAVE_WINDOW_SYSTEM is defined.
824
9e0e0d77
SM
825 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
826 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
827
828 * xfaces.c: Include font.h unconditionally.
829 (merge_face_ref, merge_face_vectors)
830 (Finternal_set_lisp_face_attribute): Cancel the previous change.
831
40a69fac
SM
8322008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
833
834 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
835 indirect_variable.
836 * eval.c (lisp_indirect_variable): New fun.
837 (Fuser_variable_p): Use it.
838
8c2dccbf
SM
8392008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
840
ad97b375
SM
841 * lisp.h (indirect_variable):
842 * data.c (indirect_variable, let_shadows_buffer_binding_p):
843 Use Lisp_Symbol pointers rather than Lisp_Object.
844 Adjust callers.
845 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
846 To this end, change calling-convention.
847
8c2dccbf
SM
848 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
849 if some non-hidden buffers are selected by string&pred.
850
ad97b375
SM
8512008-05-19 Chong Yidong <cyd@stupidchicken.com>
852
853 * process.c (wait_reading_process_output): Always check status
854 when in batch mode.
855
25b81df4
KH
8562008-05-19 Kenichi Handa <handa@m17n.org>
857
858 * font.c (font_list_entities): Fix handling of cache.
859 (font_matching_entity): Likewise.
860
8c2dccbf 861 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 862 (ft_face_cache): New variable.
1f204af3 863 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 864 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
865 (fc_charset_table): New variable.
866 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
867 . FC_CHARSET_IDX) as :font-entity property in the font entity.
868 Callers changed.
dde8403f 869 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
870 (ftfont_spec_pattern): New argument fc_charset_idx.
871 Check registry more rigidly. Change callers.
a2979e8e 872 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
873 change of :font-entity property of the font.
874
a2979e8e 875 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
876 property of the font.
877
d4a1d553
JB
8782008-05-18 Juanma Barranquero <lekktu@gmail.com>
879
880 * coding.c (Fcoding_system_p): Rename argument to match docstring.
881 (Funencodable_char_position, Fcheck_coding_systems_region)
882 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
883 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
884 (Ffind_operation_coding_system, Fset_coding_system_priority)
885 (Fcoding_system_eol_type): Doc fixes.
886
07cfc4e7
GM
8872008-05-17 Glenn Morris <rgm@gnu.org>
888
889 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
890
1cab27d2
EZ
8912008-05-16 Eli Zaretskii <eliz@gnu.org>
892
893 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
894 and st_gid.
895
dde8403f 896 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
897 HAVE_WINDOW_SYSTEM is not defined.
898
899 * xfaces.c (merge_face_ref, merge_face_vectors)
900 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
901 HAVE_WINDOW_SYSTEM is defined.
902 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
903
86b89713
SM
9042008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
905
906 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
907
6750bd93
YM
9082008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
909
62867b11 910 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 911
79f105c9
KH
9122008-05-15 Kenichi Handa <handa@m17n.org>
913
914 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
915 preference.
916
6b33da9f
GM
9172008-05-15 Glenn Morris <rgm@gnu.org>
918
919 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
920
d0e4433b
CY
9212008-05-15 Chong Yidong <cyd@stupidchicken.com>
922
923 * fns.c (init_fns): Don't initialize weak_hash_tables here.
924 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
925
926 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
927
5f2d79e0
KH
9282008-05-15 Kenichi Handa <handa@m17n.org>
929
fd8a1cae
KH
930 * ftfont.c (ftfont_list): Downcase family name to check generic
931 families.
932
933 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
934 font-spec for QCfont value.
935
5f2d79e0
KH
936 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
937 buffer. Check the return value of it.
938
e5e29349
JR
9392008-05-14 Jason Rumney <jasonr@gnu.org>
940
941 * w32term.c (w32_get_glyph_overhangs): Remove.
942 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
943
1f09f444
KH
9442008-05-14 Kenichi Handa <handa@m17n.org>
945
946 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
947 (font_clear_cache): Check if the cached vector of entities is nil
948 or not.
1f09f444 949
ecae6af9 9502008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
951
952 * emacs.c (main_thread): Conditionalize on
953 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
954 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
955
956 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
957 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
958 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
959
c6b278e7
KH
9602008-05-14 Kenichi Handa <handa@m17n.org>
961
962 * coding.c (detect_coding_iso_2022): Ignore a coding category that
963 has no corresponding coding system.
964
9652008-05-14 Jason Rumney <jasonr@gnu.org>
966
967 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
968
969 * w32font.h (w32font_open_internal): Update declaration.
970
971 * w32font.c (w32font_open_internal): Change last argument from
972 w32font_info struct to font object. Fill in font object from
973 font_entity. Get Outline metrics if possible. Use them to
974 calculate underline position and thickness. Use xlfd name as name
975 property. Don't set codepage.
976 (w32font_open): Pass font_object to w32font_open_internal. Don't
977 update dpyinfo->smallest_font_height and
978 dpyinfo->smallest_char_width.
979 (w32font_draw): Use s->font.
980 (clear_cached_metrics): Don't clear non-existent blocks.
981
982 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
983 font was not found.
984 (x_draw_glyph_string): Use underline position and thickness from
985 font.
986
987 * w32uniscribe.c (uniscribe_open): Pass font_object to
988 w32font_open_internal.
989
9902008-05-14 Kenichi Handa <handa@m17n.org>
991
992 These changes are to delete all legacy font-handling codes, and
993 make Emacs use only font-backends.
994
995 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
996 (frame.o, image.o, print.o): Depend on $(FONTSRC).
997
998 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
999
1000 * charset.h (Vcharset_non_preferred_head)
1001 (Vcurrent_iso639_language): Extern them.
1002
1003 * charset.c (Vcharset_non_preferred_head): New variable.
1004 (Vcurrent_iso639_language): New variable.
1005 (syms_of_charset): Declare it as a Lisp variable.
1006 (char_charset): Don't check non preferred charsets. As a last
1007 resort, return charset_unicode.
1008 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1009
1010 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1011 conditionals. Don't check enable_font_backend. Delete all codes
1012 used only when USE_FONT_BACKEND is not defined.
1013
1014 * dispextern.h (struct glyph_string): Change type of `font' to
1015 `struct font *'.
1016 (struct glyph_string): New member underline_position and
1017 underline_thickness.
1018 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1019 (struct face): Change type of `font' to `struct font *'. Remove
1020 members `font_name', `font_info_id'.
1021 (per_char_metric, encode_char): Delete externs.
1022 (calc_pixel_width_or_height): Adjust the prototype.
1023
1024 * emacs.c (enable_font_backend): Delete extern.
1025 (main): Don't set enable_font_backend. Don't check the command
1026 line argument "-disable-font-backend".
1027
1028 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1029 (enum font_property_index): New members FONT_DPI_INDEX,
1030 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1031 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1032 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1033 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1034 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1035 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1036 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1037 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1038 (struct font_spec, struct font_entity): New structs.
1039 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1040 (struct font): Many members from old "struct font_info" moved to
1041 here. Members font and entity deleted.
1042 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1043 the new font-related objects.
1044 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1045 (CHECK_FONT_GET_OBJECT): Likewise.
1046 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1047 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1048 (struct font_driver): New members case_sensitive anc check. Type
1049 of the member list and open changed.
1050 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1051 (font_symbolic_width, font_find_object, font_get_spec)
1052 (font_set_lface_from_name): Delete extern.
20746fe4 1053 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1054
1055 * font.c: Include <strings.h>.
1056 (enable_font_backend): Delete it.
1057 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1058 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1059 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1060 (null_string): Delete it.
1061 (null_vector): Make it static.
1062 (font_family_alist): Delete it.
1063 (Qnormal): Extern it.
1064 (QCextra, QClanguage): Delete it.
1f204af3 1065 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
1066 (font_make_spec, font_make_entity, font_make_object)
1067 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1068 the string. Callers changed.
1069 (font_pixel_size): Adjusted for the format change of font-related
1070 objects.
1071 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1072 (font_style_to_value, font_style_symbolic): New function.
1073 (build_font_family_alist): Delete it.
1074 (font_registry_charsets): Use Fassoc_string instead of
1075 assq_no_quit.
1076 (font_prop_validate_symbol): Don't return null_string.
1077 (font_prop_validate_style): Adjusted for the change of
1078 style-related values in a font vector.
20746fe4 1079 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
1080 QCantialias, add entries for QCavgwidth.
1081 (get_font_prop_index): Delete the 2nd argument FROM.
1082 (font_prop_validate): Arguments changed.
1083 (font_put_extra): Adjusted for the change of font-related objects.
1084 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1085 (font_parse_fcname, font_unparse_fcname)
1086 (font_prepare_composition): Likewise.
1087 (font_parse_family_registry): Renamed from font_merge_old_spec.
1088 (otf_open): Delete the 1st arg entity.
1089 (font_otf_capability): Adjusted for the above change.
1090 (font_score): New arg alternate_families. Adjusted for the change
1091 of font-related objects.
1092 (font_sort_entites): New arg best_only.
1093 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1094 Delete them.
1095 (font_match_p): Check alternate families.
1096 (font_find_object): Delete it.
1097 (font_check_object): New function.
c3f9fba8 1098 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
1099 (font_delete_unmatched): New arg.
1100 (font_list_entities): Call font_driver->list with a spec that
1101 doesn't specify style-related properties.
1102 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 1103 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
1104 (font_close_object, font_has_char, font_encode_char)
1105 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
1106 (font_spec_from_name, font_clear_prop, font_update_lface):
1107 New functions.
1108 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
1109 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1110 (font_at): Adjusted for the change of font-related objects.
1111 (font_range): New function.
1112 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 1113 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
1114 (Fcopy_font_spec, Fmerge_font_spec): New function.
1115 (Ffont_family_list): Renamed from list-families.
1116 (Finternal_set_font_style_table): Arguments changed.
1117 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1118 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1119 change of font-related objects.
c3f9fba8 1120 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7
KH
1121
1122 * fontset.h (struct font_info): Delete it. Most memnbers go to
1123 struct font.
1124 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1125 (enum FONT_SPEC_INDEX): Delete it.
1126 (font_info, list_fonts_func, load_font_func, query_font_func)
1127 (set_frame_fontset_func, find_ccl_program_func)
1128 (get_font_repertory_func, new_fontset_from_font_name): Delete
1129 externs.
1130 (fontset_from_font_name): Extern it.
1131 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1132 (FONT_INFO_FROM_FACE): Deleted.
1133 (face_for_font): Adjust prototype.
1134
1135 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1136 conditionals. Don't check enable_font_backend. Delete all codes
1137 used only when USE_FONT_BACKEND is not defined.
1138 (get_font_info_func, list_font_func, load_font_func)
1139 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1140 (get_font_repertory_func): Delete them.
1141 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1142 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1143 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1144 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1145 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1146 (fontset_compare_rfontdef): New function.
1147 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1148 ront-defs by qsort. Adjusted for the change of font-group vector.
1149 (load_font_get_repertory): Deleted.
1150 (fontset_find_font): Use new macros to ref/set elements of
1151 font-def and rfont-def.
1152 (fontset_font): Fix the timing of remembering that no font for C.
1153 (free_face_fontset): Do nothing if the face has no fontset.
1154 (face_suitable_for_char_p): Use new macros to ref/set elements of
1155 rfont-def.
1156 (face_for_char): Likewise. Call face_for_char with font_object.
1157 (fs_load_font): Delete. Delete #pragma surrounding it.
1158 (fs_query_fontset): Use strcasecmp instead of strcmp.
1159 (generate_ascii_font_name): Adjusted for the format change of
1160 font-spec.
1161 (Fset_fontset_font): Likewise. Use new macros to set elements of
1162 font-def.
1163 (Fnew_fontset): Use font_unparse_xlfd to generate
1164 FONTSET_ASCII (fontset).
1165 (new_fontset_from_font_name): Deleted.
1166 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1167 a fontset is already created for the font. FIx updating of
1168 Vfontset_alias_alist.
1169 (fontset_ascii_font): Deleted.
1170 (Ffont_info): Adjusted for the format change of font-spec.
1171 (Finternal_char_font): Likewise.
1172 (Ffontset_info): Likewise.
1173 (syms_of_fontset): Don't check load_font_func.
1174
1175 * fns.c (internal_equal): Handle PREV_FONT.
1176
1177 * frame.h: Delete USE_FONT_BACKEND conditional.
1178
1179 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1180 conditionals. Don't check enable_font_backend. Delete all codes
1181 used only when USE_FONT_BACKEND is not defined.
1182 (x_set_font): Call x_new_font, not x_new_fontset2.
1183 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1184 already set for the frame.
1185
1186 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1187 a font-entity by font_make_entity. Use font_intern_prop instead
1188 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1189 font property. If a font is scalable, set avgwidth property to 0.
1190 Set font-entity property by font_put_extra.
1191 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1192 (ffont_driver): Adjusted for the change of struct font_driver.
1193 (ftfont_spec_pattern): New function.
1194 (ftfont_list): Return a list, not vector.
1195 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1196 (ftfont_list_family): Don't downcase names.
1197 (ftfont_free_entity): Deleted.
1198 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1199 struct font. Get underline_thickness and underline_position from
1200 font property. Don't update dpyinfo->smallest_font_height and
1201 dpyinfo->smallest_char_width.
1202 (ftfont_close): Don't free `struct font'.
1203 (ftfont_has_char): Adjusted for the format change of font-entity.
1204 (ftfont_encode_char, ftfont_text_extents): Likewise.
1205
1206 * ftxfont.c (ftxfont_list): Return a list, not vector.
1207 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1208 struct font. Get underline_thickness and underline_position from
1209 font property. Don't update dpyinfo->smallest_font_height and
1210 dpyinfo->smallest_char_width.
1211 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1212 (ftxfont_draw): Adjusted for the change of struct font.
1213
1214 * image.c (image_ascent): Don't include "charset.h". Include
1215 "character.h" and "font.h".
1216
1217 * lisp.h (enum pvec_type): New member PREV_FONT.
1218 (Fassoc_string): EXFUN it.
1219
1220 * print.c: Include font.h.
1221 (print_object): Handle font-related objects.
1222
1223 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1224 conditionals. Don't check enable_font_backend. Delete all codes
1225 used only when USE_FONT_BACKEND is not defined.
1226 (handle_auto_composed_prop): Do nothing if it->f is not on a
1227 window system. Check how many following characters can be
1228 displayed by the same font.
1229 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1230 'struct font *'.
1231 (get_char_face_and_encoding): Assign the whole encoding task to
1232 the `encode-char' method of a font driver.
1233 (fill_composite_glyph_string): Adjusted for the change of `struct
1234 face' and `struct glyph_string'.
1235 (fill_glyph_string): Likewise.
1236 (get_per_char_metric): Arguments changed.
1237 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1238 and `struct glyph_string'.
1239 (produce_stretch_glyph, calc_line_height_property)
1240 (x_produce_glyphs): Likewise.
1241
1242 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1243 conditionals. Don't check enable_font_backend. Delete all codes
1244 used only when USE_FONT_BACKEND is not defined. Use
1245 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1246 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1247 (Qp): Extern them.
1248 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1249 Deleted.
1250 (struct font_name): Deleted.
1251 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1252 (compare_fonts_by_sort_order): New function.
1253 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1254 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1255 Deleted.
1256 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1257 compare_fonts_by_sort_order.
1258 (Fx_font_family_list): Call Ffont_family_list.
1259 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1260 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1261 (face_symbolic_slant, face_symbolic_swidth)
1262 (split_font_name_into_vector, build_font_name_from_vector)
1263 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1264 (font_rescale_ratio, split_font_name, build_font_name)
1265 (free_font_names, sort_fonts, x_face_list_fonts)
1266 (face_font_available_p, sorted_font_list, cmp_font_names)
1267 (font_list_1, concat_font_list, font_list, remove_duplicates):
1268 Deleted.
1269 (Fx_list_fonts): Use Ffont_list.
1270 (LFACE_AVGWIDTH): Deleted.
1271 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1272 by FONTP.
1273 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1274 (set_lface_from_font_name): Delete it.
1275 (set_lface_from_font): Renamed from
1276 set_lface_from_font_and_fontset. Caller changed. Don't set
1277 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1278 for face.
c3f9fba8
JB
1279 (merge_face_vectors): Copy font-spec if necessary.
1280 Clear properties of the font-spec if necessary.
c6b278e7
KH
1281 (merge_face_ref): Clear properties of the font-spec if necessary.
1282 (Finternal_set_lisp_face_attribute): Likewise.
1283 (set_font_frame_param): Use font_load_for_lface to load a
1284 font-object, and call Fmodify_frame_parameters with it.
1285 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1286 font name by Ffont_xlfd_name.
1287 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1288 QCslant, and QCwidth.
1289 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1290 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1291 Compare fonts by EQ.
1292 (lookup_non_ascii_face): Deleted.
1293 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
1294 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1295 Check atomic font properties by case insensitive.
c6b278e7
KH
1296 (realize_non_ascii_face): Set face->overstrike correctly.
1297 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1298 (dump_realized_face): Get font name from
1299 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1300
1301 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1302 conditionals. Don't check enable_font_backend. Delete all codes
1303 used only when USE_FONT_BACKEND is not defined.
1304 (xic_create_xfontset): Original code deleted and renamed from
1305 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1306 (x_make_gc): Don't set GCFont in GCs.
1307 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1308 opened by "fixed".
1309 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1310 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1311 get_font_repertory_func.
1312
1313 * xfont.c: Include <stdlib.h> and "ccl.h".
1314 (struct xfont_info): New structure.
1315 (xfont_query_font): Deleted.
1316 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1317 moved from xterm.c.
1318 (xfont_driver): Adjusted for the change of struct font_driver.
1319 (compare_font_names): New function.
1320 (xfont_list_pattern): Sort font names case insensitively. Make
1321 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1322 (xfont_list): Return a list, not vector.
1323 (xfont_match): If the font doesn't have QCname property, generate
1324 a name from the other font properties.
1325 (xfont_open): Return a font-ojbect. Adjusted for the change of
1326 struct font. Get underline_thickness and underline_position from
1327 font property. Don't update dpyinfo->smallest_font_height and
1328 dpyinfo->smallest_char_width.
1329 (xfont_close): Don't free struct font.
1330 (xfont_prepare_face): Adjusted for the change of struct font.
1331 (xfont_done_face): Deleted.
1332 (xfont_has_char): Adjusted for the change of struct font.
1333 (xfont_encode_char, xfont_draw): Likewise.
1334 (xfont_check): New function.
1335
1336 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1337 callback function.
1338 (xftfont_match): Adjusted for the fontmat change of font-entity.
1339 (xftfont_open): Adjusted for the format change of font-entity and
1340 font-object. Adjusted for the change of struct font. Return a
1341 font-object. Don't update dpyinfo->smallest_font_height and
1342 dpyinfo->smallest_char_width.
1343 (xftfont_close): Block input while calling XftFontClose.
1344 (xftfont_prepare_face): Don't block input while calling
1345 xftfont_get_colors. Adjusted for the change of struct font.
1346 (xftfont_shape): Return value of error case fixed.
1347
1348 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1349
1350 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1351 conditionals.
1352 (FONT_WIDTH): Return (f)->max_width.
1353 (struct x_display_info): Delete member `font'.
1354 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1355 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1356 (struct x_output): Change type of `font' to `struct font *'.
1357
1358 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1359 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1360 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1361 (x_per_char_metric, x_encode_char): Deleted.
1362 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1363 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1364 `struct face'.
c6b278e7
KH
1365 (x_draw_glyph_string_foreground)
1366 (x_draw_composite_glyph_string_foreground): Likewise.
1367 (x_draw_glyph_string): Likewise. Use font->underline_position and
1368 font->underline_thickness.
1369 (x_new_font): Renamed from x_new_fontset2.
1370 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1371 (x_check_font): Call `check' method of a font driver.
1372 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1373 (x_query_font, x_get_font_repertory): Deleted.
1374 (x_find_ccl_program): Renamed and moved to xfont.c.
1375 (x_redisplay_interface): Adjusted for the change of `struct
1376 redisplay_interface'.
1377
1378 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1379 conditionals. Don't check enable_font_backend. Delete all codes
1380 used only when USE_FONT_BACKEND is not defined. Surround non-used
1381 code by "#ifdef OLD_FONT" and "endif".
1382 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1383
1384 * w32font.h (struct w32font_info): New member.
1385 (FONT_COMPAT): New macro.
1386 (w32font_open_internal): Prototype adjusted.
1387
1388 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1389 OLD_FONT" and "endif".
1390
1391 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1392 conditionals. Don't check enable_font_backend. Delete all codes
1393 used only when USE_FONT_BACKEND is not defined.
1394 (w32font_open): Return a font-object. Make a font-object by
1395 font_make_object. Adjusted for the change of struct w32font_info.
1396 (w32font_close): Don't free struct font. Adjusted for the change
1397 of struct w32font_info.
1398 (w32font_encode_char, w32font_text_extents, w32font_draw):
1399 Adjusted for the change of struct w32font_info.
1400 (w32font_draw): Likewise.
1401 (w32font_list_internal): Return a list, not vector.
1402 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1403 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1404 (add_font_name_to_list): Don't downcase names.
1405 (w32_enumfont_pattern_entity): Make a font-entity by
1406 font_make_entity. Adjusted for the format change of font-entity.
1407 Use FONT_SET_STYLE to set a style-related font property. If a
1408 font is scalable, set avgwidth property to 0. Set font-entity
1409 property by font_put_extra.
c3f9fba8 1410 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1411 (w32_weight_table, w32_decode_weight): New variables.
1412 (w32_encode_weight): New function.
1413 (fill_in_logfont): Adjusted for the format change of font-spec.
1414 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1415 weight value.
1416 (w32font_driver): Adjusted for the change of struct font_driver.
1417
1418 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1419 conditionals. Don't check enable_font_backend. Surround non-used
1420 code by "#ifdef OLD_FONT" and "endif".
1421 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1422 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1423
1424 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1425 conditionals. Don't check enable_font_backend. Delete all codes
1426 used only when USE_FONT_BACKEND is not defined. Surround non-used
1427 code by "#ifdef OLD_FONT" and "endif".
1428
1429 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1430 (uniscribe_open): Return value changed to font-object.
1431 Adjusted for the format change of font-object.
1432 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1433 (add_opentype_font_name_to_list): Don't downcase names.
1434 (uniscribe_font_driver): Adjusted for the change of struct
1435 font_driver.
1436
f9d4c199
CY
14372008-05-13 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * dispnew.c (update_frame_1): Check if tty output is still valid
1440 before flushing it.
1441
44f249c0
JD
14422008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1443
1444 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1445 to Gtk+ menus.
1446
01bb4018
SM
14472008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1448
3271a8f5
SM
1449 * dired.c (file_name_completion): Tweak the code so as to always do it
1450 in a single pass. Tighten the scope of some variables.
1451
01bb4018
SM
1452 * dired.c (Qdefault_directory): New var.
1453 (file_name_completion): Use it instead of Fexpand_file_name.
1454 (syms_of_dired): Initialize it.
1455
728bb8e0
SM
14562008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1457
1458 * fileio.c (double_dollars): Remove dead code.
1459
ed4c17bb
EZ
14602008-05-10 Eli Zaretskii <eliz@gnu.org>
1461
6c5665e9
EZ
1462 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1463 Mention w32-get-true-file-attributes in doc string.
1464
ed4c17bb
EZ
1465 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1466
71e1f69d
GM
14672008-05-09 Glenn Morris <rgm@gnu.org>
1468
1469 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1470 2008-04-23.
1471
ee7a2e7a
EZ
14722008-05-09 Eli Zaretskii <eliz@gnu.org>
1473
8aaaec6b
EZ
1474 Support for reporting owner and group of each file on MS-Windows:
1475 * dired.c (stat_uname, stat_gname): New functions, with special
1476 implementation for w32.
1477 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1478
ee7a2e7a
EZ
1479 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1480 (dflt_group_name): New static variable.
728bb8e0 1481 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1482 (init_user_info): Init dflt_group fields. Get user's group name
1483 from LookupAccountSid.
8aaaec6b
EZ
1484 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1485 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1486 New initialization states.
1487 (globals_of_w32): Initialize them to zero. Initialize the default
1488 group name to "None".
1489 (GetFileSecurity_Name): New global var, the name of the function
1490 to call for GetFileSecurity.
1491 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1492 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1493 (get_file_security, get_security_descriptor_owner)
1494 (get_security_descriptor_group, is_valid_sid)
1495 (get_file_security_desc, get_rid, get_name_and_id)
1496 (get_file_owner_and_group): New functions.
1497 (stat): Use get_file_security_desc and get_file_owner_and_group to
1498 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1499 high 32 bits of file's size, now that st_size is 64-bit wide.
1500 Fix test when to get true file attributes.
8aaaec6b
EZ
1501 (init_user_info): Use get_rid instead of equivalent inline code.
1502 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1503
b199c436
CY
15042008-05-09 Chong Yidong <cyd@stupidchicken.com>
1505
1506 * image.c (png_load): Use correct bit-depth for setting background
1507 color.
1508
86914123
EZ
15092008-05-08 Eli Zaretskii <eliz@gnu.org>
1510
1511 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1512 epa-hook.elc.
1513
67b5d7de
JB
15142008-05-08 Juanma Barranquero <lekktu@gmail.com>
1515
1516 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1517
1a111394
DN
15182008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1519
1520 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1521 because the original parameters are in pure storage now.
1522 (mac_window): Remove unused params. Update callers.
1523
6d77fa95
SM
15242008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1525
7a3d90dc
SM
1526 * lread.c (substitute_object_recurse): Use lower-level primitives.
1527 Don't signal errors when traversing sub-char-tables.
1528 Don't loop over all the possible characters when traversing char-tables.
1529
6d77fa95
SM
1530 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1531 just like we do in print.c.
1532
140eb764
SM
15332008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1534
1535 * minibuf.c (Ftry_completion): Remove code left over from when we used
1536 scmp instead of Fcompare_strings.
1537
e9184ccb
JB
15382008-05-04 Juanma Barranquero <lekktu@gmail.com>
1539
1540 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1541
0e9378b3
YM
15422008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1543
1544 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1545 Create bitmap context in native byte order.
1546
f67e15be
MB
1547 * macterm.c (XDrawLine)
1548 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1549 context in native byte order.
064032d0 1550
f67e15be 15512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1552
1553 * config.in: Regenerate.
1554
1555 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1556 New definitions for Image I/O support.
1557 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1558 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1559 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1560 (mac_data_provider_release_data, image_load_image_io)
1561 [USE_MAC_IMAGE_IO]: New functions.
1562 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1563 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1564 (init_image_func_pointer) [MAC_OSX]: Remove function.
1565 (image_load_quartz2d) [MAC_OSX]: Check availability of
1566 CGImageCreateWithPNGDataProvider at compile time.
1567 Use lowercase `false' for boolean constant.
1568 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1569 Use image_load_image_io.
1570 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1571 Don't check MyCGImageCreateWithPNGDataProvider.
1572 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1573 Don't call init_image_func_pointer.
1574
1575 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1576
1577 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1578 Make variable non-static.
1579 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1580 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1581
1582 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1583 (RED_FROM_ULONG): Mask off higher bits.
1584 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1585
1586 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1587 Include AvailabilityMacros.h.
1588 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1589 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1590
c6bff69e
SM
15912008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1592
1593 * chartab.c (Fset_char_table_range): If range is t, really set all
1594 chars to that value.
1595
7412d429
EZ
15962008-05-03 Eli Zaretskii <eliz@gnu.org>
1597
1598 * dired.c (Ffile_attributes): Don't allow the device number become
1599 negative.
1600
f83bbfac
DU
16012008-05-02 Daiki Ueno <ueno@unixuser.org>
1602
5a81d3d7 1603 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1604
2e3148e2
JL
16052008-05-02 Juri Linkov <juri@jurta.org>
1606
1607 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1608 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1609 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1610
923fb88c
CY
16112008-05-01 Chong Yidong <cyd@stupidchicken.com>
1612
1613 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1614
047aaeb9
MR
16152008-05-01 Martin Rudalics <rudalics@gmx.at>
1616
1617 * dispnew.c (change_frame_size_1): Preserve small windows when
1618 shrinking frames by calling set_window_height|width with third
1619 arg 2.
1620
1621 * window.h (struct window): Replace field too_small_ok by field
1622 resize_proportionally.
1623
1624 * window.c (make_window): Initialize resize_proportionally.
1625 (enlarge_window): Temporarily set resize_proportionally to make
1626 sure that shrink_windows does scale the window proportionally.
1627 (shrink_windows): When window has resize_proportionally set try
1628 to shrink it proportionally by stealing from other windows.
1629 (struct saved_window, Fset_window_configuration)
1630 (compare_window_configurations): Handle resize_proportionally.
1631 (WINDOW_TOTAL_SIZE): New macro.
1632 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1633 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1634 window-min-height|width are handled by window_min_size_2 now.
1635 (size_window, Fsplit_window, enlarge_window)
1636 (adjust_window_trailing_edge, grow_mini_window): Don't call
1637 check_min_window_sizes.
c6bff69e
SM
1638 (window_min_size_2, window_min_size_1, window_min_size):
1639 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1640 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1641 (adjust_window_trailing_edge, grow_mini_window):
1642 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1643 (shrink_windows): Argument min_size removed. New argument
1644 safe_p allows shrinking windows to their safe minimum sizes.
1645 Calculate minimum size and decide whether a window shall be
1646 deleted for each window individually.
1647 (size_window): When nodelete_p equals 2, tell shrink_windows to
1648 delete windows only if their new minimum size is no more safe.
1649 (shrink_window_lowest_first): Call window_min_size_1 to make
1650 sure to preserve modeline of bottom-most window when resizing
1651 the minibuffer.
1652 (Fset_window_configuration, Fcurrent_window_configuration)
1653 (compare_window_configurations): Do not handle
1654 window-min-height|width any more.
1655 (syms_of_window): Clarify window-min-height|width doc-strings.
1656
2a54a229
SM
16572008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1660 some more. Copy some of the code from Ftry_completions.
1661 Remove special case code that dates back to initial revision when the
1662 slash was only added when necessary and that can't trigger nowadays.
1663
384bc634
KH
16642008-04-27 Kenichi Handa <handa@m17n.org>
1665
1666 * font.c (font_prop_validate): Signal `error' instead of `font'.
1667
2c2279c6
JR
16682008-04-29 Jason Rumney <jasonr@gnu.org>
1669
1670 * w32fns.c (Fw32_battery_status): New defun.
1671 (syms_of_w32fns): Defsubr it.
1672
fb4a622a
AS
16732008-04-28 Andreas Schwab <schwab@suse.de>
1674
1675 * dired.c (file_name_completion): Fix another mixing of encoded
1676 and decoded names.
1677
23f250f4
JB
16782008-04-28 Juanma Barranquero <lekktu@gmail.com>
1679
1680 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1681
d8d30dff
JB
16822008-04-27 Juanma Barranquero <lekktu@gmail.com>
1683
1684 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1685
ea6104a8
AS
16862008-04-27 Andreas Schwab <schwab@suse.de>
1687
9c691c00
AS
1688 * dired.c (file_name_completion): Fix inappropriate mixing of
1689 encoded and decoded names.
1690
ec1bf773
AS
1691 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1692
ea6104a8
AS
1693 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1694
01388a3d
EZ
16952008-04-26 Eli Zaretskii <eliz@gnu.org>
1696
1697 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1698 2008-03-31, it's not needed anymore with `struct stat' definition
1699 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1700 for the same reasons.
1701
175aea10 17022008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1703
1704 * m/sparc.h: Additional redefinitions for GNU/Linux.
1705
1289aeb8
YM
17062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1707
1708 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
1709 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1710 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
1711 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
1712 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1713 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
1714 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1715 Likewise.
1716
1717 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 1718 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
1719 (mac_ax_number_of_characters): Add externs.
1720 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1721 [USE_MAC_TSM]: Likewise.
1722 (mac_handle_text_input_event) [MAC_OSX]:
1723 Handle kEventTextInputOffsetToPos for no active input area case.
1724 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1725 (mac_handle_document_access_event)
1726 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
1727 (install_application_handler) [MAC_OSX]: Register handlers for
1728 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1729 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1730 Register mac_handle_document_access_event.
1731
1732 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
1733 Make functions non-static.
1734
dbd50d4b
SM
17352008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1736
1737 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
1738 (read_file_name_completion_ignore_case, insert_default_directory)
1739 (Qdefault_directory): Move to minibuffer.el.
1740 (Fread_file_name): Call the new `read-file-name' instead.
1741
9ea37b9d 17422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
1743
1744 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
1745 Make function non-static.
1746 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
1747 Remove function.
1748 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1749 Move to mactoolbox.c.
1750 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
1751
1752 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
1753 (mac_rect_make): New macro.
1754
1755 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
1756 instead of float.
1757 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1758 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
1759 (XSetBackground) [USE_CG_DRAWING]: Likewise.
1760 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
1761 CGRectMake.
1762 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1763 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
1764 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
1765 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1766 instead of WindowRef in argument type.
1767 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
1768 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
1769 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
1770 instead of DISPLAY. All uses changed.
1771 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
1772 (x_calc_absolute_position): Simplify so as not to use
1773 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
1774
1775 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1776 instead of WindowRef in argument type.
1777 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
1778 [TARGET_API_MAC_CARBON]: Remove externs.
1779 (create_apple_event, mac_event_parameters_to_lisp)
1780 [TARGET_API_MAC_CARBON]: Add externs.
1781
d8d30dff 1782 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
1783 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
1784 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
1785 is clicked.
1786 (x_activate_menubar): Remove extern for saved_menu_event_location.
1787 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1788 Move from mac.c.
1789
9ea37b9d 17902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
1791
1792 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
1793 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
1794
9ea37b9d 17952008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
1796
1797 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
1798 attributes only for local files.
1799
1800 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 1801 default to Qlocal.
bd735631 1802
88970542
JL
18032008-04-22 Juri Linkov <juri@jurta.org>
1804
1805 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
1806 read-buffer-to-switch instead of using the letter "B".
1807
92ec67e3
SM
18082008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1809
1810 * fileio.c (Qdefault_directory): New variable.
1811 (Fread_file_name): Use it to pass `dir' to the completion functions.
1812
a32b2382
CY
18132008-04-20 Chong Yidong <cyd@stupidchicken.com>
1814
2a2e8de7 1815 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 1816
6c8b4f07
SM
18172008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
1818
ece5f847
SM
1819 * keyboard.c (Vpre_help_message): Remove.
1820 (show_help_echo): Remove default C code.
1821
6c8b4f07
SM
1822 * dired.c (directory_files_internal, file_name_completion):
1823 Only call ENCODE_FILE if the string is indeed decoded.
1824
73d798d5
SM
18252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1826
1827 * Makefile.in (TOOLKIT_DEFINES): Remove.
1828 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
1829
d8d30dff 18302008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
1831
1832 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
1833 (mactoolbox.o): New target.
1834
1835 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
1836 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
1837
1838 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
1839 Use mac_set_frame_window_background instead of XSetWindowBackground.
1840 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
1841 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
1842 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
1843 instead of SetWindowTitleWithCFString.
1844 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
1845 Move function to mactoolbox.c.
1846 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1847 Use mac_set_window_modified instead of SetWindowModified.
1848 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
1849 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
1850 (Fx_focus_frame): Use mac_front_non_floating_window instead of
1851 FrontNonFloatingWindow. Use mac_activate_window instead of
1852 ActivateWindow. Use mac_active_non_floating_window instead of
1853 ActiveNonFloatingWindow.
1854 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
1855 Use mac_show_hourglass and mac_hide_hourglass.
1856 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
1857 instead of GetGlobalMouse.
1858 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
1859 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
1860 Use mac_bring_window_to_front instead of BringToFront.
1861 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
1862 mactoolbox.c.
1863 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
1864 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
1865 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
1866 mactoolbox.c.
1867
1868 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
1869 (XtPointer): Move typedef from macmenu.c.
1870 (enum button_type): Move enum from macmenu.c.
1871 (widget_value): Move typedef from macmenu.c.
1872 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
1873 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1874 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1875 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1876 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1877 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1878 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1879 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1880 (Selection): Move typedef from macselect.c.
1881 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1882 macterm.c.
1883 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1884 (mac_is_window_collapsed, mac_bring_window_to_front)
1885 (mac_send_window_behind, mac_hide_window, mac_show_window)
1886 (mac_collapse_window, mac_front_non_floating_window)
1887 (mac_active_non_floating_window, mac_activate_window)
1888 (mac_move_window_structure, mac_move_window, mac_size_window)
1889 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1890
1891 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1892 (enum mac_menu_kind): Move enum to mactoolbox.c.
1893 (min_menu_id): Move variable to mactoolbox.c.
1894 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1895 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1896 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1897 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1898 [TARGET_API_MAC_CARBON]: Likewise.
1899 (XtPointer): Move typedef to macgui.h.
1900 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1901 (widget_value): Move typedef to macgui.h.
1902 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1903 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1904 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1905 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1906 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1907 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1908 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1909 (popup_activated_flag): Make variable non-static.
1910 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1911 (add_menu_item, fill_menu, dispose_menus):
1912 Move functions to mactoolbox.c.
1913 (restore_show_help_function, menu_target_item_handler)
1914 (install_menu_target_item_handler, mac_handle_dialog_event)
1915 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1916 [TARGET_API_MAC_CARBON]: Likewise.
1917 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1918 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1919 (find_and_call_menu_selection, name_is_separator): Make function
1920 non-static.
1921 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1922 to mactoolbox.c.
1923 (set_frame_menubar): Don't call install_menu_quit_handler.
1924 (menu_item_selection): New variable.
1925 (mac_menu_show): Use create_and_show_popup_menu.
1926 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1927 selection but set variable menu_item_selection. All uses changed.
1928 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1929 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1930
d02fe47d
MB
1931 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1932 (Selection): Move typedef to macgui.h.
1933 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1934 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1935 Make variables non-static.
1936 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1937 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1938 Make functions non-static.
1939 (Vmac_service_selection) [MAC_OSX]: Likewise.
1940 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1941 (mac_valid_selection_target_p, mac_clear_selection)
1942 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1943 (mac_put_selection_value, mac_selection_has_target_p)
1944 (mac_get_selection_value, mac_get_selection_target_list)
1945 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1946 Move functions to mactoolbox.c.
1947 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1948 Likewise.
1949 (copy_scrap_flavor_data, mac_handle_service_event)
1950 (install_service_handler) [MAC_OSX]: Likewise.
1951 (syms_of_macselect) <Vmac_dnd_known_types>:
1952 Use mac_dnd_default_known_types.
463f55ee 1953
d02fe47d
MB
1954 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1955 Move to mactoolbox.c.
1956 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1957 (Fx_selection_owner_p): Add EXFUN.
1958 (install_window_handler, remove_window_handler, XSetWindowBackground):
1959 Remove externs.
1960 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1961 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1962 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1963 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1964 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1965 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1966 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1967 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1968 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1969 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1970 (mac_valid_selection_target_p, mac_clear_selection)
1971 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1972 (mac_put_selection_value, mac_selection_has_target_p)
1973 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1974 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1975 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1976 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1977 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1978 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1979 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1980 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1981 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1982
d02fe47d 1983 * mactoolbox.c: New file.
af253914 1984
d8d30dff 19852008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1986
d02fe47d 1987 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1988
8ee085a4
SM
19892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1990
73d798d5
SM
1991 * character.c (Fmultibyte_char_to_unibyte):
1992 Return latin1 chars unchanged.
5556875b 1993
8ee085a4
SM
1994 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1995 relocated if it points to `name'.
1996
5dff5999
KH
19972008-04-17 Kenichi Handa <handa@m17n.org>
1998
1999 * data.c (Faset): Allow setting a multibyte character in an
2000 ASCII-only unibyte string.
2001
2002 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2003
a51f4969
SM
20042008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2005
2006 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2007 done in config.h.
2008
add553ac
JB
20092008-04-16 Juanma Barranquero <lekktu@gmail.com>
2010
2011 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2012 (Fchar_direction): Add usage in the docstring.
2013
8ad7b280
CY
20142008-04-15 Chong Yidong <cyd@stupidchicken.com>
2015
2016 * keyboard.c (read_key_sequence): Remove always-true checks.
2017
e157d7ba
JR
20182008-04-14 Jason Rumney <jasonr@gnu.org>
2019
2020 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2021 compatibility struct, for better underline positioning.
2022
9ec3aaef 20232008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
2024
2025 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2026 string.
2027
36c08864
DN
20282008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2029
2030 * m/hp800.h (XUINT, XSET): Remove.
2031
f5acc071
JB
20322008-04-12 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2035 previous change.
2036
5b5a2ea1
SM
20372008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2038
2039 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2040 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2041
492d9fd6
SM
20422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2043
2044 * keymap.h (map_keymap_canonical): Declare.
2045 * xmenu.c (single_keymap_panes): Use it.
2046
dd60787c
GM
20472008-04-11 Glenn Morris <rgm@gnu.org>
2048
2049 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2050 set the target's value to that of the alias.
2051
c23b5410
SM
20522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2053
2054 * term.c (set_tty_color_mode): Left over typo.
2055
e89b536d
MA
20562008-04-10 Michael Albinus <michael.albinus@gmx.de>
2057
2058 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2059 only after check for file name handler functions. Signal, when
e89b536d
MA
2060 native functionality is not supported.
2061 (syms_of_fileio): Declare it unconditionally.
2062
40a339c8
JR
20632008-04-10 Jason Rumney <jasonr@gnu.org>
2064
31403b24
JR
2065 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2066 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2067
40a339c8
JR
2068 * w32.c (logon_network_drive): Also logon to remote drives that
2069 are mapped to drive letters.
2070
96a7394f
GM
20712008-04-10 Glenn Morris <rgm@gnu.org>
2072
2073 * xdisp.c (truncate-partial-width-windows): Doc fix.
2074
34b67b0f
SM
20752008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2078 Move functions to minibuffer.el.
2079 (syms_of_fileio): Don't declare them.
2080
c025fb0a
SM
20812008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2082
ba5ff07b
SM
2083 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2084 (syms_of_minibuf): Remove its initialization.
2085
c025fb0a
SM
2086 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2087
7a6a86ad
JB
20882008-04-09 Juanma Barranquero <lekktu@gmail.com>
2089
2090 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2091
cf907d69
JR
20922008-04-09 Jason Rumney <jasonr@gnu.org>
2093
3dc94c30
JR
2094 * makefile.w32-in (distclean): Delete makefile too.
2095 (maintainer-clean): New target.
2096
8d28646b
JR
2097 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2098
cf907d69
JR
2099 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2100 for new font backend and composite cases.
2101
ef5eb925
JD
21022008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2103
2104 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2105 Most of the code moved to run_timers.
2106 (do_pending_atimers): Call run_timers.
2107 (run_timers): New function.
2108
cf907d69
JR
2109 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2110 run atimers.
ef5eb925
JD
2111
2112 * process.c (wait_reading_process_output): The same as above.
2113
9b2cd403
SM
21142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2115
32bae13c
SM
2116 * minibuf.c (last_exact_completion): Remove variable.
2117 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2118 (complete_and_exit_1, complete_and_exit_2)
2119 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2120 (Fdisplay_completion_list, display_completion_list_1)
2121 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
2122 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2123 minibuffer.el.
32bae13c
SM
2124 (syms_of_minibuf): Remove corresponding initializations.
2125
5c4cc82a
SM
2126 * keyboard.c (Qdeactivate_mark): New var.
2127 (command_loop_1): Use it to call `deactivate-mark'.
2128 (syms_of_keyboard): Initialize it.
2129
9b2cd403
SM
2130 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2131 to another frame.
2132 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2133 Don't call set_tty_color_mode.
2134 (store_frame_param): Reset previous_frame rather than call
2135 set_tty_color_mode.
2136 * term.c (set_tty_color_mode): Rewrite.
2137 * dispextern.h (set_tty_color_mode): New type.
2138 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2139
84cb7b45
SM
21402008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2141
2142 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2143 for generic chars, which do not exist any more in emacs-unicode.
2144
3ed051d4
MA
21452008-04-08 Michael Albinus <michael.albinus@gmx.de>
2146
2147 * coding.c (detect_coding_emacs_mule)
2148 (Ffind_operation_coding_system): Fix typo.
2149
58c3ea42
JR
21502008-04-08 Jason Rumney <jasonr@gnu.org>
2151
3bf8d230
JR
2152 * w32uniscribe.c (SNAME): Extract only symbol name.
2153
56a70cca
JR
2154 * w32font.h (struct w32_metric_cache): New struct.
2155 (w32font_info): Use it.
2156 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2157 (CACHE_BLOCKSIZE): New constants.
3ed051d4 2158
58c3ea42
JR
2159 * w32font.c (Qja, Qko, Qzh): New symbols.
2160 (syms_of_w32font): Initialise them.
2161 (font_matches_spec): Use them to filter by language.
2162 (recompute_cached_metrics): Remove function.
2163 (compute_metrics, clear_cached_metrics): New functions.
2164 (w32font_encode_char): Use them to manage metric cache.
2165 (w32font_text_extents): Cache metrics for all glyphs on demand.
2166 Delay converting glyph indices to WORD until needed.
2167 (w32font_open_internal): Initialize metric cache to empty.
2168 (registry_to_w32_charset): Charset should always be a symbol.
2169 (fill_in_logfont, list_all_matching_fonts): Family should
2170 always be a symbol.
2171
0ce24b2d
JR
21722008-04-06 Jason Rumney <jasonr@gnu.org>
2173
2174 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2175 Give up if glyph indices not supported. Use uniscribe obtained
2176 ABC widths for individual metrics. Map glyph clusters back to
2177 characters using fClusterStart flag. Return number of glyphs
2178 produced, not chars processed.
b7655e0c 2179 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2180
5bc6ddff 21812008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2182
fbf57abb
JB
2183 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2184 Use SetMenuItemHierarchicalMenu.
56613f06 2185
5bc6ddff 21862008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2187
5bc6ddff
MB
2188 * image.c (pbm_load): Allow color values up to 65535.
2189 Throw an error if max_color_idx is outside the supported range.
2190 Report an error when image size is invalid.
2191 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2192
5bc6ddff 21932008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2194
5bc6ddff
MB
2195 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2196 cFileName a file name that includes `?' characters, use the 8+3
2197 alias in cAlternateFileName instead.
5ed6ba5b 2198
5bc6ddff 21992008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2200
5bc6ddff
MB
2201 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2202 append "CCL: Quitted" when the CCL program is quitted.
2203 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2204
5bc6ddff 2205 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2206
c36e15db
CY
22072008-04-05 Chong Yidong <cyd@stupidchicken.com>
2208
9605d567
CY
2209 * search.c (compile_pattern_1): Treat non-nil and non-string of
2210 search-spaces-regexp as nil.
2211
c36e15db
CY
2212 * minibuf.c (Fassoc_string): Tweak docstring.
2213
40beb147
EZ
22142008-04-05 Eli Zaretskii <eliz@gnu.org>
2215
2216 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2217 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2218 2008-03-14 to force inode be positive.
2219
2220 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2221 _S_* ones, since we now use our own sys/stat.h.
2222 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2223 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2224
4591d6cb
SM
22252008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2226
d4417eb0
SM
2227 * frame.h (struct frame): Give one more bit to `visible' since we use
2228 values larger than 1 to indicate obscured frames on ttys.
2229
00f7c5ed
SM
2230 * keymap.c (Qkeymap_canonicalize): New var.
2231 (Fmap_keymap_internal): New fun.
2232 (describe_map): Use keymap-canonicalize.
2233
4591d6cb
SM
2234 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2235 (Fundo_boundary): Set them.
2236 (syms_of_undo): Initialize them.
2237 (record_point): Use them instead of last_point_position*.
2238 (last_undo_buffer): Change type.
2239
3187540e
JR
22402008-04-04 Jason Rumney <jasonr@gnu.org>
2241
0ce24b2d
JR
2242 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2243 (recompute_cached_metrics): Don't set ascent and descent per char.
2244
3187540e 2245 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2246 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2247 Rearrange loop for counting features.
3187540e 2248
f1a6b216
SM
22492008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2250
2251 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2252 buffer with byte-size of source buffer.
2253
1d8dcf63
CY
22542008-04-03 Chong Yidong <cyd@stupidchicken.com>
2255
2256 * callint.c (Fcall_interactively): Handle temporary region even
2257 when shift-select-mode is off.
2258
6b8aa22a
JR
22592008-04-03 Jason Rumney <jasonr@gnu.org>
2260
2261 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2262
2f3cbb32
KH
22632008-04-03 Kenichi Handa <handa@m17n.org>
2264
2265 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2266 (CATEGORY_MASK_UTF_16): Likewise.
2267 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2268 binary file.
2269 (detect_coding): Add null-byte detection for a binary file.
2270 (detect_coding_system): Likewise.
2271
43f4f91c
JR
22722008-04-03 Jason Rumney <jasonr@gnu.org>
2273
0c1b4ae2
JR
2274 * w32uniscribe.c: New file.
2275
2276 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2277
2278 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2279
2280 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2281 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2282 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2283 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2284 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2285 (Qphonetic): New symbols.
2286 (syms_of_w32font): Initialize them.
2287 (font_supported_scripts): Use them.
2288 (w32font_list_family): List all charsets.
2289 (w32font_text_extents, recompute_cached_metrics): Fix metric
2290 calculations.
2291 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2292 Give opentype fonts their own format.
2293 (font_matches_spec): New arguments backend and logfont.
2294 Handle :otf spec for uniscribe backend.
2295 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2296 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 2297
0c1b4ae2
JR
2298 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2299 font backend.
2300 (globals_of_w32fns): Initialize uniscribe font backend.
2301
fbf57abb 2302 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
2303 dependencies.
2304 (w32uniscribe.$(O)): New file to build.
2305 (FONT_OBJ): Include w32uniscribe.$(O).
2306 (LIBS): Add uniscribe libraries.
2307
43f4f91c
JR
2308 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2309
75043a7d
CY
23102008-04-02 Chong Yidong <cyd@stupidchicken.com>
2311
2312 * callint.c (Vshift_select_mode): New var.
2313 (Finteractive): Document new ^ spec.
2314 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2315 is present.
2316
2317 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2318 (command_loop_1): Avoid running the direct display versions of
2319 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2320 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2321 shift-translation takes place.
2322
2323 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2324 avoid clobbering by define-minor-mode.
2325
2326 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2327 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2328
2329 * syntax.c (Fforward_word): Add ^ interactive spec.
2330
2331 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2332 (Fscroll_right): Add ^ interactive spec.
2333
b2b7f29e
SM
23342008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2335
a432c0a6
SM
2336 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2337
994b75e0
SM
2338 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2339
b2b7f29e
SM
2340 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2341
e99c7806
JL
23422008-03-31 Juri Linkov <juri@jurta.org>
2343
2344 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2345
1c9c1270
JD
23462008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2347
2348 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2349 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2350 (x_wm_size_hint_off): Fix indentation.
2351 (xg_frame_set_char_size): Call flush_and_sync after
2352 gtk_window_resize.
2353 (x_wm_set_size_hint): Pass NULL as geometry window to
2354 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2355 Add menu bar and tool bar height to base height.
2356 (xg_update_frame_menubar, free_frame_menubar)
2357 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2358 (update_frame_tool_bar, free_frame_tool_bar):
2359 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2360
90b3fc84
MA
23612008-03-30 Michael Albinus <michael.albinus@gmx.de>
2362
2363 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2364 (Fdbus_call_method): New parameter TIMEOUT.
2365 (dbus-send-signal): Optimize UNGCPRO call.
2366
7ae6d1d1
JL
23672008-03-29 Juri Linkov <juri@jurta.org>
2368
2369 * window.c (Fdisplay_buffer): Move call to
2370 Vsplit_window_preferred_function out of conditions that check
2371 if window is eligible for vertical splitting.
2372 When Vsplit_window_preferred_function is non-nil, call it and use
2373 its non-nil return value as window. Otherwise, continue doing
2374 vertical splitting using Fsplit_window with arg horflag=nil.
2375 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2376 default value from `split-window' to nil.
2377
f03f8f2c
JL
23782008-03-29 Juri Linkov <juri@jurta.org>
2379
2380 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2381 for interactive code letters 'b' and 'B'.
2382
6d557778
EZ
23832008-03-29 Eli Zaretskii <eliz@gnu.org>
2384
2385 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2386 multibyte string.
2387
58555d81
SM
23882008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2389
2390 * keyboard.c (pending_funcalls): New var.
2391 (timer_check): Run it.
2392 (syms_of_keyboard): Initialize it.
2393 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2394 (Vdelete_terminal_functions): New vars.
2395 (syms_of_terminal): Initialize them.
2396 (Fdelete_terminal): Run delete-terminal-functions.
2397 * xdisp.c (safe_eval): Rewrite.
2398 (safe_call2): New fun.
2399 * frame.c (Qdelete_frame_functions): New var.
2400 (syms_of_frame): Initialize it.
2401 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2402 * lisp.h (safe_call2, pending_funcalls): Declare.
2403
4c92f429
AS
24042008-03-28 Andreas Schwab <schwab@suse.de>
2405
2406 * indent.c (Fmove_to_column): Move declaration before statements.
2407
a1567c45
SM
24082008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2409
2806a183
SM
2410 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2411 (struct frame): Use bit fields for boolean vars.
2412
eef60308
SM
2413 * process.c (server_accept_connection): Simplify naming.
2414 (emacs_get_tty_pgrp): Use SDATA.
2415
a1567c45
SM
2416 * coding.c (decode_coding_object): Fix last change.
2417
30076589
JR
24182008-03-27 Jason Rumney <jasonr@gnu.org>
2419
2420 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2421
880820fe
KH
24222008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2423
2424 * charset.c (Fdefine_charset_internal): Change the way of
2425 registering charsets in Vcharset_order_list.
2426 (syms_of_charset): Make the charset `eight-bit' supplementary.
2427
3cf8cdfb
CY
24282008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2429
2430 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2431 operations, to avoid having the difference between pointers
2432 overflow.
2433
ef6f5c0e
SM
24342008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2435
80e3db56
SM
2436 * indent.c (check_display_width): New fun.
2437 (scan_for_column): Use it.
2438
c397dc7a
SM
2439 * data.c (syms_of_data): Mark most-positive-fixnum and
2440 most-negative-fixnum as constants.
2441
bf6b4d58
SM
2442 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2443
ef6f5c0e
SM
2444 * indent.c (scan_for_column): Extract from current_column_1.
2445 Merge with the same code from Fmove_to_column.
2446 (current_column_1, Fmove_to_column): Use it.
2447
72d5003d
SM
24482008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2449
12270607
SM
2450 * keymap.c (map_keymap_internal): New fun.
2451 (map_keymap): Use it.
2452 (Fmap_keymap_internal): New fun.
2453 (Fmap_keymap): Remove left-out test from before make_save_value.
2454
a10cca6c
SM
2455 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2456
d7b10f4c
SM
2457 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2458 Use XCAR/XCDR.
2459
5431bd6a
SM
2460 * process.h (struct Lisp_Process): Remove filter_multibyte.
2461 * process.c (QCfilter_multibyte): Remove.
2462 (setup_process_coding_systems): Don't use filter_multibyte.
2463 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2464 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2465 (Fset_process_filter_multibyte): Change the coding-system to
2466 approximate the previous behavior.
2467 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2468 coding-system.
2469
72d5003d
SM
2470 * coding.c (decode_coding_object): When not decoding into a buffer,
2471 obey the coding system's preference of (uni|multi)byte.
2472
438eba3c
SM
24732008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2474
2475 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2476 every char is changed and has a different byte-length.
2477 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2478 Fix int -> EMACS_INT.
2479
9ec3aaef 24802008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2481
438eba3c 2482 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2483 strings. Check for NULL `interface' or `member'.
2484
b07103dc
EZ
24852008-03-22 Eli Zaretskii <eliz@gnu.org>
2486
2487 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2488 cFileName a file name that includes `?' characters, use the 8+3
2489 alias in cAlternateFileName instead.
2490
5371d722
SM
24912008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2492
2493 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2494
6ba7f443
SM
24952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2496
2497 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2498 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2499 work on current_buffer only instead (that was already the case
2500 for some of the code anyway).
2501 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2502 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2503 (SET_PT, SET_PT_BOTH): Adjust.
2504 * intervals.h (set_point, temp_set_point, set_point_both)
2505 (temp_set_point_both): Remove redundant declarations.
2506
bf1c0f27
SM
25072008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2508
2509 * fileio.c (Finsert_file_contents):
2510 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2511 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2512 when buffer != current_buffer anyway.
2513
acab783e
AS
25142008-03-20 Andreas Schwab <schwab@suse.de>
2515
2516 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2517 as default.
2518
d148e14d
JR
25192008-03-19 Jason Rumney <jasonr@gnu.org>
2520
2521 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2522 (syms_of_w32fns): Initialize them.
2523 (HOURGLASS_ID): New constant.
2524 (x_window_to_frame): Don't check hourglass_window.
2525 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2526 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2527 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2528 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2529 Only change the cursor if hourglass is not active.
2530 (Fx_create_frame): Initialize frame's current_cursor.
2531 (hourglass_atimer): Remove.
2532 (hourglass_started): New function.
2533 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2534 (show_hourglass): Adapt to w32, changing argument to frame.
2535
2536 * w32term.h (struct w32_output): Remove hourglass_window.
2537 Add current_cursor.
2538
2539 * eval.c (call_debugger, Fsignal):
2540 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2541 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2542 (Fexecute_extended_command, cancel_hourglass_unwind):
2543 * minibuf.c (read_minibuf):
2544 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2545
a5c54077
JB
25462008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2547
2548 * window.c (run_funs): New fun.
2549 (run_window_configuration_change_hook): Use it to run the buffer-local
2550 and the global part of the hook.
2551
2552 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2553 (unwind_format_mode_line): Restore selected window.
2554 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2555
f9f3238f
SM
25562008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2557
253c3c82
SM
2558 * editfns.c (Fchar_equal): Check they are valid characters.
2559
f9f3238f
SM
2560 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2561
065a118d
AS
25622008-03-17 Andreas Schwab <schwab@suse.de>
2563
0b8be006
AS
2564 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2565 against a charset.
2566
065a118d
AS
2567 * lisp.h (Fbuffer_list): Declare.
2568
880820fe 25692008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2570
2571 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2572 handlebox_widget is != 0.
2573
6206d6c2
JL
25742008-03-16 Juri Linkov <juri@jurta.org>
2575
2576 * callint.c (Fcall_interactively): For interactive code letters
2577 'b' and 'B' put the buffer list into the list of default "future"
2578 values of the minibuffer.
2579
f5020181
AS
25802008-03-16 Andreas Schwab <schwab@suse.de>
2581
a864f6d6
AS
2582 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2583 modifiers.
2584
f5020181
AS
2585 * regex.c (re_match_2_internal): Correct matching of a charset
2586 against latin-1 characters.
2587
03f244e2
KH
25882008-03-16 Kenichi Handa <handa@m17n.org>
2589
2590 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2591 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2592 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2593 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2594 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2595 CHAR_STRING_ADVANCE.
2596 (produce_chars): Fix for the case that the source and the
2597 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2598 instead of CHAR_STRING_ADVANCE.
2599 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2600 STRING_CHAR_ADVANCE.
2601
0e2501ed
AS
26022008-03-15 Andreas Schwab <schwab@suse.de>
2603
2604 * regex.c (re_match_2_internal): Correct matching of eight bit
2605 characters in unibyte strings.
2606
7723e095
MR
26072008-03-15 Martin Rudalics <rudalics@gmx.at>
2608
2609 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2610 at end of range when it coincides with the end of the buffer.
2611
f507f365
EZ
26122008-03-14 Eli Zaretskii <eliz@gnu.org>
2613
294f1153
EZ
2614 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2615
f507f365
EZ
2616 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2617
64f0809d
JR
26182008-03-14 Jason Rumney <jasonr@gnu.org>
2619
956ae531
JR
2620 * editfns.c (initial_tz): New variable.
2621 (syms_of_editfns): Initialize it.
2622 (Fset_time_zone_rule): Set it when first called.
2623 Use it when TZSTRING is nil.
2624
64f0809d
JR
2625 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2626 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2627 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2628 (globals_of_w32fns): Initialize them.
2629 (compute_tip_xy): Use them to position tooltips.
2630
21a4ff8e
GM
26312008-03-14 Glenn Morris <rgm@gnu.org>
2632
2633 * emacs.c (main): Revert previous change.
2634 (standard_args): Revert -internal-script back to -scriptload,
2635 and remove the long-option form.
2636
a09a5b5b
GM
26372008-03-13 Glenn Morris <rgm@gnu.org>
2638
2639 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2640 Remove option -enable-font-backend.
2641
1c55ebd1
SM
26422008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2645
880820fe 26462008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2647
2648 * xterm.c (x_connection_closed): For GTK: If this is the last
2649 terminal just exit without closing the display.
2650
7145be81
JR
26512008-03-11 Jason Rumney <jasonr@gnu.org>
2652
2653 * w32font.c (w32font_full_name): Use floor to round.
2654
e6201af3 26552008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2656
2657 * sound.c (alsa_configure): Declare vol at beginning of block.
2658
e6201af3 2659 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2660
390b81fa 26612008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2662
56388398
MB
2663 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2664 size of resulting string.
af0ad939 2665
390b81fa 26662008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2667
56388398 2668 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2669
390b81fa 26702008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2671
56388398
MB
2672 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2673 Don't pretend as if characters with display property haven't been
2674 consumed for string-replacing-string case.
acd37560 2675
223ed6db
KS
26762008-03-08 Kim F. Storm <storm@cua.dk>
2677
2678 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2679 (get_next_display_element, next_element_from_string)
2680 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2681
28545f7c
AS
26822008-03-08 Andreas Schwab <schwab@suse.de>
2683
2684 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2685
c960bff8
JR
26862008-03-06 Jason Rumney <jasonr@gnu.org>
2687
290afd83
JB
2688 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2689 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2690 font_type is truetype.
2691 (w32font_coverage_ok): New function.
2692 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2693
87b8ce92
KH
26942008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2695
2696 * lread.c (Fread_char): Resolve modifiers.
2697 (Fread_char_exclusive): Likewise.
2698
2699 * character.c (char_resolve_modifier_mask): New function.
2700 (char_string): Use char_resolve_modifier_mask.
2701 (Fchar_resolve_modifiers): New function.
2702 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2703 function.
2704
cefd56f6
JR
27052008-03-04 Jason Rumney <jasonr@gnu.org>
2706
2707 * makefile.w32-in: Always include w32font.c in the build.
2708 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
2709
03bd3c1f
AS
27102008-03-04 Andreas Schwab <schwab@suse.de>
2711
2712 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
2713 (versionclean): Likewise.
2714
6f69e89b
JB
27152008-03-04 Juanma Barranquero <lekktu@gmail.com>
2716
2717 * .cvsignore: Add oo.
2718
f4a3cc44
AS
27192008-03-03 Andreas Schwab <schwab@suse.de>
2720
2721 * coding.c (decode_coding_object): Inhibit gap shrinking while
2722 decoding in place.
2723
73f838ad
DN
27242008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
2725
2726 * w32term.c: Remove unused include "gnu.h".
6f69e89b 2727 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
2728
2729 * gnu.h: Rename to ...
2730 * emacs-icon.h: ... this.
2731 * xterm.c: Use emacs-icon.h instead of gnu.h.
2732 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2733
ce9c1f06
JB
27342008-03-03 Juanma Barranquero <lekktu@gmail.com>
2735
2736 * w32font.c: Include math.h.
2737
34fd2d28
JR
27382008-03-03 Jason Rumney <jasonr@gnu.org>
2739
54efdcd1
JR
2740 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
2741 Compute options separately.
2742 (w32font_open_internal): Set glyph_idx before caching metrics.
2743
ce9c1f06
JB
2744 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
2745 Define if system headers don't.
2746 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
2747 (w32font_encode_char): Don't declare here.
2748
2749 * w32font.c (Quniscribe, QCformat): New symbols.
2750 (syms_of_w32font): Define them.
2751 (w32font_has_char): Indicate uncertainty.
ce9c1f06 2752 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 2753 (recompute_cached_metrics): New function.
ce9c1f06
JB
2754 (w32font_open_internal): Use it. Set font to use glyph points
2755 initially. Set format based on type of font.
34fd2d28 2756 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
2757 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
2758 on it. Set format based on information available here.
34fd2d28
JR
2759 (add_font_entity_to_list): Identify backend based on opentype_only.
2760
14daee73
AS
27612008-03-02 Andreas Schwab <schwab@suse.de>
2762
f907fb2e
AS
2763 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
2764
ce9c1f06
JB
2765 * coding.c (decode_coding_big5, produce_chars):
2766 Fix typos in last change.
14daee73 2767
c9cc6462
DN
27682008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
2769
2770 * gnu.h: New icon.
2771
119852e7
KH
27722008-03-02 Kenichi Handa <handa@m17n.org>
2773
2774 * coding.c (decode_coding_utf_8): When eol-type of CODING is
2775 `dos', don't decode '\r' if that is the last in the source.
2776 (decode_coding_utf_16, decode_coding_emacs_mule)
2777 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2778 (decode_coding_raw_text, decode_coding_charset): Likewise.
2779 (produce_chars): Don't decode EOL here. Use EMACS_INT.
2780
a823468b
JR
27812008-03-01 Jason Rumney <jasonr@gnu.org>
2782
2783 * w32font.c (w32font_full_name): Report point size for scalable fonts.
2784
4ddc7e30
KS
27852008-03-01 Kim F. Storm <storm@cua.dk>
2786
2787 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
2788
67997c79
JR
27892008-03-01 Jason Rumney <jasonr@gnu.org>
2790
2791 * w32font.c (w32font_full_name): New function.
2792 (w32font_open_internal): Use it.
2793
3f4e9c35
KS
27942008-03-01 Kim F. Storm <storm@cua.dk>
2795
2796 * dispnew.c (line_draw_cost): Fix invalid glyph check.
2797
f3b9e479
JR
27982008-03-01 Jason Rumney <jasonr@gnu.org>
2799
2800 * font.c (font_unparse_fcname): Increase len when style is a symbol.
2801
880820fe 28022008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
2803
2804 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
2805 xg_frame_resized when the event is for the edit widget.
2806
2807 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
2808
2809 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
2810 set_char_size.
2811 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
2812 operations on widgets here. Just set frame size if needed.
2813 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
2814 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
2815 (x_wm_set_size_hint): Set size hints on the edit widget only, not
2816 the whole frame.
2817 (xg_create_tool_bar): Move attachement of the tool bar to
2818 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
2819 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
2820
6c8acaa1
JR
28212008-03-01 Jason Rumney <jasonr@gnu.org>
2822
2823 * w32fns.c (w32_msg_pump): Disable debug code.
2824
51fb064b 28252008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 2826
51fb064b 2827 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 2828
60221a33
CY
28292008-02-29 Chong Yidong <cyd@stupidchicken.com>
2830
2831 * xdisp.c (next_overlay_string): Don't set
2832 overlay_strings_at_end_processed_p if we're currently reading from
2833 a display string.
2834
10cbc34f
SM
28352008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
2836
2837 * xdisp.c (get_overlay_strings_1): Fix typo.
2838
73c0054e
CY
28392008-02-29 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * xdisp.c (get_overlay_strings_1): Add missing argument type.
2842
ec1c4354
KH
28432008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2844
55082642
KH
2845 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
2846
ec1c4354
KH
2847 * xdisp.c (display_mode_element): Cancel the previous change.
2848 (decode_mode_spec): Likewise.
ee548a94
KH
2849 (handle_auto_composed_prop): Don't make composition if it->string
2850 is a string.
ec1c4354 2851
b6d898a2
KS
28522008-02-27 Kim F. Storm <storm@cua.dk>
2853
2854 * lisp.h (GLYPH): Change type from int to struct with separate char
2855 and face_id members.
2856 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
2857 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
2858 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
2859 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
2860 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
2861 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
2862 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
2863 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
2864 handle new Lisp glyph code encoding, either an integer or a cons.
2865
2866 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
2867 (GLYPH_ALIAS): Delete.
2868 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
2869 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
2870 (GLYPH_FROM_CHAR): Replace macro by ...
2871 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
2872
2873 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
2874 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
2875 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2876 (GLYPH_INVALID_P): New macro.
2877 (spec_glyph_lookup_face): Update prototype.
2878
2879 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2880 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2881 new glyph code encoding.
2882 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2883 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2884
2885 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2886 Adapt to new glyph type and new glyph code encoding.
2887
2888 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2889
2890 * indent.c (current_column, current_column_1, Fmove_to_column)
2891 (compute_motion): Adapt to new glyph code encoding.
2892
2893 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2894
af2080a2
CY
28952008-02-27 Chong Yidong <cyd@stupidchicken.com>
2896
2897 * process.c (wait_reading_process_output): Check for window
2898 changes caused by timers.
880820fe 2899 Suggested by Johan Bockgård.
af2080a2 2900
253ed25e
GM
29012008-02-27 Glenn Morris <rgm@gnu.org>
2902
2903 * emacs.c (USAGE1): Add `--disable-font-backend'.
2904
18a9f8d9
SM
29052008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2906
2907 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2908 is made to the buffer.
2909
0f8b27ea
SM
29102008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2911
2912 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2913 (face_at_string_position):
2914 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2915 (face_at_string_position):
2916 * xdisp.c (display_string, next_overlay_change):
2917 * buffer.h (overlays_at):
2918 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2919 Update callers.
2920
4e7c53ca
CY
29212008-02-26 Chong Yidong <cyd@stupidchicken.com>
2922
2923 * editfns.c (Fformat): Doc fix.
2924
51c01100
JB
29252008-02-26 Juanma Barranquero <lekktu@gmail.com>
2926
2927 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2928 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2929 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2930
13cda5f9
SM
29312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2932
2933 * buffer.c (Fbuffer_swap_text): New function.
2934 (syms_of_buffer): Defsubr it.
2935
8018d430
CY
29362008-02-25 Chong Yidong <cyd@stupidchicken.com>
2937
2938 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2939
9bde1a21
JR
29402008-02-25 Jason Rumney <jasonr@gnu.org>
2941
2942 * w32font.c (w32font_draw): Draw one character at a time when padding.
2943
eeca6f6f
SM
29442008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2945
2946 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2947 Handle a nil arg. Use run_window_configuration_change_hook.
2948 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2949 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2950 Use run_window_configuration_change_hook.
2951
ec1c4354
KH
29522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2953
2954 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2955 1-pixel width.
2956
ae185452
KH
29572008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2958
2959 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2960 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2961 if the glyph in the font is zero pixel with.
2962
2963 * dispextern.h (struct glyph_string): New member padding_p.
2964
2965 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2966
2967 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2968
2969 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2970
2971 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2972
eeca6f6f 2973 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2974
ffe832ea 29752008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2976
ffe832ea 2977 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2978
06045130
SM
29792008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2980
2981 Allow fine-grained image-cache flushing.
2982 * dispextern.h (struct image): Add `dependencies' field.
2983 (clear_image_caches): Change arg to Lisp_Object.
2984 * image.c (make_image): Initialize `dependencies' field.
2985 (clear_image_cache): Change arg to allow fine-grained flushing.
2986 Perform the flush even if image-cache-eviction-delay is nil.
2987 (clear_image_caches): Change arg to Lisp_Object.
2988 (Fclear_image_cache): Expand meaning of the argument.
2989 (mark_image): Mark `dependencies' field.
2990 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2991 (lface_hash): Use XHASH rather than XFASTINT.
2992 (face_at_buffer_position): Fix int -> EMACS_INT position.
2993 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2994 (select_frame_for_redisplay): Remove code duplication.
2995 (redisplay_internal): Adapt arg to call to clear_image_caches.
2996
9d2818d6
DN
29972008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2998
2999 * s/vms4-0.h:
3000 * s/vms4-2.h:
3001 * s/vms4-4.h:
3002 * s/vms5-5.h: Remove, unused.
3003
3004 * s/irix5-2.h:
3005 * s/irix6-0.h:
3006 * s/riscos5.h:
3007 * s/mach-bsd4-3.h:
2a2e8de7 3008 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
3009
3010 * Makefile.in:
3011 * filelock.c:
3012 * unexmips.c:
3013 * m/hp9000s300.h:
3014 * m/iris4d.h:
3015 * s/aix3-1.h:
3016 * s/hpux.h:
3017 * s/msdos.h:
3018 * s/usg5-0.h:
3019 * s/usg5-2-2.h:
3020 * s/usg5-2.h:
3021 * s/usg5-3.h: Remove references to obsolete variables.
3022
3023 * s/irix5-0.h: Remove, move all the contents ...
3024 * s/irix6-5.h: ... here. Simplify.
3025 * config.in: Regenerate.
3026
2a36efcf
JR
30272008-02-24 Jason Rumney <jasonr@gnu.org>
3028
c5ad7a3d 3029 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
3030 manually when cleartype is in use.
3031 (x_draw_glyph_string_foreground): Draw text transparently when
3032 cleartype is in use.
3033
2a36efcf
JR
3034 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3035 a font into it unless we have to.
3036
b03f96dc 30372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3038
b03f96dc
MB
3039 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3040 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3041
b03f96dc 30422008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3043
b03f96dc 3044 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3045
b03f96dc 30462008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3047
b03f96dc 3048 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3049
b03f96dc 30502008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3051
b03f96dc 3052 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3053
d5958163
CY
30542008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3055
3056 * xterm.c (x_set_offset): Don't change the gravity if
3057 CHANGE_GRAVITY is -1.
3058
9997701e
CY
30592008-02-23 Chong Yidong <cyd@stupidchicken.com>
3060
3061 * fileio.c (auto_save_error_occurred): New var.
3062 (auto_save_error): Set it.
3063 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3064 error occurred.
3065
9d95a291
EZ
30662008-02-23 Eli Zaretskii <eliz@gnu.org>
3067
3068 * w32.c (globals_of_w32): Add initializations for
3069 g_b_init_get_sid_sub_authority and
3070 g_b_init_get_sid_sub_authority_count.
3071
43d1af23
SM
30722008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3073
43a1d19b
SM
3074 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3075 (font_parse_xlfd): Use them for sanity check.
608c3307 3076 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 3077
354884c4
SM
3078 Consolidate the image_cache to the terminal struct.
3079 * termhooks.h (P_): Remove redundant def.
3080 (struct terminal): New field `image_cache'.
3081 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3082 of FRAME_X_IMAGE_CACHE.
3083 * xterm.h (struct x_display_info): Remove image_cache field.
3084 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3085 * w32term.h (struct w32_display_info): Remove image_cache field.
3086 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3087 * macterm.h (struct mac_display_info): Remove image_cache field.
3088 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3089 * xterm.c (x_term_init):
3090 * w32term.c (w32_term_init):
3091 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3092 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3093 Remove declarations.
3094 (clear_image_caches, mark_image_cache): New declarations.
3095 * xfaces.c (clear_face_cache):
3096 * xdisp.c (redisplay_internal): Use clear_image_caches.
3097 * image.c (clear_image_cache): Don't check that a frame is on
3098 a window-system before checking if it shares the same cache.
3099 (clear_image_caches): New function.
3100 (Fclear_image_cache): Use it.
3101 (mark_image): Move from allo.c.
3102 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3103 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3104 (mark_object): Don't call mark_image_cache for frames.
3105 (mark_terminals): Call mark_image_cache.
3106
c2e42690
SM
3107 * lisp.h (Fdelete_terminal): Declare.
3108
43d1af23
SM
3109 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3110 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3111 wrong_type_argument.
3112
cc8d1311
KH
31132008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3114
3115 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 3116 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 3117
6bd92640
SM
31182008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * xterm.c (x_connection_closed): Consolidate identical tests.
3121 (x_delete_terminal): Don't crash if called via x_connection_closed.
3122
a73b5627
KH
31232008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3124
3125 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 3126 (display_mode_element): Adjust for the above change.
a73b5627 3127
1b511542
SM
31282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3129
3130 * callint.c (Fcall_interactively): Use AREF.
3131
81aefea4
SM
31322008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3133
3134 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3135
880820fe 31362008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
3137
3138 * xfns.c (Fx_show_tip): Set string to " " if empty.
3139
a2b84f35
DN
31402008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3141
3142 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3143 with Qt.
3144
43c0454d
KH
31452008-02-17 Kenichi Handa <handa@m17n.org>
3146
3147 * ftfont.c (ftfont_shape): Return Lispy number.
3148
3149 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3150 for GCs.
3151 (Finternal_set_font_selection_order): Call font_update_sort_order
3152 only when enable_font_backend is set.
3153 (realize_x_face): Set face->font_info to that of default face only
3154 when enable_font_backend is set.
3155
3156 * xdisp.c (handle_composition_prop): Set it->c to the fist
3157 characte of the composed region.
3158 (fill_composite_glyph_string): Set base_face->font_info to
3159 s->font_info. Get a face for ascii from base_face->ascii_face.
3160 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3161 with a face already decided.
3162 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3163 non-negative.
978bef9a
JB
3164 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3165 call font_prepare_composition unconditionally.
43c0454d 3166
978bef9a 3167 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
3168
3169 * xterm.h (struct x_display_info): New member font.
3170
3171 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3172 (x_set_mouse_face_gc, x_new_font): Likewise.
3173 (x_term_init): Setup display_info->font.
3174 (x_delete_terminal): Free display_info->font.
3175
3176 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3177
3178 * ftxfont.c (ftxfont_default_fid): Delete it.
3179 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3180 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3181 font-driver.
3182
3183 * xftfont.c (xftfont_default_fid): Delete it.
3184 (xftfont_open): Set xfont->fid to 0.
3185
3186 * fontset.c (FONTSET_OBJLIST): New macro.
3187 (fontset_find_font): Update font-object list of the fontset.
3188 (free_realized_fontset): New function.
3189 (free_face_fontset): Call free_realized_fontset.
3190 (Ffont_info): Call font_close_object only when enable_font_backend
3191 is set.
3192
3193 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3194 [HAVE_NTGUI]: Include w32term.h.
3195 [MAC_OS]: Include macterm.ch.
3196 (font_otf_ValueRecord): Use make_number.
3197 (font_finish_cache): Fix handling of reference count.
3198 (font_clear_cache): Update num_fonts.
3199 (font_open_entity): Update smallest_char_width and
3200 smallest_font_height of the frame.
3201 (font_close_object): Update num_fonts.
3202 (Fclear_font_cache): Fix finding the target cache data.
3203
be617367
GM
32042008-02-16 Glenn Morris <rgm@gnu.org>
3205
3206 * fontset.c (Finternal_char_font): Fix compilation warning.
3207
2930d117
EZ
32082008-02-16 Eli Zaretskii <eliz@gnu.org>
3209
634d3003
EZ
3210 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3211 instead of char arrays. Enlarge the size of array passed to
3212 get_token_information.
3213
2930d117
EZ
3214 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3215 warnings.
3216
79214046
DN
32172008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3218
3219 * .gdbinit: Don't set `args', it breaks gdb --args.
3220
7f5d2c72
SM
32212008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3222
3223 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3224 within a narrowed buffer.
3225
6edacc43
KH
32262008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3227
b270d6af
JB
3228 * coding.c (decode_coding_object, encode_coding_object):
3229 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3230
174105f7
SM
32312008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3232
b270d6af
JB
3233 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3234 hardcoding 1.
13818c30
SM
3235 (detect_coding_system):
3236 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3237 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3238 * insdel.c (insert_from_gap):
3239 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3240 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3241 (string_to_multibyte):
3242 * character.c (chars_in_text, multibyte_chars_in_text):
3243 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3244
f1c99628
SM
3245 * character.h (FETCH_STRING_CHAR_ADVANCE)
3246 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3247 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3248 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3249
7927d8e3
SM
3250 * casefiddle.c (casify_region): Only call after-change and composition
3251 functions on the part of the region that was changed.
3252
adf6a429 3253 * keyboard.c (read_avail_input):
174105f7
SM
3254 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3255
3ee24aec
SM
32562008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3257
3258 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3259 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3260
4ed4b975
JB
32612008-02-11 Juanma Barranquero <lekktu@gmail.com>
3262
3263 * w32menu.c (push_submenu_start, push_submenu_end)
3264 (push_left_right_boundary, push_menu_pane, push_menu_item):
3265 * keyboard.c (read_key_sequence): Don't pass args with side effects
3266 to AREF, it fails when compiling with -DENABLE_CHECKING.
3267
79e3bfb8
KH
32682008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3269
4ed4b975
JB
3270 * Makefile.in (${lispsource}international/charprop.el):
3271 Delete this target.
6e76043f 3272
79e3bfb8
KH
3273 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3274 emacs-unicode-2.
3275
5b8de9c5
SM
32762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3277
3278 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3279
eac1939a
SM
32802008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3281
c53956fe
SM
3282 * frame.c (Qnoelisp): New symbol.
3283 (syms_of_frame): Initialize it.
3284 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3285 someharmles Elisp code, from a strong `force' from x_connection_closed.
3286 * frame.h (Qnoelisp): Declare.
3287 * xterm.c (x_connection_closed): Pass `noelisp'.
3288
eac1939a
SM
3289 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3290 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3291 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3292 rather than `int' for the type of `type'.
3293
13f6772b
DN
32942008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3295
3296 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3297
3298 * Makefile.in (GNUC): Remove support for gcc-1.x.
3299
e8455367
RS
33002008-02-10 Richard Stallman <rms@gnu.org>
3301
3302 * lisp.h (ASET): Use AREF, not ASLOT.
3303
4b75ffab
SM
33042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3305
3306 * lisp.h (ASET): Check bounds.
3307
d224e8c2
GM
33082008-02-10 Glenn Morris <rgm@gnu.org>
3309
3310 * buffer.c (mode-name): Doc fix.
3311
4624371d
DN
33122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3313
290afd83
JB
3314 * Makefile.in:
3315 * emacs.c:
3316 * gmalloc.c:
3317 * keyboard.c:
3318 * lisp.h:
3319 * m/ibm370aix.h:
3320 * process.c:
3321 * regex.c:
3322 * s/hpux.h:
3323 * sysdep.c:
3324 * sysselect.h:
3325 * systty.h:
3326 * unexec.c:
3327 * w32term.c:
3328 * xsmfns.c:
3329 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3330
3331 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3332
3333 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3334 nothing else needs it anymore.
3335
274ec34b
EZ
33362008-02-09 Eli Zaretskii <eliz@gnu.org>
3337
3338 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3339 instead of unibyte_char_to_multibyte.
3340
deeaffe1
DN
33412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3342
3343 * s/gnu-linux.h: Remove commented out code.
3344
4ed4b975 3345 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3346
3347 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3348 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3349 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3350 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3351 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3352
68b587a6
SM
33532008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3354
9141ca5e
SM
3355 * keymap.c (Fkey_description): Move side effect outside of macro call.
3356
dfae5f9a 3357 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3358 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3359
ff7a2223
SM
3360 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3361 (syms_of_fontset): Use ASET.
3362
68b587a6
SM
3363 * fns.c (concat): Move side effect outside of macro call.
3364 (hash_clear): Use ASET.
3365
a31787b1
RS
33662008-02-08 Richard Stallman <rms@gnu.org>
3367
3368 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3369 If FORCE, and frame has a surrogate minibuffer for another frame,
3370 delete the other frame first.
3371
987be29b 33722008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3373
3374 * xterm.c (x_detect_focus_change): Handle embed client message.
3375 (handle_one_xevent): Ditto.
3376 (handle_one_xevent): If embedded and we get a button press/release,
3377 request focus.
3378 (xembed_set_info, xembed_send_message): New functions.
3379 (x_make_frame_visible): Call xembed_set_info if embedded.
3380 (x_make_frame_invisible): Call xembed_set_info if embedded.
3381 (x_term_init): Initialize Xatom_XEMBED.
3382 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3383 (x_iconify_frame): Ditto.
3384
3385 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3386 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3387 (enum xembed_modifier, enum xembed_accelerator): New.
3388 (xembed_set_info, xembed_send_message): Declare.
3389 (FRAME_X_EMBEDDED_P): New.
3390
3391 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3392 gtk_plug_new.
3393
3394 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3395 window ID of a frame.
3396 (x_window): Reparent frame if embedded.
3397 (Fx_create_frame): Don't set border width if embedded.
3398
1f204af3 3399 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
3400 (standard_args): Ditto.
3401
880820fe 34022008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3403
3404 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3405
92413ef3
JD
34062008-02-07 Jim Meyering <meyering@redhat.com>
3407
6f69e89b 3408 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3409 The latter provokes a warning from gcc about the empty else, when
3410 followed by ";". Also, without that trailing semicolon, it would
3411 silently swallow up any following statement.
c3f9fba8 3412 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3413 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3414 * buffer.h (DECODE_POSITION): Likewise.
3415 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3416 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3417 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3418 (FETCH_CHAR_ADVANCE): Likewise.
3419 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3420
03fa5713
GM
34212008-02-07 Jim Meyering <meyering@redhat.com>
3422
3423 * lread.c [lint]: Don't include <sys/inode.h>.
3424
3ae565b3
SM
34252008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3426
3427 * xselect.c (x_handle_dnd_message):
3428 * xmenu.c (digest_single_submenu, xmenu_show):
3429 * xdisp.c (with_echo_area_buffer_unwind_data)
3430 (format_mode_line_unwind_data, unwind_format_mode_line)
3431 (display_menu_bar):
3432 * eval.c (Ffetch_bytecode):
3433 * doc.c (store_function_docstring):
3434 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3435 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3436 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3437
146b6e55
KH
34382008-02-07 Kenichi Handa <handa@m17n.org>
3439
3440 * ftxfont.c (ftxfont_open): Don't set
3441 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3442
3443 * ftfont.c (ftfont_open): Fix previous change.
3444
46a923ac
JR
34452008-02-06 Jason Rumney <jasonr@gnu.org>
3446
3447 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3448 Use cached metrics for ASCII characters.
3ae565b3
SM
3449 (w32font_open_internal): Don't set font's owning_frame.
3450 Cache metrics for ASCII characters.
46a923ac
JR
3451
3452 * w32font.h (struct w32font_info): Add ascii_metrics.
3453 Remove owning_frame.
3454
da7d7c21
KH
34552008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3456
3457 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3458 to negative value.
3459
3460 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3461
3ae565b3 3462 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3463
3464 * charset.c (syms_of_charset): Set QCtest and Qeq.
3465
c62c8ddb
SM
34662008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3467
ca319910
SM
3468 * process.c (Fstart_process):
3469 * callproc.c (Fcall_process): Handle the case where
3470 Funhandled_file_name_directory returns nil.
3471
76860cbb
SM
3472 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3473 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3474 * font.c (check_gstring): Use them and AREF to access the vector before
3475 we know it's really a gstring.
3476 (Ffont_shape_text): Fix typo.
3477 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3478
15139d67
SM
3479 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3480 Declare.
3481
c62c8ddb
SM
3482 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3483
04b65d2b
JR
34842008-02-05 Jason Rumney <jasonr@gnu.org>
3485
3486 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3487 Set smallest_font_height and smallest_char_width in display info.
3488
fccaebfd
KH
34892008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3490
3491 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3492
e7d7fd8c
MB
34932008-02-05 Miles Bader <miles@gnu.org>
3494
3495 * xfaces.c (get_lface_attributes, merge_named_face)
3496 (lookup_named_face, lookup_derived_face, realize_named_face):
3497 Revert 2008-02-01 change by cyd@stupidchicken.com.
3498
3d4448a8
KH
34992008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3500
3501 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3502 fallback fonts.
15139d67 3503 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3504
5ace1ec1
JR
35052008-02-04 Jason Rumney <jasonr@gnu.org>
3506
3507 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3508 set full_name.
e3a77b22 3509 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3510
ffe42183
JR
35112008-02-03 Jason Rumney <jasonr@gnu.org>
3512
3513 * makefile.w32-in (OBJ1): Include font.o here.
3514 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3515
526dc3b3
JR
35162008-02-02 Jason Rumney <jasonr@gnu.org>
3517
a0fece35 3518 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3519
af805c82
JR
35202008-02-01 Jason Rumney <jasonr@gnu.org>
3521
3522 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3523
3524 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3525
7f6519c5
AS
35262008-02-01 Andreas Schwab <schwab@suse.de>
3527
1f45f627 3528 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3529 ../lisp/language/myanmar.el.
7f6519c5 3530
26f8aa27
CY
35312008-02-01 Chong Yidong <cyd@stupidchicken.com>
3532
1f45f627 3533 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3534 (merge_named_face, lookup_named_face, lookup_derived_face)
3535 (realize_named_face): Call lface_from_face_name directly, and use
3536 the fact that merge_face_vectors does not alter its FROM argument.
3537
73acf815 35382008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3539
3540 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3541 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3542
73acf815 35432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3544
3545 * fontset.c (reorder_font_vector): Exclude nil elements from the
3546 font group. Don't try multiple fonts.
15139d67 3547 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3548 (Finternal_char_font): Return nil if the found font doesn't
3549 contain the character ch.
3550
4c4475a8 3551 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3552
73acf815 35532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3554
3555 * font.h (FONTP): Make it return 1 also for a font-object.
3556
3557 * .gdbinit (xfontset): New function.
3558
3559 * font.c (font_find_for_lface): Check if the character C is
3560 supported or not only for the first font.
3561
3562 * fontset.c (reorder_font_vector): Fix typo.
3563 (fontset_find_font): Don't add a font-spec specifying a script.
3564 Use 0 (not Qt) for the indication of empty font-group. Change the
3565 format of RFONT-DEF. Return Qt if no font in the font-group
3566 support the character.
15139d67 3567 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3568 found the character, remember that.
15139d67 3569 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3570 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3571 no font for the target.
15139d67 3572 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3573
73acf815 35742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3575
3576 * font.c (font_load_for_face): Handle the case that the font in
3577 face->lface is a string.
3578
73acf815 35792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3580
1f45f627 3581 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3582
73acf815 35832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3584
3585 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3586 Fix previous change. If the frame is not on a window system,
3587 signal an error.
3588
73acf815 35892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3590
4c4475a8
GM
3591 * coding.c (decode_coding_object, encode_coding_object): Adjust
3592 marker positions after conversion.
aca7a3d2
MB
3593
3594 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3595
73acf815 35962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3597
3598 * font.c (font_find_for_lface): Fix the handling of the return
3599 value of font_has_char.
3600 (Ffont_shape_text): Fix previous change.
3601
3602 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3603 (fontset_ref_and_range): Delete it.
3604 (fontset_find_font): Call char_table_ref_and_range instead of
3605 FONTSET_REF_AND_RANGE.
3606 (make_fontset): Don't setup font groups of Latin here.
3607 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3608 (new_fontset_from_font): Make the specified font the default for
3609 all Latin characters.
3610
73acf815 36112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3612
3613 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3614 is on a window system before accessing the fontset of the frame.
3615
73acf815 36162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3617
1f45f627 3618 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3619
3620 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3621 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3622
3623 * font.c (Ffont_shape_text): If the font driver doesn't have a
3624 shaper function, make zero-width glyphs to have at least one-pixel
3625 width. Fix setting of `to' field of glyphs.
3626
73acf815 36272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3628
3629 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3630 glyphs.
3631
1f45f627 3632 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3633
73acf815 36342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3635
3636 * composite.c (syms_of_composite): Fix docstring of
3637 auto-composition-function.
3638
3639 * font.h (LGLYPH_SIZE): New macro.
3640
3641 * font.c (Ffont_fill_gstring): Stop filling when a character not
3642 supported by the font is found.
3643 (Ffont_shape_text): When a shape callback function returns nil,
3644 try at most two more times with larger gstring.
15139d67 3645 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3646
3647 * xdisp.c (handle_auto_composed_prop): Change the argument to
3648 auto-composition-function.
3649
3650 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3651 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3652 Lispy glyph and store it in the lgstring.
3653
3654 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3655
3656 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3657
73acf815 36582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3659
3660 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3661
3662 * fontset.c (Vfont_encoding_charset_alist): New variable.
3663 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3664 (reorder_font_vector, fontset_find_font): Optimize for the case of
3665 no need of reordering.
aca7a3d2
MB
3666 (face_for_char): Map the charset property by
3667 Vfont_encoding_charset_alist.
3668
73acf815 36692008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3670
3671 * w32font.c (logfonts_match): Don't check adstyle here.
3672 (font_matches_spec): Check here against physical font instead.
3673 (add_font_entity_to_list): Avoid some substitutions.
3674
3675 * font.c (font_parse_fcname): Default weight and slant to normal.
3676 (font_score): Prefer normal fonts if weight or slant unspecified.
3677 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3678 match freetype scores.
3679
73acf815 36802008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3681
3682 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3683 font, as it may have been deleted.
3684 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3685 most common hyphenless variation.
3686 (logfonts_match): Check generic family.
3687 (font_matches_spec): Don't check generic family here.
3688 (fill_in_logfont): Set generic family based on adstyle.
3689
3690 * w32font.h (w32font_get_cache): Update declaration.
3691
73acf815 36922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3693
3694 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3695
15139d67 3696 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3697 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3698 with the old drivers.
3699
3700 * w32font.c (w32font_get_cache): Adjust the argument type.
3701
3702 * xfont.c (xfont_get_cache): Adjust the argument type.
3703
3704 * font.h (struct font_driver): Change argument type of get_cache.
3705
3706 * xftfont.c (xftfont_start_for_frame): Delete prototype.
3707
3708 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 3709 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 3710 (font_clear_cache): New function.
4c4475a8 3711 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 3712 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
3713
3714 * fontset.c (fontset_find_font): Fix previous change.
3715
73acf815 37162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3717
3718 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
3719 dpyinfo->font_table.
3720 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 3721 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
3722
3723 * font.c (font_at): Handle the case that the arg C is negative.
3724 Handle the unibyte case.
3725 (Ffont_at): Call font_at with the arg C -1.
3726
3727 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
3728 the position here, and call font_at with the arg C -1.
3729 Don't check the range of the existing composition at the point.
aca7a3d2 3730
73acf815 37312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3732
15139d67 3733 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 3734 Change caller.
4c4475a8
GM
3735 (load_font_get_repertory, fontset_find_font): Assume that
3736 font_spec is always a font-spec object.
aca7a3d2
MB
3737 (Fset_fontset_font): Always store a font-spec object in a fontset.
3738
3739 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
3740 instead of get_property_and_range.
3741
73acf815 37422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3743
3744 * xftfont.c (struct xftfont_info): Delete the member ft_face.
3745 (xftfont_open): Don't keep locking face.
3746 (xftfont_close): Don't unlock face.
4c4475a8 3747 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
3748
3749 * fontset.c (fontset_find_font): Don't prefer a font of
3750 supplementary charset.
3751
73acf815 37522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3753
1f45f627
GM
3754 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
3755 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
3756 (OTF_TAG_STR): Terminate by '\0'.
3757 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
3758 listing to the script specified in that property. Fix arg to
3759 OTF_check_features.
3760
73acf815 37612008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3762
3763 * w32font.h: New file.
3764
3765 * w32font.c: Include it.
3766 (struct w32font_info): Add owning_frame field. Move to w32font.h.
3767 (w32font_open): Set owning_frame.
3768 (w32font_text_extents): Use owning_frame.
3769 (struct font_callback_data): Add opentype_only field.
3770 (add_font_entity_to_list): Use it to filter fonts.
3771 Don't check against full name.
3772 (w32font_list_internal): New function.
3773 (w32font_list): Use it.
3774 (w32font_match_internal): New function.
3775 (w32font_match): Use it.
3776 (w32font_open_internal): New function.
3777 (w32font_open): Use it.
3778 (w32font_get_cache, w32font_close, w32font_has_char)
3779 (w32font_encode_char, w32font_text_extents, w32font_draw):
3780 Make non-static.
3781
3782 * makefile.w32-in (w32font.o): Depend on w32font.h.
3783
73acf815 37842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3785
3786 * charset.c (Fdefine_charset_internal): Record a supplementary
3787 charset at the tail of Vcharset_order_list.
3788
3789 * font.c (Ffont_shape_text): Fix the return value.
3790
3791 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
3792
3793 * xdisp.c (handle_auto_composed_prop): Fix previous change.
3794
73acf815 37952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3796
3797 * ftfont.c (struct OpenTypeSpec): New struct.
3798 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
3799 (ftfont_get_open_type_spec): New function.
3800 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
3801
15139d67 3802 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 3803
73acf815 38042008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3805
3806 * w32font.c (add_font_entity_to_list): Compare only the beginning
3807 of full name.
3808
73acf815 38092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3810
15139d67
SM
3811 * xdisp.c (handle_auto_composed_prop): Simplify the code.
3812 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 3813
73acf815 38142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3815
3816 * font.c (font_gstring_produce): Delete it.
3817
15139d67
SM
3818 * composite.h (COMPOSITION_METHOD):
3819 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 3820
73acf815 38212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3822
15139d67 3823 * xfont.c (Qx): Delete.
aca7a3d2
MB
3824 (syms_of_xfont): Don't initialize Qx.
3825
15139d67
SM
3826 * composite.h (enum composition_method):
3827 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 3828
73acf815 38292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3830
3831 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
3832 (choose_face_font): Accept new form of font-spec.
3833
3834 * frame.h (font_driver_list): Declare it unconditionally.
3835 (struct frame): Define members font_driver_list and font_data_list
3836 unconditionally.
3837
3838 * fontset.c: Include "font.h" unconditionally.
15139d67 3839 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
3840 (Fset_fontset_font): Accept a font-spec object.
3841
3842 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
3843 PIXEL_SIZE part a wild card.
3844
3845 * dispextern.h (struct glyph_string): Define members clip and
3846 num_clips unconditionally.
3847 (struct face): Define members font_info and extra unconditionally.
3848
3849 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
3850 ftfont_info only when HAVE_LIBOTF is defined.
3851
73acf815 38522008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3853
3854 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
3855 and end.
3856
73acf815 38572008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3858
3859 * w32font.c (w32font_driver): Add new fields.
3860
73acf815 38612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3862
aca7a3d2
MB
3863 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
3864 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
3865 (LIBES): Add @M17N_FLT_CFLAGS@.
3866
3867 * composite.c (compose_text): Don't treat the new style
3868 composition specially.
3869
3870 * emacs.c (main): Call syms_of_font unconditionally.
3871
3872 * font.h (FONT_ENTITY_NOT_LOADABLE)
3873 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 3874 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 3875 (struct font_driver): New member shape.
1f45f627 3876 (font_registry_charsets): Extern it.
4c4475a8 3877 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3878 (font_otf_capability, font_drive_otf): Delete their externs.
3879
3880 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3881 (font_charset_alist, font_registry_charsets): Move from xfont.c
3882 and rename.
aca7a3d2
MB
3883 (font_prop_validate_otf): New function.
3884 (font_property_table): Register it for QCotf.
3885 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3886 (font_drive_otf): Delete.
1f45f627 3887 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3888 lispy gstring.
3889 (font_find_for_lface): New arg C.
15139d67 3890 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3891 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3892 lispy gstring.
aca7a3d2
MB
3893 (Ffont_shape_text): New function.
3894 (Fopen_font): If the font size is not given, use 12-pixel.
3895 (Ffont_at): New arg STRING.
15139d67
SM
3896 (syms_of_font): Initalize font_charset_alist.
3897 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3898 conditionally.
3899
3900 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3901 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3902 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3903 Adjust for the change of RFONT-DEF.
15139d67 3904 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3905
3906 * ftfont.h: New file.
3907
3908 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3909 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3910 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3911 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3912 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3913 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3914 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3915 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3916 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 3917 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
3918 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3919 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3920
15139d67
SM
3921 * w32term.c (x_draw_composite_glyph_string_foreground):
3922 Adjust for the change of lispy gstring.
aca7a3d2 3923
15139d67 3924 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3925 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3926 third arg it->window.
3927 (fill_composite_glyph_string): Adjust for the change of lispy string.
3928 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3929
15139d67 3930 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3931 font_find_for_lface.
3932
1f45f627
GM
3933 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3934 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3935 (syms_of_xfont): Don't handle x_font_charset_alist.
3936
3937 * xftfont.c: Include "ftfont.h".
15139d67 3938 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3939 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3940 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3941 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3942 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3943 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3944
15139d67 3945 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3946 the change of lispy gstring.
3947
73acf815 39482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3949
3950 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3951
73acf815 39522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3953
3954 * w32font.c (w32font_draw): Fill background manually.
3955
73acf815 39562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3957
3958 * font.c (Qfontp): Remove unused symbol.
3959 (QCantialias): New symbol.
3960 (syms_of_font): Define it.
3961 (font_property_table): Set a validator for QCantialias.
3962
15139d67
SM
3963 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3964 Define if not already.
aca7a3d2
MB
3965 (QCfamily): Share with xfaces.c.
3966 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3967 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3968 (w32_antialias_type, lispy_antialias_type): New functions.
3969 (w32_enumfont_pattern_entity): New arg requested_font.
3970 Set antialias parameter if non-default was requested.
3971 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3972
73acf815 39732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3974
3975 * lread.c (read1): Undo the previous change.
3976
73acf815 39772008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3978
3979 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3980 USE_FONT_BACKEND is defined.
aca7a3d2 3981
73acf815 39822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3983
3984 * font.h (struct font_bitmap): New member bits_per_pixel.
3985 (struct font_driver): New members start_for_frame and end_for_frame.
3986 (struct font_data_list): New struct.
3987 (font_put_frame_data, font_get_frame_data): Extern them.
3988
3989 * frame.h (struct frame): New member font_data_list.
3990
3991 * font.c (font_update_drivers): Call driver->start_for_frame and
3992 driver->end_for_frame at proper timings.
3993 (font_put_frame_data, font_get_frame_data): New functions.
3994 (Ffont_spec): Add usage in the docstring.
3995
3996 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3997 (Fdelete_frame): Call font_update_drivers.
3998
3999 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 4000 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
4001 (xftfont_get_xft_draw): New function.
4002 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4003 (xftfont_end_for_frame): New function.
4004 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4005
15139d67 4006 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 4007 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
4008 (struct ftxfont_frame_data): New struct.
4009 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4010 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 4011 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
4012 (ftxfont_end_for_frame): New function.
4013 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4014
4015 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4016
73acf815 40172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4018
4019 * xselect.c (Vselection_coding_system)
4020 (Vnext_selection_coding_system): Delete them.
4021 (syms_of_xselect): Don't declare selection-coding-system and
4022 next-selection-coding-system. They are declared in select.el.
4023
73acf815 40242008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4025
4026 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4027
4028 * w32fns.c: Include imm.h.
4029 (get_composition_string_fn, get_ime_context_fn): New optional
4030 system functions.
4031 (globals_of_w32fns): Load them from imm32.dll.
4032 (ignore_ime_char): New flag.
4033 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4034 WM_IME_ENDCOMPOSITION messages.
4035
4036 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4037 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4038
73acf815 40392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4040
4041 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4042 (READCHAR_REPORT_MULTIBYTE): New macro.
4043 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4044 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4045 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4046 source.
4047
73acf815 40482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4049
4050 * xfaces.c (face_for_overlay_string): Call lookup_face with
4051 correct arguments (fix of synching with the trunk).
4052
73acf815 40532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4054
4c4475a8
GM
4055 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4056 (font_prop_validate_non_neg, font_prop_validate_spacing):
4057 Delete argument prop_index.
15139d67
SM
4058 (font_property_table): Change arguments to validater. Change Callers.
4059 (font_lispy_object): Delete.
aca7a3d2
MB
4060 (font_at): Use font_find_object instead fo font_lispy_object.
4061
73acf815 40622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4063
4064 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4065 and file names.
4066
73acf815 40672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4068
4069 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4070 (font_matches_spec): Remove debug output.
4071 (add_font_entity_to_list): Avoid using substituted fonts.
4072
73acf815 40732008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4074
4075 * doc.c (Fsnarf_documentation):
4076 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4077
73acf815 40782008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4079
290afd83 4080 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
4081 HAVE_WINDOW_SYSTEM is defined.
4082
73acf815 40832008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4084
4085 Fix up multi-tty merge.
4086
4087 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4088 and indentation.
4089
4090 * xfaces.c (free_realized_face, clear_face_gcs):
4091 Include font_done_for_face in the input_blocked section, just in case.
4092
4093 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4094 (get_char_face_and_encoding): Undo last change and remove the *other*
4095 duplicate definition (i.e. keep the one that's better scoped and that
4096 includes code for the font-backend).
4097
4098 * terminal.c (create_terminal): Default keyboard_coding to
4099 `no-conversion' and terminal_coding to `undecided'.
4100
4101 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4102
4103 * fontset.c (free_realized_fontsets): Check that the table entry does
4104 contain a fontset before trying to compare it to `base'.
4105
4106 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4107 syms_of_charset, and syms_of_coding earlier because init_window_once
4108 now needs Vcoding_system_hash_table to be setup.
4109
4110 * coding.h (default_buffer_file_coding): Remove.
4111
4112 * coding.c (default_buffer_file_coding): Remove.
4113 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4114 than ->symbol, and use the terminal-local coding system.
4115 (syms_of_coding): Don't setup the coding-systems that are not
4116 terminal-local.
4117 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4118
4119 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4120 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4121
4122 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4123 in chartab.c and were re-added here by mistake.
4124 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4125
4126 * doc.c (Fsnarf_documentation):
4127 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4128 src to etc.
4129
4130 * ChangeLog.10: Add mistakenly removed entry.
4131
73acf815 41322008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
4133
4134 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4135
73acf815 41362008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4137
4138 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4139 Add extra args to FACE_FOR_CHAR.
4140
73acf815 41412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4142
4143 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4144 in sequence.
4145
4c4475a8
GM
4146 * chartab.c (map_sub_char_table, map_char_table): If the range
4147 contains just one character, call the function with that character
4148 even if the depth is not 3.
aca7a3d2 4149
73acf815 41502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4151
4152 * w32font.c (w32font_text_extents): Calculate metrics for the
4153 whole string.
4154
73acf815 41552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4156
4157 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4158
73acf815 41592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4160
4161 * w32term.c (x_set_glyph_string_clipping): Use
4162 get_glyph_string_clip_rects.
4c4475a8
GM
4163 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4164 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4165
4166 * w32font.c (w32font_draw): Do clipping here.
4167
73acf815 41682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4169
1f45f627 4170 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
4171 glyph_string.
4172
4173 * xterm.c (x_set_glyph_string_clipping): Use
4174 get_glyph_string_clip_rects.
4c4475a8
GM
4175 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4176 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4177
4178 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4179 the resulting clip(s}.
1f45f627 4180 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4181 row->clip temporarily.
4182 (expose_window): Redraw rows overlapping the exposed area.
4183
4184 * dispextern.h (struct glyph_row): New member clip.
4185 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4186 clip_height, new member clip, and num_clips.
4187
73acf815 41882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4189
4190 * data.c (Fchar_or_string_p): Fix docstring.
4191
73acf815 41922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4193
4194 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4195 create a temporal XftDraw object.
4196
73acf815 41972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4198
4199 * font.c (Ffontp): Fix docstring.
4200
4201 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4202 strong evidence of ISO-2022.
4203
73acf815 42042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4205
4206 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4207 SYNTAX_ENTRY_FOLLOW_PARENT.
4208
73acf815 42092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4210
4211 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4212 its type.
4213 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4214 Update to the new type of weak_hash_tables and next_weak.
4215
4216 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4217 a plain C pointer to Lisp_Hash_Table.
4218
4219 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4220 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4221 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4222 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4223 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4224 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4225 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4226 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4227 (GC_EQ): Remove since they've been identical to their non-GC_
4228 alter-egos ever since the markbit was eradicated.
4229
290afd83
JB
4230 * alloc.c:
4231 * buffer.c:
4232 * buffer.h:
4233 * data.c:
4234 * fileio.c:
4235 * filelock.c:
4236 * fns.c:
4237 * frame.h:
4238 * lisp.h:
4239 * macterm.c:
4240 * print.c:
4241 * process.c:
4242 * w32fns.c:
4243 * w32menu.c:
4244 * w32term.c:
4245 * xfns.c:
4246 * xmenu.c:
4247 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4248
73acf815 42492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4250
4251 * chartab.c (map_sub_char_table): Make it work for the top-level
4252 char-table. Fix handling of parent char-table.
c5ad7a3d 4253 (map_char_table): Adjust for the above change.
aca7a3d2 4254
73acf815 42552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4256
4257 * w32font.c (Qgdi): Rename from Qw32.
4258
73acf815 42592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4260
4261 * w32bdf.c (get_quoted_string): Make function static.
4262
73acf815 42632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4264
4265 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4266 bigger ascent and descent than those of the font, use them as
4267 font's ascent and descent.
4268
73acf815 42692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4270
4271 * Makefile.in (${lispsource}international/charprop.el): Move this
4272 target within "#ifdef HAVE_UNIDATA" and "#endif".
4273
73acf815 42742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4275
4276 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4277 (shortlisp): Add ../lisp/language/tai-viet.el.
4278
1f45f627 42792008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
4280
4281 * Makefile.in (${lispsource}international/charprop.el): Depend on
4282 temacs${EXEEXT}.
4283
73acf815 42842008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4285
4286 * w32font.c (w32font_close): Delete the GDI font object.
4287
6f69e89b 4288 * w32menu.c: Include character.h.
aca7a3d2
MB
4289
4290 * w32proc.c: Likewise.
4291
4292 * w32select.c: Likewise.
4293
6f69e89b 4294 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 4295
73acf815 42962008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4297
4298 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4299
4300 * w32menu.c (syms_of_w32menu): Likewise.
4301
4302 * w32proc.c (syms_of_ntproc): Likewise.
4303
4304 * w32select.c (syms_of_w32select): Likewise.
4305
4306 * w32term.c (syms_of_w32term): Likewise.
4307
73acf815 43082008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4309
4310 * w32font.c (w32font_draw): Delete brush after using it.
4311
73acf815 43122008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4313
4314 * w32font.c (w32font_open): Don't set font_idx.
4315 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4316 to font settings.
4317 (w32font_draw): Fill background explicitly.
4318
73acf815 43192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4320
4321 * w32term.c (w32_initialize): Don't call w32font_initialize.
4322
4323 * w32font.c (w32font_info): Remove subranges.
4324 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4325 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4326 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4327 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4328 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4329 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4330 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4331 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4332 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4333 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4334 New symbols.
4335 (font_callback_data): New struct.
4336 (w32font_list, w32font_match): Use it.
4337 (w32font_open): Don't populate subranges.
4338 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4339 (w32font_encode_char): Always return unicode code-point as-is.
4340 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4341 GetGlyphOutline. Never look up by glyph index. Avoid looping
4342 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 4343 glyph index version.
1f204af3 4344 (set_fonts_frame): Remove.
aca7a3d2 4345 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4346 set frame parameter. Use backward compatible fake foundries.
4347 Save generic family in extra slot under QCfamily. Make width slot
4348 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4349 binary subranges.
4350 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4351 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4352 unwanted fonts.
4353 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4354 (w32_registry): Default to iso10646_1.
4355 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4356 string font registries. Don't fill in font name if it is a generic
4357 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4358 extra info to fill pitch, family and charset fields.
4359 (list_all_matching_fonts): Use font_callback_data struct.
4360 (unicode_range_for_char): Remove.
4361 (font_supported_scripts): New function.
4362 (w32font_initialize): Remove.
4363 (syms_of_w32font): Update which symbols are defined.
4364
73acf815 43652008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4366
4367 * font.c (font_pixel_size): Reverse assq_no_quit args.
4368
4369 * w32term.h (FONT_WIDTH): Report max width, not average.
4370 (FONT_MAX_WIDTH): Remove.
4371 (FONT_AVG_WIDTH): New macro.
4372
4373 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4374 redefinition of FONT_WIDTH.
4375
4376 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4377 (w32_cache_char_metrics): Use FONT_WIDTH.
4378
4379 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4380
73acf815 43812008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4382
4383 * w32font.c (w32font_open): Make lfHeight negative.
4384
4385 * w32fns.c (x_default_font_parameter): Use new style font name.
4386 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4387
73acf815 43882008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4389
4390 * w32font.c (QCsubranges): New symbol.
4391 (w32font_open, w32font_has_char): Get subranges from subproperty
4392 of extra.
4393 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4394 (syms_of_w32font): Define :subranges symbol.
4395
4396 * font.c (font_put_extra): Expose externally.
4397
1f45f627 4398 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4399
4400 * font.c (Ffont_get): Use font driver to determine otf capability.
4401 (adjust_anchor): Check if driver defines anchor_point before using.
4402
4403 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4404 (w32font_draw): Use options.
4405 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4406 Fix detection of truetype fonts.
4407 (registry_to_w32_charset): Handle charsets other than iso8859-1
4408 expressed as lisp symbols.
4409 (w32_registry): Express charset as lisp symbol.
4410 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4411 Don't set width here. Set quality to default.
aca7a3d2
MB
4412
4413 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4414 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4415
4416 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4417 Remove redundant loop and allocation.
4418
4419 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4420 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4421 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4422
4423 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4424 STORE_XCHARB a valid l-value.
4425
4426 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4427 calculations for non-Truetype fonts.
4428 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4429 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4430 Remove redundant code.
aca7a3d2
MB
4431 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4432
4433 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4434 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4435
4436 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4437 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4438
4439 * w32font.c: New file for w32 font backend.
4440
73acf815 44412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4442
4443 * term.c: Don't include "buffer.h" twice.
4444
73acf815 44452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4446
4447 * character.c (Funibyte_string): New function.
4448 (syms_of_character): Defsubr it.
4449
73acf815 44502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4451
4452 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4453 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4454 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4455 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4456 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4457 (x_free_frame_resources): Sync with xterm.c.
4458
73acf815 44592008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4460
4461 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4462 char-table size.
4463
73acf815 44642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4465
c3f9fba8 4466 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4467
73acf815 44682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4469
4470 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4471 font_otf_gpos, add font_drive_otf.
4472
4473 * fontset.c (fontset_find_font): Pay attention to font size
4474 specified for a font.
4475 (reorder_font_vector): Check contents of font_def.
4476
4477 * font.c (struct otf_list): Delete it.
6f69e89b 4478 (otf_list): Make it a lisp variable.
aca7a3d2 4479 (otf_open): Use lispy otf_list.
1f45f627 4480 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4481 (check_otf_features): New function.
c3f9fba8
JB
4482 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4483 New functions.
aca7a3d2
MB
4484 (font_drive_otf): New function merging font_otf_gsub and
4485 font_otf_gpos.
4486 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4487 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4488 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4489 Ffont_otf_gpos.
4490 (syms_of_font): Staticpro otf_list. Delete defsubr of
4491 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4492
1f45f627 4493 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4494 font_open_for_lface.
4495
4496 * font.h (font_open_for_lface): Adjust prototype.
4497 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4498 member otf_drive.
4499 (font_otf_gsub, font_otf_gpos): Delete externs.
4500 (font_drive_otf): Extern it.
4501
73acf815 45022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4503
4504 * font.c (font_at): If the window W is not on a window system,
4505 return Qnil.
4506
4c4475a8
GM
4507 * coding.c (produce_chars, encode_coding): Don't call
4508 insert_from_gap if no characters to produce.
aca7a3d2 4509
73acf815 45102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4511
4512 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4513 Fclear_face_cache.
4514
4515 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4516
73acf815 45172008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4518
4519 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4520 Parse "--disable-font-backend" option.
4521 (standard_args): Add "--disable-font-backend" option.
4522
73acf815 45232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4524
4525 * fontset.c (fontset_find_font): New function.
4526 (fontset_font): Use fontset_find_font.
4527 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4528 Register the specified font for all Latin characters.
4529 (new_fontset_from_font): Register the specified font for all Latin
4530 characters.
4531 (dump_fontset): For a realized fontset, include the base fontset
4532 name in the returned vector.
4533
73acf815 45342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4535
4536 * character.h (CHAR_STRING): Cast C to unsigned on calling
4537 char_string.
4538
4539 * character.c (char_string): Type of arg C changed to unsigned.
4540 Signal an error if C is an invalid character code.
4541
4c4475a8
GM
4542 * editfns.c (general_insert_function, Fchar_to_string):
4543 Use CHARACTERP, not INTEGERP.
aca7a3d2 4544
73acf815 45452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4546
4547 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4548 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4549
4550 * regex.c (analyse_first): Fix for multibyte characters in "case
4551 charset:" and "case categoryspec:".
4552
73acf815 45532008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4554
4555 * Makefile.in (LIBES): Move standard libraries to the end.
4556
73acf815 45572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4558
4559 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4560 nonzero, don't shrink the buffer nextb.
4561
4562 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4563
4564 * coding.c (coding_alloc_by_making_gap): New arg offset.
4565 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4566 offset.
4567 (decode_coding_iso_2022): Update coding->safe_charsets.
4568 (decode_coding_gap): Temporarily set
4569 current_buffer->text->inhibit_shrinking to 1.
4570
73acf815 45712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4572
4573 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4574 indexing into elements of s->cmp and s->char2b.
4575
73acf815 45762008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4577
4578 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4579
73acf815 45802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4581
4582 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4583 target_multibyte instead of multibyte.
4584 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4585 (bcmp_translate): Change the argument name from multibyte to
4586 target_multibyte.
4587
73acf815 45882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4589
4590 These changes are to compile a regexp into a pattern that can be
4591 used both for multibyte and unibyte targets.
4592
4593 * Makefile.in (search.o): Depend on charset.h.
4594
4595 * character.c (multibyte_char_to_unibyte_safe): New function.
4596
4597 * search.c: Include "charset.h".
4598 (compile_pattern_1): Delete argument multibyte. Don't set
4599 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4600 (compile_pattern): Don't compare cp->buf.target_multibyte.
4601 Compare cp->buf.charset_unibyte.
4602 (compile_pattern): Set cp->buf.target_multibyte.
4603
4604 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4605
4606 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4607
4608 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4609 multibyte. Change callers.
aca7a3d2 4610 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4611 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4612 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4613 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4614 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4615 (regex_compile): Make the compiled pattern usable both for
4616 multibyte and unibyte targets.
4617 (analyse_first): Make the fastmap usable both for multibyte and
4618 unibyte targets.
1f45f627 4619 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4620 (re_match_2_internal): Pay attention to the case that the
4621 multibyteness of bufp and target may be different.
4622
73acf815 46232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4624
4625 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4626 empty box occupy at least one column width.
4627
73acf815 46282008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4629
4630 * Makefile.in: Remove redundant HAVE_XFT clause.
4631
73acf815 46322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4633
4634 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4635
73acf815 46362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4637
4638 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4639 being nil.
4640
73acf815 46412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4642
4643 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4644
73acf815 46452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4646
4647 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4648
73acf815 46492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4650
4651 * search.c (simple_search): Fix previous change.
4652
73acf815 46532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4654
4655 * xftfont.c (ftfont_font_format): Extern declaration.
4656
4657 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4658
4659 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4660 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4661
4662 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4663 (ftfont_font_format): Fix previous change.
4664
4665 * font.h (Ffont_xlfd_name): EXFUN it.
4666
4667 * font.c (font_parse_xlfd): Fix the array size of `f'.
4668 (register_font_driver): Use EQ to compare driver->type.
4669
4670 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4671 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4672 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4673
73acf815 46742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4675
4c4475a8
GM
4676 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4677 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4678
73acf815 46792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4680
4681 * xfont.c (xfont_open): Set font->format.
4682
4683 * xftfont.c (xftfont_open): Set font->format.
4684
4685 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4686 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4687 (ftfont_open): Set font->format.
4688 (ftfont_font_format): New function.
4689
4690 * font.h (struct font): New memeber format.
4691
4692 * font.c (Qopentype): New variable.
4693 (syms_of_font): Defsym it.
4694 (Fquery_font): Change the format of the last element of the return
4695 value.
4696
73acf815 46972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4698
4699 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4700 last resort.
4701
73acf815 47022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4703
4704 * coding.c (detect_coding_charset): Fix detection of multi-byte
4705 charset.
4706
73acf815 47072008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
4708
4709 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
4710
73acf815 47112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4712
4713 * xdisp.c (get_next_display_element): Set it->face_id for the
4714 first component of a composition.
1f45f627 4715 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4716
73acf815 47172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4718
4719 * fontset.c (Qlatin): New variable.
4720 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 4721 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 4722
73acf815 47232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4724
4725 * font.c (font_unparse_fcname): Pay attention to the case that
4726 some of font property is a null string.
4727
73acf815 47282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4729
4730 * term.c: Include "composite.h".
4731 (encode_terminal_code): Output all components of composition.
4732 Check the size of encode_terminal_src.
424c157f 4733 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
4734 (append_composite_glyph, produce_composite_glyph): New functions.
4735
4736 * xdisp.c (x_produce_glyphs): In handling composition, if a font
4737 is not found, get font_info from the current ascii face.
4738
73acf815 47392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4740
4741 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
4742 buffer-file-name to Qnil before calling insert_from_buffer.
4743
4744 * font.c (font_unparse_fcname): Pay attention to the case that
4745 foundry is a null string.
4746
73acf815 47472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4748
4749 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
4750
4751 * font.c (Qunicode_sip): New variable.
4752 (syms_of_font): Declare it as a Lisp symbol.
4753
4754 * font.h (Qunicode_sip): Extern it.
4755
73acf815 47562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4757
1f45f627 4758 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
4759
4760 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 4761 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
4762 the first elememnt of allocated memory.
4763
1f45f627 4764 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
4765
4766 * xdisp.c (handle_composition_prop): Set it->c to the first
4767 non-TAB component.
1f45f627
GM
4768 (fill_composite_glyph_string): Change argument.
4769 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
4770 (x_produce_glyphs): Fix handling of left/right padding.
4771
73acf815 47722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4773
4774 * coding.c (detect_coding_system): Fix for handling off
4775 inhibit_iso_escape_detection. Fix for the case that no coding
4776 system is defined for a specific coding category.
4777
73acf815 47782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4779
1f45f627 4780 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
4781
4782 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
4783 opening a font.
4784
4785 * fileio.c (Finsert_file_contents): On recovering a file, assume
4786 Unix-like eol.
4787 (choose_write_coding_system): On auto-saving a file, force
4788 Unix-like eol.
4789
4790 * coding.c (setup_coding_system): Fix setting of
4791 coding->common_flags based on eol_type.
4792 (coding_inherit_eol_type): If PARENT is not nil, be sure to
4793 inherit from it.
4794
73acf815 47952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4796
1f45f627 4797 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 4798
73acf815 47992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4800
1f45f627 4801 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
4802 (ftfont_list): Don't check :name property.
4803 (ftfont_match): New function.
4804 (ftfont_pattern_entity): If the pattern doesn't contain
4805 FC_SPACING, don't assuce FC_MONO.
4806
4807 * font.h (struct font_driver): New member `match'.
1f45f627 4808 (font_update_drivers): Adjust prototype.
aca7a3d2 4809
4c4475a8
GM
4810 * font.c (font_parse_fcname, font_parse_name): Don't change :name
4811 property of FONT.
aca7a3d2
MB
4812 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
4813 them unconditionally.
4814 (font_matching_entity): New function.
4815 (font_open_by_name): Try font_matching_entity if exact match is
4816 not found.
4817 (font_update_drivers): Delete the arg FONT. Return a list of
4818 actually used backends. Don't free faces, font caches here.
4819 Don't store data in frame parameters. Don't call x_set_font.
4820 (Ffont_spec): Store :name property as is.
4821 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
4822 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
4823 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
4824 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
4825 Call font->driver->otf_gsub instead of font_otf_gsub.
4826
4827 * frame.c (x_set_font_backend): Do more works that were done in
4828 font_update_drivers before.
4829
4830 * xfont.c (xfont_match): New function.
4831 (xfont_driver): Set xfont_driver.match to xfont_match.
4832 (xfont_draw): Set font in GC if necessary.
4833
4834 * ftxfont.c (ftxfont_match): New function.
4835 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
4836
4837 * xftfont.c (xftfont_match): New function.
4838 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
4839
73acf815 48402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4841
4842 * font.h (struct font): New member scalable.
4843 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 4844 (font_otf_gsub): Adjust prototype.
aca7a3d2 4845
1f45f627
GM
4846 * font.c (font_otf_capability): Fix handling of the default langsys.
4847 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
4848 Check the contents of SPEC.
4849 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
4850 (check_gstring): New function.
4851 (REPLACEMENT_CHARACTER): New macro.
4852 (font_otf_gsub): New arg alternate_subst. Be sure to set all
4853 glyph codes of GSTRING.
4854 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
4855 (font_prepare_composition): Set cmp->glyph_len.
4856 (font_open_entity): Set font->scalable.
4857 (Ffont_get): Handle :otf property.
4858 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
4859 functions.
4860 (Fquery_font): Use font->font.full_name.
4861 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
4862 Sfont_otf_alternates.
4863
4864 * ftfont.c (ftfont_open): Set font->font.full_name and
4865 font->font.name properly. Fix calculation of font->font.height
4866 and font->min_width.
4867
4868 * ftxfont.c (ftxfont_create_gcs): New function.
4869 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4870 (ftxfont_draw_backgrond): Fix filling region.
4871 (ftxfont_default_fid): New function.
4872 (ftxfont_open): Set xfotn->fid to the return value of
4873 ftxfont_default_fid.
4874 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4875 (ftxfont_done_face): Free only GCs that are created by
4876 ftxfont_create_gcs.
4877 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4878
4879 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4880 Clip to src->width, etc (not src->clip_XXX).
4881
4882 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4883 FontBackend frame parameter.
4884
73acf815 48852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4886
4887 * font.h (struct font_driver_list): New member `on'.
4888 (Fclear_font_cache): EXFUN it.
4889 (font_update_drivers): Extern it.
4890
4891 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4892 (font_list_entities): Check driver_list->on.
4893 (register_font_driver): Initalize `on' member to 0.
4894 (font_update_drivers): New function.
4895 (Fclear_font_cache): Check driver_list->on.
4896
4897 * frame.h (Qfont_backend): Extern it.
4898 (x_set_font_backend): Extern it.
4899
4900 * frame.c (Qfont_backend): New variable.
4901 (frame_parms): New element for font-backend.
4902 (x_set_font_backend): New function.
4903
4904 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4905 FontBackend frame parameter.
4906 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4907 x_set_font_backend.
4908
4909 * xfont.c (xfont_list): Don't try listing by :name property if the
4910 name is not for XLFD.
4911
73acf815 49122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4913
4914 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4915 (LGLYPH_SET_TO): New macros.
4916 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4917 element of G is vector or not.
4918 (font_at): Extern it.
4919
4920 * font.c: Include window.h.
4921 (font_lispy_object): New function.
4922 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4923 end of valid glyph.
4924 (font_close_object): Fix getting (struct font *).
4925 (font_at): New function.
4926 (Ffont_get): If FONT is a font-object, get entity from it.
4927 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4928 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4929 range check.
4930 (Ffont_at): New function.
4931 (syms_of_font): Defsubr Sfont_at.
4932
4933 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4934 before the entry for Qcomposition.
1f45f627 4935 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4936 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4937 the font in gstring.
4938 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4939 LGLYPH_FORM (g) to detect the end of valid glyph.
4940 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4941 we are composing with gstring.
4942
4943 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4944 Check if adjustment is vector or not.
4945
4946 * Makefile.in (font.o): Make it depends on window.h.
4947
73acf815 49482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4949
4950 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4951 adjustment is vector or not.
4952
73acf815 49532008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4954
4955 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4956
73acf815 49572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4958
4959 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4960 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4961 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4962
1f45f627 4963 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4964 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4965 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4966 LGLYPH format.
aca7a3d2 4967
1f45f627 4968 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4969 the change of LGLYPH format.
4970
73acf815 49712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4972
4973 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4974 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4975
880820fe 49762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4977
4978 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4979
4980 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4981 xftface_info is non-NULL.
4982
880820fe 49832008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4984
1f45f627 4985 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4986
73acf815 49872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4988
4989 * ftfont.c (ftfont_list): Pay attention to the case that
4990 FC_CAPABILITY is not defined.
4991
73acf815 49922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4993
4994 * xftfont.c (xftfont_open): Set charset related members to -1.
4995
1f45f627
GM
4996 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4997 QCname.
aca7a3d2
MB
4998 (ftfont_open): Set charset related members to -1.
4999
5000 * fontset.c (Votf_script_alist): New variable.
5001 (syms_of_fontset): Initialize it.
5002 (fontset_font): Delete unused variable.
5003
5004 * fontset.h (Votf_script_alist): Extern it.
5005
1f45f627 5006 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
5007
5008 * font.h (font_close_object, font_merge_old_spec): Extern them.
5009
73acf815 50102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5011
5012 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5013 (syms_of_font): Initialize them.
5014 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
5015 (font_prop_validate_type): Delete.
5016 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5017 Change caller.
5018 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5019 (font_prop_validate_extra): Delete.
aca7a3d2
MB
5020 (font_prop_validate_spacing): New function.
5021 (font_property_table): Add elements for all known properties.
1f45f627
GM
5022 (get_font_prop_index): Rename from check_font_prop_name. New
5023 argument FROM. Change caller.
aca7a3d2 5024 (font_prop_validate): Validate all known properties.
1f45f627 5025 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
5026 (font_expand_wildcards): Make it static. Fix the way of shrinking
5027 the possible range.
1f45f627 5028 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 5029 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 5030 Change caller.
aca7a3d2 5031 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
5032 (font_parse_fcname): Delete argument merge. Fix parsing of point
5033 size. Don't validate properties values here. Change caller.
5034 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
5035 (font_open_by_name): Delete unused variable.
5036 (Ffont_spec): Likewise. Validate property values.
5037 (Ffont_match_p): New function.
5038
5039 * font.h (QCscalable): Extern it.
1f45f627 5040 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5041
1f45f627 5042 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5043
1f45f627 5044 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5045 (xfont_list_pattern): New function.
5046 (xfont_list): Use xfont_list_pattern.
5047
73acf815 50482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5049
5050 * font.h (Flist_fonts): EXFUN it.
5051
73acf815 50522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5053
5054 * w32term.c (w32_initialize): Add back smoothing_type and
5055 smoothing_enabled definitions.
5056
73acf815 50572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5058
5059 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5060 s->face->font on determining underline position.
5061
73acf815 50622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5063
5064 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5065 (font_has_char): Accept font-object too.
5066 (font_find_for_lface): Try at first with a size specified in face.
5067
73acf815 50682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5069
5070 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5071 font_open_by_name.
5072
73acf815 50732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5074
5075 * font.h (QCspacing, QCdpi): Extern them.
5076 (enum font_spacing): New enum.
5077 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5078
5079 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5080 (QCspacing, QCdpi): New variables.
5081 (syms_of_font): Initialize them.
5082 (font_pixel_size): New function.
5083 (font_put_extra): New function.
5084 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5085 in FONT_EXTRA.
e9184ccb
JB
5086 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5087 Fix handling font size. Add QCname property that contains only
aca7a3d2 5088 unknown properties.
1f45f627 5089 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 5090 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
5091 (font_sort_entites, font_list_entities, font_find_for_lface)
5092 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 5093 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
5094
5095 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5096 include weight in listing pattern, instead check weight of each
5097 listed font. Don't include scalable in pattern. Pay attention to
5098 FONT_PIXEL_SIZE_QUANTUM.
5099
73acf815 51002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5101
aca7a3d2 5102 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 5103 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
5104 (font_list_entities): Handle float size correctly.
5105 (font_open_by_name): Prefer `normal' property values if the name
5106 doesn't specify them.
5107
5108 * fontset.c (Finternal_char_font): Use font_get_name, not
5109 Ffont_xlfd_name.
5110
5111 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5112 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5113 pattern. Don't force scalable.
5114
5115 * xftfont.c (xftfont_open): For generating a name, start from
5116 96-byte buffer.
5117
880820fe 51182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5119
5120 * frame.h (x_new_fontset2): Fix prototype.
5121
73acf815 51222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5123
1f45f627 5124 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
5125 (font_match_p, font_get_spec, font_parse_fcname)
5126 (font_unparse_fcname): Extern them.
1f45f627 5127 (font_get_name): Adjust prototype.
aca7a3d2
MB
5128
5129 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5130 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5131 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5132 unnecessary checks for weight, slant, and swidth.
5133 (font_parse_fcname): New function.
5134 (font_unparse_fcname): New function.
5135 (font_parse_name): New function.
5136 (font_match_p): New function.
1f45f627 5137 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
5138 (font_get_spec): New function.
5139 (Qunspecified, Qignore_defface): Don't extern them.
5140 (font_find_for_lface): Assume that LFACE is fully specified.
5141 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5142 object, use it for FACE.
5143 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5144 driver->parse_name.
5145 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5146
1f45f627
GM
5147 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5148 prototype.
aca7a3d2 5149
1f45f627
GM
5150 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5151 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
5152 make_fontset.
5153
1f45f627 5154 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 5155
1f45f627 5156 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
5157 of x_new_fontset2.
5158
5159 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5160 (Qsans__serif): New variables.
5161 (ftfont_generic_family_list): New variable.
5162 (syms_of_ftfont): Initialize the above variables.
1f45f627 5163 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
5164 (ftfont_list_generic_family): New function.
5165 (ftfont_parse_name): Delete this function.
1f45f627 5166 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
5167 (ftfont_list_family): Fix args to FcObjectSetBuild.
5168
5169 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5170 object in attrs[LFACE_FONT_INDEX].
5171 (set_lface_from_font_name): Cancel all changes for font-backend.
5172 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5173 function.
5174 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5175 font object in QCfont attribute.
5176 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5177 (realize_default_face) [USE_FONT_BACKEND]: Call
5178 set_lface_from_font_and_fontset.
5179
5180 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5181 "fixed", and signal error here if no suitable font was found.
5182
5183 * xfont.c (xfont_parse_name): Delete this function.
5184
5185 * xftfont.c (xftfont_open): Change coding style of error
5186 handling. Generate fontconfig's fontname pattern.
5187
5188 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5189 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5190
5191 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5192 Both args FONTSET and FONT_OBJECT must be existing ones.
5193
73acf815 51942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5195
5196 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5197
73acf815 51982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5199
5200 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5201
5202 * font.h (struct font): Fix typo.
5203
5204 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5205 XLFD_XXX_INDEX.
5206 (enum xlfd_field_mask): New enum.
1f45f627 5207 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5208 are followed by non-digits, return a symbol.
5209 (font_expand_wildcards): New function.
5210 (font_parse_xlfd): Fix wildcard handling.
5211 (Ffont_spec): If :name is specified, reflect the info in the other
5212 properties.
5213
5214 * ftfont.c (ftfont_pattern_entity): Fix typo.
5215 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5216 locale.
5217
73acf815 52182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5219
5220 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5221
1f45f627 5222 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5223 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5224 registry doesn't specify encoding part.
5225 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5226 (font_open_by_name): At first try parsing the name.
5227 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5228 as Lisp symbols.
5229
5230 * fontset.c (reorder_font_vector): Pay attention to the case that
5231 the 3rd element of font_def is nil.
5232 (fontset_font): For the default fontset, append one more fontset
5233 elements for a script-based font specification. Don't add script
5234 attribute on finding a font.
5235 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5236 font name.
5237 (fontset_ascii_font): If a font can't be opened, return nil.
5238
1f45f627 5239 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5240 (ftfont_pattern_entity): New function.
5241 (ftfont_get_cache): Assume that freetype_font_cache is already
5242 initialized.
5243 (ftfont_list): Handle the case that a file is specified in font
5244 name. Use ftfont_pattern_entity to generate entities.
5245 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5246 (syms_of_ftfont): Initialize freetype_font_cache.
5247
5248 * xftfont.c (xftfont_open): Make the font name fontconfig's
5249 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5250 (xftfont_close): Free font->font.name if not NULL.
5251
5252 * xfont.c (xfont_list): If script is specified for a font, return
5253 null_vector.
5254 (xfont_list_family): Declare argument type.
5255
5256 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5257 name, set LFACE_FONT (lface) to nil.
5258
5259 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5260 return Qnil.
5261
73acf815 52622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5263
1f45f627 5264 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5265 (standard_args): Add "-enable-font-backend".
5266
73acf815 52672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5268
5269 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5270 (struct xftdraw_list, xftdraw_list): Delete them.
5271 (register_xftdraw, check_xftdraw): Delete them.
5272 (xftfont_prepare_face): Don't call register_xftdraw.
5273 (xftfont_done_face): Don't call check_xftdraw.
5274 (xftfont_draw): Get backroudn color only when with_background is
5275 nonzero.
5276
5277 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5278
73acf815 52792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5280
5281 These changes are for the new font handling codes.
5282
5283 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5284 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5285 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5286 (FONTSRC, FONTOBJ): New variables.
5287 (obj): Add $(FONTOBJ).
5288 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5289 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5290 @LIBOTF_LIBS@.
5291 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 5292 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 5293
1f45f627 5294 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
5295
5296 * character.h (Vscript_representative_chars): Extern it.
5297
5298 * character.c (Vscript_representative_chars): New variable.
5299 (syms_of_character): Declare it as a Lisp variable.
5300
5301 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5302 enable_font_backend is nonzero, accept the composition method
5303 COMPOSITION_WITH_GLYPH_STRING.
5304
5305 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5306 enumeration COMPOSITION_WITH_GLYPH_STRING.
5307
aca7a3d2
MB
5308 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5309 members clip_x, clip_y, clip_width, and clip_height.
5310 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5311
5312 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5313 --enable-font-backend. Call syms_of_font.
5314
5315 * fns.c (assoc_no_quit): New function.
5316
5317 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5318 (face_for_font, new_fontset_from_font)
5319 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5320
5321 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5322 (fontset_font, fontset_ascii, face_for_char)
5323 (make_fontset_for_ascii_face, Ffont_info)
5324 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5325 is nonzero, use font-backend mechanism.
5326 (find_font_encoding): Make it non-static.
5327 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5328 New functions.
5329
5330 * frame.h (struct frame): New members resx and resy.
5331 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5332 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5333
5334 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5335 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5336
5337 * lisp.h (assoc_no_quit): Extern it.
5338
5339 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5340 Through out the file, use FONT_INFO_FROM_FACE instead of
5341 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5342 rif->per_char_metric.
5343 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5344 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5345 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5346 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5347 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5348 nonzero, use font-backend mechanism.
5349 (get_per_char_metric): New function.
5350
5351 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5352 (set_lface_from_font_name)
5353 (set_font_frame_param, free_realized_face)
5354 (prepare_face_for_display, clear_face_gcs)
5355 (Finternal_set_font_selection_order, realize_x_face)
5356 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5357 font-backend mechanism.
1f45f627 5358 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5359 (load_face_font) [USE_FONT_BACKEND]: Abort.
5360 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5361 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5362
5363 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5364 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5365 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5366 nonzero, register all available font drivers. Call
5367 x_default_font_parameter for deciding a font.
5368 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5369
5370 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5371 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5372 (x_set_glyph_string_clipping_exactly)
5373 (x_compute_glyph_string_overhangs)
5374 (x_draw_glyph_string_foreground)
5375 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5376 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5377 enable_font_backend is nonzero, use font-backend mechanism.
5378 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5379
73acf815 53802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5381
fcb314b2 5382 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5383 system_eol_type.
5384 (syms_of_coding): Initialize system_eol_type.
5385
fcb314b2
GM
5386 * process.c (Fset_process_coding_system): Inherit system's eol
5387 format if necessary.
aca7a3d2 5388
73acf815 53892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5390
5391 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5392
73acf815 53932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5394
5395 * coding.c (decode_eol): Pay attention to buffer relocation in
5396 del_range_2.
5397 (decode_coding): Call decode_eol before restoring undo_list.
5398
73acf815 53992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5400
5401 * charset.c (Fdefine_charset_internal): Fix setting of
5402 emacs_mule_bytes.
5403
73acf815 54042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5405
5406 * keyboard.c (read_char): Check if C is a character or not before
5407 looking up Vkeyboard_translate_table.
5408
73acf815 54092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5410
5411 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5412 condition to terminate the loop.
5413
73acf815 54142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5415
5416 * coding.c (produce_composition): Compare charbuf[i] instead of
5417 args[i] against 0.
5418 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5419
73acf815 54202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5421
5422 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5423 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5424 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5425 detect_coding.
5426 (emacs_mule_char): Handle old style (Emacs 20) component character
5427 of a composition.
4c4475a8
GM
5428 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5429 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5430 composition rule.
aca7a3d2
MB
5431 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5432
73acf815 54332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5434
5435 * coding.c (encode_coding_ccl): Allocate destination dynamically
5436 when necessary.
5437
73acf815 54382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5439
5440 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5441 the loop. When quitted, show a proper error message.
5442
73acf815 54432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5444
aca7a3d2
MB
5445 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5446 src->clip_head and src->clip_tail temporarily instead of src->hl.
5447
5448 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5449 character sequence.
5450 (Fccl_execute_on_string): Use ASET, not XSET.
5451
73acf815 54522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5453
1f45f627 5454 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5455
73acf815 54562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5457
5458 * coding.c (decode_coding): Fix the condition of terminating the
5459 decoding loop.
5460
73acf815 54612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5462
5463 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5464 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5465
73acf815 54662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5467
5468 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5469 made by a mapping table.
5470
73acf815 54712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5472
5473 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5474 not.
5475 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5476 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5477
5478 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5479 s->face is NULL or not.
5480
73acf815 54812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5482
5483 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5484 (x_draw_glyph_string): Fix drawing of right_overhang and
5485 left_overhang around/on cursor.
5486
1f45f627 5487 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5488
73acf815 54892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5490
5491 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5492
73acf815 54932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5494
4c4475a8
GM
5495 * coding.c (Fdefine_coding_system_internal)
5496 (Fdefine_coding_system_alias): Avoid a duplicated element in
5497 Vcoding_system_alist.
aca7a3d2 5498
73acf815 54992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5500
5501 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5502
fcb314b2 5503 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5504 (syms_of_coding): Intern and staticpro it.
5505 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5506 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5507
5508 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5509 Fcoding_system_p.
5510 (CHECK_CODING_SYSTEM): If ID is not available, call
5511 Fcheck_coding_system.
4c4475a8
GM
5512 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5513 Try also Fcheck_coding_system.
aca7a3d2 5514
73acf815 55152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5516
aca7a3d2
MB
5517 * coding.c (code_conversion_restore): GCPRO arg.
5518
73acf815 55192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5520
5521 * character.c (lisp_string_width): Check multibyteness of STRING.
5522
73acf815 55232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5524
5525 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5526 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5527 (decode_mac_font_name): Use decode_coding_c_string instead of
5528 decode_coding.
5529 (x_load_font): Initialize fontp->fontset to -1. Set
5530 fontp->encoding_type.
5531
73acf815 55322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5533
5534 * search.c (search_buffer): Give up BM search on case-fold-search
5535 if one of a target character has a case-equivalence of different
5536 byte length even if that target charcter is an ASCII.
1f45f627
GM
5537 (simple_search): Fix calculation of byte length of matched text.
5538 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5539
73acf815 55402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5541
5542 * coding.c (decode_coding): Fix handling of invalid bytes.
5543
73acf815 55442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5545
5546 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5547 Unicode characters.
5548
73acf815 55492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5550
5551 * coding.c (encode_coding_object): If a pre-write-conversion
5552 function makes a new buffer, kill it.
5553
73acf815 55542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5555
5556 * coding.c (QCascii_compatible_p): New variable.
5557 (syms_of_coding): Initialize it.
4c4475a8
GM
5558 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5559 calling string_char.
aca7a3d2
MB
5560 (record_conversion_result): Add `default:' case.
5561 (coding_charset_list): Delete unused variable `coding_type'.
5562 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5563 property in the plist of the coding system.
5564 (Fcoding_system_put): Check QCascii_compatible_p.
5565
73acf815 55662008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5567
5568 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5569 removed calculation of frame `f', as it's now used.
5570
73acf815 55712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5572
1f45f627 5573 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5574 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5575 (UNIDATA): New variable.
5576 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5577 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5578 $(RUN_TEMACS) unconditionally.
5579
73acf815 55802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5581
1f45f627 5582 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5583 (admindir): New variable.
5584 ($(lispsource)international/charprop.el): New target.
5585
73acf815 55862008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5587
1f45f627 5588 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5589 (syms_of_character): Remove its initialization.
5590
73acf815 55912008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5592
5593 * w32select.c (validate_coding_system)
5594 (setup_windows_coding_system): New functions.
5595 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5596 setup_windows_coding_system.
5597 (setup_config, Fw32_get_clipboard_data): Use
5598 validate_coding_system.
5599 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5600 where signals are allowed.
aca7a3d2
MB
5601
5602 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5603 (Fcheck_coding_system): Add declarations.
5604
73acf815 56052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5606
1f45f627 5607 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5608
73acf815 56092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5610
5611 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5612 string as the second argument for x_new_fontset.
5613
73acf815 56142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5615
5616 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5617 (encode_coding_object): Use safe_call instead of call2.
5618
73acf815 56192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5620
1f45f627 5621 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5622
5623 * Makefile.in (lisp): Include charprop.el.
5624
73acf815 56252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5626
5627 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5628 Not sure if it's unnecessary.
5629
73acf815 56302008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5631
5632 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5633 some possibly unnecessary fontset checking code that crashed
1f45f627 5634 when creating a new frame.
aca7a3d2 5635
73acf815 56362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5637
5638 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5639 lookup_face.
5640
5641 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5642
1f45f627 5643 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5644
73acf815 56452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5646
73acf815 5647 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5648 (coding_charset_list): New function.
5649
5650 * coding.h (coding_charset_list): Extern it.
5651
73acf815 56522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5653
5654 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5655 concatenation of family and registry.
5656
73acf815 56572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5658
5659 * character.h (BYTE8_STRING): Fix typo.
5660
5661 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5662 string to multibyte (sync to HEAD).
5663
5664 * casefiddle.c (casify_region): Handle changes in byte-length
5665 using replace_range_2 (sync to HEAD).
5666
73acf815 56672008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5668
5669 * chartab.c (map_char_table): GCPRO table and arg.
5670
73acf815 56712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5672
5673 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5674 already at limit.
5675
73acf815 56762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5677
5678 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5679 instead of fast_c_string_match_ignore_case.
1f45f627 5680 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5681 fast_string_match_ignore_case instead of
1f45f627 5682 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5683
73acf815 56842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5685
5686 * xdisp.c (get_next_display_element): In unibyte case, decide to
5687 display in octal form by checking a chacter by
5688 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5689
1f45f627 5690 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5691
5692 * character.c (unibyte_has_multibyte_table): New variable.
5693
5694 * character.h (unibyte_has_multibyte_table): Extern it.
5695 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5696
73acf815 56972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5698
5699 * coding.c (encode_coding_iso_2022): Fix handling of charset
5700 annotation.
5701
73acf815 57022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5703
5704 * coding.c (setup_coding_system): If coding_system is nil, use
5705 Qundecided.
5706 (Fterminal_coding_system): Return nil if terminal coding system is
5707 `undecided'.
5708 (syms_of_coding): Define coding-system `undecided' here. Setup
5709 terminal_coding as `undecided'.
5710
73acf815 57112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5712
5713 * xdisp.c (message_dolog, set_message_1): Call
5714 unibyte_char_to_multibyte with arg type int.
5715
aca7a3d2
MB
5716 * lread.c (read1): Fix reading of a char-table.
5717
5718 * print.c (print_object): Include sub char-table in cicularities
5719 detection.
5720
73acf815 57212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5722
5723 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 5724 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 5725
73acf815 57262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5727
5728 * fileio.c (report_file_error): Make a unibyte string from
5729 strerror (errorno).
5730 (Fsubstitute_in_file_name): Fix the arg to
5731 unibyte_char_to_multibyte. It is evaluated twice.
5732
73acf815 57332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5734
5735 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
5736
73acf815 57372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5738
5739 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
5740 BOM is not found.
4c4475a8
GM
5741 (detect_coding, detect_coding_system): Optimization for ISO-2022
5742 when no 8-bit data is found.
aca7a3d2 5743
73acf815 57442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5745
5746 * w32fns.c (x_to_w32_font): Update to use new coding struct.
5747
73acf815 57482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5749
4c4475a8
GM
5750 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
5751 CHARS.
aca7a3d2 5752
73acf815 57532008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5754
5755 * macterm.c (mac_encode_char): Add charset argument and update
5756 to use encoding_type.
2a2e8de7 5757 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
5758 switch to pure fontset.
5759 (decode_mac_font_name): Temporarily remove decoding.
5760 (x_font_name_to_mac_font_name): Temporarily remove encoding.
5761 (x_load_font): Temporarily remove encoding.
aca7a3d2 5762
73acf815 57632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5764
5765 * xfaces.c (Fface_font): If frame is not on a window system,
5766 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
5767 refer to face->font.
5768 (split_font_name_into_vector, build_font_name_from_vector)
5769 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
5770 whne HAVE_WINDOW_SYSTEM is defined.
5771
73acf815 57722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5773
5774 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
5775 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 5776 cmp->glyph_len is zero.
aca7a3d2 5777
1f45f627 5778 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
5779 (Ffontset_info): Make it backward compatible. New arg ALL.
5780
73acf815 57812008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
5782
5783 * process.c (read_process_output): Grow decoding_buf when needed;
5784 this could cause a crash in allocate_string and compact_small_strings.
5785
73acf815 57862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5787
1f45f627 5788 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 5789
73acf815 57902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5791
5792 * coding.c (setup_coding_system): Set coding->common_flags
5793 correctly for raw-text.
5794 (consume_chars): On encoding unibyte text by raw-text, don't check
5795 multibyte form.
1f45f627 5796 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
5797
5798 * fileio.c (e_write): Short cut for the case of no encoding.
5799
73acf815 58002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5801
4c4475a8
GM
5802 * coding.c (detect_coding, detect_coding_system): Delete unused
5803 variables.
aca7a3d2 5804
73acf815 58052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5806
5807 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
5808 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
5809
73acf815 58102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5811
5812 * coding.c (Ffind_coding_systems_region_internal): Include
5813 raw-text and no-conversion in the result.
5814
73acf815 58152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5816
1f45f627 5817 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
5818 (load_font_get_repertory): Delete unnecessary check of ENCODING of
5819 FONT_DEF.
5820 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 5821 (set_fontset_font): Change argument.
aca7a3d2
MB
5822 (Fset_fontset_font): Fix for the case that TARGET is a script
5823 name and charset name.
5824 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
5825
73acf815 58262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5827
1f45f627
GM
5828 * fontset.c (fontset_font): Rename from fontset_face. Change return
5829 value.
4c4475a8
GM
5830 (face_suitable_for_char_p, face_for_char): Adjust for the change
5831 of fontset_font.
aca7a3d2
MB
5832 (make_fontset_for_ascii_face): Fix setting of the fontset element
5833 for ASCII.
5834 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
5835 to get a font name.
1f45f627 5836 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 5837
fcb314b2 5838 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
5839
5840 * character.h (LEADING_CODE_LATIN_1_MIN)
5841 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
5842
73acf815 58432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5844
fcb314b2 5845 * editfns.c (check_translation): New function.
aca7a3d2
MB
5846 (Ftranslate_region_internal): Handle M:N mapping.
5847
73acf815 58482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5849
5850 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
5851
73acf815 58522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5853
5854 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
5855 goto invalid_code.
5856 (decode_coding_iso_2022): Fix handling of invalid designation.
5857
5858 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
5859 after calling code_conversion_save.
5860
73acf815 58612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5862
5863 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
5864
5865 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
5866
5867 * fontset.c: Include "intervals.h".
5868 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5869 (free_face_fontset, new_fontset_from_font_name): Fix
5870 Lisp_Object/int mixup.
aca7a3d2
MB
5871
5872 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5873
5874 * coding.c: Add many prototypes for static functions.
5875 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5876 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5877 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5878 get_translation_table with max_lookup NULL.
aca7a3d2 5879
73acf815 58802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5881
5882 * coding.c (get_translation_table): Declare it as Lisp_Object.
5883 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5884 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5885 instead of CHAR_TABLE_REF.
aca7a3d2 5886
73acf815 58872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5888
1f45f627 5889 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5890 annotation data format.
5891 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5892 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5893 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5894 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5895 (decode_coding_ccl, decode_coding_charset): Pay attention to
5896 coding->charbuf_used.
aca7a3d2
MB
5897 (get_translation): New function.
5898 (produce_chars): New arguments translation_table and last_block.
5899 Translate characters here. Return number of carryover chars.
1f45f627
GM
5900 Change caller.
5901 (produce_composition): New argument pos. Change caller.
5902 Adjust for the change of annotation data format.
aca7a3d2
MB
5903 (produce_charset, produce_annotation): Likewise.
5904 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5905 (consume_chars): New arg translation_table. Change caller.
5906 (translate_chars): Delete.
5907 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5908
73acf815 59092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5910
5911 * search.c (simple_search): Fix setting this_pos_byte in backward
5912 search.
5913
5914 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5915 byte sequence.
5916 (detect_coding_ccl): Fix setting of the variable valids.
5917
73acf815 59182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5919
5920 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5921
5922 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5923
1f45f627 5924 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5925 Ftranslate_region. Accept a char-table in TABLE.
5926 (syms_of_editfns): Defsubr Stranslate_region_internal.
5927
5928 * xfaces.c (set_lface_from_font_name): If a font is specified for
5929 a frame, generate a fontset from the font.
5930 (build_scalable_font_name): If the scalable font is requested for
5931 a specific size, don't change that size.
5932 (try_font_list): Try a scalable font also in the case that a
1f45f627 5933 pattern string is specified.
aca7a3d2 5934
73acf815 59352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5936
5937 * xfaces.c (Fface_font): New optional arg CHARACTER.
5938
73acf815 59392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5940
5941 * charset.h (CHARSET_OFFSET): New macro.
5942
73acf815 59432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5944
5945 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5946
5947 * fontset.c (fontset_face): Handle the case that repertory is a
5948 char-table.
5949 (find_font_encoding): Return nil for unknown encoding.
5950 (Fset_fontset_font): Ignore a font of unknown encoding.
5951
73acf815 59522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5953
1f45f627 5954 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5955
5956 * fontset.c (fontset_face): Handle fallback fonts correctly.
5957 (Ffontset_info): Return infomation about fallback fonts.
5958
73acf815 59592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5960
5961 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5962 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5963 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5964 the case that it is nil.
5965 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5966 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5967
5968 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5969 subset or superset.
5970
73acf815 59712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5972
5973 * emacs.c (main): Call init_charset after syms_of_XXX.
5974
1f45f627 5975 * charset.c (Vcharset_map_directory): Delete.
1f204af3 5976 (Vcharset_map_path): New variable.
aca7a3d2
MB
5977 (load_charset_map_from_file): Use Vcharset_map_path instead.
5978 (init_charset): Initialize Vcharset_map_path.
5979 (syms_of_charset): Delete declaration of "charset-map-directory",
5980 add declaration of "charset-map-path".
5981
73acf815 59822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5983
4c4475a8
GM
5984 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5985 ASCII only string.
aca7a3d2
MB
5986
5987 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5988
5989 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5990 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5991
73acf815 59922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5993
5994 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5995
5996 * coding.c (QCmnemonic, QCdefalut_char)
5997 (QCdecode_translation_table, QCencode_translation_table)
5998 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5999 (get_translation_table): Return a list of translation tables if
6000 necessary.
6001 (decode_coding): Call get_translation_table with ENCODEP 0.
6002 (char_encodable_p): If translation_table is non-nil, always call
6003 translate_char.
6004 (Fdefine_coding_system_internal): Accept list of translation
6005 tables as :encode-translation-table and :decode-translation-table.
6006 (Fcoding_system_put): New function.
6007 (syms_of_coding): Declare new symbols. Defsubr
6008 Scoding_system_put.
4c4475a8
GM
6009 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6010 typically JISX0212.
aca7a3d2
MB
6011
6012 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6013 when the charset is superset type.
6014
6015 * character.c (translate_char): Accept list of translation tables.
6016
73acf815 60172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6018
1f45f627 6019 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
6020 (CODING_ATTR_TRANS_TBL): New macro.
6021
6022 * coding.c (get_translation_table): New function.
6023 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
6024 (decode_coding, encode_coding): Utilize get_translation_table.
6025 (char_encodable_p, Funencodable_char_position): Translate char if
6026 necessary.
6027 (Ffind_coding_systems_region_internal)
6028 (Fcheck_coding_systems_region): Setup translation table for encode
6029 in a coding system attribute vector in advance.
aca7a3d2
MB
6030 (Fdefine_coding_system_internal): Allow a symbol as translation
6031 table. For shift-jis type coding system, allow 4th charset.
6032
73acf815 60332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6034
6035 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6036
6037 * xdisp.c (get_next_display_element): Pass -1 as POS to
6038 FACE_FOR_CHAR if displaying a C-string.
6039
73acf815 60402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6041
6042 * composite.c (get_composition_id): Handle xoff and yoff in a
6043 composition rule.
6044
6045 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6046 (struct composition): New member lbearing and rbearing.
6047
6048 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6049 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6050 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6051
6052 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6053 composition glyph.
6054
73acf815 60552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6056
6057 * print.c: Include charset.h.
6058 (Vprint_charset_text_property): New variable.
6059 (Qdefault): Extern it.
6060 (PRINT_STRING_NON_CHARSET_FOUND)
6061 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6062 (print_check_string_result): New variable.
6063 (print_check_string_charset_prop): New function.
6064 (print_prune_charset_plist): New variable.
6065 (print_prune_string_charset): New function.
6066 (print_object): Call print_prune_string_charset if
6067 Vprint_charset_text_property is not t.
6068 (print_interval): Print nothing if itnerval->plist is nil.
6069 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6070 variable. Init and staticpro print_prune_charset_plist.
6071
73acf815 60722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6073
6074 * fontset.c (new_fontset_from_font_name): Use the specified font
6075 for all characters in the new fontset.
6076
6077 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6078 OBJECT args.
6079
6080 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6081 OBJECT args for composition too.
6082
6083 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6084 OBJECT args.
6085
73acf815 60862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6087
6088 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6089
1f45f627 6090 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 6091 FONT_DEF format.
1f45f627 6092 (fontset_face): New arg id. Change caller.
aca7a3d2 6093 (face_for_char): New args pos and object.
1f204af3 6094 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
6095 (fs_query_fontset): Check NAME by Fassoc too.
6096 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 6097 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 6098
1f45f627 6099 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 6100
4c4475a8
GM
6101 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6102 (append_space, extend_face_to_end_of_line)
6103 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6104 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
6105
6106 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6107 POS and OBJECT args.
6108
6109 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6110 POS and OBJECT args.
6111
73acf815 61122008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6113
6114 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6115 of GlobalAlloc'ed memory.
6116
73acf815 61172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6118
6119 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6120
6121 * charset.h (charset_table_used): Delete extern.
6122
6123 * charset.c (charset_table_used): Make it static.
6124 (map_charset_chars): Fix args to c_function with.
6125
6126 * chartab.c (map_sub_char_table_for_charset): Fix args to
6127 c_function with.
6128
6129 * coding.h (enum coding_result_code): Delete
6130 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6131
6132 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 6133 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
6134 (Vlast_code_conversion_error): New variables.
6135 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6136 (ONE_MORE_BYTE): Record error if any instead of signaling an
6137 error. If non-ASCII multibyte char is found, return the negative
6138 value of the code. All callers changed to check it.
6139 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
6140 (record_conversion_result): New function. Change all codes setting
6141 coding->result to call this function.
4c4475a8
GM
6142 (detect_coding_utf_8, decode_coding_utf_8)
6143 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6144 Don't use the local variable incomplete.
aca7a3d2 6145 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
6146 (decode_coding): Fix of flushing out unprocessed data.
6147 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 6148 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
6149
6150 * fontset.c (set_fontset_font): Fix args.
6151
6152 * lisp.h (CHARACTERBITS): Define as 22.
6153
6154 * process.c (send_process): Be sure to set coding->src_multibyte.
6155
6156 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6157
73acf815 61582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6159
6160 * xdisp.c (handle_auto_composed_prop): Give limit to
6161 Fnext_single_char_property_change.
6162
73acf815 61632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6164
424c157f 6165 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 6166 table weak.
aca7a3d2
MB
6167
6168 * fontset.c (Fset_fontset_font): Fix docstring.
6169
6170 * lisp.h (detect_coding_system): Adjust prototype.
6171
6172 * fileio.c (kill_workbuf_unwind): Delete this function.
6173 (Finsert_file_contents): Adjust the call of detect_coding_system.
6174 Get conversion_buffer by code_conversion_save. Use the macor
6175 CODING_MAY_REQUIRE_DECODING. After decoding, update
6176 coding_system.
6177
6178 * coding.h (make_conversion_work_buffer): Delete extern.
6179 (code_conversion_save): Extern it.
6180
6181 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6182 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6183 (decode_coding_utf_8): Don't do eol converion.
6184 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6185 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6186 (decode_coding_emacs_mule, decode_coding_iso_2022)
6187 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6188 Don't do eol converion.
aca7a3d2
MB
6189 (adjust_coding_eol_type): Return a new coding system.
6190 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6191 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6192 each change.
6193 (decode_coding): Pay attention to undo_list. Do eol convesion for
6194 all types of coding-systems (if necessary).
6195 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6196 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6197 Vcode_conversion_reused_work_buf.
6198 (Vcode_conversion_workbuf_name): New variable.
6199 (reused_workbuf_in_use): New variable.
6200 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6201 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6202 (code_conversion_save): Delete the argument BUFFER. Change callers.
6203 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6204 Fix for utf-16 detection.
6205 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6206 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6207 reused_workbuf_in_use.
6208
73acf815 62092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6210
6211 * keymap.c (store_in_keymap): Pay attention to the case that idx
6212 is a cons specifying a character range.
6213
73acf815 62142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6215
6216 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6217 HANDLED_RECOMPUTE_PROPS.
6218
6219 * coding.c (Fdefine_coding_system_internal): Fix checking of
6220 ascii compatibility.
6221
73acf815 62222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6223
1f45f627 6224 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6225 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6226
6227 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6228 Resync charset_list to Vemacs_mule_charset_list.
6229
6230 * keymap.c (store_in_keymap): Pay attention to the case that idx
6231 is a cons specifying a character range.
6232
73acf815 62332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6234
6235 * composite.c (update_compositions): Bind inhibit-read-only, etc
6236 to t before calling remove-list-of-text-properties.
6237
6238 * print.c (print_object): Always print ASCII chars as is.
6239
73acf815 62402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6241
1f45f627 6242 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6243
4c4475a8
GM
6244 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6245 is a char table.
aca7a3d2 6246
73acf815 62472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6248
1f45f627 6249 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6250
73acf815 62512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6252
6253 * xfaces.c (set_lface_from_font_name): Fix for the case that
6254 FONTNAME is not fontset name.
6255
73acf815 62562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6257
6258 * fns.c (base64_encode_1): Fix previous change.
6259
73acf815 62602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6261
6262 * fontset.c (set_fontset_font): New function.
6263 (Fset_fontset_font): If a font is specified for a charset, use
6264 map_charset_chars to store the font spec in a fontset.
6265
73acf815 62662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6267
1f204af3 6268 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
6269 (make_fontset): Don't create a fallback fontset here.
6270 (free_face_fontset): Free a fallback fontset (if any) too.
6271 (n_auto_fontsets): Delete this variable.
6272 (auto_fontset_alist): New variable.
6273 (new_fontset_from_font_name): Check auto_fontset_alist.
6274 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6275 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6276 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6277 Defsubr Sfontset_list_all.
6278
73acf815 62792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6280
6281 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6282
73acf815 62832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6284
6285 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6286
73acf815 62872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6288
6289 * editfns.c (Fgoto_char): Fix docstring.
6290
73acf815 62912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6292
6293 * insdel.c (insert_from_gap): Adjust intervals correctly.
6294
73acf815 62952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6296
6297 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6298 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6299 (w32_initialize): Try to load it.
6300 (x_get_font_repertory): Use it if available.
6301 (w32_encode_char): Add shortcut for unicode output.
6302
6303 * w32fns.c (w32_load_system_font): Default charset to -1.
6304 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 6305 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6306 or wildcard charsets.
6307 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6308 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6309 (w32_to_x_font): Match charset to real charset.
6310 (enum_font_cb2): Always list unicode versions.
6311
6312 * makefile.w32-in (temacs): Increase EMHEAP.
6313
73acf815 63142008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6315
6316 * w32term.c (w32_encode_char): New charset parameter.
6317 font_info.encoding becomes encoding_type.
1f45f627 6318 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6319 (x_new_font): Return quickly if font already set.
6320 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6321 Use new fs_query_fontset. Try new_fontset_from_font_name.
6322 Use fontset_name for return value.
aca7a3d2
MB
6323
6324 * w32term.h: Declare x_get_font_repertory.
6325
6326 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6327 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6328 of encode_coding.
6329 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6330 decode_coding.
6331
6332 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6333 of x_new_fontset.
6334 (w32_load_system_font): Initialize charset as unicode.
6335 font_info.encoding becomes encoding_type.
1f45f627
GM
6336 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6337 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6338 (syms_of_w32fns): Set get_font_repertory_func.
6339
1f45f627 6340 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6341 from term.c.
1f45f627 6342 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6343 encode_coding_object in place of encode_coding.
6344
6345 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6346 encoding becomes encoding_type.
6347
6348 * term.c (terminal_encode_buffer): Make externally visible.
6349
6350 * makefile.w32-in: Add character.h dependancies.
6351 (character.o, chartab.o): New targets.
6352
73acf815 63532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6354
6355 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6356 CODING_ID_EOL_TYPE.
aca7a3d2 6357
73acf815 63582008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6359
6360 * coding.c (produce_chars): Revert last change.
6361
73acf815 63622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6363
6364 * charset.h (charset_unicode): Extern it.
6365
6366 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6367 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6368 arg MULTIBYTE.
1f45f627 6369 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6370 change of find_charsets_in_text.
6371 (Fsplit_char): Fix doc. Never return unknown.
6372
6373 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6374
6375 * coding.c (Fdefine_coding_system_alias): Update
6376 Vcoding_system_list.
6377
6378 * fontset.c (load_font_get_repertory): Pay attention to the case
6379 that ENCODING of a font is specified by a char-table.
6380
6381 * xterm.c (x_get_font_repertory): Handle the case that the
6382 encoding of font is other than Unicode.
6383
73acf815 63842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6385
6386 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6387 if a character is encodable by the terminal coding system. If
6388 not, produces proper number of `?'s. Update
6389 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6390 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6391
73acf815 63922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6393
6394 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6395 variables.
1f45f627 6396 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6397 characters at once. Store the result of encoding in
6398 terminal_encode_buffer.
4c4475a8
GM
6399 (write_glyphs, insert_glyphs): Adjust for the change of
6400 encode_terminal_code.
aca7a3d2
MB
6401 (term_init): Initialize terminal_encode_buffer and
6402 terminal_encode_buf_size.
6403
6404 * coding.c (consume_chars): If coding->src_object is nil, don't
6405 check annotation.
6406
73acf815 64072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6408
6409 * character.c (char_string): Use ASCII_CHAR_P instead of
6410 SINGLE_BYTE_CHAR_P.
6411
73acf815 64122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6413
6414 * xdisp.c (handle_auto_composed_prop): Check if the last
6415 characters of auto-composed region is newly composed with the
6416 following characters.
6417 (handle_composition_prop): Fix checking of point being inside
6418 composition.
6419
73acf815 64202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6421
6422 * fns.c (concat): Don't change multibyteness of the result by
6423 concatenating an 8-bit character.
6424
6425 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6426 multibyteness of the result when newelt is an 8-bit character.
6427
73acf815 64282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6429
6430 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6431 EMACS_INT.
6432
6433 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6434
6435 * xfaces.c (face_numeric_value): Declare dim size_t.
6436 (Finternal_lisp_face_equal_p): Remove unused f.
6437
6438 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6439 (MATRIX_ROW): Remove unused vars.
6440 (draw_glyphs, x_insert_glyphs, fast_find_position)
6441 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6442 byte/char counts.
6443
6444 * regex.c (regex_compile): Remove unused var.
6445
6446 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6447
6448 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6449 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6450
6451 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6452
6453 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6454
6455 * fileio.c (Fwrite_region): Remove unused var.
6456
6457 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6458 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6459
6460 * composite.c (Fremove_list_of_text_properties): Declare.
6461
1f45f627
GM
6462 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6463 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6464 (coding_inherit_eol_type): Remove unused attrs.
6465 (detect_coding): Cast arg of detect_eol.
6466
6467 * charset.c (syms_of_charset): Remove unused var p.
6468 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6469 byte/char counts.
6470
6471 * casetab.c (set_case_table): Remove unused var.
6472
6473 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6474 unused vars.
aca7a3d2 6475
73acf815 64762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6477
6478 * xterm.c (x_bitmap_mask): Declare.
6479
73acf815 64802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6481
6482 * xterm.c (x_term_init): Fix type error.
6483
6484 * lisp.h: Add Funibyte_char_to_multibyte.
6485
6486 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6487 (Fset_coding_system_priority): Doc fix.
6488
aca7a3d2
MB
6489 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6490
6491 * indent.c (check_composition): Make start and end EMACS_INT.
6492
6493 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6494
6495 * xdisp.c (handle_composition_prop, check_point_in_composition):
6496 Make buffer positions EMACS_INT.
6497
6498 * composite.c (find_composition, run_composition_function)
6499 (update_compositions, Ffind_composition_internal): Make buffer
6500 positions EMACS_INT.
6501
6502 * composite.h (find_composition, update_compositions): Make
6503 position args EMACS_INT.
6504
1f45f627 6505 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6506
6507 * intervals.c (get_property_and_range):
6508 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6509
6510 * unexalpha.c: Don't include varargs.h.
6511
73acf815 65122008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6513
6514 * coding.h (ENCODE_UTF_8): New.
6515
6516 * Makefile.in (gtkutil.o): Depend on coding.h.
6517
6518 * coding.c (Fset_coding_system_priority): Doc fix.
6519
73acf815 65202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6521
6522 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6523 the case of auto saving.
6524
73acf815 65252008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6526
4c4475a8
GM
6527 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6528 `range' from GC.
aca7a3d2 6529
73acf815 65302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6531
6532 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6533
73acf815 65342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6535
1f45f627 6536 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6537 (Fwrite_region): Set Vlast_coding_system_used to the return value
6538 of choose_write_coding_system.
6539
73acf815 65402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6541
6542 * charset.c (Fset_charset_priority): Pay attention to duplicated
6543 arguments.
6544
6545 * coding.c (QCcategory): New variable.
6546 (syms_of_coding): Defsym it. Set all elements of
6547 Vcoding_category_table and their symbol values.
6548 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6549 coding-category-XXX, and coding-category-list.
6550 (Fdefine_coding_system_internal): Add category in the plist.
6551
73acf815 65522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6553
6554 * callproc.c (Fcall_process): Handle carryover correctly.
6555
1f45f627 6556 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6557 (raw_text_coding_system): Check NILP (coding_system).
6558 (coding_inherit_eol_type): Check NILP (coding_system) and
6559 NILP (parent).
6560 (consume_chars): Fix for the case of raw-text.
6561
6562 * process.c (read_process_output): Handle carryover correctly.
6563
73acf815 65642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6565
6566 * regex.c (re_search_2): Fix last change.
6567
73acf815 65682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6569
6570 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6571 target_multibyte. Even in a unibyte case, return a converted
6572 multibyte char.
6573 (GET_CHAR_AFTER): New macro.
6574 (PATFETCH): Translate via multibyte char.
6575 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6576 (SETUP_MULTIBYTE_RANGE): New macro.
6577 (regex_compile): Setup compiled code so that its multibyteness
6578 matches that of a target. Fix the handling of "[X-YZ]" using
6579 SETUP_MULTIBYTE_RANGE.
6580 (analyse_first) <charset>: For filling fastmap for all multibyte
6581 characters, don't check by BASE_LEADING_CODE_P.
6582 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6583 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6584 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6585 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6586 (TRANSLATE_VIA_MULTIBYTE): New macro.
6587 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6588 It is the same as RE_MULTIBYTE_P (bufp) now.
6589 <exactn>: Translate via multibyte.
6590 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6591 translate it.
6592 <charset, charset_not>: Fetch a character by
6593 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6594 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6595 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6596 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6597 by GET_CHAR_AFTER.
c5ad7a3d 6598 (bcmp_translate): Likewise.
aca7a3d2
MB
6599
6600 * search.c (compile_pattern): Check the member target_multibyte,
6601 not the member multibyte of buf.
6602
6603 * lread.c (read1): While reading a string, set force_singlebyte
6604 and force_multibyte correctly.
6605
4c4475a8
GM
6606 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6607 up of unibyte_to_multibyte_table.
aca7a3d2 6608
73acf815 66092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6610
6611 * coding.c (setup_coding_system): If coding has
6612 post-read-conversion or pre-write-conversion, set
6613 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6614 respectively.
6615 (decode_coding_gap): Run post-read-conversion if any.
6616
6617 * fileio.c (Finsert_file_contents): Even if we read into a
6618 unibyte buffer, check if we must decode the result or not.
6619
73acf815 66202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6621
6622 * coding.c (make_conversion_work_buffer): Change the work buffer
6623 name to the same one as that of Emacs 21.
6624
73acf815 66252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6626
1f45f627 6627 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6628 (code_conversion_restore): Don't extern it.
6629
6630 * coding.c (detected_mask): Delete unused variable.
6631 (decode_coding_iso_2022): Pay attention to the byte sequence of
6632 CTEXT extended segment, and retain those bytes as is.
6633 (decode_coding_ccl): Delete unused variable `valids'.
6634 (setup_coding_system): Delete unused variable `category'.
6635 (consume_chars): Delete unused variable `category'. Make it work
6636 for non-multibyte case.
1f45f627 6637 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6638 (saved_coding): Delete unused variable.
6639 (code_conversion_restore): Don't check saved_coding->destination.
6640 (code_conversion_save): New function.
6641 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6642 instead of record_unwind_protect.
1f45f627 6643 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6644 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6645 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6646
6647 * fileio.c (kill_workbuf_unwind): New function.
6648 (Finsert_file_contents): On replacing, call
6649 make_conversion_work_buffer with correct args, and call
6650 record_unwind_protect with the first arg kill_workbuf_unwind.
6651
6652 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6653
73acf815 66542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6655
1f45f627 6656 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6657 (fontset_add): Fix for the case that TO is less than TO1.
6658 (Ffontset_info): Don't use fallback fontset on checking the
6659 default fontset.
6660 (dump_fontset): New function for debugging.
6661
6662 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6663 coding_type is Qcharset.
6664
73acf815 66652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6666
6667 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6668 (map_char_table): Don't inherit the value from the parent on
1f45f627 6669 initializing VAL. Adjust for the above change.
aca7a3d2 6670
73acf815 66712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6672
6673 * coding.c (Qsignature, Qendian): Delete these variables.
6674 (syms_of_coding): Don't initialize them.
6675 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6676 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6677 detect_info->found.
6678 (decode_coding_utf_16): Don't detect BOM here.
6679 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6680 is NOT utf_16_without_bom.
6681 (setup_coding_system): For a coding system of type utf-16, check
6682 if the attribute :endian is Qbig or not (not nil or not), and set
6683 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6684 (detect_coding): If coding type is utf-16 and BOM detection is
6685 required, detect it.
6686 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6687 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6688
73acf815 66892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6690
6691 * coding.c (coding_set_source): Fix for the case that the current
6692 buffer is different from coding->src_object.
6693 (decode_coding_object): Don't use the conversion work buffer if
6694 DST_OBJECT is a buffer.
6695
73acf815 66962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6697
6698 * lread.c (read_emacs_mule_char) [len==2]: Index
6699 emacs_mule_charset correctly.
6700
73acf815 67012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6702
6703 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
6704 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 6705 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
6706 treated specially.)
6707 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
6708 (detected_mask): Remove Big5 bits.
6709
73acf815 67102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6711
6712 The following changes are to make the font rescaling facility
6713 compatible with Emacs 21.
6714
1f45f627 6715 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
6716 Vface_resizing_fonts.
6717 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 6718 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
6719 (split_font_name): Set font->rescale_ratio.
6720 (better_font_p): Pay attention to font->rescale_ratio.
6721 (build_scalable_font_name): Likewise. Change RESX, and RESY
6722 fields.
1f45f627 6723 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 6724
73acf815 67252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6726
6727 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
6728 (Qutf_16_le): Remove these variables.
6729 (syms_of_coding): Don't DEFSYM them.
6730 (decode_coding_utf_16): Fix handling of BOM.
6731 (encode_coding_utf_16): Fix handling of BOM.
6732
73acf815 67332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6734
6735 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 6736 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 6737
73acf815 67382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6739
6740 * coding.c (Fcheck_coding_systems_region): Fix type errors.
6741
73acf815 67422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6743
6744 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6745 and fix C types.
6746
73acf815 67472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6748
6749 * xdisp.c (SKIP_GLYPHS): New macro.
6750 (set_cursor_from_row): Pay attention to string display properties.
6751
6752 * category.c (copy_category_entry): Fix for the case that RANGE
6753 is an integer.
6754
6755 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
6756
1f45f627 6757 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 6758
73acf815 67592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6760
6761 * charset.c (Fcharset_id_internal): New function.
6762 (syms_of_charset): Defsubr it.
6763
6764 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
6765 with the last arg charset_list acquired from coding.
6766 (Fdefine_coding_system_internal): For ccl-based coding system, fix
6767 the attribute coding_attr_ccl_valids.
6768
6769 * coding.h (enum define_coding_ccl_arg_index): Set the first
6770 member coding_arg_ccl_decoder to coding_arg_max.
6771
1f45f627 6772 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
6773
6774 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
6775 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
6776 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
6777 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
6778 last arg Qnil.
aca7a3d2 6779
73acf815 67802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6781
6782 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
6783 call encode_char.
6784
1f45f627 6785 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 6786
73acf815 67872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6788
1f45f627 6789 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 6790
73acf815 67912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6792
6793 * dispextern.h (check_face_attributes, generate_ascii_font_name)
6794 (font_name_registry): Don't extern them.
1f45f627 6795 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
6796
6797 * fontset.h (Qfontset): Don't extern it.
6798 (new_fontset_from_font_name): Extern it.
6799
6800 * fontset.c: Give 8 extra slots to fontset objects.
6801 (Qfontset_info): New variable.
6802 (syms_of_fontset): Defsym it.
6803 (FONTSET_FALLBACK): New macro.
6804 (fontset_face): Try also the default fontset.
1f45f627
GM
6805 (make_fontset): Realize a fallback fontset from the default fontset.
6806 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
6807 using split_font_name_into_vector and build_font_name_from_vector.
6808 (Fset_fontset_font): Access the elements of font_spec by enum
6809 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
6810 name by using split_font_name_into_vector.
6811 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
6812 generate a proper font name from the fontset name. Update
6813 Vfontset_alias_alist.
6814 (n_auto_fontsets): New variable.
6815 (new_fontset_from_font_name): New function.
6816 (Ffont_info): Store the information about fonts generated from the
1f45f627 6817 default fontset in the first extra slot of the returned char-table.
aca7a3d2 6818
1f45f627
GM
6819 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
6820 (font_name_registry): Delete function.
aca7a3d2
MB
6821 (split_font_name_into_vector): New function.
6822 (build_font_name_from_vector): New function.
1f45f627 6823 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
6824 (choose_face_font): If we are choosing an ASCII font, and ATTRS
6825 specifies an explicit font name, return the name as is. Make a
6826 list of registy names.
6827
1f45f627 6828 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
6829 of x_new_fontset.
6830 (Fx_create_frame): Don't call x_new_fontset here. Just use
6831 x_list_fonts to check the existence of fonts.
6832
1f45f627 6833 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
6834
6835 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
6836 string. Use new_fontset_from_font_name to create a fontset from a
6837 font name.
6838
1c8658b9
GM
68392008-02-01 Kenichi Handa <handa@m17n.org>
6840
6841 * syntax.c (Vfind_word_boundary_function_table): New name for
6842 Vnext_word_boundary_function_table.
6843 (find-word-boundary-function-table): New name for
6844 next-word-boundary-function-table.
6845
73acf815 68462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6847
6848 * Makefile.in: Fix some dependencies.
6849
6850 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
6851 set it to nil before returning.
6852
6853 * composite.c (update_compositions): Fix type error.
6854
6855 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
6856
73acf815 68572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6858
6859 * xterm.c (x_new_font): Optimize for the case that the font is
6860 already set for the frame.
6861
73acf815 68622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6863
6864 * chartab.c (char_table_ascii): Check if the char table contents
6865 is sub-char-table or not.
4c4475a8
GM
6866 (char_table_set, char_table_set_range): Fix argument to
6867 char_table_ascii.
aca7a3d2
MB
6868
6869 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6870 (detect_coding_utf_8, detect_coding_utf_16)
6871 (detect_coding_emacs_mule, detect_coding_iso_2022)
6872 (detect_coding_sjis, detect_coding_big5)
6873 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6874 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6875 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6876 (MAX_ANNOTATION_LENGTH): New macro.
6877 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6878 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6879 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6880 (ADD_CHARSET_DATA): New macro.
1f45f627 6881 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6882 (decode_coding_emacs_mule, decode_coding_iso_2022)
6883 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6884 Produce charset annotation data in coding->charbuf.
6885 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6886 to charset annotation data in coding->charbuf.
6887 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6888 coding->common_flags if the coding system is iso-2022 based and
6889 uses designation.
1f45f627 6890 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6891 (produce_charset): New function.
6892 (produce_annotation): Handle charset annotation.
6893 (handle_composition_annotation, handle_charset_annotation): New
6894 functions.
6895 (consume_chars): Handle charset annotation. Utilize the above two
6896 functions.
6897 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6898 buffer, get the deleted text as a string and set
6899 coding->src_object to that string.
6900 (detect_coding, detect_coding_system): Use the new struct
6901 coding_detection_info.
6902
6903 * coding.h (struct coding_detection_info): New structure.
1f45f627 6904 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6905 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6906
73acf815 69072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6908
6909 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6910
73acf815 69112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6912
1f45f627 6913 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6914 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6915 to new local and nullify apropos_accumulate before returning.
6916 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6917
73acf815 69182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6919
6920 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6921 correctly.
6922
73acf815 69232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6924
6925 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6926
73acf815 69272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6928
6929 The following changes are to make character composition happen
6930 automatically on displaying.
6931
2a2e8de7 6932 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6933
1f45f627
GM
6934 * composite.h (Qauto_composed, Vauto_composition_function)
6935 (Qauto_composition_function): Extern them.
aca7a3d2 6936
1f45f627
GM
6937 * composite.c (Vcomposition_function_table)
6938 (Qcomposition_function_table): Delete variables.
6939 (Qauto_composed, Vauto_composition_function)
6940 (Qauto_composition_function): New variables.
aca7a3d2
MB
6941 (run_composition_function): Don't call
6942 compose-chars-after-function.
6943 (update_compositions): Clear `auto-composed' text property.
6944 (compose_chars_in_text): Delete this function.
6945 (syms_of_composite): Staticpro Qauto_composed and
6946 Qauto_composition_function. Declare Vauto_composition_function as
6947 a Lisp variable.
6948
6949 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6950
6951 * xdisp.c (it_props): Add an entry for Qauto_composed.
6952 (handle_auto_composed_prop): New function.
6953
6954 * xselect.c (selection_data_to_lisp_data): Don't call
6955 compose_chars_in_text.
6956
73acf815 69572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6958
6959 * keyboard.c (read_char): Modify checking around use of
6960 Vkeyboard_translate_table.
6961
6962 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6963 and fix C types.
6964
73acf815 69652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6966
4c4475a8
GM
6967 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6968 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6969 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6970 the case that the last byte is '\r' correctly.
1f45f627
GM
6971 (decode_coding): Flush out the unprocessed data correctly.
6972 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6973
73acf815 69742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6975
6976 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6977 XK_ISO... case.
6978 (xaw_scroll_callback): Revert last change.
6979
73acf815 69802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6981
1f45f627 6982 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6983
73acf815 69842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6985
6986 * xfaces.c (Vface_resizing_fonts): New variable.
6987 (struct font_name): New member `resizing_ratio'.
6988 (font_resizing_ratio): New function.
6989 (split_font_name): Set font->resizing_ratio.
6990 (better_font_p): Pay attention to font->resizing_ratio.
6991 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6992 RESX, and RESY fields.
6993 (try_alternative_families): Try scalable fonts if
6994 Vscalable_fonts_allowed is not Qt.
6995 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6996
73acf815 69972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6998
6999 * xterm.c (xaw_scroll_callback): Cast correctly.
7000
73acf815 70012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7002
7003 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7004 (lispy_kana_keys): Comment out.
7005 (make_lispy_event) [XK_kana_A]: Comment out.
7006
7007 * xterm.c (xaw_scroll_callback): Cast call_data.
7008 (XTread_socket): Deal with ASCII keysyms.
7009 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7010
73acf815 70112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7012
7013 * xterm.c (Vx_keysym_table): New.
7014 (syms_of_xterm): Initialize it.
7015 (XTread_socket): Use it.
7016 From head: Eliminate incorrect optimization that tried to avoid
7017 decoding the output of X*LookupString.
7018 (x_get_font_repertory): Delete charset declaration.
7019
73acf815 70202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7021
1f45f627
GM
7022 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7023 return 0.
aca7a3d2
MB
7024 (Fdefine_coding_system_internal): Setup
7025 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7026
73acf815 70272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7028
7029 * coding.c (Fcheck_coding_system): Doc fix.
7030
7031 * editfns.c (Finsert_byte): Return a proper value.
7032
73acf815 70332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7034
7035 * coding.c (decode_coding): Fix args to translate_chars. Pay
7036 attention to Vstandard_translation_table_for_decode.
7037 (encode_coding): Fix args to translate_chars. Pay attention to
7038 Vstandard_translation_table_for_encode.
7039
7040 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7041 SINGLE_BYTE_CHAR_P.
7042
7043 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7044 not by SINGLE_BYTE_CHAR_P.
7045
7046 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7047 SINGLE_BYTE_CHAR_P.
7048
7049 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7050 SINGLE_BYTE_CHAR_P.
7051
7052 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7053 by SINGLE_BYTE_CHAR_P.
7054
7055 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7056 SINGLE_BYTE_CHAR_P.
7057
73acf815 70582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7059
7060 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7061
73acf815 70622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7063
7064 * fns.c (Flanginfo): Fix typo.
7065
7066 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7067
73acf815 70682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7069
4c4475a8
GM
7070 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7071 (detect_coding_emacs_mule, detect_coding_iso_2022)
7072 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7073 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 7074 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 7075 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 7076 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 7077
73acf815 70782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7079
1f45f627
GM
7080 * character.c (char_string): Rename from
7081 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7082 (string_char): Rename from string_char.
aca7a3d2 7083
4c4475a8
GM
7084 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7085 if C is greater than MAX_3_BYTE_CHAR.
7086 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7087 string_char instead of string_char_with_unification.
aca7a3d2 7088
73acf815 70892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7090
7091 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7092
73acf815 70932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7094
1f45f627 7095 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
7096
7097 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7098
73acf815 70992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7100
7101 * charset.c (define_charset_internal): Rename `supprementary'.
7102
7103 * Makefile.in (lisp, shortlisp): Remove latin-N.
7104
73acf815 71052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7106
7107 * xfns.c (x_window, x_window): Use use_xim.
7108
7109 * xterm.c (use_xim): Initialize.
7110 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7111 (x_term_init): Maybe set use_xim.
7112
7113 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7114
73acf815 71152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7116
7117 * search.c (search_buffer): Fix case-fold-search of multibyte
7118 characters.
7119 (boyer_moore): Rename the last argument to char_high_bits.
7120
73acf815 71212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7122
7123 * xdisp.c (display_string): Fix for the case of zero width glyph.
7124
7125 * xfns.c (x_set_font): Change the error message of the case that
7126 x_new_fontset returns Qt.
7127
7128 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7129 (Finternal_set_lisp_face_attribute): Use signal_error for the
7130 error of invalid fontset.
7131
7132 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7133 fontset, return Qt.
7134
73acf815 71352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7136
aca7a3d2
MB
7137 * unexelf.c (unexec): Make .got handling not SGI-specific.
7138
7139 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7140
7141 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7142
7143 * keyboard.c (read_key_sequence): Fix type error.
7144
7145 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7146 type error.
7147
7148 * fontset.c (fontset_add): Return Lisp_Object.
7149
73acf815 71502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7151
7152 * charset.h (charset_ordered_list_tick): Declare extern.
7153
73acf815 71542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7155
73acf815 7156 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
7157 for handling syntax, category, and case conversion for unibyte
7158 characters by converting them to multibyte on the fly. With these
7159 changes, we don't have to setup syntax and case tables for unibyte
7160 characters in each language environment.
7161
7162 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7163 multibyte if necessary.
7164
7165 * bytecode.c (Fbyte_code): Likewise.
7166
7167 * character.h (LEADING_CODE_LATIN_1_MIN)
7168 (LEADING_CODE_LATIN_1_MAX): New macros.
7169 (unibyte_to_multibyte_table): Extern it.
7170 (unibyte_char_to_multibyte): New macro.
7171 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7172 (CHAR_LEADING_CODE): New macro.
7173 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7174
7175 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7176 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7177 (multibyte_char_to_unibyte): If C is an eight-bit character,
7178 convert it to the corresponding byte value.
7179
7180 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7181 not 1, singals an error. Update the elements of
7182 unibyte_to_multibyte_table.
7183 (init_charset_once): Initialize unibyte_to_multibyte_table.
7184 (syms_of_charset): Define the charset `iso-8859-1'.
7185
aca7a3d2
MB
7186 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7187 as is without converting it to unibyte. In a unibyte buffer,
7188 convert C to multibyte before checking the syntax.
7189
1f45f627 7190 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7191
7192 * minibuf.c (Fminibuffer_complete_word): Use the macro
7193 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7194
7195 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7196
7197 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7198 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7199 that is zero, convert an eight-bit char to multibyte.
7200 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7201 non-emacs case.
7202 (PATFETCH): Convert an eight-bit char to multibyte.
7203 (HANDLE_UNIBYTE_RANGE): New macro.
7204 (regex_compile): Setup the compiled pattern for multibyte chars
7205 even if the given regex string is unibyte. Use PATFETCH_RAW
7206 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7207 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7208 only for ASCII chars.
1f45f627 7209 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7210 is multibyte.
7211 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7212 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7213 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7214 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7215 multibyte always 1.
7216 (re_search_2): In emacs, set the locale variable multibyte to 1,
7217 otherwise to 0. New local variable target_multibyte. Check it
7218 to decide the multibyteness of STR1 and STR2. If
7219 target_multibyte is zero, convert unibyte chars to multibyte
7220 before translating and checking fastmap.
7221 (TARGET_CHAR_AND_LENGTH): New macro.
7222 (re_match_2_internal): In emacs, set the locale variable multibyte
7223 to 1, otherwise to 0. New local variable target_multibyte. Check
7224 it to decide the multibyteness of STR1 and STR2. Use
7225 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7226 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7227 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7228 target_multibyte, not with multibyte.
7229 <begline>: Declare the local variable C as `unsigned'.
7230 (bcmp_translate): Change the last arg name to target_multibyte.
7231
7232 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7233 the regexp pattern and the matching target. Set cp->buf.multibyte
7234 to the multibyteness of the regexp pattern. Set
1f45f627 7235 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7236 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7237 FETCH_STRING_CHAR_ADVANCE.
7238 (Freplace_match): Convert unibyte chars to multibyte.
7239
4c4475a8
GM
7240 * syntax.c (char_quoted, back_comment, scan_words)
7241 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7242 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7243 unibyte chars to multibyte.
1f45f627
GM
7244 (skip_chars): Delete the arg syntaxp, and move the code for
7245 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7246 Fix the case that the multibyteness of STRING and the current
7247 buffer doesn't match.
7248 (skip_syntaxes): New function.
7249 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7250 SINGLE_BYTE_CHAR_P.
aca7a3d2 7251
73acf815 72522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7253
7254 * xfaces.c (QCfontset): New variable.
7255 (LFACE_FONTSET): New macro.
7256 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7257 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7258 (Finternal_set_lisp_face_attribute)
7259 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7260 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7261 check also LFACE_FONTSET_INDEX.
7262 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7263 attrs[LFACE_FONT_INDEX].
7264 (syms_of_xfaces): Intern and staticpro QCfontset.
7265
7266 * dispextern.h (enum lface_attribute_index): New member
7267 LFACE_FONTSET_INDEX.
7268
7269 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7270
73acf815 72712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7272
7273 * coding.c (coding_set_destination): Fix coding->destination for
7274 the case converting a region.
7275 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7276 (encode_coding_object): Fix coding->dst_pos and
7277 coding->dst_pos_byte for the case converting a region.
7278
7279 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7280
7281 * character.h (BYTE8_STRING): New macro.
7282
7283 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7284
73acf815 72852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7286
7287 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7288 characters by octal form.
7289
7290 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7291
1f45f627 7292 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
7293 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7294 _fetch_multibyte_char_len.
aca7a3d2
MB
7295 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7296
1f45f627 7297 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 7298
1f45f627 7299 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 7300 the case conversion change the byte length.
1f45f627 7301 (casify_region): Likewise.
aca7a3d2 7302
1f45f627 7303 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 7304
1f45f627 7305 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7306 (syms_of_character): Setup Vprintable_chars.
7307
7308 * editfns.c (Fchar_equal): Fix for the unibyte case.
7309 (Finsert_byte): New function.
7310 (syms_of_editfns): Defsubr it.
7311
7312 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7313 of direct code 0x3ffff.
7314
7315 * search.c (Freplace_match): Fix for the unibyte case.
7316
73acf815 73172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7318
7319 * lread.c (safe_to_load_p): Fix the logic.
7320
7321 * syntax.c (scan_words): Don't treat characters belonging to
7322 different scripts as constituting a word.
7323
7324 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7325
1f45f627 7326 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7327
7328 * emacs.c (main): In the case of --unibyte, instead of aborting on
7329 finding non-empty buffer, make it unibyte.
7330
73acf815 73312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7332
7333 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7334 to create a fontset.
7335
73acf815 73362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7337
7338 * character.c (Funibyte_char_to_multibyte): Doc fix.
7339
7340 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7341
73acf815 73422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7343
7344 * fontset.c (fontset_add): Make the type `int'.
7345 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7346
4c4475a8
GM
7347 * character.c (unibyte_char_to_multibyte)
7348 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7349 charset_unibyte, not charset_primary.
aca7a3d2 7350
1f45f627 7351 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7352
1f45f627
GM
7353 * charset.c (charset_unibyte): Rename from charset_primary.
7354 (Funibyte_charset): Rename from Fprimary_charset.
7355 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7356 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7357
7358 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7359 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7360 it->multibyte_p is zero.
7361
7362 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7363 Delete extern.
aca7a3d2 7364
73acf815 73652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7366
7367 * coding.c (Fdefine_coding_system_internal): Fix category setting
7368 for a coding system of type iso-2022.
7369
73acf815 73702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7371
1f45f627 7372 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7373
73acf815 73742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7375
7376 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7377 (next-word-boundary-function-table): Declare it as a Lisp variable
7378 in syms_of_syntax.
aca7a3d2
MB
7379 (scan_words): Call functions in Vnext_word_boundary_function_table
7380 if any.
7381
7382 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7383
7384 * fontset.c (fs_load_font): If fontp->charset is not negative,
7385 return fontp without setting its members.
7386
73acf815 73872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7388
aca7a3d2
MB
7389 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7390
7391 * m/sparc.h (HAVE_ALLOCA): Delete.
7392
7393 * s/irix6-5.h: Don't include strings.h.
7394 (bcopy, bzero, bcmp): Don't undef.
7395
7396 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7397
7398 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7399 (TIOCSIGSEND): Don't test IRIX6.
7400 (bcopy, bzero, bcmp): Define conditionally.
7401
73acf815 74022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7403
7404 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7405 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7406 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7407
7408 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7409 we are inserting a process output into a multibyte buffer.
7410
7411 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7412 multibyte_char_to_unibyte.
7413
7414 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7415 by the primary charset, make it eight-bit char.
7416 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7417
1f45f627
GM
7418 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7419 (charset_8_bit__control, charset_8_bit_graphic)
7420 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7421 (define_charset_internal): New function.
7422 (syms_of_charset): Call define_charset_internal for pre-defined
7423 charsets.
7424
7425 * charset.h (charset_8_bit): Extern it.
7426
1f45f627 7427 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7428 of Fset_buffer_multibyte.
7429 (encode_coding_raw_text): Increment p0 in the loop.
7430
1f45f627 7431 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7432
1f45f627 7433 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7434 for the change of Fset_buffer_multibyte.
7435
7436 * fns.c (Fstring_to_multibyte): New function.
7437 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7438
73acf815 74392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7440
7441 * xfns.c (x_put_x_image): Declare args.
7442
1f45f627 7443 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7444 (try_font_list): Declare an arg.
7445
7446 * xdisp.c (message2_nolog, set_message): Declare an arg.
7447
7448 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7449
7450 * syntax.c (scan_sexps_forward): Declare an arg.
7451
7452 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7453 Declare an arg.
7454
7455 * lisp.h (Fnew_fontset): Declare.
7456
7457 * keymap.c (push_key_description): Call CHARACTERP correctly.
7458
1f45f627 7459 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7460 (face_for_char): Delete unused vars.
7461 (Fset_fontset_font): Doc fix. Delete unused vars.
7462
7463 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7464
7465 * composite.c (update_compositions): Declare arg.
7466
7467 * cm.c (calccost, cmgoto): Declare args.
7468
7469 * charset.c: Remove `emacs' conditional. Doc fixes.
7470 (map_char_table_for_charset): Declare.
7471
1f45f627 7472 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7473
1f45f627 7474 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7475
73acf815 74762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7477
7478 The following changes are to allow specifying multiple font
7479 patterns for a character range (specified by script or charset).
7480
7481 * Makefile.in (abbrev.o): Depend on syntax.h.
7482 (xfaces.o): Depend on charset.h.
7483
7484 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7485 SINGLE_BYTE_CHAR_P.
7486
7487 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7488
7489 * character.h (Vchar_script_table): Extern it.
7490
1f45f627 7491 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7492 (Vchar_script_table, Qchar_script_table): New variable.
7493 (syms_of_character): Declare Vchar_script_table as a lisp variable
7494 and initialize it.
7495
1f45f627 7496 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7497 have property char-table-extra-slots, make no extra slot.
7498
1f45f627 7499 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7500 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7501 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7502 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7503 Add prototypes.
7504 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7505 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7506
7507 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7508 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7509 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7510
7511 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7512 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7513 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7514 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7515 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7516 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7517 (load_font_get_repertory): New functions.
1f45f627 7518 (fontset_set): Delete.
aca7a3d2 7519 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7520 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7521 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7522 (face_for_char): Don't call lookup_face.
7523 (make_fontset_for_ascii_face): New arg FACE.
7524 (fs_load_font): New arg CHARSET_ID. Don't check
7525 Vfont_encoding_alist here.
7526 (find_font_encoding): New function.
7527 (list_fontsets): Use STRINGP, not ! NILP.
7528 (accumulate_script_ranges): New function.
7529 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7530 re-written to handle new fontset structure.
7531 (Ffontset_font): Return a copy of element.
7532 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7533 docstring of font-encoding-alist.
7534
7535 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7536 (Fset_fotset_font): Fix arguments to 5.
7537
1f45f627 7538 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7539
7540 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7541 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7542 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7543 lookup_named_face.
7544
7545 * xfaces.c: Include charset.h.
1f45f627
GM
7546 (load_face_font): Delete argument C. Change caller.
7547 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7548 (font_name_registry): New function.
7549 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7550 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7551 Lookup only ascii faces.
7552 (lookup_non_ascii_face): New function.
1f45f627
GM
7553 (lookup_named_face): Delete argument C. Change caller.
7554 (lookup_derived_face): Delete argument C. Change caller.
7555 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7556 a string, just call font_list with it.
1f45f627
GM
7557 (choose_face_font): Delete arguments FACE and C. New arg
7558 FONT_SPEC. Change caller.
4c4475a8
GM
7559 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7560 Change caller.
aca7a3d2
MB
7561 (realize_non_ascii_face): New function.
7562 (realize_x_face): Call load_face_font here.
1f45f627 7563 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7564 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7565 get a face ID.
7566 (dump_realized_face): Don't print charset of FACE.
7567
7568 * xfns.c (x_set_font): Always call x_new_fontset and
7569 store_frame_parameter.
7570 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7571 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7572
7573 * xterm.h (x_get_font_repertory): Extern it.
7574
7575 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7576 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7577 it->multibyte_p is zero.
7578 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7579 (x_new_fontset): If FONTSETNAME doesn't match any existing
7580 fontsets, create a new one.
7581 (x_get_font_repertory): New function.
7582
73acf815 75832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7584
7585 * coding.c (Ffind_coding_systems_region_internal): Detect an
7586 ASCII only string correctly.
7587
7588 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7589 version is 0.
7590
73acf815 75912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7592
7593 * lread.c: Include "coding.h".
1f45f627
GM
7594 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7595 (load_each_byte, unread_char): New variables.
7596 (readchar_backlog): Delete.
aca7a3d2
MB
7597 (readchar): Return a character unless load_each_byte is nonzero.
7598 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7599 cons. If unread_char is not -1, simply return it.
7600 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7601 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7602 (read_multibyte): Delete.
aca7a3d2
MB
7603 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7604 (read_emacs_mule_char): New functions.
7605 (Fload): Even if the file doesn't have the extention ".elc", if
7606 safe_to_load_p returns a positive version number, assume that the
7607 file contains bytecompiled code. If the version is less than 22,
7608 load the file while decoding multibyte sequences by emacs-mule.
7609 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7610 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7611 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7612 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7613 (read1): Set load_each_byte to 1 temporarily while handling
7614 #@NUMBER. Don't call read_multibyte.
7615 (read_vector): Call Fread with a cons. If readcharfun is
7616 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7617 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7618 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7619 and Qload_force_doc_strings.
7620
73acf815 76212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7622
7623 * xdisp.c (face_before_or_after_it_pos): Call
7624 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7625
73acf815 76262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7627
7628 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7629 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7630 (string_char_with_unification): Fix prototype.
7631 (Vscript_alist): Extern it.
7632
7633 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7634 (string_char_with_unification, str_as_unibyte)
7635 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7636 (syms_of_character): Declare script-alist as a Lisp variable.
7637
7638 * charset.h (Vcharset_ordered_list): Extern it.
7639 (charset_ordered_list_tick): Extern it.
7640 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7641 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7642 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 7643 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 7644 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7645
7646 * charset.c (charset_ordered_list_tick): New variable.
7647 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7648 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7649 deunify intead of unify a charset.
7650 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7651 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7652 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7653 detecting of invalid code.
7654 (Fset_charset_priority): Increment charset_ordered_list_tick.
7655 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7656 and TO_CODE.
7657
7658 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7659 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7660 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7661 (decode_coding_ccl, consume_chars)
7662 (Ffind_coding_systems_region_internal)
7663 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7664
7665 * print.c (print_object): Use octal form for printing the
7666 contents of a bool vector.
7667
73acf815 76682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7669
7670 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7671 <version == 20>: Refuse to load.
7672
73acf815 76732008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7674
7675 * fns.c: Move coding.h.
7676 (Qcodeset, Qdays, Qmonths): New.
7677 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7678 (Flocale_codeset): Delete.
aca7a3d2 7679 (Flanginfo): New function.
1f45f627 7680 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7681
7682 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7683
73acf815 76842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7685
7686 * casetab.c (init_casetab_once, init_casetab_once): Fix
7687 CHAR_TABLE_SET call.
7688
7689 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7690
7691 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7692
7693 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7694 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7695 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7696
7697 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7698
7699 * coding.c (ENCODE_DESIGNATION, decode_eol)
7700 (make_conversion_work_buffer, code_conversion_restore)
7701 (Fdefine_coding_system_internal): Convert Lisp types.
7702 (code_conversion_restore): Use EQ, not ==.
7703 (Fencode_coding_string): Fix code_convert_string call.
7704
7705 * coding.h (code_convert_region): Fix prototype.
7706
1f45f627 7707 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
7708
7709 * fontset.c (fontset_ref, fontset_set, fs_load_font)
7710 (Ffontset_info): Convert Lisp types.
7711
7712 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
7713
7714 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
7715
7716 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
7717
7718 * chartab.c: Include "...h", not <...h> in some cases.
7719
7720 * callproc.c (Fcall_process): Remove unused variables.
7721
73acf815 77222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7723
7724 * coding.c (Fset_coding_system_priority): Allow null arg list.
7725
73acf815 77262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7727
7728 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7729 (Fself_insert_and_exit): Use CHARACTERP.
7730
7731 * callproc.c (Fcall_process): Remove unused vars.
7732
7733 * xterm.c (XTread_socket): Add extra dead keysyms.
7734
7735 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
7736
7737 * dispextern.h: Remove prototypes for redraw_frame,
7738 redraw_garbaged_frames.
7739
7740 * cmds.c (Fself_insert_command): Use CHARACTERP.
7741
7742 * chartab.c (make_sub_char_table): Remove unused var.
7743 (Fset_char_table_default, Fmap_char_table): Doc fix.
7744
7745 * keymap.c (access_keymap): Remove generic char code.
7746 (push_key_description): Use CHARACTERP.
7747
73acf815 77482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7749
7750 * charset.c: Doc fixes.
7751 (Funify_charset): Extra checking.
7752
73acf815 77532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7754
7755 * lread.c: Remove some unused variables.
7756 (safe_to_load_p): If safe, return the magic number version byte.
7757 (Fload): Maybe use load-with-code-conversion.
7758
73acf815 77592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7760
7761 * category.c (Fmodify_category_entry): Don't modify the contents
7762 of category_set for characters out of the range. Avoid
7763 unnecessary modification.
7764
1f45f627 7765 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
7766 Vchar_unify_table. The default value of the table is now nil.
7767
7768 * character.c (syms_of_character): Setup Vchar_width_table for
7769 eight-bit-control and raw-byte chars.
7770
7771 * charset.h (enum define_charset_arg_index): Delete
7772 charset_arg_parents and add charset_arg_subset and
7773 charset_arg_superset.
7774 (enum charset_attr_index): Delete charset_parents and add
7775 charset_subset and charset_superset.
7776 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
7777 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 7778 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
7779 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
7780 (CHARSET_SUPERSET): New macros.
7781 (charset_work): Extern it.
7782 (ENCODE_CHAR): Use charset_work.
1f45f627 7783 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
7784 (map_charset_chars): Extern it.
7785
7786 * charset.c (load_charset_map): Set the default value of encoder
7787 and deunifier char-tables to nil.
1f45f627 7788 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
7789 map_char_table_for_charset instead of map_char_table.
7790 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 7791 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
7792 `define-charset' (:parents -> :subset or :superset).
7793 (charset_work): New variable.
4c4475a8
GM
7794 (encode_char, syms_of_charset): Adjust for the change of
7795 Fdefine_charset_internal.
aca7a3d2
MB
7796 (Ffind_charset_string): Setup the vector `charsets' correctly.
7797
1f45f627 7798 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 7799 the previous change.
1f45f627 7800 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
7801 (map_sub_char_table_for_charset): New function.
7802 (map_char_table_for_charset): New function.
7803
7804 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 7805 (describe_char_table): Delete.
aca7a3d2 7806
1f45f627 7807 * lisp.h (map_charset_chars): Delete.
aca7a3d2 7808
73acf815 78092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7810
7811 * fns.c (count_combining): Comment out (unused).
7812 (Flocale_codeset): New.
7813 (syms_of_fns): Defsubr it.
7814
7815 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 7816 (size_t): Remove.
aca7a3d2 7817
73acf815 78182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7819
6f69e89b 7820 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 7821
73acf815 78222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7823
7824 * character.c (syms_of_character): Set the default value of
7825 Vprintable_chars to Qnil.
7826
73acf815 78272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7828
7829 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
7830
73acf815 78312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7832
7833 * charset.c (load_charset_map): Handle the case that from < to
7834 correctly.
7835
4c4475a8
GM
7836 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
7837 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
7838 Pay attention to raw-8-bit chars.
aca7a3d2 7839
73acf815 78402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7841
4c4475a8
GM
7842 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
7843 It is not bytecompiled now.
aca7a3d2
MB
7844
7845 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
7846 (charset_jisx0208): New variables.
7847 (Fdefine_charset_internal): Setup them if appropriate.
7848 (init_charset_once): Initialize them to -1.
7849
1f45f627
GM
7850 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
7851 (charset_jisx0208): Extern them.
aca7a3d2 7852
1f204af3 7853 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 7854 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
7855 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
7856 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
7857 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
7858 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
7859 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
7860 (encode_coding_iso_2022): Change the 1st arg to
7861 ENCODE_ISO_CHARACTER to a variable.
7862
73acf815 78632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7864
7865 * charset.h (enum define_charset_arg_index): New enums
7866 charset_arg_min_code and charset_arg_max_code.
7867 (struct charset): New member char_index_offset.
7868
4c4475a8
GM
7869 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7870 Take charset->char_index_offset into account.
aca7a3d2
MB
7871 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7872 args[charset_arg_max_code]. Setup charset.char_index_offset.
7873 (syms_of_charset): Fix args to Fdefine_charset_internal.
7874
73acf815 78752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7876
7877 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7878
73acf815 78792008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7880
7881 * coding.c: Doc fixes.
7882 (Fcoding_system_aliases): Fix return value.
7883 (Qmac): Remove (duplicated) definition.
7884
73acf815 78852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7886
7887 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7888 functions.
7889
7890 * character.c (Fstring): Doc fix.
7891
7892 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7893
7894 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7895 ids.
7896 (font-encoding-alist): Doc fix.
7897
73acf815 78982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7899
7900 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7901 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7902
7903 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7904 for K&R.
7905
7906 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7907
7908 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7909 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7910
1f45f627 7911 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7912
7913 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7914
73acf815 79152008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7916
7917 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7918
1f45f627 7919 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7920
2a2e8de7 79212008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7922
7923 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7924
1f45f627 7925 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7926
73acf815 79272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7928
4c4475a8 7929 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7930 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7931
73acf815 79322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7933
1f45f627 7934 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7935 Fdefine_coding_system_internal.
7936 (Fdefine_coding_system_internal): For a coding system of
7937 `charset' type, store a list of charset IDs in
7938 `charset_attr_charset_valids' element of coding attributes.
7939
73acf815 79402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7941
7942 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7943 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7944 caller. Handle 2-byte and 3-byte charsets correctly.
7945 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7946 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7947 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7948 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7949 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7950 sequence.
7951 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7952 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7953 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7954 and alt&rule composition.
7955 (decode_coding_iso_2022): Handle composition correctly.
7956 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7957
7958 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7959 re-defining a charset. If the charset has :emacs-mule-id, setup
7960 emacs_mule_bytes.
1f45f627 7961 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7962
73acf815 79632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7964
4c4475a8
GM
7965 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7966 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7967 encoding, produce a character specified by
7968 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7969
73acf815 79702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7971
7972 * xterm.c (XSetIMValues): Declare.
7973
7974 * process.c: Conditionally include sys/wait.h, pty.h.
7975
1f45f627 7976 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7977
1f45f627 7978 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7979
7980 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7981
7982 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7983 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7984 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7985 variables.
7986
7987 * character.h (string_escape_byte8): Declare.
7988
7989 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7990 unused vars.
7991 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7992 (Fmap_charset_chars): Doc fix.
7993
1f45f627 7994 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7995 (Fset_coding_system_priority, Fset_coding_system_priority)
7996 (Fdefine_coding_system_internal): Doc fix.
7997
73acf815 79982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7999
8000 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8001
73acf815 80022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8003
8004 * character.c (string_escape_byte8): Make multibyte string with
8005 correct size.
8006
8007 * charset.c (Fmake_char): Delete unnecessary code.
8008
73acf815 80092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8010
8011 * xfns.c (x_encode_text): Allocate coding.destination here, and
8012 call encode_coding_object with dst_object Qnil.
8013
8014 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8015 multibyte form correctly.
8016
8017 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8018 against Vfont_encoding_alist.
8019
8020 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8021 handling of charset list.
8022 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8023 (decode_coding_object): Move point to coding->dst_pos before
8024 calling post-read-conversion function.
8025 (encode_coding_object): Give correct arguments to
8026 pre-write-conversion. Ignore the return value of
8027 pre-write-conversion function. Pay attention to the case that
8028 pre-write-conversion changes the current buffer. If dst_object is
8029 Qt, even if coding->src_bytes is zero, allocate at least one byte
8030 to coding->destination.
8031
8032 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8033
8034 * charset.c (Fmake_char): Make it more backward compatible.
8035 (Fmap_charset_chars): Fix docstring.
8036
73acf815 80372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8038
8039 * coding.c: Doc fixes.
8040 (Fdefine_coding_system_alias): Use names, not symbols, in
8041 coding-system-alist.
8042
73acf815 80432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8044
8045 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8046 of calling free_realized_face.
8047
2a2e8de7 80482008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8049
1f45f627
GM
8050 * charset.c (read_hex): Don't treat SPC as a comment starter.
8051 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8052 (Fdecode_char): Fix typo.
8053
73acf815 80542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8055
8056 * charset.h (struct charset): New member `code_space_mask'.
8057
1f45f627 8058 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8059 (encode_coding_charset, Fdefine_coding_system_internal):
8060 Delete the local variable charset.
aca7a3d2
MB
8061 (Fdefine_coding_system_internal): Setup
8062 attrs[coding_attr_charset_valids] correctly.
8063
8064 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8065 member to check if CODE is valid or not.
8066 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8067 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8068 is within the range of charset->min_code and carset->max_code.
8069
73acf815 80702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8071
8072 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8073
8074 * dispextern.h (generate_ascii_font): Fix return type.
8075
8076 * xfaces.c (generate_ascii_font): Fix arg declaration.
8077
8078 * coding.c (coding_inherit_eol_type)
8079 (Fset_terminal_coding_system_internal)
8080 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8081
73acf815 80822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8083
8084 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8085 multiple charsets correctly.
8086
73acf815 80872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8088
8089 * search.c (boyer_moore): Fix handling of mulitbyte character
8090 translation.
8091
8092 * xdisp.c (display_mode_element): When the variable `elt' is
8093 changed, update `this' and `lisp_string'.
8094
73acf815 80952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8096
8097 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8098
8099 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 8100 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
8101
8102 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
8103 (load_charset_map): Rename from parse_charset_map. New args
8104 entries and n_entries. Change caller.
8105 (load_charset_map_from_file): Rename from load_charset_map.
8106 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
8107 the tail.
8108 (load_charset_map_from_vector): New function.
8109 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8110 (encode_char): If the charset is compact, change a character index
8111 to a code point.
8112
8113 * coding.c (coding_alloc_by_making_gap): Check the case that the
8114 source and destination are the same correctly.
8115 (decode_coding_raw_text): Set coding->consumed_char and
8116 coding->consumed to 0.
8117 (produce_chars): If coding->chars_at_source is nonzero, update
8118 coding->consumed_char and coding->consumed before calling
8119 alloc_destination.
8120 (Fdefine_coding_system_alias): Register ALIAS in
8121 Vcoding_system_alist.
8122 (syms_of_coding): Define `no-convesion' coding system at the tail.
8123
8124 * fileio.c (Finsert_file_contents): Set coding_system instead of
8125 val. If the current buffer is multibyte, always call
8126 decode_coding_gap.
8127
8128 * xfaces.c (try_font_list): Give higher priority to fontset's
8129 family than face's family.
8130
73acf815 81312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8132
8133 * callproc.c (Fcall_process): Be sure to give the current buffer
8134 to decode_coding_c_string.
8135
8136 * xfaces.c (try_font_list): Give a family specified in a fontset
8137 higher priority than a family specified in a face.
8138
73acf815 81392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8140
8141 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8142 Fix arguments to insert_from_buffer.
8143
8144 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8145
73acf815 81462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8147
8148 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8149 (decode_coding_gap): Set coding->dst_multibyte correctly.
8150
73acf815 81512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8152
8153 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 8154 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
8155 (encode_coding_utf_16): Substitute coding->default_char for
8156 non-Unicode characters.
8157 (decode_coding): Don't call record_insert here.
8158 (setup_coding_system): Initialize `surrogate' of
8159 coding->spec.utf_16 to 0.
8160 (EMIT_ONE_BYTE): Fix for multibyte case.
8161
8162 * insdel.c (insert_from_gap): Call record_insert.
8163
73acf815 81642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8165
8166 * casefiddle.c (casify_region): Fix multibyte case.
8167
8168 * character.c (c_string_width): Add return type `int'.
1f45f627 8169 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
8170
8171 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 8172 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8173 (CHAR_STRING_ADVANCE): Make it do-while statement.
8174
1f45f627 8175 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8176 DEPTH == 3. Add workaround code for a GCC optimization bug.
8177
8178 * charset.c (parse_charset_map): Remove an unused variable.
8179
8180 * coding.c: Delete unused variables.
8181
8182 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8183 earlier. If inserted is zero and the coding system doesn't
8184 require flushing, don't call decode_coding_gap.
8185
8186 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8187
73acf815 81882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8189
8190 The following changes are for using Unicode as an internal
8191 character model, and use UTF-8 format for buffer/string
8192 representation.
8193
1f45f627 8194 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8195 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8196
8197 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8198 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8199 (*.o): For many files, change dependency on charset.h to
8200 character.h, and add dependency on character.h.
8201 (character.o, chartab.o): New targets.
8202
1f45f627
GM
8203 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8204 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8205 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8206 of "charset.h".
8207
8208 * dired.c, filelock.c: Include "character.h".
8209
8210 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8211 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8212 (syms_of_alloc): Remove defsubr for Smake_char_table.
8213
8214 * buffer.c: Include "character.h" instead of "charset.h", don't
8215 include "coding.h".
1f45f627 8216 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8217
8218 * buffer.h: EXFUN Fbuffer_live_p.
8219
8220 * callproc.c: Include "character.h" instead of "charset.h".
8221 (Fcall_process): Big change for the new code-conversion APIs.
8222
8223 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8224 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8225 map_char_table spec.
8226 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8227 accessing the char table structure.
8228
8229 * chartab.c: New file that implements char table.
8230
8231 * category.c: Include "character.h".
8232 (copy_category_entry): New function.
8233 (copy_category_table): Call map_char_table and copy_category_entry.
8234 (Fmake_category_table): Initialize all top-vel slots.
8235 (char_category_set): New function.
1f45f627 8236 (modify_lower_category_set): Delete.
aca7a3d2
MB
8237 (Fmodify_category_entry): Call char_table_ref_and_range.
8238
8239 * category.h (CATEGORY_SET): Just call char_category_set.
8240
8241 * ccl.c: Include "character.h".
8242 (Qccl, Qcclp): New variables.
8243 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8244 it's less than 256.
1f45f627
GM
8245 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8246 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8247 and DST type.
1f45f627
GM
8248 (ccl_driver): Change types of argument, adjust code accordingly.
8249 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8250 ccl_driver.
8251 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8252
1f45f627
GM
8253 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8254 New members src_multibyte, dst_multibyte, consumed, and produced.
8255 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8256 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8257 (ccl_driver): Update prototype.
aca7a3d2
MB
8258 (Qccl, Qcclp, Fccl_program_p): Extern them.
8259 (CHECK_CCL_PROGRAM): New macro.
8260
8261 * character.c, character.h, chartab.c: New files.
8262
1f45f627
GM
8263 * charset.c: Mostly re-written. Move character and multibyte sequence
8264 handling codes to character.c.
aca7a3d2 8265
1f45f627
GM
8266 * charset.h: Mostly re-written. Move character and multibyte sequence
8267 handling codes to character.h.
aca7a3d2
MB
8268
8269 * coding.c, coding.h: Mostly re-written.
8270
8271 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8272 (CHAR_WIDTH): Move to character.h.
8273 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8274
1f45f627
GM
8275 * composite.h (enum composition_method): Change order of enumeration
8276 symbols.
aca7a3d2
MB
8277
8278 * data.c: Include "character.h" instead of "charset.h".
8279 (Faref): Call CHAR_TABLE_REF for a char table.
8280 (Faset): Call CHAR_TABLE_SET for a char table.
8281
1f45f627
GM
8282 * dispextern.h (free_realized_face, check_face_attribytes)
8283 (generate_ascii_font): Extern them.
8284 (free_realized_multibyte_face): Delete extern.
aca7a3d2 8285
1f45f627 8286 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
8287 table structure.
8288
8289 * editfns.c: Include "character.h" instead of "charset.h".
8290 (Fchar_to_string): Always call CHAR_STRING.
8291
8292 * emacs.c (main): Call init_charset_once, init_charset,
8293 syms_of_chartab, and syms_of_character.
8294
8295 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 8296 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 8297 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 8298 (build_annotations_2): Delete.
aca7a3d2
MB
8299 (e_write): Big change for the new code-conversion API.
8300
8301 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 8302 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8303 (Fcopy_sequence): Call copy_char_table for a char table.
8304 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
8305 (string_char_to_byte, string_byte_to_char): Adjust for the new
8306 multibyte form.
1f45f627
GM
8307 (internal_equal): Adjust for the change of char table structure.
8308 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8309 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8310 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8311 (char_table_translate, optimize_sub_char_table)
8312 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8313 chartab.c.
1f45f627
GM
8314 (char_table_ref_and_index): Delete.
8315 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8316 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8317 Vcoding_category_list. Adjust for the new code-conversion API.
8318 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8319 chartab.c.
8320
8321 * fontset.c: Mostly re-written.
8322
1f45f627 8323 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8324 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8325 (fontset_font_pattern, fs_load_font): Update prototype.
8326 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8327
8328 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8329 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8330
8331 * insdel.c: Include "character.h" instead of "charset.h".
8332 (copy_text): Don't refer to Vnonascii_translation_table.
8333 (insert_from_gap): New function.
8334
8335 * keyboard.c: Include "character.h" instead of "charset.h".
8336 (command_loop_1): Never call direct_output_forward_char before
8337 a non-ASCII character.
8338 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8339 translate a character.
aca7a3d2
MB
8340
8341 * keymap.c: Include "character.h".
8342 (store_in_keymap): Handle the case that IDX is a cons.
8343 (Fdefine_key): Handle the case that KEY is a cons and the car part
8344 is also a cons (range).
1f45f627 8345 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8346 (describe_vector): Call describe_char_table for a char table.
8347 (describe_char_table): New function.
8348
8349 * keymap.h (describe_char_table): Extern it.
8350
8351 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8352 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8353 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8354 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8355 Delete.
8356 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8357 structure.
8358 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8359 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8360 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8361 (chartab_size): Extern it.
1f45f627 8362 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8363 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8364 (HASH_KEY, HASH_VALUE): Move from fns.c.
8365 (CHARACTERBITS): Define as 22.
8366 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8367 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8368 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8369 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8370 (code_convert_string_norecord): Deleted extern.
8371 (init_character_once, syms_of_character, init_charset)
8372 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8373
8374 * lread.c: Include "character.h".
8375 (read_multibyte): New arg NBYTES.
1f45f627
GM
8376 (read_escape): Change the meaning of returned *BYTEREP.
8377 (to_multibyte): Delete.
8378 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8379
8380 * print.c: Include "character.h" instead of "charset.h".
8381 (print_string): Convert 8-bit raw bytes to octal form by
8382 string_escape_byte8.
1f45f627 8383 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8384 raw bytes always in octal form. Handle sub char table correctly.
8385
8386 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8387 (read_process_output, send_process): Adjust for the new
8388 code-conversion API.
aca7a3d2 8389
1f45f627 8390 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8391
8392 * regex.c: Include "character.h" instead of "charset.h".
8393 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8394 (regex_compile): Accept a range whose starting and ending
8395 character have different leading bytes.
1f45f627 8396 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8397
8398 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8399 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8400 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8401
8402 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8403 (syntax_parent_lookup): Delete.
aca7a3d2 8404 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8405 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8406 (init_syntax_once): Call char_table_set_range instead of directly
8407 accessing the structure of a char table.
8408
8409 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8410 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8411 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8412 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8413
8414 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8415 (encode_terminal_code, write_glyphs): Adjust for the new
8416 code-conversion API.
aca7a3d2
MB
8417 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8418
1f45f627 8419 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8420
8421 * xdisp.c: Include "character.h".
1f45f627
GM
8422 (get_next_display_element): Adjust for the new multibyte form.
8423 (disp_char_vector): Adjust for the new char table structure.
8424 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8425 coding system.
1f45f627 8426 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8427
8428 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8429 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8430 FS_LOAD_FONT.
8431 (generate_ascii_font): New function.
1f45f627
GM
8432 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8433 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8434 (free_realized_face): Make it public.
1f45f627 8435 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8436 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8437 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8438 fontset_font_pattern and FS_LOAD_FONT.
8439
8440 * xfns.c: Include "character.h".
1f45f627 8441 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8442
8443 * xselect.c: Don't include "charset.h".
1f45f627 8444 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8445
8446 * xterm.c: Include "character.h".
1f45f627 8447 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8448 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8449 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8450 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8451 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8452 (XTread_socket): Adjust for the new code-conversion API.
8453 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8454 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8455
d6abfc14
SM
84562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8457
8458 * xfaces.c (face_at_buffer_position): Remove unused vars.
8459
0acdaf8d
KH
84602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8461
4c4475a8
GM
8462 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8463 Fix overflow checking.
0acdaf8d 8464
6c8a0ebf
GM
84652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8466
8467 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8468 Cancel previous change.
8469
84702008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8471
8472 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8473 ccl->eight_bit_control. Fix check for buffer overflow.
8474 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8475 (ccl_driver): Initialize extra_bytes to 0.
8476
a32aad64
KH
84772008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8478
8479 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8480 return it ORed with ctrl_modifier.
8481
8b329dba
MB
84822008-01-29 Miles Bader <miles@gnu.org>
8483
8484 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8485
548667aa
JR
84862008-01-28 Jason Rumney <jasonr@gnu.org>
8487
8488 * w32.c (stat): Don't double check for networked drive.
8489
0975aa24
SM
84902008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8491
ef264c42
SM
8492 * window.c (run_window_configuration_change_hook): New function.
8493 Code extracted from set_window_buffer. Set the selected frame.
8494 (set_window_buffer): Use it.
8495 * window.h (run_window_configuration_change_hook): Declare.
8496 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8497
0975aa24
SM
8498 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8499
9c28b587
DN
85002008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8501
8502 * Makefile.in: Remove references to unused macros.
8503
c617afce
EZ
85042008-01-26 Eli Zaretskii <eliz@gnu.org>
8505
8506 * w32.c (g_b_init_get_sid_sub_authority)
8507 (g_b_init_get_sid_sub_authority_count): New static variables.
8508 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8509 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8510 (init_user_info): Use them to retrieve uid and gid.
8511 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8512 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8513 st_uid and st_gid of the file.
c617afce 8514
302d7d54
JR
85152008-01-26 Jason Rumney <jasonr@gnu.org>
8516
8517 * w32.c (logon_network_drive): New function.
8518 (stat): Use it.
8519
3ac7a21e
CY
85202008-01-26 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8523 invisible text covered with an ellipsis.
8524
bbb9fc1f
RS
85252008-01-25 Richard Stallman <rms@gnu.org>
8526
8527 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8528 jump back to beginning. Move some other initializations after that.
8529 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8530 New variables.
8531 (syms_of_xdisp): Init them.
8532
8533 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8534
0975aa24
SM
8535 * buffer.c (reset_buffer_local_variables):
8536 Implement `permanent-local-hook'.
bbb9fc1f 8537 (Qpermanent_local_hook): New variable.
0975aa24 8538 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8539
79235cbe
MA
85402008-01-25 Michael Albinus <michael.albinus@gmx.de>
8541
8542 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8543
ccd8f7fe
TTN
85442008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8545
8546 * fns.c (Fclrhash): Return TABLE.
8547
dfbe40f2 85482008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8549
8550 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8551 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8552 is set even without positional changes.
8553 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8554
8555 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8556
dfbe40f2 85572008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8558
d6169680
JR
8559 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8560
602e142f
JR
8561 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8562 the unicode range available in MULE by locale-coding-system.
c041e2d1 8563 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8564 earlier.
8565
dfbe40f2 85662008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8567
8568 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8569 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8570 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8571 when used on child processes.
8572
8c7a4ac5
MA
85732008-01-21 Michael Albinus <michael.albinus@gmx.de>
8574
e0df1b73 8575 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8576 Fdbus_method_return.
e0df1b73 8577 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8578 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8579 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8580
8abe0f97
MR
85812008-01-20 Martin Rudalics <rudalics@gmx.at>
8582
8583 * undo.c (undo_inhibit_record_point): New variable.
8584 (syms_of_undo): Initialize it.
8585 (record_point): Don't record point when undo_inhibit_record_point
8586 is set.
8587
c3b232e4
SM
85882008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8589
e69c4cae
SM
8590 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8591
823e0ebb
SM
8592 * xdisp.c (Qauto_hscroll_mode): New var.
8593 (syms_of_xdisp): Initialize it.
8594 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8595 window's buffer.
8596 (hscroll_windows): Don't check automatic_hscrolling_p here.
8597
c3b232e4
SM
8598 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8599 vscroll if we're setting window-buffer to the value it already has.
8600
76ed5e01
DN
86012008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8602
8603 * m/intel386.h: Remove references to XENIX.
8604
55e6d9b2
AS
86052008-01-17 Andreas Schwab <schwab@suse.de>
8606
8607 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8608 instead of HAVE_X86_64_LIB64_DIR.
8609 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8610
b16ed52d
GM
86112008-01-17 Glenn Morris <rgm@gnu.org>
8612
8613 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8614 to HAVE_X86_64_LIB64_DIR.
8615
6bed5c4a
DN
86162008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8617
8618 * s/irix3-3.h:
8619 * s/irix4-0.h:
8620 * s/386-ix.h:
8621 * s/domain.h:
8622 * s/hpux9-x11r4.h:
8623 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8624
8625 * sysdep.c: Remove code containing references to symbols defined
8626 by unsupported systems.
8627
fdecf907
GM
86282008-01-16 Glenn Morris <rgm@gnu.org>
8629
8630 * coding.c (select-safe-coding-system-function): Doc fix.
8631
9292328f
GM
86322008-01-15 Glenn Morris <rgm@gnu.org>
8633
8634 * config.in: Revert 2008-01-13 change: this is a generated file.
8635
944df511
MO
86362008-01-13 Tom Tromey <tromey@redhat.com>
8637
8638 * lisp.h: Fix typo.
8639
8111ec05
DN
86402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8641
f40f5dc3
DN
8642 * m/sequent-ptx.h:
8643 * m/sequent.h:
8644 * s/ptx.h:
8645 * s/ptx4-2.h:
8646 * s/ptx4.h: Remove files for systems no longer supported.
8647
ce20b664 8648 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8649
e39a993c
DN
86502008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8651
052e457f 8652 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8653
290afd83
JB
8654 * m/mips.h:
8655 * m/intel386.h:
e39a993c
DN
8656 * callproc.c:
8657 * config.in:
8658 * ecrt0.c:
8659 * emacs.c:
8660 * fileio.c:
8661 * frame.c:
8662 * getpagesize.h:
8663 * keyboard.c:
8664 * lread.c:
8665 * process.c:
8666 * puresize.h:
8667 * sysdep.c:
8668 * systty.h:
8669 * syswait.h:
8670 * unexec.c:
8671 * xdisp.c:
8672 * alloc.c: Remove code containing references to symbols defined by
8673 unsupported systems.
8674
81cd7687
KH
86752008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8676
8677 * coding.c (detect_coding_mask): Fix previous change.
8678
218b3b76
KH
86792008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8680
8681 * coding.c (detect_coding_iso2022): New arg
8682 latin_extra_code_state. Allow Latin extra codes only
8683 when *latin_extra_code_state is nonzero.
8684 (detect_coding_mask): If there is a NULL byte, detect the encoding
8685 as UTF-16 or binary. If Latin extra codes exist, detect the
8686 encoding as ISO-2022 only when there's no other proper encoding is
8687 found.
8688
59ce725a 86892008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8690
59ce725a
MB
8691 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8692 #ifdef MAC_OS.
048addec 8693
59ce725a 86942008-01-08 Richard Stallman <rms@gnu.org>
048addec 8695
59ce725a 8696 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8697
8290574e
NR
86982008-01-06 Nick Roberts <nickrob@snap.net.nz>
8699
a0a3805c 8700 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8701 menu bar in parentheses.
8702
f3041af1
DN
87032008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
8704
8705 * m/7300.h:
8706 * m/acorn.h:
8707 * m/alliant-2800.h:
8708 * m/alliant.h:
8709 * m/alliant1.h:
8710 * m/alliant4.h:
8711 * m/altos.h:
8712 * m/amdahl.h:
8713 * m/apollo.h:
8714 * m/att3b.h:
8715 * m/aviion-intel.h:
8716 * m/aviion.h:
8717 * m/celerity.h:
8718 * m/clipper.h:
8719 * m/cnvrgnt.h:
8720 * m/convex.h:
8721 * m/cydra5.h:
8722 * m/delta88k.h:
8723 * m/dpx2.h:
8724 * m/dual.h:
8725 * m/elxsi.h:
8726 * m/f301.h:
8727 * m/gould-np1.h:
8728 * m/gould.h:
8729 * m/i860.h:
8730 * m/ibmps2-aix.h:
8731 * m/ibmrt-aix.h:
8732 * m/ibmrt.h:
8733 * m/irist.h:
8734 * m/is386.h:
8735 * m/isi-ov.h:
8736 * m/mega68.h:
8737 * m/mg1.h:
8738 * m/news-r6.h:
8739 * m/news-risc.h:
8740 * m/news.h:
8741 * m/nh3000.h:
8742 * m/nh4000.h:
8743 * m/ns16000.h:
8744 * m/ns32000.h:
8745 * m/nu.h:
8746 * m/orion.h:
8747 * m/orion105.h:
8748 * m/paragon.h:
8749 * m/pfa50.h:
8750 * m/plexus.h:
8751 * m/pyramid.h:
8752 * m/pyrmips.h:
8753 * m/sh3el.h:
8754 * m/sps7.h:
8755 * m/sr2k.h:
8756 * m/stride.h:
8757 * m/sun1.h:
8758 * m/sun2.h:
8759 * m/sun3-68881.h:
8760 * m/sun3-fpa.h:
8761 * m/sun3-soft.h:
8762 * m/sun3.h:
8763 * m/sun386.h:
8764 * m/symmetry.h:
8765 * m/tad68k.h:
8766 * m/tahoe.h:
8767 * m/targon31.h:
8768 * m/tek4300.h:
8769 * m/tekxd88.h:
8770 * m/tower32.h:
8771 * m/tower32v3.h:
8772 * m/ustation.h:
8773 * m/wicat.h:
8774 * m/xps100.h:
8775 * s/cxux.h:
8776 * s/cxux7.h:
8777 * s/dgux.h:
8778 * s/dgux4.h:
8779 * s/dgux5-4-3.h:
8780 * s/dgux5-4r2.h:
8781 * s/esix.h:
8782 * s/esix5r4.h:
8783 * s/hiuxmpp.h:
8784 * s/hiuxwe2.h:
8785 * s/iris3-5.h:
8786 * s/iris3-6.h:
8787 * s/isc2-2.h:
8788 * s/isc3-0.h:
8789 * s/isc4-0.h:
8790 * s/isc4-1.h:
8791 * s/newsos5.h:
8792 * s/newsos6.h:
8793 * s/osf1.h:
8794 * s/osf5-0.h:
8795 * s/riscix1-1.h:
8796 * s/riscix12.h:
8797 * s/sco4.h:
8798 * s/sco5.h:
8799 * s/sunos4-0.h:
8800 * s/sunos4-1.h:
8801 * s/sunos413.h:
8802 * s/sunos4shr.h:
8803 * s/umax.h:
8804 * s/unipl5-2.h:
8805 * s/xenix.h:
8806 * cxux-crt0.s:
8807 * unexapollo.c:
8808 * unexconvex.c:
8809 * unexenix.c:
8810 * unexsni.c: Remove files for systems no longer supported.
8811
8812 * m/intel386.h: Remove references to unsupported systems.
8813
8814 * w32.c (get_emacs_configuration): Remove reference to i860.
8815
8816 * sysdep.c: Remove dead code.
8817
d35e1cd7
DN
88182008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
8819
8820 * s/rtu.h:
a0a3805c 8821 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 8822
abe136ee
MA
88232008-01-04 Michael Albinus <michael.albinus@gmx.de>
8824
8825 * dbusbind.c (Fdbus_method_return): New function.
8826 (xd_read_message): Add the serial number to the event.
8827 (Fdbus_register_method): Activate the function.
8828
87df3c32
SM
88292008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * keyboard.c (read_key_sequence): Fix typo.
8832
5125905e
MA
88332008-01-03 Michael Albinus <michael.albinus@gmx.de>
8834
8835 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
8836 (xd_signature, xd_append_arg): Handle element type detection for
8837 empty arrays.
8838 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
8839 SDATA () calls; this must be solved more general.
8840 (Fdbus_register_signal): Use SBYTES instead of strlen.
8841
8bba1b5c
MH
88422008-01-03 Magnus Henoch <magnus@zemdatav>
8843
8844 * dbusbind.c (xd_append_arg): Use unsigned char instead of
8845 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 8846 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 8847
a0a3805c 88482007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
8849
8850 * dbusbind.c (xd_read_message): Use non-static input_event struct.
8851
a271e124
MH
88522007-12-31 Magnus Henoch <mange@freemail.hu>
8853
8854 * dbusbind.c (xd_signature): Signature of variant is just "v".
8855
17bc8f94
MA
88562007-12-30 Michael Albinus <michael.albinus@gmx.de>
8857
87df3c32 8858 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 8859 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
8860 (XD_ERROR, XD_DEBUG_MESSAGE)
8861 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
8862 (xd_append_arg): Part for basic D-Bus types rewitten.
8863 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
8864 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
8865 appropriate.
8866 (xd_read_message): Return Qnil. Don't signal an error; it is not
8867 useful during event reading.
8868 (Fdbus_register_signal): Signal an error if the check for
8869 FUNCTIONP fails.
8870 (Fdbus_register_method): New function. The implementation is not
8871 complete, the call of the function signals an error therefore.
8872 (Fdbus_unregister_object): New function, renamed from
8873 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8874 the object is not well formed.
17bc8f94 8875
dd6f2802
RS
88762007-12-30 Richard Stallman <rms@gnu.org>
8877
8878 * textprop.c (get_char_property_and_overlay):
8879 Signal error if POSITION is out of range in a buffer.
8880
1da8a031
MR
88812007-12-29 Martin Rudalics <rudalics@gmx.at>
8882
8883 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8884 because the original parameters are in pure storage now.
8885
5742be86
YM
88862007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8887
8888 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8889
b014713c
EZ
88902007-12-22 Eli Zaretskii <eliz@gnu.org>
8891
b17f53ab
MB
8892 * callint.c (syms_of_callint) <command-history>: Add reference to
8893 history-length in the doc string.
048addec 8894
b17f53ab 88952007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8896
b17f53ab
MB
8897 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8898 before passing as wParam.
048addec 8899
9af5078b
MA
89002007-12-22 Michael Albinus <michael.albinus@gmx.de>
8901
8902 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8903 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8904 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8905 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8906 as number.
8907 (Fdbus_call_method): Fix docstring.
8908
87cf1a39
MA
89092007-12-21 Michael Albinus <michael.albinus@gmx.de>
8910
8911 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8912 New macros.
87df3c32 8913 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8914 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8915 Simplify.
87cf1a39
MA
8916 (xd_signature): New function.
8917 (xd_append_arg): Compute also signatures. Major rewrite.
8918 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8919 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8920 Check for signatures of arguments.
87cf1a39 8921
54371585
MA
89222007-12-19 Michael Albinus <michael.albinus@gmx.de>
8923
8924 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8925 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8926 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8927 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8928 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8929 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8930 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8931 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8932 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8933 (xd_append_arg): New function.
8934 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8935
f5306ca3
MA
89362007-12-16 Michael Albinus <michael.albinus@gmx.de>
8937
8938 * dbusbind.c (top): Include <stdio.h>.
8939 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8940 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8941 (Fdbus_register_signal): Rename unique_name to uname.
8942 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8943 non-existing unique name. Fix typos in matching rule. Return an
8944 object which is useful in Fdbus_unregister_signal.
8945 (Fdbus_unregister_signal): Reimplementation, in order to remove
8946 only the corresponding entry.
8947 (Vdbus_registered_functions_table): Change the order of entries.
8948 Apply these changes in xd_read_message and Fdbus_register_signal.
8949
77a28bbf
AS
89502007-12-16 Andreas Schwab <schwab@suse.de>
8951
8952 * fileio.c (Finsert_file_contents): Fix overflow check to not
8953 depend on undefined integer overflow.
8954
2e3566d8
JR
89552007-12-14 Jason Rumney <jasonr@gnu.org>
8956
8957 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8958 for characters above 127.
8959
bf254037
JR
89602007-12-13 Jason Rumney <jasonr@gnu.org>
8961
8962 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8963 before dereferencing array.
8964 (lookup_vk_code): Remove zero comparison.
8965
eb7c7bf5
MA
89662007-12-14 Michael Albinus <michael.albinus@gmx.de>
8967
8968 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8969 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8970 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8971 (xd_read_message, Fdbus_register_signal): Split expressions into
8972 multiple lines before operators "&&" and "||", according to the
8973 GNU Coding Standards.
8974
34fb0fc9
EZ
89752007-12-14 Eli Zaretskii <eliz@gnu.org>
8976
8977 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8978
c7d97628
JL
89792007-12-12 Juri Linkov <juri@jurta.org>
8980
8981 * buffer.c (Frename_buffer): In interactive spec replace
8982 `read-buffer' with `read-string' that uses `buffer-name-history'
8983 as history, and the current buffer's name as default.
8984
3709505e
SM
89852007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8986
8987 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8988 manipulating the backtrace manually.
8989 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8990 (struct backtrace, backtrace_list): Remove.
8991 (command_loop_1): Remove dead var `no_direct'.
8992
8993 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8994 preserve non-built-in buffer-local variables.
8995 (Fkill_all_local_variables): Don't re-create&re-set permanent
8996 buffer-local variables.
8997
e2bec886
JL
89982007-12-09 Juri Linkov <juri@jurta.org>
8999
9000 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9001 Lisp code that uses `read-buffer' with current buffer as default.
9002
a31d47c7
MA
90032007-12-08 Michael Albinus <michael.albinus@gmx.de>
9004
9005 * dbusbind.c (xd_read_message): Generate an event for every
9006 registered handler. There might be several handlers registered
9007 for the same signal.
9008 (Fdbus_register_signal): Don't overwrite a registration for the
9009 same signal. Add a new registration if handlers are different.
9010 (Vdbus_registered_functions_table): Rework doc string.
9011
52da95fa
MA
90122007-12-07 Michael Albinus <michael.albinus@gmx.de>
9013
9014 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9015 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9016 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9017 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9018 Unify argument lists.
a0a3805c 9019 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
9020 arguments and hash table keys. Use unique name for service.
9021 (Fdbus_unregister_signal): Remove checks.
9022 (Vdbus_registered_functions_table): Fix doc string.
9023
e5e76c04 90242007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
9025
9026 * process.c (make_process): Initialize pty_flag to 0.
9027
e5e76c04 90282007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
9029
9030 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9031 specified XBMs.
9032
e5e76c04 90332007-12-05 Richard Stallman <rms@gnu.org>
048addec 9034
e5e76c04 9035 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 9036
e5e76c04 90372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9038
e5e76c04
MB
9039 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9040 New variable.
9041 (mac_try_close_socket) [MAC_OSX]: New function.
9042 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9043 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9044
e5e76c04
MB
9045 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9046 Use mac_try_close_socket.
048addec 9047
e5e76c04 90482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9049
e5e76c04
MB
9050 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9051 reloc_base.
9052 (copy_dysymtab): Compute relocation base here.
9053 (rebase_reloc_address) [__ppc64__]: New function.
9054 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9055 changed.
048addec 9056
e5e76c04 90572007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9058
e5e76c04 9059 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9060
e5e76c04 90612007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9062
e5e76c04
MB
9063 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9064 __objc_* sections.
9065 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 9066
96faeb40
MA
90672007-12-05 Michael Albinus <michael.albinus@gmx.de>
9068
9069 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9070 Move check for Vdbus_registered_functions_table to
9071 xd_read_queued_messages.
9072 (xd_read_queued_messages): Protect xd_read_message calls by
9073 internal_condition_case_1.
9074
39abdd4a
MA
90752007-12-04 Michael Albinus <michael.albinus@gmx.de>
9076
87df3c32 9077 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 9078 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 9079 (Vdbus_intern_symbols): Remove.
39abdd4a 9080 (Vdbus_registered_functions_table): New hash table.
87df3c32 9081 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 9082 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 9083 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
9084 Vdbus_registered_functions_table.
9085
880820fe 90862007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
9087
9088 * xterm.c: Update URL to Window Manager Specification in comment.
9089
033b73e2
MA
90902007-12-02 Michael Albinus <michael.albinus@gmx.de>
9091
9092 * config.in (HAVE_DBUS): Add.
9093
a0a3805c 9094 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
9095 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9096 (obj): Add $(DBUS_OBJ).
9097 (LIBES): Add $(DBUS_LIBS).
9098 (dbusbind.o): New target.
9099
9100 * dbusbind.c: New file.
9101
9102 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9103
9104 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 9105 (Qdbus_event): New Lisp symbol.
033b73e2 9106 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 9107 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
9108 (keys_of_keyboard ): Define dbus-event.
9109
9110 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9111
39d0bf74
RS
91122007-12-01 Richard Stallman <rms@gnu.org>
9113
9114 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9115
f3157c65
JR
91162007-11-30 Jason Rumney <jasonr@gnu.org>
9117
9118 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9119 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
9120 (w32_face_attributes): Don't use color indexes that are out of range.
9121 Only reverse the default colors.
f3157c65
JR
9122
9123 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9124 WINDOWSNT.
9125
9126 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9127
b510360c
JR
91282007-11-29 Jason Rumney <jasonr@gnu.org>
9129
9130 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9131 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9132 if the terminal colors are initialized.
9133 (unspecified_fg, unspecified_bg): Remove unused declarations.
9134
4b7ab1c4
AS
91352007-11-29 Andreas Schwab <schwab@suse.de>
9136
9137 * keyboard.c (apply_modifiers): Fix typo.
9138
4bb6c266
RS
91392007-11-29 Richard Stallman <rms@gnu.org>
9140
9141 * keymap.c (Fcurrent_local_map): Doc fix.
9142
aa44cd84
GM
91432007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9144
9145 * s/gnu-kfreebsd.h: New file.
9146
21ec2c43
SM
91472007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9148
cc648cef
SM
9149 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9150 Don't cast redundantly.
9151
21ec2c43
SM
9152 * keyboard.c (KEY_TO_CHAR): New macro.
9153 (parse_modifiers, apply_modifiers): Accept integer arguments.
9154 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9155 for chars and symbol keys.
9156 After doing such remapping, apply function-key-map again.
9157
73e72da4
DN
91582007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9159
9160 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9161 compiled anymore.
9162
254693ff
AS
91632007-11-26 Andreas Schwab <schwab@suse.de>
9164
9165 * process.c (list_processes_1): Fix indentation level of the
9166 command column.
9167
ff6e6ac8
AS
91682007-11-23 Andreas Schwab <schwab@suse.de>
9169
9170 * editfns.c (Fformat): Handle %c specially since it requires the
9171 argument to be of type int.
9172
f7cf8b20
SM
91732007-11-23 Markus Triska <markus.triska@gmx.at>
9174
9175 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9176 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9177
569c11e3
SM
91782007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9179
8787dd73
SM
9180 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9181 (find_symbol_value): Use do_symval_forwarding.
9182
569c11e3
SM
9183 * data.c (set_internal): Set the value in the `cons-cell' (for
9184 Buffer_Local_values) not only for frame-local variables.
9185
6af1696d
AS
91862007-11-22 Andreas Schwab <schwab@suse.de>
9187
9188 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9189 values to sprintf.
9190 * keymap.c (Fsingle_key_description): Likewise.
9191 * print.c (print_object): Likewise.
9192
880820fe 91932007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9194
9195 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9196 file for image is nil.
9197
7c401d15
DN
91982007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9199
9200 * term.c: Include stdarg.h.
569c11e3 9201 (fatal): Implement using varargs.
a0a3805c 9202 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9203
64e16c3c
SM
92042007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9205
9206 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9207 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9208 Update call to buffer_slot_type_mismatch.
9209 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9210 (buffer_slot_type_mismatch): Update.
9211 * buffer.c (buffer_local_types): Remove.
9212 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9213 (defvar_per_buffer): Set the type in the buffer_objfwd.
9214
d4aa48db 92152007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9216
64e16c3c
SM
9217 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9218 CreateFileMapping returns NULL on failure.
5f42a7eb 9219
d4aa48db 92202007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9221
d4aa48db
MB
9222 * search.c (Fset_match_data): Remove the `evaporate' feature.
9223 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9224
bdae0540
JR
92252007-11-21 Jason Rumney <jasonr@gnu.org>
9226
9227 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9228
9229 * w32console.c (w32con_write_glyphs): Remove unused variables.
9230
202c09a8
DN
92312007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9232
b951420f
DN
9233 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9234
202c09a8
DN
9235 * s/darwin.h (MULTI_KBOARD): Remove.
9236
9237 * macfns.c (x_create_tip_frame, Fx_create_frame)
9238 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9239
bae72c12
SM
92402007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9241
e7c10f83
SM
9242 * buffer.c (Fbuffer_local_value): Remove redundant test.
9243 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9244 than in `current-buffer' to match the comment.
9245 Do the swap using swap_in_global_binding.
9246
136eb6ed
SM
9247 * data.c (store_symval_forwarding, set_internal):
9248 * eval.c (specbind): Remove dead code.
9249
bae72c12
SM
9250 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9251 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9252 Since we do not want to see internal Lisp_*fwd objects here.
9253
880820fe 92542007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9255
3d66b985
JD
9256 * sysdep.c (init_system_name): Use getaddrinfo if available.
9257
95fbaefc
JD
9258 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9259 (x_scroll_bar_note_movement): start, end, with, height in struct
9260 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9261
6c1d8cb6
DN
92622007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9263
9264 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9265
30f95089
SM
92662007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9267
66b04bd4
SM
9268 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9269 This undoes Richard's change of 14-Oct-2002.
9270
6d3f2bb2
SM
9271 * alloc.c (allocate_other_vector):
9272 * lisp.h (allocate_other_vector): Remove.
9273
b05b4e27
SM
9274 * window.c (struct save_window_data): Move non-lisp data to the end
9275 and make it `int' rather than Lisp_Object.
9276 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9277 Done wrap/unwrap integer values.
9278 (Fset_window_configuration, compare_window_configurations):
9279 Update use of fields to their new types.
9280
056ce195
SM
9281 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9282 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9283 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9284 (SET_SCROLL_BAR_X_WINDOW): Remove.
9285 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9286 Access the new x_window field directly.
9287 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9288 Don't wrap/unwrap integers into Lisp_Objects.
9289 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9290 (x_scroll_bar_report_motion):
9291 Don't wrap/unwrap integers into Lisp_Objects.
9292 (x_term_init): Use SDATA.
9293 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9294 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9295 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9296 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9297 * xfns.c (x_set_background_color):
9298 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9299 Access the new x_window field directly.
9300
30f95089
SM
9301 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9302 (allocate_pseudovector): Make non-static.
6d3f2bb2 9303
30f95089
SM
9304 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9305 (allocate_pseudovector): Declare.
6f69e89b 9306 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9307
9b6112e8
AS
93082007-11-15 Andreas Schwab <schwab@suse.de>
9309
30f95089
SM
9310 * editfns.c (Fformat): Correctly format EMACS_INT values.
9311 Also take precision into account when formatting an integer.
0f860bd7 9312
9b6112e8
AS
9313 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9314
262fcd41
SM
93152007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9316
58da34c7
SM
9317 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9318 (syms_of_keyboard): Defsubr it.
9319
262fcd41
SM
9320 * data.c (swap_in_global_binding): Fix longstanding bug where
9321 store_symval_forwarding was not called with the right second argument,
9322 thus causing objfwd-ing from being dropped.
9323
d29a9848
JB
93242007-11-14 Juanma Barranquero <lekktu@gmail.com>
9325
9326 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9327 (Fx_display_pixel_height, Fx_display_planes)
9328 (Fx_display_color_cells, Fx_server_max_request_size)
9329 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9330 (Fx_display_visual_class, Fx_display_save_under):
9331 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9332 (Fx_display_pixel_height, Fx_display_planes)
9333 (Fx_display_color_cells, Fx_server_max_request_size)
9334 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9335 (Fx_display_mm_height, Fx_display_mm_width)
9336 (Fx_display_backing_store, Fx_display_visual_class)
9337 (Fw32_select_font, Fx_display_save_under):
9338 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9339 (Fx_display_pixel_height, Fx_display_planes)
9340 (Fx_display_color_cells, Fx_server_max_request_size)
9341 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9342 (Fx_display_save_under): Fix typos in docstrings.
9343
74084731
JB
93442007-11-14 Juanma Barranquero <lekktu@gmail.com>
9345
9346 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9347 corresponding to deleted entries; they are an implementation detail.
9348 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9349 Remove variables.
9350 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9351 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9352 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9353 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9354 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9355 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9356 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9357 Fix typos in docstrings.
9358 (Fx_server_version): Reflow docstring.
9359 (Fw32_shell_execute): Doc fixes.
74084731 9360
fb053a1f
JB
93612007-11-13 Juanma Barranquero <lekktu@gmail.com>
9362
9363 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9364 if w32_parse_hot_key returned nil.
9365
a457417e 93662007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9367
a457417e 9368 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9369
4b219faa
JR
93702007-11-09 Jason Rumney <jasonr@gnu.org>
9371
9372 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9373
9374 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9375
9376 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9377 Remove W32_SCROLL_BAR_CLICK_EVENT.
9378
9379 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9380 Add MULTIMEDIA_KEY_EVENT.
9381
9382 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9383 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9384 (make_lispy_event) [WINDOWSNT]: Use it to translate
9385 MULTIMEDIA_KEY_EVENT.
9386
9387 * w32term.h (WM_APPCOMMAND): Define if not already.
9388 (GET_APPCOMMAND_LPARAM): Likewise.
9389
9390 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9391 WM_APPCOMMAND.
9392
9393 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9394 (syms_of_w32fns): Export and initialize it.
9395 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9396
c12ecb0a 93972007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9398
9399 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9400 twice.
9401
9402 * xdisp.c (handle_face_prop): Fix last change.
9403
c12ecb0a 94042007-11-09 Richard Stallman <rms@gnu.org>
048addec 9405
c12ecb0a
MB
9406 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9407 not just for after-strings and before-strings.
9408 Call face_for_overlay_string and pass the overlay to it.
9409 (handle_display_prop): Determine whether property came from an overlay.
9410 Pass OVERLAY arg to handle_single_display_spec.
9411 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9412 (load_overlay_strings): Fill in it->string_overlays.
9413 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9414
c12ecb0a
MB
9415 * xfaces.c (face_for_overlay_string): Function renamed from
9416 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9417
c12ecb0a
MB
9418 * dispextern.h (struct it): New elt string_overlays.
9419 New elt from_overlay, also in stack.
9420 Rearrange a few elements.
9421 (face_for_overlay_string): Decl renamed from
9422 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9423
c12ecb0a 94242007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9425
c12ecb0a
MB
9426 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9427 to get the base face for an overlay string.
0d8466cc 9428
c12ecb0a 9429 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9430
c12ecb0a 9431 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9432
c12ecb0a 9433 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9434
c12ecb0a 94352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9436
c12ecb0a
MB
9437 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9438 Fix conversion from Lisp object to ATSUFontID.
07025a55 9439
c12ecb0a 94402007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9441
c12ecb0a 9442 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9443
c12ecb0a 94442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9445
c12ecb0a
MB
9446 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9447 Don't assume regions are aligned to page boundary.
9448 (print_load_command_name): Add LC_UUID if defined.
3a232704 9449
c12ecb0a 94502007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9451
c12ecb0a 9452 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9453
b8ddfbcc
JR
94542007-11-07 Jason Rumney <jasonr@gnu.org>
9455
9456 * s/windows95.h: Remove.
9457
880820fe 94582007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9459
9460 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9461 abort with a message on unhandled store_type values.
9462
880820fe 94632007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9464
9465 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9466 Remove HAVE_X11R5 and HAVE_X11R4.
9467
04a697fe
DN
94682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9469
9470 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9471
880820fe 94722007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9473
9474 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9475 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9476 x_set_glyph_string_gc from x_draw_glyph_string.
9477
07e5c0b0
DN
94782007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9479
2a2e8de7 9480 * sunfns.c: Remove file.
07e5c0b0
DN
9481
9482 * m/sun386.h:
9483 * m/sun2.h:
9484 * m/sparc.h: Remove Sun windows code.
9485
1bc973c2
SM
94862007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9487
9488 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9489 (init_keyboard): Set current_kboard's window-system to nil.
9490 (tty_read_avail_input): Typo.
9491 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9492
c22140f6
DN
94932007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9494
9495 * s/usg5-4.h:
9496 * s/usg5-3.h:
9497 * s/ptx.h:
9498 * m/is386.h:
9499 * m/ibmps2-aix.h:
2a2e8de7 9500 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9501
9502 * dispnew.c (syms_of_display): Don't mention version 10.
9503
660a8219
JB
95042007-10-28 Juanma Barranquero <lekktu@gmail.com>
9505
9506 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9507 ($(BLD)/abbrev.$(O)): Remove.
9508
e047f448
SM
95092007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 Rewrite abbrev.c in Elisp.
9512 * image.c (Qcount): Don't declare as extern.
9513 (syms_of_image): Initialize and staticpro `Qcount'.
9514 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9515 * emacs.c (main): Don't call syms_of_abbrev.
9516 * Makefile.in (obj): Remove abbrev.o.
9517 (abbrev.o): Remove.
9518 * abbrev.c: Remove.
9519
67b73e3a
MR
95202007-10-26 Martin Rudalics <rudalics@gmx.at>
9521
9522 * window.c (window_min_size_2): Don't count header-line.
9523
e3d7bd83
DN
95242007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9525
9526 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9527 field to take advantage of the available space. Group all the
e3d7bd83
DN
9528 chars together to reduce wasted space due to padding.
9529
a3547743
JB
95302007-10-26 Juanma Barranquero <lekktu@gmail.com>
9531
e298936f
JB
9532 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9533
d3d47262
JB
9534 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9535 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9536 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9537 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9538 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9539 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9540 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9541 (last_marked, mark_object_loop_halt): Make static.
9542
a3547743
JB
9543 * frame.c (syms_of_frame) <delete-frame-functions>:
9544 Fix typo in docstring.
9545
14c71d8b
JB
95462007-10-25 Juanma Barranquero <lekktu@gmail.com>
9547
9548 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9549 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9550
70b8d0a4
SM
95512007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9552
9553 Make `window-system' into a keyboard-local variable (rather than
9554 frame-local as done originally by multi-tty).
9555
9556 * keyboard.h (struct kboard): Add Vwindow_system.
9557 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9558 (mark_kboards): Mark Vwindow_system.
9559
9560 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9561 (init_display): Don't set the obsolete `window-system' frame-param.
9562
9563 * xterm.c (x_term_init):
9564 * w32term.c (w32_create_terminal):
9565 * term.c (init_tty): Set Vwindow_system.
9566 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9567 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9568
9569 * xfns.c (Fx_create_frame, x_create_tip_frame):
9570 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9571 * macfns.c (Fx_create_frame):
9572 Don't set the obsolete `window-system' frame-param.
9573
9574 * frame.h (Qwindow_system): Remove.
9575 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9576 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9577
fdc90613 95782007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9579
fdc90613
MB
9580 * frame.c (x_figure_window_size): For fullscreen case,
9581 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9582
fdc90613 9583 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9584
fdc90613 9585 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9586
7357cb04
SM
95872007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9588
98228e72
SM
9589 * process.c (unwind_request_sigio): Only define if __ultrix__.
9590
1baf6db9
SM
9591 * callproc.c (child_setup): Remove spurious *.
9592
4d0ac3d7
SM
9593 * lisp.h (Fget_text_property): Declare.
9594 (have_menus_p): Declare it here rather than in sys-dep header files.
9595 * macterm.h (have_menus_p):
9596 * msdos.h (have_menus_p):
9597 * xterm.h (have_menus_p): Remove.
9598
7357cb04
SM
9599 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9600 (Fmake_variable_frame_local): Just check the variable's const-ness
9601 rather than checking nil or t.
9602
866e6dd6
JR
96032007-10-22 Jason Rumney <jasonr@gnu.org>
9604
b00afeae
JR
9605 * w32fns.c: Include math.h.
9606 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9607
c8f7c76b
JR
9608 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9609 (abort): Redefinition moved to nt/config.nt.
9610
866e6dd6
JR
9611 * m/windowsnt.h: Remove.
9612
e79beb56
JB
96132007-10-22 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * emacs.c (Fdump_emacs): Fix typo in message.
9616 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9617 <installation-directory>: Reflow docstring.
9618
fb30dfd2
JL
96192007-10-22 Juri Linkov <juri@jurta.org>
9620
9621 * minibuf.c: Allow minibuffer default to be a list of default values.
9622 With empty input use the first element of this list as returned default.
e79beb56 9623 (string_to_object)
0f7f11b7 9624 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9625 (read_minibuf): If defalt is cons, set histstring to its car.
9626 (Fread_string): If default_value is cons, set val to its car.
9627 (Fread_buffer): If def is cons, use its car.
9628 (Fcompleting_read): If defalt is cons, set val to its car.
9629
1f163f28
MA
96302007-10-21 Michael Albinus <michael.albinus@gmx.de>
9631
9632 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9633
db3534c3
JB
96342007-10-20 Juanma Barranquero <lekktu@gmail.com>
9635
9636 * doc.c (Fdocumentation): Check for advice in all cases.
9637
c6f18a07
CY
96382007-10-19 Chong Yidong <cyd@stupidchicken.com>
9639
9640 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9641
2a1534d3
RS
96422007-10-19 Richard Stallman <rms@gnu.org>
9643
9644 * doc.c (Fdocumentation): Check for and handle an advised function.
9645
7b82c3b6
JB
96462007-10-19 Juanma Barranquero <lekktu@gmail.com>
9647
9648 * process.c (Fset_process_filter): Doc fix.
9649
3278f20e
SM
96502007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9651
9652 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9653 which caused key-translation-map to applied repeatedly (thus breaking
9654 double-mode).
9655
99784d63
SM
96562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9658 * xselect.c (x_own_selection, x_handle_selection_clear)
9659 (x_clear_frame_selections):
9660 * w32menu.c (list_of_panes, list_of_items):
9661 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9662 * textprop.c (validate_plist, interval_has_all_properties)
9663 (interval_has_some_properties, interval_has_some_properties_list)
9664 (add_properties, text_property_list):
9665 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9666 * minibuf.c (Fassoc_string):
9667 * macselect.c (x_own_selection, x_clear_frame_selections)
9668 (Fx_disown_selection_internal):
9669 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9670 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9671
44bb704d
CY
96722007-10-17 Chong Yidong <cyd@stupidchicken.com>
9673
9674 * process.c: Link to libs for calling res_init() if available.
9675 (Fmake_network_process): Call res_init() before getaddrinfo or
9676 gethostbyname, if possible.
9677
d314756e
SM
96782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9679
2504022a
SM
9680 * lread.c (read1): Set pvectype for char_tables.
9681
19fa82b9
SM
9682 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9683 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9684 Add type checks.
9685 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9686
d314756e
SM
9687 * alloc.c (free_misc): Use XMISCTYPE.
9688 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9689
94b9aaa2
GM
96902007-10-17 Glenn Morris <rgm@gnu.org>
9691
9692 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9693 (syms_of_minibuf): Add Qcompletion_ignore_case.
9694 * dired.c (Qcompletion_ignore_case): Change to external.
9695 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9696 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9697 (Fread_file_name): Use it rather than intern'ing.
9698
9699 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9700 (Fread_coding_system): Ignore case of user input.
9701
da6658e8
YM
97022007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9703
9704 * xdisp.c (handle_display_prop): Ignore display specs after
9705 replacing one when string text is being replaced.
9706 (handle_single_display_spec): Pretend as if characters with display
9707 property haven't been consumed only when buffer text is being replaced.
9708
11fb4bdb
SM
97092007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
9710
9beb8baa
SM
9711 * xfns.c (Fx_create_frame, Fx_display_list):
9712 * window.c (window_fixed_size_p, enlarge_window)
9713 (shrink_window_lowest_first):
9714 * macterm.c (init_font_name_table):
9715 * macfns.c (Fx_create_frame, Fx_display_list):
9716 * lread.c (close_load_descs):
9717 * keyboard.c (read_char_x_menu_prompt):
9718 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
9719 * coding.c (code_convert_region_unwind): Test the type of an object
9720 rather than just !NILP before extracting data from it.
9721
d3f41ff5
SM
9722 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
9723
67ee9f6e
SM
9724 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
9725 (XMISCANY): New macro.
9726 (XMISCTYPE): Use it.
9727 (struct Lisp_Misc_Any): New type.
9728 (union Lisp_Misc): Use it.
9729 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
9730 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
9731 (find_symbol_value, set_internal, default_value, Fset_default)
9732 (Fmake_variable_buffer_local, Fmake_local_variable)
9733 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
9734 (Flocal_variable_if_set_p, Fvariable_binding_locus):
9735 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
9736 * alloc.c (allocate_buffer): Set the size and tag.
9737 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
9738 Use XMISCANY.
9739 (die): Follow the GNU convention for error messages.
9740 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
9741 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
9742 tag any more.
9743 (set_buffer_internal_1):
9744 * frame.c (store_frame_param):
9745 * eval.c (specbind):
9746 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
9747
11fb4bdb
SM
9748 * doc.c (Fsnarf_documentation): Simplify.
9749
decb374a
JB
97502007-10-14 Juanma Barranquero <lekktu@gmail.com>
9751
9752 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
9753 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
9754
b5a40ee7
SM
97552007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
9756
9757 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
9758
35277b03
JB
97592007-10-14 Juanma Barranquero <lekktu@gmail.com>
9760
9761 * eval.c (do_autoload): Don't save autoloads.
9762
9763 * data.c (Ffset): Save autoload of the function being set.
9764
35fdaa62
GM
97652007-10-07 John Paul Wallington <jpw@pobox.com>
9766
9767 * xfns.c (x_create_tip_frame): Set the `display-type' frame
9768 parameter before setting up faces.
9769
1ea40aa2
EZ
97702007-10-13 Eli Zaretskii <eliz@gnu.org>
9771
35fdaa62 9772 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
9773 * keyboard.c (append_tool_bar_item): Reformat last change.
9774
1ea40aa2
EZ
9775 * lisp.h (eabs): Rename from `abs'. All callers changed.
9776
35277b03 97772007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
9778
9779 * buffer.c (add_overlay_mod_hooklist):
9780 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
9781 * fontset.c (make_fontset):
9782 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
9783 (append_tool_bar_item):
9784 * macmenu.c (grow_menu_items):
35fdaa62 9785 * w32menu.c (grow_menu_items):
71d00ce4 9786 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 9787
bc82f120
EZ
97882007-10-13 Eli Zaretskii <eliz@gnu.org>
9789
9790 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
9791 selected frame'' on MSDOS).
9792
d57d5a78
MR
97932007-10-12 Martin Rudalics <rudalics@gmx.at>
9794
9795 * frame.c (Qexplicit_name): New variable.
9796 (x_report_frame_params): Report it in parameter alist.
9797 (syms_of_frame): Intern and staticpro it.
9798
35277b03 97992007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
9800
9801 * macfns.c (x_create_tip_frame): Set terminal for frame.
9802
c7a4b95b
SM
98032007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
9804
26f9c7b7
SM
9805 * frame.c (Qenvironment): Remove.
9806 (syms_of_frame) <Qenvironment>: Don't initialize.
9807 (Fdelete_frame): Don't treat the `environment' param specially.
9808 * frame.h (Qenvironment): Don't declare.
9809 * callproc.c (set_initial_environment): Don't set unused frame param.
9810
c7a4b95b
SM
9811 * frame.c (Fframe_with_environment): Remove.
9812 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 9813
c7a4b95b
SM
9814 * lisp.h (Fframe_with_environment): Don't declare.
9815
c86f7377
JB
98162007-10-10 Juanma Barranquero <lekktu@gmail.com>
9817
9818 * indent.c (indent_tabs_mode, last_known_column)
9819 (last_known_column_modified): Make static.
9820 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
9821
d1b3a122
KY
98222007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
9823
9824 * puresize.h (BASE_PURESIZE): Increase to 1170000.
9825
d57d5a78
MR
98262007-10-09 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32term.c (x_set_window_size): Disable code that attempts to tell
9829 Lisp code about a size change before it actually happens.
9830
81d3d428 98312007-10-09 Richard Stallman <rms@gnu.org>
91175673 9832
81d3d428
MB
9833 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
9834 return HANDLED_RETURN.
91175673 9835
1af74d06 98362007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 9837
1af74d06
MB
9838 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
9839 when there's an unread command event.
e0fead5d 9840
c7a4b95b 9841 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
9842 window autoselection act appropriately when leaving selected frame.
9843 (syms_of_frame): Initialize focus_follows_mouse.
9844 * frame.h (focus_follows_mouse): Extern it.
9845 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 9846 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
9847 * msdos.c (dos_rawgetc): Likewise.
9848 * w32term.c (w32_read_socket): Likewise.
9849 * xterm.c (handle_one_xevent): Likewise.
9850 * xdisp.c (syms_of_xdisp): In doc-string of
9851 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 9852
1af74d06 98532007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 9854
1af74d06
MB
9855 * macterm.c (mac_load_query_font): Fix missing return value.
9856 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
9857 Add BLOCK_INPUT.
c186cdb3 9858
1af74d06 98592007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 9860
1af74d06
MB
9861 * xdisp.c (get_window_cursor_type): Implement documented behavior
9862 for cursor-in-non-selected-windows = t.
c186cdb3 9863
1af74d06 98642007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 9865
1af74d06 9866 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 9867
1af74d06 98682007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9869
1af74d06 9870 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9871
1af74d06 9872 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9873
1af74d06 98742007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9875
c7a4b95b 9876 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9877
1af74d06 98782007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9879
1af74d06 9880 * buffer.c (Foverlays_at): Doc fix.
036e218d 9881
1af74d06 98822007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9883
1af74d06 9884 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9885
1af74d06 98862007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9887
1af74d06 9888 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9889
1af74d06 9890 * frame.h (enum): Remove trailing comma.
90647b07 9891
8993ad2e 98922007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 9893
1af74d06 9894 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9895
1af74d06 98962007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9897
1af74d06 9898 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9899
1af74d06
MB
9900 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9901 last-repeatable-command.
9902 (init_kboard): Initialize Vlast_repeatable_command.
9903 (command_loop_1): Set it to real_this_command unless that was
9904 bound to an input event.
9905 (mark_kboards): Mark it.
9fbc32aa 9906
1af74d06 99072007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9908
1af74d06 9909 * eval.c (condition-case): Doc fix.
9fbc32aa 9910
1af74d06 99112007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9912
1af74d06
MB
9913 * xfaces.c (tty_supports_face_attributes_p): Fix code
9914 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9915 was copied and not edited.
9fbc32aa 9916
beb9f745
SM
99172007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9918
c86f7377 9919 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9920 escape sequences.
9921 * keyboard.h (struct kboard): Add Vinput_decode_map.
9922 Remove Vlocal_key_translation_map.
9923 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9924 (init_kboard): Init input-decode-map.
9925 Replace local-key-translation-map back with key-translation-map.
9926 (syms_of_keyboard): Declare input-decode-map.
9927 Remove local-key-translation-map. Update docstrings.
9928 (mark_kboards): Mark Vinput_decode_map.
9929 Don't mark Vlocal_key_translation_map.
9930 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9931 Replace local-key-translation-map back with key-translation-map.
9932 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9933 Bind in input-decode-map rather than function-key-map.
9934
beb9f745
SM
9935 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9936 This was made redundant by the previous introduction of XSETPVECTYPE.
9937
65342ae3
RS
99382007-10-09 Richard Stallman <rms@gnu.org>
9939
beb9f745 9940 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9941
99422007-09-29 Richard Stallman <rms@gnu.org>
9943
9944 * eval.c (internal_condition_case_2, internal_condition_case_1)
9945 (internal_condition_case): Reenable abort if x_catching_errors ()
9946 to see if that really happens and why.
9947
6cff77fd
AS
99482007-10-06 Andreas Schwab <schwab@suse.de>
9949
9950 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9951
bbe6f2aa
JB
99522007-10-04 Juanma Barranquero <lekktu@gmail.com>
9953
9954 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9955
a390930c
SM
99562007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9957
9958 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9959
d6aa1876
SM
99602007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9961
d0fdb6da
SM
9962 * window.h (struct window):
9963 * window.c (struct save_window_data, struct saved_window):
9964 * termhooks.h (struct terminal):
9965 * process.h (struct Lisp_Process):
9966 * frame.h (struct frame):
9967 * buffer.h (struct buffer):
9968 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9969 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9970 The size field of (pseudo)vectors is now unsigned.
9971 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9972
878f97ff
SM
9973 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9974 Turn `count' into an integer.
d0fdb6da 9975
878f97ff
SM
9976 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9977 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9978 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9979 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9980 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9981
d2029e5b
SM
9982 * alloc.c (allocate_pseudovector): New fun.
9983 (ALLOCATE_PSEUDOVECTOR): New macro.
9984 (allocate_window, allocate_terminal, allocate_frame)
9985 (allocate_process): Use it.
9986 (mark_vectorlike): New function.
9987 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9988 (mark_terminals): Use it.
9989 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9990 (Fmake_byte_code): Use XSETPVECTYPE.
9991
9992 * frame.c (Fframe_parameters): Minor simplification.
9993
9994 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9995
9996 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9997
9998 * buffer.c (Fget_buffer_create, init_buffer_once):
9999 * lread.c (defsubr):
10000 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10001
10002 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10003 defined differently in the m/*.h files.
10004 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10005 (XSETPVECTYPE): New macro.
10006 (XSETPSEUDOVECTOR): Use it.
10007
d6aa1876
SM
10008 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10009 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 10010
d6aa1876
SM
10011 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10012 * lread.c (defvar_per_buffer):
10013 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10014
10015 * window.c (candidate_window_p): Only consider as visible frames that
10016 are on the same terminal.
10017
10018 * m/ibms390x.h (MARKBIT): Remove unused macro.
10019
88852d45
JB
100202007-10-01 Juanma Barranquero <lekktu@gmail.com>
10021
10022 * lread.c (Fload): Fix typo in docstring.
10023
880820fe 100242007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
10025
10026 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10027 of a non-zero value can't yield zero.
10028
ed0c79c6
SM
100292007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10030
b870aa61
SM
10031 * term.c (term_clear_mouse_face, term_mouse_highlight)
10032 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10033
4c37a414
SM
10034 * print.c (safe_debug_print): Use XHASH.
10035
b9466edb
SM
10036 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10037 Lisp elements such as tags.
10038 (XHASH): New macro.
10039 (EQ): Use it.
10040 (SREF, SSET, STRING_COPYIN): Use SDATA.
10041 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10042
9c545a55
SM
10043 * alloc.c (mark_terminal): Remove left-over declaration.
10044 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10045 (allocate_vectorlike): Remove type argument. Adjust callers.
10046 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10047 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10048
dafc79fa
SM
10049 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10050 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10051 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10052 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10053 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10054 Use them.
10055
ed0c79c6
SM
10056 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10057 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10058 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10059
3c81afd4
DN
100602007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10061
10062 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10063 loaded by default.
10064
6178ce5e
SM
100652007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10066
4ce5ab77
SM
10067 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10068 on this tty.
10069 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10070
6178ce5e
SM
10071 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10072 Update all users.
10073 (handle_one_term_event): Use Gpm_DrawPointer.
10074 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10075 Signal errors instead of returning nil. Always return nil.
10076 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10077 Make it a noop if gpm-mouse was not activated.
10078 (syms_of_term): Update names.
10079
bdf5f8ef
SM
100802007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10081
75a8734b
SM
10082 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10083 (init_sys_modes): Check that gpm_tty is the current tty.
10084
13559ee0
SM
10085 * alloc.c (allocate_terminal): Set the vector size to only count the
10086 lisp fields. Initialize those to nil.
10087 (mark_object): Don't treat terminals specially.
10088 (mark_terminal): Remove.
10089 (mark_terminals): Use mark_object instead.
10090
ff16b875
SM
10091 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10092 the GC to the beginning.
10093
83155776
SM
10094 * indent.h:
10095 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10096
bdf5f8ef
SM
10097 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10098
ec8705b6
JR
100992007-09-25 Jason Rumney <jasonr@gnu.org>
10100
10101 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10102
10103 * w32console.c (create_w32cons_output): Remove.
10104
10105 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10106
10107 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10108 (reset_sys_modes): Use reset_terminal_modes_hook.
10109
7351b242
SM
101102007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10111
10112 * eval.c (do_autoload): Don't output any message.
10113
16706228
JL
101142007-09-24 Juri Linkov <juri@jurta.org>
10115
10116 * emacs.c (standard_args): Change priority of "--no-splash"
10117 from 40 to 3. Add "--no-desktop" with the same priority.
10118
3ae2e3a3
RS
101192007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10120
10121 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10122 and optimize the case where they are all 1.
10123
7a58fb43
GM
101242007-09-23 Johannes Weiner <hannes@saeurebad.de>
10125
3ae2e3a3
RS
10126 * lisp.h (abs): Define if not defined.
10127 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10128 Don't define `abs', since it's defined in lisp.h.
7a58fb43 10129
78048085
EZ
101302007-09-22 Eli Zaretskii <eliz@gnu.org>
10131
c7a4b95b 10132 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
10133 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10134 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10135 (init_tty): Use DEV_TTY instead of "/dev/tty".
10136 [WINDOWSNT]: No need to protect from NAME arg being null.
10137
23d4cba5
DN
101382007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10139
10140 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10141 up the tty state.
10142
71f44e7a
SM
101432007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10144
10145 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10146 (gpm_tty): Change its type.
10147 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10148 (gpm_tty): Change its type and initialize it.
10149 (Fterm_open_connection): Check the frame is indeed a tty.
10150 Use the new gpm_tty.
10151 (Fterm_close_connection): Use the new gpm_tty.
10152 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10153 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10154
def7fa34
JB
101552007-09-21 Juanma Barranquero <lekktu@gmail.com>
10156
10157 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10158 underline_color, to draw strike-through.
10159
d2bb6598
SM
101602007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10161
273f164c
SM
10162 * lisp.h (allocate_terminal): Declare.
10163
ca2d5566
SM
10164 * window.c (candidate_window_p): Consider frames that are being placed
10165 by the user as somewhere between visible and iconified.
10166 (window_loop): Prefer windows on the current frame.
10167 (Fselect_window): Move the use of select-frame to the beginning so we
10168 can just delegate all the work (it'll call us back anyway).
10169
6168122d
SM
10170 * frame.c (Qdisplay_environment_variable):
10171 * frame.h (Qdisplay_environment_variable): Delete.
10172
c51842ec
SM
10173 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10174 of the first arg, since that value may be a union.
10175
d2bb6598
SM
10176 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10177 parameter rather than Qdisplay_environment_variable. If all else
10178 fails, look for DISPLAY in initial-environment.
10179
6f022c19
GM
101802007-09-21 Glenn Morris <rgm@gnu.org>
10181
10182 * Makefile.in (emacstool): Remove target.
f466320b 10183 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10184
ea1bf8c7
GM
101852007-09-21 Markus Triska <markus.triska@gmx.at>
10186
d2bb6598 10187 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10188
d30a25b3
SM
101892007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10190
db699fc6
SM
10191 * callproc.c (getenv_internal_1): New function.
10192 (getenv_internal): Use it.
10193 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10194
d2bb6598 10195 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10196 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10197 (Fset_terminal_parameter): Work with dead terminals as well.
10198 (Fmodify_terminal_parameters): Remove.
10199
d30a25b3
SM
10200 * terminal.c (get_terminal): Handle terminals.
10201 Make sure the terminal returned is live.
10202 (create_terminal): Use allocate_terminal.
10203 (mark_terminals): Move to alloc.c.
10204 (delete_terminal): Use terminal->name as liveness status.
10205 NULL out fields after freeing their contents.
10206 Don't deallocate the object.
10207 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10208 rather than an int.
10209 (Fterminal_live_p): Accept non-integer arguments.
10210 (Fterminal_list): Return terminal objects rather than an ints.
10211
10212 * alloc.c (enum mem_type): New member for `terminal' objects.
10213 (allocate_terminal): New function.
d2bb6598
SM
10214 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10215 Handle terminals.
d30a25b3
SM
10216 (mark_terminal): New fun.
10217 (mark_terminals): Move from terminal.c.
10218
10219 * term.c (get_tty_terminal): Don't treat output_initial specially.
10220 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10221 (delete_tty): Use terminal->name as liveness status.
10222
10223 * termhooks.h (struct terminal): Make it into a pseudovector.
10224 Remove `deleted' replaced by checking `name's nullness.
10225
10226 * print.c (print_object): Handle terminals.
10227
10228 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10229 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10230
10231 * frame.c (make_terminal_frame):
10232 * keyboard.c (tty_read_avail_input):
10233 * w32term.c (x_delete_terminal):
10234 * xfns.c (Fx_create_frame, x_create_tip_frame):
10235 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10236
eba25e7c
GM
102372007-09-20 Glenn Morris <rgm@gnu.org>
10238
10239 * process.c (Fmake_network_process): Doc fix.
10240
2a29c3c1
JR
102412007-09-19 Jason Rumney <jasonr@gnu.org>
10242
10243 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10244
880820fe 102452007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10246
10247 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10248 Fix a C warning regarding variable constness.
10249
10250 * xterm.c (handle_one_xevent): Fix a C warning.
10251
334a1195
JR
102522007-09-18 Jason Rumney <jasonr@gnu.org>
10253
10254 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10255
880820fe 102562007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10257
10258 * gtkutil.c (gdpy_def): New variable.
10259 (xg_initialize): Initialize gdpy_def.
10260 (xg_display_close): If no other display exists, set gdpy_def to a
10261 new connection.
10262
880820fe 102632007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10264
10265 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10266 when we have no file name for the icon.
10267 (xg_tool_bar_expose_callback): Remove.
10268 (xg_create_tool_bar): Don't connect expose signal to
10269 xg_tool_bar_expose_callback.
10270 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10271
4d580af2
AS
102722007-09-16 Andreas Schwab <schwab@suse.de>
10273
10274 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10275 values instead of zapping them.
10276
aca946f3
GM
102772007-09-14 Glenn Morris <rgm@gnu.org>
10278
10279 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10280 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10281 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10282 scope and rename to omfib_buffer for clarity.
10283 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10284
25c460e5
KH
102852007-09-14 Kenichi Handa <handa@m17n.org>
10286
10287 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10288
09b69f01
JR
102892007-09-13 Jason Rumney <jasonr@gnu.org>
10290
10291 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10292
10293 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10294
10295 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10296 (mac_term_init): Call here instead, passing rif.
10297
442218db
GM
102982007-09-13 Glenn Morris <rgm@gnu.org>
10299
10300 * s/hpux.h: No longer define `static' as nothing.
10301
880820fe 103022007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
10303
10304 * callint.c (Fcall_interactively): Remove unused var `fun'.
10305
1971a872
RF
103062007-09-12 Romain Francoise <romain@orebokech.com>
10307
10308 * window.c (prefer_window_split_horizontally, display_buffer):
10309 Revert 2007-09-08 change.
10310
2d33f506
GM
103112007-09-12 Glenn Morris <rgm@gnu.org>
10312
585474ae 10313 * alloca.c: Remove file.
ca7af97a
GM
10314 * Makefile.in (alloca): Do not undef.
10315 (allocaobj, alloca.o): Remove.
10316 (otherobj): Remove allocaobj.
10317 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10318 * regex.c (C_ALLOCA): Remove all references and code that was only
10319 used when this was defined.
10320 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10321 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10322 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10323
2d33f506 10324 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10325
10326 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10327 (menu_grab_callback): All uses changed.
10328
10329 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10330 (x_reply_selection_request): All uses changed.
2d33f506 10331
18a4a65e
SM
103322007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10333
10334 * lread.c (load_warn_old_style_backquotes): Change message to look
10335 better when it appears in the middle of byte-compiler messages.
10336
47cc8819
DN
103372007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10338
b7ea0894
DN
10339 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10340
47cc8819
DN
10341 * xterm.c (x_create_terminal): Add comment.
10342
10343 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10344
5632bd0f
RS
103452007-09-10 Richard Stallman <rms@gnu.org>
10346
10347 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10348
880820fe 103492007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10350
4bca9161
MC
10351 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10352 (DEFUN): Document `intspec', use it instead of `prompt'.
10353
04724b69
MC
10354 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10355
8a6d230a
MC
10356 * data.c (Finteractive_form): If the interactive specification starts
10357 with a `(', use it as a Lisp form.
10358
09fbdf6c
MC
10359 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10360 name and file modes.
10361
ccb5c14f
MC
10362 * callint.c (Fcall_interactively): Comment fixes.
10363
023accd6
SM
103642007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10365
10366 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10367 and compiled functions.
10368
f26b9544
EZ
103692007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10370
10371 * window.c (prefer_window_split_horizontally): New variable.
10372 (display_buffer): Consider splitting window horizontally depending
10373 on prefer_window_split_horizontally.
10374
4d395425
EZ
103752007-09-08 Eli Zaretskii <eliz@gnu.org>
10376
97ddc760 10377 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10378
08c1d235
SM
103792007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10380
179cef48
SM
10381 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10382
08c1d235
SM
10383 * frame.c (x_set_frame_parameters): Check number is positive before
10384 using XFASTINT.
10385
10386 * window.c (freeze_window_start): Don't presume selected_window holds
10387 a window object.
92f94a12 10388 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10389
97ddc760 103902007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10391
10392 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10393
90ab5c62
SM
103942007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * window.c (Vsplit_window_preferred_function): New var.
10397 (Fdisplay_buffer): Use it.
10398 (syms_of_window): Export, and initialize it.
10399
1ab2cd43
TTN
104002007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10401
10402 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10403
0b0515bc
GM
104042007-09-06 Glenn Morris <rgm@gnu.org>
10405
57fd5c55 10406 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10407 * xselect.c (x_reply_selection_request) <cnt>: Move static
10408 variable to file scope.
10409
98594580
SM
104102007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10411
10412 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10413 consistent values of selected_frame and selected_window.
10414
0f4c7aef
JR
104152007-09-04 Jason Rumney <jasonr@gnu.org>
10416
10417 * w32console.c (initialize_w32_display): Zero unused hooks.
10418
e4019195
DN
104192007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10422 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10423
bce179b5
JR
104242007-09-04 Jason Rumney <jasonr@gnu.org>
10425
a0236551
JR
10426 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10427 in w32console.c. Set up input. Remove XXX comments that have been
10428 confirmed as correct.
10429
a4926668
JR
10430 * s/ms-w32.h (MULTI_KBOARD): Define.
10431
953bf0dc
JR
10432 * w32console.c (one_and_only_w32cons): Remove.
10433 (initialize_w32_display): Take terminal argument.
10434
10435 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10436 initialize_w32_display.
10437 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10438
bce179b5
JR
10439 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10440
10441 * keyboard.c (discard_mouse_events): Discard it.
10442 (make_lispy_event): Translate it to a lisp event.
10443 (lispy_wheel_names): Add wheel-left and right events.
10444 (syms_of_keyboard): Enlarge wheel_syms.
10445
10446 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10447 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10448
10449 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10450
10451 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10452 from WM_MOUSEHWHEEL.
10453 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10454
10455 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10456 terminal.
10457
10458 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10459 keyboard for the terminal.
10460
92cd6a7c
DN
104612007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10462
10463 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10464 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10465 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10466 and resume-tty-function to resume-tty-hook.
10467 (Fsuspend_tty, Fresume_tty): Use new names.
10468
880820fe 104692007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10470
10471 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10472 if it starts with "n:".
10473
880820fe 104742007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10475
10476 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10477
6b8e474c
SM
104782007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10479
92d9c1d4
SM
10480 * frame.h:
10481 * frame.c (Qterm_environment_variable): Remove.
10482 (syms_of_frame): Don't init and staticpro it.
10483
92d9c1d4
SM
10484 * callproc.c (getenv_internal): Remove special case for $TERM.
10485
6b8e474c
SM
10486 * callproc.c (Vinitial_environment): New variable.
10487 (set_initial_environment): Initialize it.
10488 (syms_of_callproc): Declare it.
10489 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10490 TERM under which a process runs is never related to the TERM in which
10491 Emacs is running.
10492
0f1444e1
DN
104932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10494
10495 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10496 * s/darwin.h: ... do it here.
10497
b8866860
SM
104982007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10499
10500 * lisp.h (set_initial_environment): Rename from set_global_environment.
10501
10502 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10503 removed by mistake on the multi-tty branch.
10504
10505 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10506 (Fmodify_frame_parameters): Return a value.
10507
10508 * image.c (png_load): Comment-out var only used in commented-out code.
10509
10510 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10511 before passing it to mark_object.
10512
10513 * xfaces.c (internal_resolve_face_name): Return a value.
10514 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10515
10516 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10517 (x_icon): Comment-out var only used in commented-out code.
10518
0a42be6d
RF
105192007-08-29 Romain Francoise <romain@orebokech.com>
10520
10521 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10522 QUIT hasn't been provided.
10523
8d9cc0b7
MB
105242007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10525
10526 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10527 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10528 (set_initial_environment): Initialise Vprocess_environment.
10529
10530 * config.in: Disable multi-keyboard support on a mac.
10531
10532 * frame.c (Qterm_environment_variable)
10533 (Qdisplay_environment_variable): New variables.
10534 (syms_of_frame): Intern and staticpro them.
10535 (Fmake_terminal_frame): Disable output method test.
10536
10537 * frame.h: Declare them here.
10538
10539 * macfns.c (x_set_mouse_color): Get rif from the frame.
10540 (x_set_tool_bar_lines): Don't use updating_frame.
10541 (mac_window): Add 2 new parameters for consistency with other systems.
10542 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10543 frame parameters following what is done in X11 and w32. Don't use
10544 FRAME_MAC_DISPLAY_INFO.
10545 (Fx_open_connection, start_hourglass): Remove window-system check.
10546 (x_create_tip_frame): Get the keyboard from the terminal.
10547
10548 * macmenu.c: Reorder includes.
10549 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10550
10551 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10552 terminal parameter.
10553 (x_clear_frame): Add a frame parameter.
10554 (note_mouse_movement): Get rif from the frame.
10555 (mac_term_init): Initialize the terminal.
10556 (mac_initialize): Make static and move terminal initialization ...
10557 (mac_create_terminal): ... to this new function.
10558
10559 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10560 (mac_initialize): Delete declaration.
8d9cc0b7 10561
381864b2 10562 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10563
10564 * sysdep.c: Comment out text after #endif.
10565
10566 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10567 is defined. Better initialize ttys in windows. Use terminal
10568 specific mouse_position_hook.
10569
10570 * termhooks.h (union display_info): Add mac_display_info.
10571
b8866860
SM
10572 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10573 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10574 frame parameters following what is done in X11.
10575
10576 * w32term.c (w32_initialize): Make static.
10577
10578 * xselect.c (x_handle_selection_clear): Only access
10579 terminal->kboard when MULTI_KBOARD is defined.
10580
10581 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10582 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10583
105842007-08-29 Jason Rumney <jasonr@gnu.org>
10585
10586 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10587 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10588
10589 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10590 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10591
10592 * keyboard.c (restore_kboard_configuration): Only define when
10593 MULTI_KBOARD defined.
10594
35277b03 10595 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10596 (OBJ1): Add terminal.$(O)
10597
b8866860
SM
10598 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10599 Don't define function body.
8d9cc0b7
MB
10600 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10601
10602 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10603
10604 * w32.c (request_sigio, unrequest_sigio): Remove.
10605
10606 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10607 (w32con_clear_frame, w32con_clear_end_of_line)
10608 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10609 (w32con_delete_glyphs, w32con_set_terminal_window)
10610 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10611 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10612 Add terminal arg.
8d9cc0b7
MB
10613 (PICK_FRAME): Remove.
10614 (w32con_write_glyphs): Use frame specific terminal coding.
10615 (one_and_only_w32cons): New global variable.
10616 (initialize_w32_display): Use it for storing hooks.
10617 (create_w32cons_output): New function.
10618
10619 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10620 arg a frame.
10621
b8866860
SM
10622 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10623 Set window_system.
8d9cc0b7
MB
10624 (x_set_tool_bar_lines): Don't use updating_frame.
10625 (Fx_create_frame): Set terminal and ref count.
10626 (Fx_open_connection): Remove window-system check.
10627
10628 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10629
10630 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10631 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10632 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10633 Add frame arg.
10634 (x_delete_terminal, w32_create_terminal): New functions.
10635 (w32_term_init): Create a terminal.
10636 (w32_initialize): Move terminal specific initialization to
10637 w32_create_terminal.
10638
b8866860 10639 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10640 (w32_clear_rect, w32_clear_area): Use background from frame.
10641 (w32_display_info): Add terminal.
10642 (w32_sys_ring_bell, x_delete_display): Declare here.
10643
10644 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10645
10646 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10647
106482007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10649
10650 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10651 Fix get_named_tty calls for the controlling tty.
10652
106532007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10654
10655 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10656
106572007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10658
10659 * term.c (tty_insert_glyphs): Add missing first parameter.
10660
880820fe 106612007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10662
b8866860
SM
10663 * buffer.c (Fbuffer_list, Fbury_buffer):
10664 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10665
10666 * cm.c (current_tty): New variable, for cmputc().
10667 (cmputc): Use it.
10668 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10669 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10670 (cmgoto): Add tty parameter. Pass it on to calccost().
10671 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10672
10673 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10674 tputs().
10675 (current_tty): New variable, for cmputc().
10676 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10677
10678 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10679 (internal_condition_case, internal_condition_case_1)
10680 (internal_condition_case_2): Don't abort when x_catching_errors.
10681
10682 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10683 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10684 prevent crashes caused by bogus longjmps in read_char.
10685
10686 * keymap.h (Fset_keymap_parent): Add EXFUN.
10687
10688 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10689 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10690 Remove redundant definition.
10691
b8866860
SM
10692 * macfns.c (x_set_mouse_color, x_make_gc):
10693 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10694
b8866860
SM
10695 * w32term.c (x_free_frame_resources):
10696 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10697 (w32_initialize): Use the accessor macros for terminal characteristics.
10698
10699 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10700 Use the accessor macros for terminal characteristics.
10701 * msdos.c (internal_terminal_init): Use the accessor macros for
10702 terminal characteristics.
b8866860
SM
10703 (ScreenVisualBell, internal_terminal_init):
10704 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10705
10706 * termopts.h (no_redraw_on_reenter): Declare.
10707
10708 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 10709 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 10710 (Fgarbage_collect): Call them.
03f06e5c 10711 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
10712
10713 * prefix-args.c: Include stdlib.h for exit.
10714
10715 * syssignal.h: Add comment.
10716
10717 * indent.c: Include stdio.h.
10718
10719 * window.h (Vinitial_window_system): Declare.
10720 (Vwindow_system): Delete declaration.
10721
10722 * fontset.c (Finternal_char_font): Use FRAME_RIF.
10723
10724 * image.c (lookup_image): Don't initialize `c' until the xasserts
10725 have been run.
10726
10727 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
10728 FRAME_FOREGROUND_PIXEL.
10729
10730 * print.c (print_preprocess): Don't lose print_depth levels while
10731 iterating.
10732
b8866860
SM
10733 * widget.c (update_from_various_frame_slots):
10734 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10735
10736 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
10737 frames.
10738 (window_internal_height): Remove bogus make_number call.
b8866860 10739 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
10740
10741 * fileio.c (Fread_file_name): Update comment.
10742
b8866860
SM
10743 * callint.c (Fcall_interactively):
10744 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
10745 Make sure it is correctly unwound.
10746
10747 * xsmfns.c (x_session_close): New function.
10748
03f06e5c 10749 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
10750 Delete declarations.
10751
10752 * xterm.h: Remove declaration for x_fully_uncatch_errors.
10753 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 10754 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 10755 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
10756
10757 * lread.c: Include setjmp.h. Update declaration of `read_char'.
10758 (read_filtered_event): Call `read_char' with a local
10759 `wrong_kboard_jmpbuf'.
10760
b8866860
SM
10761 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
10762 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
10763
10764 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
10765 systems.
10766
b8866860 10767 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 10768 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 10769 (Fset_quit_char): EXFUN.
03f06e5c 10770 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
10771 (init_sys_modes, reset_sys_modes): Update prototypes.
10772 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
10773
b8866860
SM
10774 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
10775 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 10776 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 10777 Delete declarations.
03f06e5c
JB
10778 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
10779 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
10780 New declarations.
10781
10782 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
10783 already does that during init_display(). Call syms_of_keymap
b8866860
SM
10784 before syms_of_keyboard. Call `syms_of_terminal'.
10785 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
10786 (shut_down_emacs): Call reset_all_sys_modes() instead of
10787 reset_sys_modes().
10788
10789 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
10790 (internal_resolve_face_name, resolve_face_name_error): New functions.
10791 (resolve_face_name): Protect against loops and errors thrown by Fget.
10792 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
10793 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
10794
10795 * scroll.c: Replace CURTTY() with local variables throughout the
10796 file (where applicable).
10797 (calculate_scrolling, calculate_direct_scrolling)
10798 (scrolling_1, scroll_cost): Use the accessor macros for terminal
10799 characteristics.
10800
10801 * keymap.c (Vfunction_key_map): Remove.
b8866860 10802 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
10803 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
10804 (Vkey_translation_map): Remove.
10805 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 10806 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
10807 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
10808 Update for terminal-local key-translation-map.
10809
10810 * Makefile.in (callproc.o): Update dependencies.
10811 (lisp, shortlisp): Add termdev.elc.
10812 (obj): Add terminal.o.
10813 (terminal.o): Add dependencies.
10814 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
10815 (data.o, fns.o): Add termhooks.h dependency.
10816 (SOME_MACHINE_LISP): Add dnd.elc.
10817 (minibuf.o): Fix typo.
10818 Update dependencies.
10819
10820 * data.c (do_symval_forwarding, store_symval_forwarding)
10821 (find_symbol_value): Use the selected frame's keyboard, not
10822 current_kboard.
10823
10824 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
10825 Vwindow_system.
10826
10827 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
10828 Fmenu_bar_open.
10829 (syms_of_xmenu): Update defsubr.
10830 (mouse_position_for_popup, Fx_popup_menu)
10831 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
10832 (set_frame_menubar, free_frame_menubar)
10833 (create_and_show_popup_menu, xmenu_show, )
10834 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
10835 an X frame.
10836
10837 * xselect.c (x_own_selection): Abort if not an X frame.
10838 (some_frame_on_display): Check if it is an X frame.
10839 (x_handle_selection_clear): Deal with MULTI_KBOARD.
10840
10841 * coding.c: Include frame.h and termhooks.h.
03f06e5c 10842 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
10843 (Fset_terminal_coding_system_internal)
10844 (Fset_keyboard_coding_system_internal)
10845 (Fkeyboard_coding_system)
03f06e5c
JB
10846 (Fterminal_coding_system): Add a terminal parameter.
10847 Get terminal_coding from the terminal.
8d9cc0b7
MB
10848 (init_coding_once): Don't call setup_coding_system here.
10849
10850 * dispextern.h (set_scroll_region, turn_off_insert)
10851 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
10852 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 10853 (delete_tty, updating_frame)
8d9cc0b7
MB
10854 (produce_special_glyphs, produce_glyphs, write_glyphs)
10855 (insert_glyphs): Remove.
10856 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 10857 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 10858 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
10859
10860 * frame.h (enum output_method): Add output_initial.
10861 (struct x_output): Delete.
b8866860
SM
10862 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10863 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
10864 (tty_display): Delete.
10865 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 10866 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
10867 (union output_data): Add tty.
10868 (FRAME_KBOARD): Get the kboard from the terminal.
10869 (FRAME_INITIAL_P): New macro.
10870 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10871 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10872 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10873 New declarations.
8d9cc0b7
MB
10874
10875 * termchar.h (tty_output, tty_display_info): New structures.
10876 (tty_list): Declare.
10877 (FRAME_TTY, CURTTY): New macros.
10878 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10879 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10880 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10881 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10882
10883 * callproc.c: Include frame.h and termhooks.h, for terminal
10884 parameters.
10885 (add_env): New function.
10886 (child_setup): Use it.
b8866860 10887 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10888 (getenv_internal): Fix get_terminal_param call.
10889 (Fgetenv_internal, egetenv): Update doc.
10890 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10891 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10892 strings.
10893 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10894 (getenv_internal): Add terminal parameter.
10895 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10896 (Fgetenv_internal): Add terminal parameter.
10897 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10898 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10899 (set_initial_environment): Rename from set_global_environment.
10900 Store Emacs environment in initial frame parameter.
10901
10902 * xdisp.c (redisplay_internal): Update references to
10903 `previous_terminal_frame'.
10904 (display_mode_line, Fformat_mode_line): Replace calls to
10905 `push_frame_kboard' with `push_kboard'.
10906 (get_glyph_string_clip_rects): Add extra parentheses and
10907 braces to prevent compiler warnings.
10908 (calc_pixel_width_or_height): Add xassert to check that the
10909 frame is alive. Don't call `lookup_image' on a termcap frame.
10910 (message2_nolog, message3_nolog, redisplay_internal)
10911 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10912 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10913 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10914 (Fx_display_pixel_width, Fx_display_pixel_height)
10915 (Fx_display_planes, Fx_display_color_cells)
10916 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10917 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10918 (Fx_display_backing_store, Fx_display_visual_class)
10919 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10920 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10921
10922 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10923 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10924 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10925 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10926 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10927 terminal that is being deleted.
10928 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10929 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10930 (Fx_close_connection, Fx_synchronize): Unify argument names with
10931 the rest of the DEFUNs.
10932
10933 * dispnew.c (Fsend_string_to_terminal): Update call to
10934 `get_tty_terminal'.
10935 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10936 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10937 FRAME_TERMCAP_P and FRAME_TTY.
10938 (window_change_signal): Don't believe width/height values that are
10939 impossibly small.
10940 (Vinitial_window_system): Rename from Vwindow_system.
10941 (termscript, Wcm, rif): Delete.
10942
10943 * termhooks.h (struct terminal): New struct containing the
10944 previously global text display hooks and new members NAME,
10945 DELETED and PARAM_ALIST.
10946 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10947 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10948 (FRAME_RIF): New macros.
10949 (get_terminal_param, get_device): New declarations.
10950 (termscript): Delete declaration.
10951
10952 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10953 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10954 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10955 FRAME_FOREGROUND_PIXEL.
10956 (x_fully_uncatch_errors): Disable definition.
10957 (x_scroll_bar_expose): Fix reference to foreground pixel.
10958 (XTread_socket): Disable loop on all X displays.
10959 (x_delete_terminal): Don't set terminal->deleted and let
10960 delete_terminal delete the frames on the terminal.
10961 (x_delete_display): Doc update to reflect changes in
10962 delete_terminal.
10963 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10964 (deleting_tty): Remove old variable.
10965 (Fsuspend_tty): Call clear_tty_hooks.
10966 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10967 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10968 errors on X frames.
10969 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10970 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10971 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10972 (XTset_terminal_modes, XTreset_terminal_modes)
10973 (XTread_socket, x_connection_closed, x_term_init)
10974 (x_term_init, x_delete_display): Add terminal parameter.
10975 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10976 X connections.
10977
bf380f53
GM
10978 * frame.c: Include termchar.h.
10979 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10980 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10981 (Qdisplay_environment_variable): New vars.
10982 (Fframep): Deal with output_initial.
10983 (Fframe-live-p): Doc fix.
10984 (Fwindow-system): New function.
8d9cc0b7
MB
10985 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10986 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10987 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10988 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10989 (Fmake_terminal_frame): Handle NULL tty names correctly.
10990 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10991 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10992 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10993 (Fframe_with_environment): New function.
b8866860 10994 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10995 (get_future_frame_param): New function.
10996 (Fmake_terminal_frame): Use it.
2d33f506 10997 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10998
10999 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11000 * sysdep.c (reset_sys_modes): Update for renames.
11001
11002 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 11003 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
11004 (syms_of_keyboard): Defsubr them.
11005 (Fset_input_meta_mode, Fset_quit_char): New functions.
11006 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
11007 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11008 parameter. Use it in call to `read_char'.
b8866860
SM
11009 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11010 Set wrong_kboard_jmpbuf correctly in recursive calls.
11011 Use current_kboard to access Vkeyboard_translate_table.
11012 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11013 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11014 Update longjmp invocations. Remember the original current_kboard,
11015 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11016 changes it. Comment out unnecessary calls to
11017 `record_single_kboard_state' and `any_kboard_state'.
11018 Update recursive calls.
8d9cc0b7
MB
11019 (wrong_kboard_jmpbuf): Remove global variable.
11020 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11021 Handle deleted interrupted_kboards correctly; that is a legal
11022 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 11023 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
11024 (any_kboard_state, single_kboard_state)
11025 (push_frame_kboard): Remove function.
11026 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
11027 been deleted. Remove unused variable. Help debugging by not
11028 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
11029 kboard of the selected frame when the stored kboard object has
11030 been deleted before pop_kboard.
11031 (temporarily_switch_to_single_kboard): Change first parameter to a
11032 frame pointer. Throw an error when caller wants to change kboards
11033 while in single_kboard mode. Don't push_kboard if we weren't in
11034 single kboard state. Don't pop_kboard if we popped into any
11035 kboard state.
11036 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11037 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11038 up single_kboard mode.
11039 (Frecursive_edit): Switch to single_kboard mode only in nested
11040 command loops.
b8866860
SM
11041 (cmd_error, command_loop, command_loop_1, timer_check):
11042 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11043 `record_single_kboard_state'.
11044 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11045 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11046 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11047 `fatal_error_signal'.
11048 (record_single_kboard_state): Don't push_kboard if we weren't in
11049 single kboard state. Don't pop_kboard if we popped into any
11050 kboard state.
11051 (push_frame_kboard): Rename to push_kboard.
11052 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11053 (read_avail_input): Read input from all terminals.
11054 (mark_kboards): Also mark Vkeyboard_translate_table.
11055 (kbd_buffer_store_event_hold): Simplify condition.
11056 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11057 (Vkeyboard_translate_table): Move to struct kboard.
11058 (init_kboard): Initialize Vkeyboard_translate_table.
11059 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11060 Vkeyboard_translate_table. Update doc strings. Update docs of
11061 local-function-key-map and function-key-map.
11062
11063 * terminal.c: New file.
11064
11065 * term.c: Include errno.h.
11066 (Vring_bell_function, device_list, initial_device)
11067 (next_device_id, ring_bell, update_begin, update_end)
11068 (set_terminal_window, cursor_to, raw_cursor_to)
11069 (clear_to_end, clear_frame, clear_end_of_line)
11070 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11071 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11072 (syms_of_term): Move their initialization to terminal.c.
11073 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11074 (Ftty_display_color_cells)
11075 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 11076 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
11077 (init_tty, maybe_fatal): New functions.
11078 (Ftty_type): Return nil if terminal is not on a tty instead of
11079 throwing an error. Doc update.
11080 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 11081 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
11082 (delete_tty): Use terminal->deleted.
11083 (tty_set_terminal_modes): Rename from set_terminal_modes.
11084 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11085 (set_scroll_region): Rename to `tty_set_scroll_region'.
11086 (turn_on_insert): Rename to `tty_turn_on_insert'.
11087 (turn_off_insert): Rename to `tty_turn_off_insert'.
11088 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11089 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11090 (toggle_highligh): Rename to `tty_toggle_highlight'.
11091 (background_highlight): Rename to `tty_background_highlight'.
11092 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11093 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11094 (tty_set_scroll_region, tty_background_highlight)
11095 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11096 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11097 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11098 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11099 Add static modifier.
11100 (tty_reset_terminal_modes, tty_set_terminal_window)
11101 (tty_set_scroll_region, tty_background_highlight)
11102 (tty_highlight_if_desired, tty_cursor_to)
11103 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11104 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11105 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11106 renames.
11107
880820fe 111082007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
11109
11110 * keyboard.c: Qrtl is new.
11111 (parse_tool_bar_item): Handle :rtl keyword.
11112 (syms_of_keyboard): Intern :rtl keyword.
11113
11114 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11115
11116 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11117 so no Lisp code is executed.
11118 (file_for_image, find_rtl_image): New functions.
1f204af3 11119 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
11120 (update_frame_tool_bar): If direction is RTL, use RTL image if
11121 defined. Use Gtk stock images if defined.
11122
83cc8d35
YM
111232007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11124
11125 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11126 for nonexistent or zero-width glyph in composition glyph.
11127
e60c4e15
SM
111282007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11129
d7e2a28f
SM
11130 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11131
e60c4e15
SM
11132 * xdisp.c (Finvisible_p): New function.
11133 (syms_of_xdisp): defsubr it.
11134
ee163e6d
JB
111352007-08-24 Juanma Barranquero <lekktu@gmail.com>
11136
11137 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11138 Doc fixes.
11139
90fa408d
YM
111402007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11141
35277b03 11142 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 11143
cac4219c
MR
111442007-08-24 Martin Rudalics <rudalics@gmx.at>
11145
11146 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11147 whether decoding has modified buffer contents.
11148
5fc9fdeb
JR
111492007-08-24 Jason Rumney <jasonr@gnu.org>
11150
11151 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11152 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11153 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11154 (init_svg_functions) [HAVE_NTGUI]: New function.
11155 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11156 (svg_load_image): Use them.
11157 (svg_load_image) [HAVE_NTGUI]: Implement background.
11158
93b23406
YM
111592007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11160
11161 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11162 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11163 (LIBX): Remove @RSVG_LIBS@.
11164 (LIBES): Add $(RSVG_LIBS).
11165
11166 * image.c (svg_load_image): Blend with specified background if exists.
11167 Use IMAGE_BACKGROUND. Add Mac OS Support.
11168
11169 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11170 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11171 Remove macros.
11172 [MAC_OSX] (socket_callback): Do nothing.
11173 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11174 ReceiveNextEvent.
11175 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11176 socket_callback.
11177 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11178
2467875c
GM
111792007-08-22 Glenn Morris <rgm@gnu.org>
11180
ff8da443 11181 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11182
4ab27a43
GM
111832007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11184
11185 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11186
666e0eda
GM
11187 * image.c: Add support for SVG images. Some additional comments
11188 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11189 (svg_image_p): New function to test for SVG image.
11190 (svg_load): New function to load SVG image.
11191 (svg_load_image): New function, helper for svg_load.
11192 (Qsvg): New Lisp_object.
11193 (svg_keyword_index): New enum.
11194 (svg_format): New static `image_keyword' struct.
11195 (svg_type): New static `image_type' struct.
11196 (librsvg/rsvg.h): Include it.
4ab27a43 11197
b636b4c1
SM
111982007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11199
11200 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11201
9ecb827b
SM
112022007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11203
1d064697
SM
11204 * lread.c (Qold_style_backquotes): New var.
11205 (syms_of_lread): Init and staticpro it.
11206 (load_warn_old_style_backquotes): New fun.
11207 (Fload): Use them to warn about old style backquotes.
11208 (end_of_file_error, Fload): Remove unused vars.
11209
5772ed4b
SM
11210 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11211
9ecb827b 11212 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11213 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11214 (read1): Set it when we find an old-style (back)quote.
11215
32e1c7b1
JR
112162007-08-22 Jason Rumney <jasonr@gnu.org>
11217
11218 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11219
b8fa755b
KY
112202007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11221
11222 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11223
1283140e
RS
112242007-08-19 Richard Stallman <rms@gnu.org>
11225
11226 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11227
2c4685ee
AS
112282007-08-19 Andreas Schwab <schwab@suse.de>
11229
11230 * alloc.c (pure): Round PURESIZE up.
11231
880820fe 112322007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11233
11234 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11235 active frame.
11236
6e33efc4
RS
112372007-08-16 Richard Stallman <rms@gnu.org>
11238
11239 * eval.c (Fcommandp): Add parens to clarify.
11240
11241 * minibuf.c (Fall_completions): Use enum for type of table.
11242
11243 * emacs.c (USAGE2): Improve text.
11244
fcf8ff2e
GM
112452007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11246
5205ee62
GM
11247 * term.c (tty_default_color_capabilities): Declare static
11248 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11249
880820fe 112502007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11251
11252 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11253 to gtk_toolbar_insert.
11254
4a181359
SM
112552007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11256
1bc99c9c
SM
11257 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11258
4a181359
SM
11259 * insdel.c (reset_var_on_error): New fun.
11260 (signal_before_change, signal_after_change):
11261 Use it to reset (after|before)-change-functions to nil in case of error.
11262 Bind inhibit-modification-hooks to t.
11263 Don't bind (after|before)-change-functions to nil while they run.
11264
6c28435c
YM
112652007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11266
11267 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11268 filling pixmap with stippled background.
11269
ad3b3e02
YM
112702007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11271
11272 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11273 Don't use invisible frame as parent window for repositioning.
11274
a22dec27
SM
112752007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11276
11277 * print.c (new_backquote_output): Rename from old_backquote_output.
11278 (print): Inverse its logic (according to its name) so as to match the
11279 behavior of new_backquote_flag in lread.c.
11280
7b7d07bb
YM
112812007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11282
11283 * gmalloc.c (posix_memalign): New function.
11284
11285 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11286 ActivateControl/DeactivateControl here.
11287 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11288 frame-notice-user-settings is non-nil.
11289 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11290 for kEventParamFMFontStyle.
11291 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11292 mac_pass_command_to_system and mac_pass_control_to_system here.
11293 (XTread_socket): Call ActivateControl/DeactivateControl here.
11294 (XTread_socket) [TARGET_API_MAC_CARBON]:
11295 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
11296 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11297 for window repositioning.
7b7d07bb 11298
22e9fe24
GM
112992007-08-08 Glenn Morris <rgm@gnu.org>
11300
11301 * Replace `iff' in doc-strings and comments.
11302
ae494350
CY
113032007-08-07 Chong Yidong <cyd@stupidchicken.com>
11304
11305 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11306
6f2528d8
MR
113072007-08-07 Martin Rudalics <rudalics@gmx.at>
11308
11309 * fileio.c (Finsert_file_contents): Run format-decode and
11310 after_insert_file_functions on entire buffer when REPLACE is
11311 non-nil and inhibit modification_hooks and point_motion_hooks.
11312 For consistency, run after_insert_file_functions iff something
11313 got inserted. Move signal_after_change and update_compositions
11314 after code running after_insert_file_functions. Make sure that
6b8e474c 11315 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11316
3ceeb306
YM
113172007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11318
11319 * emacs.c (main)
11320 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11321 Call malloc_enable_thread on interactive startup.
11322
11323 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11324 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11325 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11326 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11327 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11328 New functions.
11329
ca5e6fd5
CY
113302007-08-06 Chong Yidong <cyd@stupidchicken.com>
11331
32bfce5d
CY
11332 * xdisp.c (redisplay_window): When restoring original buffer
11333 position, make sure it is still valid.
11334
ca5e6fd5
CY
11335 * image.c (png_load): Ignore png-supplied background color.
11336
a5b11587
YM
113372007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11338
11339 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11340 Use kCFAbsoluteTimeIntervalSince1970.
11341
11342 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11343 New variable.
11344 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11345 event loop should be quit.
11346 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11347 Quit dialog event loop if quit_dialog_event_loop is set.
11348
11349 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11350 (Selection): New typedef. Use instead of ScrapRef.
11351 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11352 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11353 (mac_clear_selection): Rename from clear_scrap.
11354 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11355 scrap_has_target_type. All uses changed.
a5b11587
YM
11356 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11357 (mac_selection_has_target_p): New functions.
11358 (mac_put_selection_value): Rename from put_scrap_string.
11359 (mac_get_selection_value): Rename from get_scrap_string.
11360 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11361 (put_scrap_private_timestamp, scrap_has_target_type)
11362 (get_scrap_private_timestamp): Remove functions.
11363 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11364 (x_own_selection, x_get_local_selection):
11365 Use mac_valid_selection_value_p.
11366 (x_own_selection): Don't use put_scrap_private_timestamp.
11367 Record OWNERSHIP-INFO into Vselection_alist instead.
11368 (x_get_local_selection): Don't check type if request is local.
11369 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11370 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11371
880820fe 113722007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11373
11374 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11375 add comment explaining why.
11376
73ff9d42
RS
113772007-08-03 Richard Stallman <rms@gnu.org>
11378
11379 * fileio.c (Fvisited_file_modtime): Use make_time.
11380
54ed9a2d 113812007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11382
11383 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11384 build.
11385
65a9c8e2
SM
113862007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11387
11388 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11389
c5925799
KY
113902007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11391
11392 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11393
adef3de7
RS
113942007-07-30 Richard Stallman <rms@gnu.org>
11395
11396 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11397
880820fe 113982007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11399
11400 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11401
a10421a1
NR
114022007-07-28 Nick Roberts <nickrob@snap.net.nz>
11403
11404 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11405 remote default-directory.
11406
11407 * buffer.c (mode-line-format): Update doc string.
11408
0cb1ae20
YM
114092007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11410
11411 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11412 scroll bar gap.
11413 (x_scroll_bar_create): Set bar->fringe_extended_p.
11414 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11415 on frame edge. Check fringe background extension. Don't clear
11416 extended fringe background area.
11417
11418 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11419 (w32_fill_area): Enclose multiple statements with do ... while (0).
11420
11421 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11422 Extend fringe background to scroll bar gap.
11423 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11424 Set bar->fringe_extended_p.
11425 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11426 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11427 background extension. Don't clear extended fringe background area.
11428
11429 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11430 New member fringe_extended_p.
11431
cacc7b51
GM
114322007-07-25 Glenn Morris <rgm@gnu.org>
11433
11434 * Relicense all FSF files to GPLv3 or later.
11435
11436 * COPYING: Switch to GPLv3.
11437
89835619
SM
114382007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11439
c4f46926
SM
11440 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11441
11442 * data.c (Finteractive_form): Check for the presence of an
11443 `interactive-form' symbol property more thoroughly.
11444
11445 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11446 present, analogous to the function-documentation property.
11447
ee04257d
JR
114482007-07-24 Jason Rumney <jasonr@gnu.org>
11449
11450 * w32fns.c (x_real_positions): Get real position from OS instead of
11451 calculating it.
11452
50624218
JR
114532007-07-23 Jason Rumney <jasonr@gnu.org>
11454
11455 * filelock.c (current_lock_owner): Allow for @ sign in username.
11456
3650f60e
NR
114572007-07-22 Nick Roberts <nickrob@snap.net.nz>
11458
11459 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11460 remote default-directory.
11461
11462 * buffer.c (mode-line-format): Describe above case in doc string.
11463
1e899515 114642007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11465
75be5258
EZ
11466 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11467 Define if not defined.
11468
2b6e2f4d
JR
114692007-07-18 Jason Rumney <jasonr@gnu.org>
11470
11471 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11472
23dacf80
JB
114732007-07-18 Richard Stallman <rms@gnu.org>
11474
11475 * data.c (Fsetq_default): Doc fix.
11476
11477 * eval.c (Fsetq): Doc fix.
11478
114792007-07-18 Juanma Barranquero <lekktu@gmail.com>
11480
11481 * coding.c (Ffind_operation_coding_system):
11482 * eval.c (For, Fand): Doc fixes.
880820fe 11483 Reported by Johan Bockgård.
23dacf80 11484
880820fe 114852007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11486
23dacf80 11487 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11488
23dacf80 11489 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11490
11491 * xterm.c (x_ewmh_activate_frame): New function.
11492 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11493
71ec17e6
MR
114942007-07-17 Martin Rudalics <rudalics@gmx.at>
11495
11496 * window.c (Fdisplay_buffer): If largest or LRU window is the
11497 only window, split it even if it is not eligible for splitting.
11498 This restores the original behavior broken by the 2007-07-15
11499 change.
11500
e9818042
GM
115012007-07-17 Glenn Morris <rgm@gnu.org>
11502
11503 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11504 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11505 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11506 constituents. Doc fix.
11507
e6fca843
SM
115082007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11509
11510 * process.c (Fstart_process, Fmake_network_process)
11511 (read_process_output): Fix up last changes.
11512
b5d2b4ab
EZ
115132007-07-16 Eli Zaretskii <eliz@gnu.org>
11514
11515 * makefile.w32-in (clean): Don't delete *~.
11516
413a79ad
AS
115172007-07-16 Andreas Schwab <schwab@suse.de>
11518
11519 * window.c (Fdisplay_buffer): Use NILP.
11520 (Fset_window_scroll_bars): Likewise.
11521
f1de8c77
MR
115222007-07-15 Martin Rudalics <rudalics@gmx.at>
11523
11524 * window.c (window_min_size_2): New function.
11525 (window_min_size_1, size_window, Fdisplay_buffer)
11526 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11527 windows without mode- or header-lines when window-min-height is
11528 too small.
11529 (size_window): Reset nodelete_p after testing it, following an
11530 earlier note by Kim F. Storm.
11531 (display_buffer): Do not set split_height_threshold to twice the
11532 value of window_min_height to avoid changing the value of a
11533 customizable variable. Rather explicitly check whether the
11534 height of the window that shall be splitted is at least as large
11535 as split_height_threshold.
1af74d06
MB
11536 (Fwindow_full_width_p): New defun.
11537 (syms_of_window): Defsubr it.
d31053f9 11538
1af74d06 11539 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11540
5e1ab613
JR
115412007-07-14 Jason Rumney <jasonr@gnu.org>
11542
11543 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11544
f01cbfdd
RS
115452007-07-14 Richard Stallman <rms@gnu.org>
11546
11547 * eval.c (maybe_call_debugger): New function.
11548 (find_handler_clause): Use maybe_call_debugger.
11549 Call it when the handler says `debug'.
11550 Eliminate DEBUGGER_VALUE_PTR.
11551 (Fsignal): Eliminate debugger_value.
11552 (Qdebug): New variable.
11553 (syms_of_eval): Initialize it.
11554
1bab435a
JB
115552007-07-14 Juanma Barranquero <lekktu@gmail.com>
11556
11557 * eval.c (Fprogn):
11558 * keyboard.c (Ftrack_mouse):
11559 * print.c (Fwith_output_to_temp_buffer):
11560 * window.c (Fsave_window_excursion): Doc fix.
11561
be436d23
SM
115622007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11563
11564 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11565
60f0fb11
SM
115662007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11567
11568 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11569 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11570 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11571 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11572 Remove unused encoding_carryover.
11573 * process.c: Adjust all functions accordingly.
11574
d8b18043
RS
115752007-07-12 Richard Stallman <rms@gnu.org>
11576
11577 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11578
d5781bb6
JR
115792007-07-11 Jason Rumney <jasonr@gnu.org>
11580
11581 * makefile.w32-in (LIBS): Include OLE32.
11582
11583 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11584 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11585
5bb7dfee
SM
115862007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11589 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11590 from a Lisp_Object into a bare pointer.
11591 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11592 Adjust the code correspondingly.
11593
11594 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11595
11596 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11597 (term_show_mouse_face): Remove unused var `j'.
11598 (handle_one_term_event): Remove unused vars `i' and `j'.
11599 Don't cast return value of ttyname since it's not necessary.
11600
a1be1ce8
SM
116012007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11602
5045e68e
SM
11603 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11604 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11605
8071c00f
SM
11606 * fns.c (map_char_table): Use an array of int for `indices' rather than
11607 an array of Lisp_Objects (which are only ever integers anyway).
11608 (Fmap_char_table): Update caller.
11609 * lisp.h: Update prototype.
11610 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11611 * fontset.c (Ffontset_info):
11612 * casetab.c (set_case_table): Update callers.
11613
11614 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11615
fab84e3c
SM
11616 * keymap.c (struct accessible_keymaps_data)
11617 (struct where_is_internal_data): New structures.
11618 (accessible_keymaps_1, where_is_internal_1): Use them to change
11619 interface to adhere to the one used by map_keymap.
11620 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11621 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11622
a1be1ce8
SM
11623 * keymap.h (map_keymap_function_t): More informative prototype.
11624
ef887810
RS
116252007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11626
11627 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11628 (looking_at_1): Don't change search_regs and last_thing_searched
11629 if `inhibit-changing-match-data' is non-nil.
11630 (string_match_1, search_buffer, set_search_regs): Likewise.
11631 (syms_of_search): Add Lisp level definition for
11632 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11633 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11634 start and end of the match, instead of using values in search_regs.
ef887810 11635
4d02fc25
SM
116362007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11637
11638 * minibuf.c (Fcompleting_read): New value `confirm-only'
11639 for `require-match'.
11640
fe45b81f
SM
116412007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11644 part of the 2007-06-27 change to syms_of_fileio.
11645
a56dd283
YM
116462007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11647
11648 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11649 Check WINDOWP before using XWINDOW. Consolidate return statements.
11650
0cf9f5b5
RS
116512007-06-27 Richard Stallman <rms@gnu.org>
11652
11653 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11654
a66f285a
JB
116552007-06-27 Juanma Barranquero <lekktu@gmail.com>
11656
11657 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11658
8d0d84d2
YM
116592007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11660
11661 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11662 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11663 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11664 (_free_internal, memalign): Use them.
11665 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11666 Initialize to PTHREAD_MUTEX_INITIALIZER.
11667 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11668 (morecore_nolock): Rename from morecore. All uses changed.
11669 Use only nolock versions of internal allocation functions.
11670 (_malloc_internal_nolock, _realloc_internal_nolock)
11671 (_free_internal_nolock): New functions created from
11672 _malloc_internal, _realloc_internal, and _free_internal.
11673 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11674 Copy hook value to automatic variable before its use.
11675 (memalign): Copy hook value to automatic variable before its use.
11676
5a0bbd9a
KH
116772007-06-26 Kenichi Handa <handa@m17n.org>
11678
11679 * coding.c (Ffind_operation_coding_system): Docstring improved.
11680 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11681
9a51747b
DK
116822007-06-25 David Kastrup <dak@gnu.org>
11683
11684 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11685 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11686 cater for additional parameter.
11687
11688 * keymap.h: Adjust number of parameters to `current-active-maps'.
11689
11690 * doc.c (Fsubstitute_command_keys): Adjust call of
11691 `current-active-maps'.
11692
e4305426
DK
116932007-06-25 David Kastrup <dak@gnu.org>
11694
11695 * callint.c (Fcall_interactively): Make the parsing of interactive
11696 specs somewhat more readable.
11697
511a18d9
YM
116982007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11699
11700 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11701 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11702 if extended background has already been filled.
11703
512eb161
YM
117042007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11705
11706 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
11707 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
11708
11709 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
11710 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
11711 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
11712 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
11713 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
11714 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
11715 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
11716 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
11717 Run timers during dialog popup.
11718 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
11719
2386b1f1
JR
117202007-06-21 Jason Rumney <jasonr@gnu.org>
11721
11722 * image.c (convert_mono_to_color_image): Swap fore and background.
11723
fab8b787
JR
117242007-06-20 Jason Rumney <jasonr@gnu.org>
11725
11726 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
11727 (w32_free_bdf_font): Unmap memory not handle.
11728
15bdd7a0 117292007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
11730
11731 * gmalloc.c (__morecore): Fix the declaration to comply with the
11732 definition.
11733
1bb8a291
JB
117342007-06-20 Juanma Barranquero <lekktu@gmail.com>
11735
11736 * w32term.c (w32_delete_display): Remove leftover declaration.
11737 (w32_define_cursor, w32_initialize): Make static.
11738
11739 * w32.c (_wsa_errlist): Fix typo in error message.
11740 (init_environment): Ignore any environment variable from the
11741 registry having a null value.
11742
92648dea
GM
117432007-06-20 Glenn Morris <rgm@gnu.org>
11744
11745 * Makefile.in (LIBGIF): Default to -lgif.
11746
ff25d115
JR
117472007-06-17 Jason Rumney <jasonr@gnu.org>
11748
11749 * w32menu.c (add_menu_item): Don't use multibyte string functions on
11750 unicode strings.
11751
a1a578a5
JB
117522007-06-16 Juanma Barranquero <lekktu@gmail.com>
11753
11754 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
11755 Fix typo in docstring.
11756
af41f8a8
EZ
117572007-06-16 Eli Zaretskii <eliz@gnu.org>
11758
11759 * w32menu.c (add_menu_item): Escape `&' characters in menu items
11760 and their keybindings.
11761
8b29cab9
CY
117622007-06-15 Chong Yidong <cyd@stupidchicken.com>
11763
11764 * composite.c (update_compositions): Fix last fix.
11765
c433c134
JR
117662007-06-14 Jason Rumney <jasonr@gnu.org>
11767
11768 * w32.c (get_process_times_fn): New function pointer.
11769 (globals_of_w32): Intialize it if present in kernel32.dll.
11770 (w32_get_internal_run_time): New function.
11771
11772 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
11773
553d3164
KH
117742007-06-14 Kenichi Handa <handa@etlken.m17n.org>
11775
11776 * composite.c (update_compositions): Check the validness of
11777 compositions.
11778
446ba96f
YM
117792007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11780
11781 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
11782 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
11783
11784 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
11785 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
11786
11787 * macgui.h (USE_MAC_TOOLBAR): New define.
11788
11789 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11790 Return immediately unless popup is activated.
11791
11792 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
11793 background to scroll bar gap.
11794 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
11795 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
11796 scroll bars on frame edge. Check fringe background extension.
11797 Don't clear extended fringe background area.
11798 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
11799 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
11800 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
11801 [USE_MAC_TOOLBAR]: New macros.
11802 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
11803 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
11804 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
11805 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
11806 [USE_MAC_TOOLBAR]: New functions.
11807 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
11808 manually if previous repositioning has failed.
11809 (mac_handle_keyboard_event): Use precomputed event kind.
11810 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
11811 as tool bar item click. Handle mouse movement over tool bar items.
11812
11813 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
11814 toolbar_win_gravity.
11815 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
11816 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
11817 Add externs.
11818
11819 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
11820 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
11821
9720173f
CY
118222007-06-14 Chong Yidong <cyd@stupidchicken.com>
11823
11824 * image.c (search_image_cache): Remove unused variable.
11825
1217dd00
CY
118262007-06-13 Chong Yidong <cyd@stupidchicken.com>
11827
11828 * xfns.c, xmenu.c: Link to xaw3d if available.
11829
c5b8e0ea
YM
118302007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11831
11832 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
11833 frame_foreground and frame_background.
11834
11835 * image.c (lookup_image): Save frame foreground and background colors.
11836 (search_image_cache): Check if saved and current frame colors match.
11837
c69b0314
SM
118382007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11839
11840 * regex.c (regex_compile): Remove the `regnum' counter.
11841 Use bufp->re_nsub instead. Add support for \(?N:RE\).
11842
c9612b8e
SM
118432007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11844
11845 * term.c: Include intervals.h to declare Fget_text_property.
11846
843d2458
JR
118472007-06-10 Jason Rumney <jasonr@gnu.org>
11848
11849 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
11850
1e0d2d60 118512007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
11852
11853 * callint.c (Fcall_interactively):
11854 * editfns.c (Fdelete_and_extract_region):
11855 * fileio.c (Fread_file_name):
11856 * fns.c (Fmapconcat):
11857 * keyboard.c (cmd_error_internal):
11858 * keymap.c (Fkey_description):
11859 * lread.c (openp):
11860 * minibuf.c (read_minibuf):
11861 * search.c (wordify):
11862 * sunfns.c (sel_read):
11863 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
11864 * xfns.c (x_default_scroll_bar_color_parameter):
11865 * xmenu.c (menu_help_callback):
11866 * xselect.c (Fx_get_atom_name):
11867 * xterm.c (x_term_init): Use empty_unibyte_string.
11868
15bdd7a0 118692007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11870
11871 * alloc.c (init_strings): Initialize canonical empty strings.
11872 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11873 canonical empty string when the requested size is 0.
11874
11875 * emacs.c (empty_unibyte_string): Rename from empty_string.
11876 (empty_multibyte_string): New canonical empty string.
11877 (syms_of_emacs): Don't initialize empty_string.
11878
11879 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11880 string, if appropriate.
11881 (empty_unibyte_string, empty_multibyte_string): New externs.
11882 (empty_string): Remove extern.
11883
11884 * lread.c (syms_of_lread): Use empty_unibyte_string.
11885
42c4c67a
JR
118862007-06-07 Jason Rumney <jasonr@gnu.org>
11887
11888 * s/ms-w32.h: Don't define HAVE_TZNAME.
11889
11890 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11891
aa8280d3
YM
118922007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11893
11894 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11895
11896 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11897 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11898
11899 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11900 Don't call next handler.
11901 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11902 Remove argument. Install handler to application.
11903 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11904 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11905 FRAME_OUTER_TO_INNER_DIFF_Y.
11906 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11907 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11908 [HAVE_DIALOGS]: New macros.
11909 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11910 Use them.
11911 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11912
11913 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11914 init_service_handler. All callers changed. Return OSStatus value.
11915
11916 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11917 All callers changed so as not to call SetPortWindowPort.
11918 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11919 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11920 mac_draw_string_common.
11921 (mac_draw_image_string_qd): Likewise.
11922 (mac_draw_string_common): Use them. Add INLINE.
11923 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11924 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11925 GetGlobalMouse.
11926 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11927 and FRAME_OUTER_TO_INNER_DIFF_Y.
11928 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11929 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11930 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11931 repositioning window to mac_handle_window_event.
11932 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11933 saving window location to mac_handle_window_event
11934 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11935 (install_menu_target_item_handler): Remove argument in extern.
11936 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11937 Also accept command events.
11938 (do_keystroke): New function created from XTread_socket.
11939 (init_command_handler): Remove functions.
11940 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11941 and save window location by kEventWindowShowing and kEventWindowHiding
11942 handlers here. Don't call next handler for window state change and
11943 focus events.
11944 (mac_handle_application_event, mac_handle_keyboard_event)
11945 [TARGET_API_MAC_CARBON]: New functions.
11946 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11947 kEventWindowShowing and kEventWindowHiding events. Move installation
11948 of mouse, font, text input and menu target item handlers to
11949 install_application_handler.
11950 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11951 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11952 New function.
11953 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11954 Register it.
c9612b8e
SM
11955 (XTread_socket) [TARGET_API_MAC_CARBON]:
11956 Consolidate SendEventToEventTarget calls.
11957 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11958 Move application activation handler to mac_handle_application_event.
11959 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11960 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11961 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11962 init_command_handler. Call install_application_handler.
11963
11964 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11965 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11966
6926c954
GM
119672007-06-07 Glenn Morris <rgm@gnu.org>
11968
11969 * emacs.c (main): Use `emacs-copyright' in --version output.
11970
6fe04c89
CY
119712007-06-06 Chong Yidong <cyd@stupidchicken.com>
11972
c9612b8e 11973 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11974
7eb0d727
YM
119752007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11976
11977 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11978
11979 * macgui.h: Replace WindowPtr with WindowRef.
11980
11981 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11982 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11983 Replace ControlHandle with ControlRef.
11984 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11985
11986 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11987 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11988 Replace ControlHandle with ControlRef.
11989 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11990 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11991
11992 * macterm.h (struct scroll_bar): Rename member control_handle_low
11993 and control_handle_high to control_ref_low and control_ref_high.
11994 All uses changed.
11995 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11996 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11997 respectively. All uses changed.
11998 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11999 (install_window_handler, remove_window_handler): Replace WindowPtr
12000 with WindowRef in externs.
12001
65fddb74
JB
120022007-06-05 Juanma Barranquero <lekktu@gmail.com>
12003
12004 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12005
db1213a9
NR
120062007-06-03 Nick Roberts <nickrob@snap.net.nz>
12007
12008 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12009
65fddb74 12010 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
12011 Condition on HAVE_GPM too.
12012
12013 * term.c (term_mouse_highlight): Remove unused variables.
12014 (Fterm_open_connection): Set gpm_zerobased to 1.
12015 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12016 Use zero based co-ordinates.
12017 (handle_one_term_event): Report a drag as mouse movement too.
12018
12019 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12020
d94df25b
CY
120212007-06-03 Chong Yidong <cyd@stupidchicken.com>
12022
12023 * image.c (search_image_cache): New function. Require background
12024 color match if background color is unspecified in the image spec.
12025 (uncache_image, lookup_image): Use it.
12026
4797b6d9
JB
120272007-06-01 Juanma Barranquero <lekktu@gmail.com>
12028
12029 * window.c (Fshrink_window): Reflow docstring.
12030
1ffe7343
NR
120312007-06-02 Chong Yidong <cyd@stupidchicken.com>
12032
12033 * Version 22.1 released.
12034
120352007-06-01 Richard Stallman <rms@gnu.org>
12036
12037 * xfns.c (x_encode_text): Add GCPRO.
12038
120392007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12040
12041 * xfns.c (x_set_name_internal): Save encoded name before
12042 x_encode_text in case string data is relocated.
12043
120442007-05-31 Richard Stallman <rms@gnu.org>
12045
12046 * buffer.c (syms_of_buffer): Doc fix.
12047
120482007-05-30 Nick Roberts <nickrob@snap.net.nz>
12049
12050 * sysdep.c (init_sys_modes): Add rather than replace with
12051 O_NONBLOCK.
12052
12053 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12054 term_mouse_moveto.
12055
12056 * termhooks.h (term_mouse_moveto): New extern.
12057
12058 * term.c (mouse_face_window): Rename...
12059 (Qmouse_face_window): ...to this.
12060 (term_show_mouse_face, term_clear_mouse_face)
12061 (term_mouse_highlight): Use Qmouse_face_window.
12062 (term_mouse_moveto): New function.
12063 (term_mouse_position): Make it work.
12064 (syms_of_term): Uncomment assignment to mouse_position_hook.
12065 Staticpro Qmouse_face_window.
12066
120672007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12068
12069 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12070 around current_column call.
12071
120722007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12073
12074 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12075 * xdisp.c (next_element_from_buffer):
12076 * window.c (delete_window):
12077 * term.c (term_mouse_highlight):
12078 * msdos.c (getdefdir):
12079 * macterm.c (mac_create_bitmap_from_bitmap_data)
12080 (init_font_name_table):
12081 * fns.c (Fsxhash):
12082 * data.c (Fmake_local_variable):
12083 * ccl.c (ccl_driver): Likewise.
12084
120852007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12086
12087 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12088 Call mac_wakeup_from_rne on window size change.
12089
120902007-05-25 Chong Yidong <cyd@stupidchicken.com>
12091
12092 * image.c (uncache_image): Fix typo.
12093
120942007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12095
12096 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12097
120982007-05-22 Richard Stallman <rms@gnu.org>
12099
12100 * xterm.c (x_connection_closed): Remove NO_RETURN.
12101
121022007-05-22 Martin Rudalics <rudalics@gmx.at>
12103
12104 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12105
121062007-05-21 Chong Yidong <cyd@stupidchicken.com>
12107
12108 * image.c (uncache_image): New function.
12109 (Fimage_refresh): New function.
12110
880820fe 121112007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12112
12113 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12114
121152007-05-20 Nick Roberts <nickrob@snap.net.nz>
12116
12117 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12118 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12119
121202007-05-20 Nick Roberts <nickrob@snap.net.nz>
12121
12122 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12123 conditional on [HAVE_GPM_H].
12124
121252007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12126
12127 * syntax.c (skip_chars): Update syntax-table only after we checked that
12128 the new location is valid.
12129
121302007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12131
12132 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12133 mac_get_window_bounds.
12134
121352007-05-20 Nick Roberts <nickrob@snap.net.nz>
12136
12137 * Makefile.in (LIBGPM): Allow it to be set from configure.
12138 If set then link Emacs with it.
12139
12140 * config.in: Regenerate.
12141
12142 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12143 New externs.
12144
12145 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12146 Include gpm.h.
12147 (handle_one_term_event, term_gpm): New externs.
12148
12149 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12150 and allow it to be interrupted by SIGIO.
12151
12152 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12153 (wait_reading_process_output): Wait on gpm_fd too.
12154 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12155 (add_gpm_wait_descriptor_called_flag): New variable.
12156 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12157
12158 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12159 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12160 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12161 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12162 (make_lispy_event): Add case GPM_CLICK_EVENT.
12163 (read_avail_input): Handle mouse input.
12164
12165 * term.c (write_glyphs_with_face): New function.
12166 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12167 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12168 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12169 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12170 (last_mouse_x, last_mouse_y): New variables.
12171 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12172 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12173 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12174 (Fterm_close_connection): New functions.
12175 (term_init): Initialise mouse_face_window.
12176
121772007-05-19 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * xdisp.c (redisplay_window): If first window line is a
12180 continuation line, recompute the new window start instead of
12181 recentering.
12182
121832007-05-18 Glenn Morris <rgm@gnu.org>
12184
12185 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12186 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12187
121882007-05-17 Glenn Morris <rgm@gnu.org>
12189
12190 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12191
121922007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12193
12194 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12195 dead key repeat and up events.
12196
121972007-05-14 Chong Yidong <cyd@stupidchicken.com>
12198
12199 * image.c (pbm_load): Check image size for monochrome pbm.
12200
122012007-05-13 Chong Yidong <cyd@stupidchicken.com>
12202
12203 * xterm.c (XTread_socket): Revert last change.
12204
122052007-05-12 Chong Yidong <cyd@stupidchicken.com>
12206
12207 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12208
12209 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12210
122112007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12212
12213 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12214 mixup (YAILOM).
12215
122162007-05-07 Andreas Schwab <schwab@suse.de>
12217
12218 * keymap.c (Flookup_key): Fix typo in last change.
12219
122202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12221
12222 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12223 mapping for unibyte strings.
12224
122252007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12226
12227 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12228 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12229
122302007-04-29 Richard Stallman <rms@gnu.org>
12231
12232 * insdel.c (replace_range): For undo, record insertion first.
12233
122342007-04-29 Andreas Schwab <schwab@suse.de>
12235
12236 * lisp.h (VECSIZE): Use OFFSETOF.
12237
122382007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12239
12240 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12241 disabled lines.
12242
122432007-04-28 Richard Stallman <rms@gnu.org>
12244
12245 * lread.c (read_escape): In a string, \s is always space.
12246
880820fe 122472007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12248
12249 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12250
12251 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12252 submenu for menu bar items.
12253
382c648d 12254See ChangeLog.10 for earlier changes.
6922b018
KH
12255
12256;; Local Variables:
880820fe 12257;; coding: utf-8
33462dfa 12258;; add-log-time-zone-rule: t
6922b018 12259;; End:
2a34a036 12260
59ce725a 12261 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12262
12263 This file is part of GNU Emacs.
12264
5a1dde61 12265 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12266 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12267 the Free Software Foundation, either version 3 of the License, or
12268 (at your option) any later version.
7f6d64f8
GM
12269
12270 GNU Emacs is distributed in the hope that it will be useful,
12271 but WITHOUT ANY WARRANTY; without even the implied warranty of
12272 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12273 GNU General Public License for more details.
12274
12275 You should have received a copy of the GNU General Public License
5a1dde61 12276 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12277
28f60c3d 12278;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40