(font_find_for_lface): If registry is NULL, try iso8859-1 and ascii-0.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
17ab8f5d
JB
12008-06-13 Juanma Barranquero <lekktu@gmail.com>
2
3 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
4 <font-width-table>: Fix typos in docstrings.
5
d888760c
GM
62008-06-13 Daniel Engeler <engeler@gmail.com>
7
8 These changes add serial port access.
9 * process.c: Add HAVE_SERIAL.
10 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12 (list_processes_1, select_wrapper, Fstop_process)
13 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14 (status_notify): Modify to handle serial processes.
15 [HAVE_SERIAL] (Fserial_process_configure)
16 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
17 New functions.
18 * process.h (struct Lisp_Process): Add `type'.
19 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20 New functions.
21 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
22 serial ports.
23 (serial_open, serial_configure) New functions.
24 * w32.h: Add FILE_SERIAL.
25 (struct _child_process): Add ovl_read, ovl_write.
26
f4cc0153
KH
272008-06-13 Kenichi Handa <handa@m17n.org>
28
29 * dispextern.h (enum lface_attribute_index): New member
30 LFACE_FOUNDRY_INDEX.
31
32 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 33 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 34 style symbols.
7a18e381 35 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
36 order of font-driver to scores.
37 (font_list_entities): Don't check alternate_familes here.
38 (font_clear_prop): Handle foundry.
39 (font_update_lface): Don't parse "foundry-family" form here.
40 Handle FONT_FOUNDRY_INDEX.
41 (font_find_for_lface): Likewise. Handle alternate families here.
d0a47776 42 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 43 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 44 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
45 (free_font_driver_list): Delete it.
46 (font_update_drivers): Preserve the order of backends.
47 (syms_of_font): Setting of sort_shift_bits adjusted for the change
48 of font_score and font_sort_entites.
49 (font_update_sort_order): Likewise.
50
51 * xfaces.c (LFACE_FOUNDRY): New macro.
52 (check_lface_attrs): Check foundry.
7a18e381 53 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
54 (merge_face_vectors): Check foundry.
55 (merge_face_ref): Likewise.
56 (Finternal_set_lisp_face_attribute): Likewise.
57 (x_update_menu_appearance): Likewise.
58 (Finternal_get_lisp_face_attribute): Likewise.
59 (lface_hash): Likewise.
60 (lface_same_font_attributes_p): Likewise.
61 (x_supports_face_attributes_p): Likewise.
62 (tty_supports_face_attributes_p): Likewise.
63 (Finternal_set_alternative_font_family_alist): Intern strings.
64 (Finternal_set_alternative_font_registry_alist): Downcase strings.
65 (realize_default_face): Set LFACE_FOUNDRY (lface).
66
67 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
68 font-driver at first.
69
70 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
71
d434fef5 722008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
73
74 * lread.c (Fload): Use xfree, not free on saved_doc_string.
75
9c5e177e
JM
762008-06-12 Jim Meyering <meyering@redhat.com>
77
d434fef5 78 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
79 * unexmacosx.c (unexec_free): Ignore a NULL argument.
80
2afc21f5
SM
812008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * character.h (CHAR_TO_BYTE_SAFE): New macro.
84 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
85 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
86 (WEAK_ALIAS): Simplify.
87 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
88 when searching a unibyte buffer.
89
76c0de62
CY
902008-06-12 Chong Yidong <cyd@stupidchicken.com>
91
92 * xfns.c (Fx_select_font): Rename from x-font-dialog.
93
0500dcc9
JB
942008-06-12 Juanma Barranquero <lekktu@gmail.com>
95
96 * w32font.c: Include ctype.h.
97
f42adef6
JR
982008-06-11 Jason Rumney <jasonr@gnu.org>
99
2afc21f5
SM
100 * w32font.c (w32font_encode_char): Detect missing glyphs that are
101 misreported as space.
102 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
103 as aliases for registry iso10646-1.
f42adef6 104
4b7cdc0e
SM
1052008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * buffer.c (clone_per_buffer_values): Skip `name'.
108
cc02ebe1
CY
1092008-06-11 Chong Yidong <cyd@stupidchicken.com>
110
111 * font.c (font_parse_fcname): Fix last change; accept decimal
112 points in font size.
113
351ccb76
JR
1142008-06-10 Jason Rumney <jasonr@gnu.org>
115
0500dcc9
JB
116 * w32uniscribe.c (add_opentype_font_name_to_list):
117 Skip non unicode fonts.
351ccb76 118
f473ed6f
CY
1192008-06-10 Chong Yidong <cyd@stupidchicken.com>
120
121 * xfns.c (Fx_font_dialog): New function.
122
5d6333d5 123 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
124 xg_file_response_callback.
125 (pop_down_dialog): Rename from pop_down_file_dialog.
126 (xg_get_file_name): Callers changed.
127 (xg_get_font_name): New function.
128
5d6333d5 129 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 130
2a3bd2e1
SM
1312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
132
133 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
134 x_underline_minimum_display_offset.
135 (syms_of_xdisp): Declare it here rather than in xterm.c.
136 * dispextern.h (underline_minimum_offset): Declare it.
137 * w32term.c (x_draw_glyph_string): Use it.
138 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
139 (syms_of_xterm): Don't declare it any more.
140 (x_draw_glyph_string): Adjust to the new name.
141
d5dc6163
SM
1422008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
143
144 * xterm.c (x_underline_minimum_display_offset): New var.
145 (x_draw_glyph_string): Use it.
146 (syms_of_xterm): Declare it.
147
0abdd197
CY
1482008-06-10 Chong Yidong <cyd@stupidchicken.com>
149
150 * font.c (font_parse_fcname): Accept GTK-style font names too.
151
a1562258
SM
1522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
153
928b5acc
SM
154 * dired.c (file_name_completion): Don't return t if the match is exact
155 but with different capitalization.
156 * minibuf.c (Ftry_completion): Simplify.
157
a1562258
SM
158 * window.c (Vwindow_point_insertion_type): New var.
159 (set_window_buffer): Use it.
160 (syms_of_window): Init and export it to Lisp.
161
9552dbd1
KH
1622008-06-10 Kenichi Handa <handa@m17n.org>
163
164 * font.h (font_intern_prop): Prototype adjusted.
165
166 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
167 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
168 Adjust for the change of font_intern_prop.
9552dbd1 169
a1562258
SM
170 * ftfont.c (ftfont_pattern_entity):
171 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
172 (w32_registry):
173 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
174 the change of font_intern_prop.
175
8993ad2e
JB
1762008-06-09 Juanma Barranquero <lekktu@gmail.com>
177
178 * w32menu.c (digest_single_submenu): Declare extern.
179
0c2258fc
JR
1802008-06-09 Jason Rumney <jasonr@gnu.org>
181
a1562258 182 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 183
a1562258
SM
184 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
185 (parse_single_submenu): Remove.
186 (digest_single_submenu): Remove.
187 (syms_of_w32menu): Don't initialise variables that have moved
188 to menu.c.
189 (set_frame_menubar): Sync with version in xmenu.c.
190 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 191
8993ad2e
JB
192 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
193 Make static again.
0c2258fc 194
02246cb8
JR
1952008-06-09 Jason Rumney <jasonr@gnu.org>
196
8993ad2e
JB
197 Changes to w32 files related to the move of common menu code
198 to menu.c on 2008-06-08 by Chong Yidong.
199
200 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
201 defs to w32gui.h.
202 (single_keymap_panes, push_menu_item, push_menu_pane):
203 Make globally visible.
204
d434fef5
JB
205 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
206 (local_free, malloc_widget_value, free_widget_value)
207 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
208 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
209 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 210 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 211 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
212 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
213 (init_menu_items, finish_menu_items, discard_menu_items)
214 (grow_menu_items, push_submenu_start, push_submenu_end)
215 (push_left_right_boundary, push_menu_pane, push_menu_item)
216 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 217 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
218 (update_submenu_strings): Remove functions.
219 (xmalloc_widget_value): Remove and declare extern.
220
221 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
222 (OBJ1): Build it.
223
224 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
225 (local_heap, local_alloc, local_free, malloc_widget_value)
226 (free_widget_value): Define here.
02246cb8 227
9e1bb909
KH
2282008-06-09 Kenichi Handa <handa@m17n.org>
229
366664ad
KH
230 * font.h (Qascii_0): Extern it.
231
9e1bb909
KH
232 * font.c (Qascii_0): New variable.
233 (syms_of_font): DEFSYM it.
234 (font_open_by_name): If the registry "iso8859-1" fails, try also
235 "ascii-0".
236
237 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
238
b2ee479e
KH
2392008-06-08 Kenichi Handa <handa@m17n.org>
240
8f440b79 241 * .gdbinit (xfont): New command.
b2ee479e 242
01ef9d36
AS
2432008-06-08 Andreas Schwab <schwab@suse.de>
244
a4240420
AS
245 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
246 * Makefile.in (menu.o): Update dependencies.
247
0181bf66 248 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
249 * emacs.c (main): Always call syms_of_menu.
250 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
251
c07cbae6
CY
2522008-06-08 Chong Yidong <cyd@stupidchicken.com>
253
254 * Makefile.in: Compile menu.c.
255
256 * lisp.h: Declare syms_of_menu.
257
258 * emacs.c (main): Call syms_of_menu.
259
260 * keyboard.h: Relocate platform-independent menu definitions from
261 xmenu.c.
262
263 * menu.c: New file. Relocate platform-independent menu
904d8c69 264 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
265
266 * xmenu.c: Remove platform-independent menu definitions.
267 (menu_items menu_items_inuse, menu_items_allocated)
268 (menu_items_used, menu_items_n_panes)
269 (menu_items_submenu_depth): Move to keyboard.h.
270 (init_menu_items, finish_menu_items, unuse_menu_items)
271 (discard_menu_items, restore_menu_items, save_menu_items)
272 (grow_menu_items, push_submenu_start, push_submenu_end)
273 (push_left_right_boundary, push_menu_pane, push_menu_item)
274 (keymap_panes, single_keymap_panes, single_menu_item)
275 (list_of_panes, list_of_items, find_and_call_menu_selection)
276 (xmalloc_widget_value, free_menubar_widget_value_tree)
277 (parse_single_submenu, digest_single_submenu)
278 (update_submenu_strings): Move to menu.c.
279
4958ed94
SM
2802008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
281
282 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
283
408b8ab4
MB
2842008-06-06 Miles Bader <miles@gnu.org>
285
286 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
287 face, not frame default.
288
87478b52
SM
2892008-06-05 Martin Rudalics <rudalics@gmx.at>
290
291 * window.c (pop_up_windows, pop_up_frames)
292 (display_buffer_reuse_frames, Vpop_up_frame_function)
293 (Vdisplay_buffer_function, Veven_window_heights)
294 (Vspecial_display_buffer_names, Vspecial_display_regexps)
295 (Vspecial_display_function, Vsame_window_buffer_names)
296 (Vsame_window_regexps, split_height_threshold)
297 (Vsplit_window_preferred_function): Move those vars to window.el.
298 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
299 (Fdisplay_buffer): Move those functions to window.el.
300 (syms_of_window): Remove corresponding declarations.
301 (display_buffer): New function.
302 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
303 * dispnew.c (Flast_nonminibuf_frame): New function.
304 * buffer.c (Fpop_to_buffer): Move to window.el.
305
9e0e0d77
SM
3062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
307
308 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
309
4a485df8
KH
3102008-06-05 Kenichi Handa <handa@m17n.org>
311
312 * coding.c (detect_coding): Fix previous change.
313 (detect_coding_system): Likewise.
314
8ba31f36
SM
3152008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
316
c0dc8f64
SM
317 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
318
8ba31f36
SM
319 * keymap.c (Vminibuffer_local_filename_must_match_map):
320 Rename from Vminibuffer_local_must_match_filename_map.
321 (syms_of_keymap):
322 * minibuf.c (Fcompleting_read): Adjust accordingly.
323 * commands.h: Rename declaration as well.
324
7740d2c7
KH
3252008-06-05 Kenichi Handa <handa@m17n.org>
326
e7438ece
KH
327 * font.c (Ffont_spec): Don't use font_parse_family_registry for
328 family name.
329 (Ffont_put): Likewise.
330
331 * fontset.c (fontset_find_font): Call font_open_for_lface with the
332 current font-spec.
333
7740d2c7
KH
334 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
335 is unspecified.
336
337 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
338 are the same as those of default face, realize a new fontset from
339 default->fontset.
9e0e0d77 340 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 341
c876b227
SM
3422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
343
344 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
345 (move_it_in_display_line): New wrapper.
346
347 * window.c (window_scroll_pixel_based_preserve_x)
348 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
349 (window_scroll_pixel_based, window_scroll_line_based):
350 Use them to preserve column positions.
351 (syms_of_window): Initialize them.
352
353 * indent.c (Fvertical_motion): Extend first arg to allow passing an
354 (HPOS . VPOS) pair.
355
356 * dispextern.h (move_it_in_display_line): Declare.
357
927abf37
JB
3582008-06-05 Juanma Barranquero <lekktu@gmail.com>
359
360 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
361 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
362 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
363
9d14503e
JB
3642008-06-04 Juanma Barranquero <lekktu@gmail.com>
365
366 * window.c (Fset_window_parameter): Doc fix.
367 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
368
e6841c3b
JB
3692008-06-04 Joakim Verona <joakim@verona.se>
370
371 * window.h (struct window): Add new member window_parameters.
372
373 * window.c (Fwindow_parameters, Fwindow_parameter)
374 (Fset_window_parameter): New defuns.
375 (syms_of_window): Defsubr the new defuns.
376 (make_window): Initialize window_parameters to nil.
377
4ba50634
JPW
3782008-06-04 John Paul Wallington <jpw@pobox.com>
379
380 * eval.c (Fdefmacro): Doc fix.
381
c0e16b14
KH
3822008-06-04 Kenichi Handa <handa@m17n.org>
383
384 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 385 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
386 (detect_coding_system): Fix handling of coding->head_ascii.
387
0615d903
AS
3882008-06-03 Andreas Schwab <schwab@suse.de>
389
390 * font.c (font_prop_validate_spacing): Fix last change.
391
8a1816bb
KH
3922008-06-03 Kenichi Handa <handa@m17n.org>
393
eea9c5c4
KH
394 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
395 (font_parse_fcname): Fix handling of unknown key.
396
397 * xfont.c (xfont_list): Try an alias.
398
8a1816bb
KH
399 * charset.c (char_charset): Return NULL if the arg charset_list is
400 specified and C doesn't belong to any of them.
401
2f593f4c 4022008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
403
404 * font.c (font_pixel_size): Don't take cdr of an integer.
405
c2cd06e6
JM
4062008-06-02 Jim Meyering <meyering@redhat.com>
407
70fdbb46
JM
408 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
409 * alloc.c (xfree): Return right away for a NULL arg.
410 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
411 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
412 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
413 (create_apple_event_from_drag_ref, cfstring_create_normalized):
414 Likewise.
70fdbb46
JM
415 * doprnt.c (doprnt1): Likewise.
416 * frame.c (frame): Likewise.
417 * keyboard.c (wipe_kboard): Likewise.
1f204af3 418 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
419 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
420 * term.c (tty_default_color_capabilities, maybe_fatal)
421 (delete_tty): Likewise.
422 * w16select.c (string): Likewise.
423 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
424 * w32bdf.c (w32_free_bdf_font): Likewise.
425 * w32fns.c (w32_unload_font): Likewise.
426 * w32font.c (w32font_close): Likewise.
427 * window.c (size_window): Likewise.
428 * xselect.c (receive_incremental_selection): Likewise.
429 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
430 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
431 * w32.c (stat): Likewise.
432
2f593f4c 433 Remove useless if-before-free tests.
70fdbb46
JM
434 * editfns.c (Fset_time_zone_rule): Likewise.
435 * lread.c (nosuffix): Likewise.
436 * ralloc.c (get_bloc): Likewise.
437 * regex.c (reg_free): Likewise.
438 * xftfont.c (xftfont_open, xftfont_close): Likewise.
439 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
440 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 441
4fc1984a
KH
4422008-06-02 Kenichi Handa <handa@m17n.org>
443
1d1e1245
KH
444 * font.c (font_find_for_lface): Handle float font size.
445 (font_open_for_lface): Likewise.
446
4fc1984a
KH
447 * xfaces.c (x_supports_face_attributes_p): Check face->font before
448 comparing the properties.
449
aee986fd
JR
4502008-06-01 Jason Rumney <jasonr@gnu.org>
451
e6841c3b
JB
452 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
453 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
454 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
455 Don't add empty script list.
456 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 457
60a3d7ee
DN
4582008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
459
aee986fd 460 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
461 ".." has been used elsewhere in the file for a long time.
462 (LIBXT_STATIC): Remove conditional based on unused variable.
463
f2cec7a9
MB
4642008-06-01 Miles Bader <miles@gnu.org>
465
466 * xfaces.c (Vface_remapping_alist): New variable.
467 (syms_of_xfaces): Initialize it.
468 (enum named_merge_point_kind): New type.
469 (struct named_merge_point): Add `named_merge_point_kind' field.
470 (push_named_merge_point): Make cycle detection respect different
471 named-merge-point kinds.
c876b227 472 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
473 Remove face-name alias resolution.
474 (lface_from_face_name): New definition using
475 `lface_from_face_name_no_resolve'.
c876b227 476 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
477 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
478 (get_lface_attributes): New definition that layers face-remapping on
479 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
480 (lookup_basic_face): New function.
481 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
482 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
483 `get_lface_attributes'.
484 (face_at_buffer_position): Use `lookup_basic_face' to lookup
485 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
486 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
487
488 * xdisp.c (init_iterator): Pass base_face_id through
489 `lookup_basic_face' when we actually use it as a face-id.
490 (handle_single_display_prop): Use `lookup_basic_face' to lookup
491 DEFAULT_FACE_ID.
492
493 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
494 lookup the initial face-id.
495
496 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
497
518c0b83
JB
4982008-06-01 Juanma Barranquero <lekktu@gmail.com>
499
500 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
501 (Fremove_text_properties): Fix typos in docstrings.
502
719b3d63
KH
5032008-05-31 Kenichi Handa <handa@m17n.org>
504
e4c93315
KH
505 * font.c (font_list_entities): Fix the car part of data to be
506 stored in the cache.
507
719b3d63
KH
508 * ftfont.c (ftfont_font_format): Don't use strcasestr.
509
d0827857
SM
5102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
511
512 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
513 Add a `test' argument so another predicate than `equal' can be used.
514 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
515 (map_char_table): Remove unused vars `c' and `i'.
516 * lisp.h (Foptimize_char_table): Adjust declaration.
517 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
518
a266686a
KH
5192008-05-30 Kenichi Handa <handa@m17n.org>
520
d0827857 521 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
522 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
523 defined.
524
fd9440c5
SM
5252008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
526
527 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
528 (Fmake_variable_frame_local): Disallow mixing buffer-local and
529 frame-local settings for the same variable.
530
fd2ae9b2
KH
5312008-05-30 Kenichi Handa <handa@m17n.org>
532
9e0e0d77 533 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
534 (syms_of_fontset): Delete defsubr of Sfont_info.
535
536 * font.c (font_style_to_value, font_score): Delete casting of the
537 args to xstcasecmp.
538 (register_font_driver): Increment num_font_drivers only when
539 registering the driver globally.
9e0e0d77 540 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
541 (syms_of_font): Defsubr Sfont_info.
542
eaf11618
KH
5432008-05-29 Kenichi Handa <handa@m17n.org>
544
545 * coding.h (enum define_coding_utf8_arg_index): New enum.
546 (enum coding_attr_index): Change coding_attr_utf_16_bom to
547 coding_attr_utf_bom.
fd9440c5
SM
548 (enum utf_bom_type): Rename from utf_16_bom_type.
549 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
550 (struct coding_system): Add utf_8_bom in `spec' union.
551
552 * coding.c (CODING_UTF_8_BOM): New macro.
553 (enum coding_category): Delete coding_category_utf_8, add
554 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
555 coding_category_utf_8_sig.
556 (CATEGORY_MASK_UTF_8): Delete it.
557 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
558 (CATEGORY_MASK_UTF_8_SIG): New macros.
559 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
560 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
561 CATEGORY_MASK_UTF_8_SIG.
562 (CATEGORY_MASK_UTF_8): New macro.
563 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
564 (detect_coding_utf_8): Check BOM.
565 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 566 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
567 (encode_coding_utf_16): Likewise.
568 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
569 (detect_coding, detect_coding_system): Handle utf-8-auto.
570 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
571 (syms_of_coding): Fix setting up of Vcoding_category_table.
572
891bd142
SM
5732008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
574
575 * process.c (Faccept_process_output): If `millisec' is non-nil,
576 `seconds' default to 0.
577 (wait_reading_process_output): Also return non-nil if we read output
578 from a non-running process.
579
1519d52e
JR
5802008-05-29 Jason Rumney <jasonr@gnu.org>
581
fd9440c5
SM
582 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
583 `raster' specified.
584 (add_font_entity_to_list): Allow non-opentype truetype fonts back
585 in the uniscribe backend, but disallow any font that has no
586 unicode subrange support.
1519d52e 587
d5ab09cd
JB
5882008-05-29 Juanma Barranquero <lekktu@gmail.com>
589
590 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
591 Fix typos in docstrings.
592
a4eec626
KH
5932008-05-29 Kenichi Handa <handa@m17n.org>
594
595 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 596 (Fx_family_fonts): Set frame correctly.
a4eec626 597
a6e0b7e5
JR
5982008-05-28 Jason Rumney <jasonr@gnu.org>
599
d5ab09cd 600 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 601
6b3d752c
SM
6022008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
603
604 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
605 calling build_annotations.
606
c3f9fba8
JB
6072008-05-28 Juanma Barranquero <lekktu@gmail.com>
608
609 * coding.c (Fdecode_coding_region, Fencode_coding_region)
610 (Fencode_coding_string):
611 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
612 <latin-extra-code-table>: Fix typos in docstrings.
613 (syms_of_coding) <coding-system-alist>: Doc fix.
614 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
615
00c670e1
KH
6162008-05-28 Kenichi Handa <handa@m17n.org>
617
b75d7f28
KH
618 * fontset.c (Ffont_info): Don't call font_close_object.
619
620 * font.c (font_parse_family_registry): Use Ffont_put to validate
621 foundry and family.
622 (font_delete_unmatched): Don't check spacing.
623 (font_list_entities): Add spacing to the spec to list fonts.
624
625 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 626 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 627
00c670e1
KH
628 * coding.c (encode_coding_raw_text): Fix previous change.
629 (encode_coding_object): When the dst_object is a buffer and is
630 different from src_object, move gap to PT.
631
45feca91
CY
6322008-05-27 Chong Yidong <cyd@stupidchicken.com>
633
c3f9fba8 634 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 635
5dd5d9eb
SM
6362008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
637
01d45367
SM
638 * coding.c (encode_coding_raw_text): Set coding->produced_char for
639 all branches. Compute it differently.
640
5dd5d9eb
SM
641 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
642
9c623c85
JB
6432008-05-27 Juanma Barranquero <lekktu@gmail.com>
644
645 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
646 into "else if () ... else ...".
647
943f2093
JR
6482008-05-27 Jason Rumney <jasonr@gnu.org>
649
5dd5d9eb
SM
650 * w32font.c (w32font_open_internal): Determine if glyph indices
651 are likely to work here.
943f2093 652
7385fe74
CY
6532008-05-27 Chong Yidong <cyd@stupidchicken.com>
654
655 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
656 draw overlap glyphs with appropriate highlighting.
657
4f64a164
KH
6582008-05-27 Kenichi Handa <handa@m17n.org>
659
660 * xfont.c (xfont_open): Fix calculation of font->average_width.
661
1fb5aad7
SM
6622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
663
664 * casefiddle.c (casify_object): Try to guess better whether the
665 argument is a byte or a char.
666
f8eb1603
AS
6672008-05-26 Andreas Schwab <schwab@suse.de>
668
1fb5aad7
SM
669 * xselect.c (x_reply_selection_request): Properly handle format == 32.
670 Always send multiples of format size.
5a9c35e5 671
f8eb1603
AS
672 * xterm.c (x_set_frame_alpha): Fix type mismatch.
673
ba93d684
JR
6742008-05-26 Jason Rumney <jasonr@gnu.org>
675
1fb5aad7
SM
676 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
677 (compute_metrics): Don't set failure if we just cleared the cache.
678 (w32_weight_table): Remove unused variable.
679 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
680 backwards compatibility.
ba93d684 681
505ecc49
KH
6822008-05-25 Kenichi Handa <handa@m17n.org>
683
1fb5aad7
SM
684 * w32term.c (x_draw_glyph_string):
685 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
686
687 * xfaces.c: Delete unused function prototypes.
688 (xstrlwr, font_frame): Delete them.
689 (clear_face_cache): Delete unused variable.
690
1fb5aad7
SM
691 * xftfont.c (xftfont_open): Delete unused variable.
692 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
693
694 * ftxfont.c (ftxfont_open): Delete unused variable.
695
696 * fontset.c (face_for_char): Optimize for the case of no charset
697 property.
698
699 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
700 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
701 (otf_open, font_otf_capability, generate_otf_features)
702 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 703 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
704 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
705 (syms_of_font): Codes for accessing above commented out.
706
f481eb31
EZ
7072008-05-24 Eli Zaretskii <eliz@gnu.org>
708
709 * w32proc.c: Include dispextern.h.
710
711 * w32.c: Include dispextern.h.
712
20746fe4
JB
7132008-05-23 Juanma Barranquero <lekktu@gmail.com>
714
715 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
716 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
717 Fix typos in docstrings.
718
e7150846
JR
7192008-05-23 Jason Rumney <jasonr@gnu.org>
720
20746fe4 721 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 722
dbf46ba6
KH
7232008-05-23 Kenichi Handa <handa@m17n.org>
724
6c652beb
KH
725 * charset.c (Qemacs, charset_emacs): New variables.
726 (char_charset): Fix for non-Unicode characters.
727 (syms_of_charset): Define charset_emacs.
728
baf4d3b3 729 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
730 s->underline_thickness and s->underline_position. Be sure to draw
731 underline within the current line area.
baf4d3b3
KH
732
733 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 734 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 735 underline within the current line area.
baf4d3b3 736
dbf46ba6
KH
737 * fontset.c: Delete unused variables and add casting for char *
738 throughout the file.
739 (fontset_font): Try the fallback fonts of the current fontset
740 before consulting the default fontset.
741
742 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
743
9e0e0d77 744 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 745
3b780338
JR
7462008-05-22 Jason Rumney <jasonr@gnu.org>
747
20746fe4 748 * font.c: Don't include strings.h.
577eba22 749
9e0e0d77 750 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 751
20746fe4
JB
752 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
753 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
754 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
755 to call xstrcasecmp.
05131107 756
b1722a46 757 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 758
b1722a46 759 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 760
b1722a46 761 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 762
b1722a46 763 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 764
a30e1957
KH
7652008-05-22 Kenichi Handa <handa@m17n.org>
766
20746fe4 767 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 768
20746fe4 769 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
770 change of font_style_table.
771
a30e1957
KH
772 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
773 two args.
774
775 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
776 two args.
777
631248e5
SM
7782008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
779
780 * minibuf.c (keys_of_minibuf): Delete.
781 * lisp.h (keys_of_minibuf): Delete.
782 * emacs.c (main): Don't call keys_of_minibuf.
783
318548be
KH
7842008-05-22 Kenichi Handa <handa@m17n.org>
785
631248e5 786 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
787 ftfont_list_generic_family. Return a single family for each
788 generic family.
789 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
790 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
791 Call font_add_log.
318548be
KH
792 (ftfont_match): Call font_add_log.
793
794 * font.h (Ffont_xlfd_name): EXFUN adjusted.
795 (FONT_DEBUG): Define it.
796 (font_add_log): Extern it.
631248e5 797 (font_assert): Rename from xassert.
318548be
KH
798
799 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
800 (xfont_list_family): Call font_add_log.
801 (xfont_match): Likewise.
631248e5 802 (memq_no_quit): Delete.
318548be
KH
803
804 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
805 call of Ffont_xlfd_name.
806
807 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 808 (swidth_table): Move to font.c.
318548be
KH
809
810 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 811 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
812 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
813 New variables.
631248e5
SM
814 (struct table_entry): Move from xfaces.c and modified.
815 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 816 contents adjusted for the change of struct table_entry.
20746fe4 817 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 818 format change of font_style_table.
318548be
KH
819 (font_parse_family_registry): Don't overwrite existing foundry and
820 family of font_spec.
821 (font_score): Fix calculation of diff for sizes.
822 (font_sort_entites): Call font_add_log.
823 (font_delete_unmatched): Return a newly created list.
824 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
825 (font_matching_entity, font_open_entity, font_close_entity):
826 Call font_add_log.
318548be 827 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 828 (Finternal_set_font_style_table): Delete.
318548be
KH
829 (BUILD_STYLE_TABLE): New macro.
830 (build_style_table): New function.
831 (Vfont_log, font_log_env_checked): New variables.
832 (font_add_log): New function.
833 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
834 Declare Lisp variables "font-weight-table", "font-slant-table",
835 "font-width-table", and "font-log". Initialize font_style_table.
836
6aac1c03
DN
8372008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
838
bcc850aa 839 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 840
7950790f
GM
8412008-05-21 Seiji Zenitani <zenitani@mac.com>
842 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 843
7950790f 844 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 845 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 846 (x_set_alpha): New function.
a2979e8e 847
7950790f 848 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 849
7950790f
GM
850 * xfns.c (x-create-frame, Qalpha):
851 Initialize the frame parameter `alpha'.
b9fb2c45
GM
852 * xterm.c (OPAQUE, OPACITY): New.
853 (x_set_frame_alpha): New function.
854 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 855
7950790f
GM
856 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
857 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 858
5c2a72d9
JR
8592008-05-20 Jason Rumney <jasonr@gnu.org>
860
20746fe4
JB
861 * w32font.c (add_font_entity_to_list): Don't add non-opentype
862 truetype fonts to opentype list.
5c2a72d9 863
eb152aa9
JB
8642008-05-20 Juanma Barranquero <lekktu@gmail.com>
865
866 * fontset.c (Ffontset_info): Doc fix.
867 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
868 <ignore-relative-composition>: Fix typos in docstrings.
869
870 * font.c (syms-of-font) <font-encoding-alist>:
871 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
872 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
873 (Ffont_otf_alternates): Doc fixes.
874
ad00e1a3
KH
8752008-05-20 Kenichi Handa <handa@m17n.org>
876
877 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
878 font.h through out the file.
9e0e0d77 879 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 880 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
881 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
882
883 * emacs.c (main): Call syms_of_font unconditionally.
884
885 * font.h (find_font_encoding): Extern it.
886
9e0e0d77 887 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
888 fontset.c.
889 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
890 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
891 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
892 only when HAVE_WINDOW_SYSTEM is defined.
893 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
894 when HAVE_WINDOW_SYSTEM is defined.
895
9e0e0d77
SM
896 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
897 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
898
899 * xfaces.c: Include font.h unconditionally.
900 (merge_face_ref, merge_face_vectors)
901 (Finternal_set_lisp_face_attribute): Cancel the previous change.
902
40a69fac
SM
9032008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
904
905 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
906 indirect_variable.
907 * eval.c (lisp_indirect_variable): New fun.
908 (Fuser_variable_p): Use it.
909
8c2dccbf
SM
9102008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
911
ad97b375
SM
912 * lisp.h (indirect_variable):
913 * data.c (indirect_variable, let_shadows_buffer_binding_p):
914 Use Lisp_Symbol pointers rather than Lisp_Object.
915 Adjust callers.
916 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
917 To this end, change calling-convention.
918
8c2dccbf
SM
919 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
920 if some non-hidden buffers are selected by string&pred.
921
ad97b375
SM
9222008-05-19 Chong Yidong <cyd@stupidchicken.com>
923
924 * process.c (wait_reading_process_output): Always check status
925 when in batch mode.
926
25b81df4
KH
9272008-05-19 Kenichi Handa <handa@m17n.org>
928
929 * font.c (font_list_entities): Fix handling of cache.
930 (font_matching_entity): Likewise.
931
8c2dccbf 932 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 933 (ft_face_cache): New variable.
1f204af3 934 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 935 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
936 (fc_charset_table): New variable.
937 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
938 . FC_CHARSET_IDX) as :font-entity property in the font entity.
939 Callers changed.
dde8403f 940 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
941 (ftfont_spec_pattern): New argument fc_charset_idx.
942 Check registry more rigidly. Change callers.
a2979e8e 943 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
944 change of :font-entity property of the font.
945
a2979e8e 946 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
947 property of the font.
948
d4a1d553
JB
9492008-05-18 Juanma Barranquero <lekktu@gmail.com>
950
951 * coding.c (Fcoding_system_p): Rename argument to match docstring.
952 (Funencodable_char_position, Fcheck_coding_systems_region)
953 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
954 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
955 (Ffind_operation_coding_system, Fset_coding_system_priority)
956 (Fcoding_system_eol_type): Doc fixes.
957
07cfc4e7
GM
9582008-05-17 Glenn Morris <rgm@gnu.org>
959
960 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
961
1cab27d2
EZ
9622008-05-16 Eli Zaretskii <eliz@gnu.org>
963
964 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
965 and st_gid.
966
dde8403f 967 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
968 HAVE_WINDOW_SYSTEM is not defined.
969
970 * xfaces.c (merge_face_ref, merge_face_vectors)
971 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
972 HAVE_WINDOW_SYSTEM is defined.
973 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
974
86b89713
SM
9752008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
976
977 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
978
6750bd93
YM
9792008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
980
62867b11 981 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 982
79f105c9
KH
9832008-05-15 Kenichi Handa <handa@m17n.org>
984
985 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
986 preference.
987
6b33da9f
GM
9882008-05-15 Glenn Morris <rgm@gnu.org>
989
990 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
991
d0e4433b
CY
9922008-05-15 Chong Yidong <cyd@stupidchicken.com>
993
994 * fns.c (init_fns): Don't initialize weak_hash_tables here.
995 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
996
997 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
998
5f2d79e0
KH
9992008-05-15 Kenichi Handa <handa@m17n.org>
1000
fd8a1cae
KH
1001 * ftfont.c (ftfont_list): Downcase family name to check generic
1002 families.
1003
1004 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
1005 font-spec for QCfont value.
1006
5f2d79e0
KH
1007 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
1008 buffer. Check the return value of it.
1009
e5e29349
JR
10102008-05-14 Jason Rumney <jasonr@gnu.org>
1011
1012 * w32term.c (w32_get_glyph_overhangs): Remove.
1013 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
1014
1f09f444
KH
10152008-05-14 Kenichi Handa <handa@m17n.org>
1016
1017 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
1018 (font_clear_cache): Check if the cached vector of entities is nil
1019 or not.
1f09f444 1020
ecae6af9 10212008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
1022
1023 * emacs.c (main_thread): Conditionalize on
1024 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1025 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
1026
1027 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
1028 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
1029 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
1030
c6b278e7
KH
10312008-05-14 Kenichi Handa <handa@m17n.org>
1032
1033 * coding.c (detect_coding_iso_2022): Ignore a coding category that
1034 has no corresponding coding system.
1035
10362008-05-14 Jason Rumney <jasonr@gnu.org>
1037
1038 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
1039
1040 * w32font.h (w32font_open_internal): Update declaration.
1041
1042 * w32font.c (w32font_open_internal): Change last argument from
1043 w32font_info struct to font object. Fill in font object from
1044 font_entity. Get Outline metrics if possible. Use them to
1045 calculate underline position and thickness. Use xlfd name as name
1046 property. Don't set codepage.
1047 (w32font_open): Pass font_object to w32font_open_internal. Don't
1048 update dpyinfo->smallest_font_height and
1049 dpyinfo->smallest_char_width.
1050 (w32font_draw): Use s->font.
1051 (clear_cached_metrics): Don't clear non-existent blocks.
1052
1053 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
1054 font was not found.
1055 (x_draw_glyph_string): Use underline position and thickness from
1056 font.
1057
1058 * w32uniscribe.c (uniscribe_open): Pass font_object to
1059 w32font_open_internal.
1060
10612008-05-14 Kenichi Handa <handa@m17n.org>
1062
1063 These changes are to delete all legacy font-handling codes, and
1064 make Emacs use only font-backends.
1065
1066 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
1067 (frame.o, image.o, print.o): Depend on $(FONTSRC).
1068
1069 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
1070
1071 * charset.h (Vcharset_non_preferred_head)
1072 (Vcurrent_iso639_language): Extern them.
1073
1074 * charset.c (Vcharset_non_preferred_head): New variable.
1075 (Vcurrent_iso639_language): New variable.
1076 (syms_of_charset): Declare it as a Lisp variable.
1077 (char_charset): Don't check non preferred charsets. As a last
1078 resort, return charset_unicode.
1079 (Fset_charset_priority): Update Vcharset_non_preferred_head.
1080
1081 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
1082 conditionals. Don't check enable_font_backend. Delete all codes
1083 used only when USE_FONT_BACKEND is not defined.
1084
1085 * dispextern.h (struct glyph_string): Change type of `font' to
1086 `struct font *'.
1087 (struct glyph_string): New member underline_position and
1088 underline_thickness.
1089 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
1090 (struct face): Change type of `font' to `struct font *'. Remove
1091 members `font_name', `font_info_id'.
1092 (per_char_metric, encode_char): Delete externs.
1093 (calc_pixel_width_or_height): Adjust the prototype.
1094
1095 * emacs.c (enable_font_backend): Delete extern.
1096 (main): Don't set enable_font_backend. Don't check the command
1097 line argument "-disable-font-backend".
1098
1099 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
1100 (enum font_property_index): New members FONT_DPI_INDEX,
1101 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
1102 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
1103 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
1104 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
1105 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
1106 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
1107 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1108 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1109 (struct font_spec, struct font_entity): New structs.
1110 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1111 (struct font): Many members from old "struct font_info" moved to
1112 here. Members font and entity deleted.
1113 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1114 the new font-related objects.
1115 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1116 (CHECK_FONT_GET_OBJECT): Likewise.
1117 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1118 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1119 (struct font_driver): New members case_sensitive anc check. Type
1120 of the member list and open changed.
1121 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1122 (font_symbolic_width, font_find_object, font_get_spec)
1123 (font_set_lface_from_name): Delete extern.
20746fe4 1124 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1125
1126 * font.c: Include <strings.h>.
1127 (enable_font_backend): Delete it.
1128 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1129 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1130 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1131 (null_string): Delete it.
1132 (null_vector): Make it static.
1133 (font_family_alist): Delete it.
1134 (Qnormal): Extern it.
1135 (QCextra, QClanguage): Delete it.
1f204af3 1136 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
1137 (font_make_spec, font_make_entity, font_make_object)
1138 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1139 the string. Callers changed.
1140 (font_pixel_size): Adjusted for the format change of font-related
1141 objects.
1142 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1143 (font_style_to_value, font_style_symbolic): New function.
1144 (build_font_family_alist): Delete it.
1145 (font_registry_charsets): Use Fassoc_string instead of
1146 assq_no_quit.
1147 (font_prop_validate_symbol): Don't return null_string.
1148 (font_prop_validate_style): Adjusted for the change of
1149 style-related values in a font vector.
20746fe4 1150 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
1151 QCantialias, add entries for QCavgwidth.
1152 (get_font_prop_index): Delete the 2nd argument FROM.
1153 (font_prop_validate): Arguments changed.
1154 (font_put_extra): Adjusted for the change of font-related objects.
1155 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1156 (font_parse_fcname, font_unparse_fcname)
1157 (font_prepare_composition): Likewise.
1158 (font_parse_family_registry): Renamed from font_merge_old_spec.
1159 (otf_open): Delete the 1st arg entity.
1160 (font_otf_capability): Adjusted for the above change.
1161 (font_score): New arg alternate_families. Adjusted for the change
1162 of font-related objects.
1163 (font_sort_entites): New arg best_only.
1164 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1165 Delete them.
1166 (font_match_p): Check alternate families.
1167 (font_find_object): Delete it.
1168 (font_check_object): New function.
c3f9fba8 1169 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
1170 (font_delete_unmatched): New arg.
1171 (font_list_entities): Call font_driver->list with a spec that
1172 doesn't specify style-related properties.
1173 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 1174 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
1175 (font_close_object, font_has_char, font_encode_char)
1176 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
1177 (font_spec_from_name, font_clear_prop, font_update_lface):
1178 New functions.
1179 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
1180 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1181 (font_at): Adjusted for the change of font-related objects.
1182 (font_range): New function.
1183 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 1184 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
1185 (Fcopy_font_spec, Fmerge_font_spec): New function.
1186 (Ffont_family_list): Renamed from list-families.
1187 (Finternal_set_font_style_table): Arguments changed.
1188 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1189 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1190 change of font-related objects.
c3f9fba8 1191 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7
KH
1192
1193 * fontset.h (struct font_info): Delete it. Most memnbers go to
1194 struct font.
1195 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1196 (enum FONT_SPEC_INDEX): Delete it.
1197 (font_info, list_fonts_func, load_font_func, query_font_func)
1198 (set_frame_fontset_func, find_ccl_program_func)
1199 (get_font_repertory_func, new_fontset_from_font_name): Delete
1200 externs.
1201 (fontset_from_font_name): Extern it.
1202 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1203 (FONT_INFO_FROM_FACE): Deleted.
1204 (face_for_font): Adjust prototype.
1205
1206 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1207 conditionals. Don't check enable_font_backend. Delete all codes
1208 used only when USE_FONT_BACKEND is not defined.
1209 (get_font_info_func, list_font_func, load_font_func)
1210 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1211 (get_font_repertory_func): Delete them.
1212 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1213 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1214 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1215 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1216 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1217 (fontset_compare_rfontdef): New function.
1218 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1219 ront-defs by qsort. Adjusted for the change of font-group vector.
1220 (load_font_get_repertory): Deleted.
1221 (fontset_find_font): Use new macros to ref/set elements of
1222 font-def and rfont-def.
1223 (fontset_font): Fix the timing of remembering that no font for C.
1224 (free_face_fontset): Do nothing if the face has no fontset.
1225 (face_suitable_for_char_p): Use new macros to ref/set elements of
1226 rfont-def.
1227 (face_for_char): Likewise. Call face_for_char with font_object.
1228 (fs_load_font): Delete. Delete #pragma surrounding it.
1229 (fs_query_fontset): Use strcasecmp instead of strcmp.
1230 (generate_ascii_font_name): Adjusted for the format change of
1231 font-spec.
1232 (Fset_fontset_font): Likewise. Use new macros to set elements of
1233 font-def.
1234 (Fnew_fontset): Use font_unparse_xlfd to generate
1235 FONTSET_ASCII (fontset).
1236 (new_fontset_from_font_name): Deleted.
1237 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1238 a fontset is already created for the font. FIx updating of
1239 Vfontset_alias_alist.
1240 (fontset_ascii_font): Deleted.
1241 (Ffont_info): Adjusted for the format change of font-spec.
1242 (Finternal_char_font): Likewise.
1243 (Ffontset_info): Likewise.
1244 (syms_of_fontset): Don't check load_font_func.
1245
1246 * fns.c (internal_equal): Handle PREV_FONT.
1247
1248 * frame.h: Delete USE_FONT_BACKEND conditional.
1249
1250 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1251 conditionals. Don't check enable_font_backend. Delete all codes
1252 used only when USE_FONT_BACKEND is not defined.
1253 (x_set_font): Call x_new_font, not x_new_fontset2.
1254 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1255 already set for the frame.
1256
1257 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1258 a font-entity by font_make_entity. Use font_intern_prop instead
1259 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1260 font property. If a font is scalable, set avgwidth property to 0.
1261 Set font-entity property by font_put_extra.
1262 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1263 (ffont_driver): Adjusted for the change of struct font_driver.
1264 (ftfont_spec_pattern): New function.
1265 (ftfont_list): Return a list, not vector.
1266 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1267 (ftfont_list_family): Don't downcase names.
1268 (ftfont_free_entity): Deleted.
1269 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1270 struct font. Get underline_thickness and underline_position from
1271 font property. Don't update dpyinfo->smallest_font_height and
1272 dpyinfo->smallest_char_width.
1273 (ftfont_close): Don't free `struct font'.
1274 (ftfont_has_char): Adjusted for the format change of font-entity.
1275 (ftfont_encode_char, ftfont_text_extents): Likewise.
1276
1277 * ftxfont.c (ftxfont_list): Return a list, not vector.
1278 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1279 struct font. Get underline_thickness and underline_position from
1280 font property. Don't update dpyinfo->smallest_font_height and
1281 dpyinfo->smallest_char_width.
1282 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1283 (ftxfont_draw): Adjusted for the change of struct font.
1284
1285 * image.c (image_ascent): Don't include "charset.h". Include
1286 "character.h" and "font.h".
1287
1288 * lisp.h (enum pvec_type): New member PREV_FONT.
1289 (Fassoc_string): EXFUN it.
1290
1291 * print.c: Include font.h.
1292 (print_object): Handle font-related objects.
1293
1294 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1295 conditionals. Don't check enable_font_backend. Delete all codes
1296 used only when USE_FONT_BACKEND is not defined.
1297 (handle_auto_composed_prop): Do nothing if it->f is not on a
1298 window system. Check how many following characters can be
1299 displayed by the same font.
1300 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1301 'struct font *'.
1302 (get_char_face_and_encoding): Assign the whole encoding task to
1303 the `encode-char' method of a font driver.
1304 (fill_composite_glyph_string): Adjusted for the change of `struct
1305 face' and `struct glyph_string'.
1306 (fill_glyph_string): Likewise.
1307 (get_per_char_metric): Arguments changed.
1308 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1309 and `struct glyph_string'.
1310 (produce_stretch_glyph, calc_line_height_property)
1311 (x_produce_glyphs): Likewise.
1312
1313 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1314 conditionals. Don't check enable_font_backend. Delete all codes
1315 used only when USE_FONT_BACKEND is not defined. Use
1316 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1317 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1318 (Qp): Extern them.
1319 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1320 Deleted.
1321 (struct font_name): Deleted.
1322 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1323 (compare_fonts_by_sort_order): New function.
1324 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1325 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1326 Deleted.
1327 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1328 compare_fonts_by_sort_order.
1329 (Fx_font_family_list): Call Ffont_family_list.
1330 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1331 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1332 (face_symbolic_slant, face_symbolic_swidth)
1333 (split_font_name_into_vector, build_font_name_from_vector)
1334 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1335 (font_rescale_ratio, split_font_name, build_font_name)
1336 (free_font_names, sort_fonts, x_face_list_fonts)
1337 (face_font_available_p, sorted_font_list, cmp_font_names)
1338 (font_list_1, concat_font_list, font_list, remove_duplicates):
1339 Deleted.
1340 (Fx_list_fonts): Use Ffont_list.
1341 (LFACE_AVGWIDTH): Deleted.
1342 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1343 by FONTP.
1344 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1345 (set_lface_from_font_name): Delete it.
1346 (set_lface_from_font): Renamed from
1347 set_lface_from_font_and_fontset. Caller changed. Don't set
1348 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1349 for face.
c3f9fba8
JB
1350 (merge_face_vectors): Copy font-spec if necessary.
1351 Clear properties of the font-spec if necessary.
c6b278e7
KH
1352 (merge_face_ref): Clear properties of the font-spec if necessary.
1353 (Finternal_set_lisp_face_attribute): Likewise.
1354 (set_font_frame_param): Use font_load_for_lface to load a
1355 font-object, and call Fmodify_frame_parameters with it.
1356 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1357 font name by Ffont_xlfd_name.
1358 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1359 QCslant, and QCwidth.
1360 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1361 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1362 Compare fonts by EQ.
1363 (lookup_non_ascii_face): Deleted.
1364 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
1365 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1366 Check atomic font properties by case insensitive.
c6b278e7
KH
1367 (realize_non_ascii_face): Set face->overstrike correctly.
1368 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1369 (dump_realized_face): Get font name from
1370 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1371
1372 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1373 conditionals. Don't check enable_font_backend. Delete all codes
1374 used only when USE_FONT_BACKEND is not defined.
1375 (xic_create_xfontset): Original code deleted and renamed from
1376 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1377 (x_make_gc): Don't set GCFont in GCs.
1378 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1379 opened by "fixed".
1380 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1381 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1382 get_font_repertory_func.
1383
1384 * xfont.c: Include <stdlib.h> and "ccl.h".
1385 (struct xfont_info): New structure.
1386 (xfont_query_font): Deleted.
1387 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1388 moved from xterm.c.
1389 (xfont_driver): Adjusted for the change of struct font_driver.
1390 (compare_font_names): New function.
1391 (xfont_list_pattern): Sort font names case insensitively. Make
1392 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1393 (xfont_list): Return a list, not vector.
1394 (xfont_match): If the font doesn't have QCname property, generate
1395 a name from the other font properties.
1396 (xfont_open): Return a font-ojbect. Adjusted for the change of
1397 struct font. Get underline_thickness and underline_position from
1398 font property. Don't update dpyinfo->smallest_font_height and
1399 dpyinfo->smallest_char_width.
1400 (xfont_close): Don't free struct font.
1401 (xfont_prepare_face): Adjusted for the change of struct font.
1402 (xfont_done_face): Deleted.
1403 (xfont_has_char): Adjusted for the change of struct font.
1404 (xfont_encode_char, xfont_draw): Likewise.
1405 (xfont_check): New function.
1406
1407 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1408 callback function.
1409 (xftfont_match): Adjusted for the fontmat change of font-entity.
1410 (xftfont_open): Adjusted for the format change of font-entity and
1411 font-object. Adjusted for the change of struct font. Return a
1412 font-object. Don't update dpyinfo->smallest_font_height and
1413 dpyinfo->smallest_char_width.
1414 (xftfont_close): Block input while calling XftFontClose.
1415 (xftfont_prepare_face): Don't block input while calling
1416 xftfont_get_colors. Adjusted for the change of struct font.
1417 (xftfont_shape): Return value of error case fixed.
1418
1419 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1420
1421 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1422 conditionals.
1423 (FONT_WIDTH): Return (f)->max_width.
1424 (struct x_display_info): Delete member `font'.
1425 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1426 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1427 (struct x_output): Change type of `font' to `struct font *'.
1428
1429 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1430 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1431 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1432 (x_per_char_metric, x_encode_char): Deleted.
1433 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1434 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1435 `struct face'.
c6b278e7
KH
1436 (x_draw_glyph_string_foreground)
1437 (x_draw_composite_glyph_string_foreground): Likewise.
1438 (x_draw_glyph_string): Likewise. Use font->underline_position and
1439 font->underline_thickness.
1440 (x_new_font): Renamed from x_new_fontset2.
1441 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1442 (x_check_font): Call `check' method of a font driver.
1443 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1444 (x_query_font, x_get_font_repertory): Deleted.
1445 (x_find_ccl_program): Renamed and moved to xfont.c.
1446 (x_redisplay_interface): Adjusted for the change of `struct
1447 redisplay_interface'.
1448
1449 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1450 conditionals. Don't check enable_font_backend. Delete all codes
1451 used only when USE_FONT_BACKEND is not defined. Surround non-used
1452 code by "#ifdef OLD_FONT" and "endif".
1453 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1454
1455 * w32font.h (struct w32font_info): New member.
1456 (FONT_COMPAT): New macro.
1457 (w32font_open_internal): Prototype adjusted.
1458
1459 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1460 OLD_FONT" and "endif".
1461
1462 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1463 conditionals. Don't check enable_font_backend. Delete all codes
1464 used only when USE_FONT_BACKEND is not defined.
1465 (w32font_open): Return a font-object. Make a font-object by
1466 font_make_object. Adjusted for the change of struct w32font_info.
1467 (w32font_close): Don't free struct font. Adjusted for the change
1468 of struct w32font_info.
1469 (w32font_encode_char, w32font_text_extents, w32font_draw):
1470 Adjusted for the change of struct w32font_info.
1471 (w32font_draw): Likewise.
1472 (w32font_list_internal): Return a list, not vector.
1473 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1474 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1475 (add_font_name_to_list): Don't downcase names.
1476 (w32_enumfont_pattern_entity): Make a font-entity by
1477 font_make_entity. Adjusted for the format change of font-entity.
1478 Use FONT_SET_STYLE to set a style-related font property. If a
1479 font is scalable, set avgwidth property to 0. Set font-entity
1480 property by font_put_extra.
c3f9fba8 1481 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1482 (w32_weight_table, w32_decode_weight): New variables.
1483 (w32_encode_weight): New function.
1484 (fill_in_logfont): Adjusted for the format change of font-spec.
1485 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1486 weight value.
1487 (w32font_driver): Adjusted for the change of struct font_driver.
1488
1489 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1490 conditionals. Don't check enable_font_backend. Surround non-used
1491 code by "#ifdef OLD_FONT" and "endif".
1492 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1493 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1494
1495 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1496 conditionals. Don't check enable_font_backend. Delete all codes
1497 used only when USE_FONT_BACKEND is not defined. Surround non-used
1498 code by "#ifdef OLD_FONT" and "endif".
1499
1500 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1501 (uniscribe_open): Return value changed to font-object.
1502 Adjusted for the format change of font-object.
1503 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1504 (add_opentype_font_name_to_list): Don't downcase names.
1505 (uniscribe_font_driver): Adjusted for the change of struct
1506 font_driver.
1507
f9d4c199
CY
15082008-05-13 Chong Yidong <cyd@stupidchicken.com>
1509
1510 * dispnew.c (update_frame_1): Check if tty output is still valid
1511 before flushing it.
1512
44f249c0
JD
15132008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1514
1515 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1516 to Gtk+ menus.
1517
01bb4018
SM
15182008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1519
3271a8f5
SM
1520 * dired.c (file_name_completion): Tweak the code so as to always do it
1521 in a single pass. Tighten the scope of some variables.
1522
01bb4018
SM
1523 * dired.c (Qdefault_directory): New var.
1524 (file_name_completion): Use it instead of Fexpand_file_name.
1525 (syms_of_dired): Initialize it.
1526
728bb8e0
SM
15272008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1528
1529 * fileio.c (double_dollars): Remove dead code.
1530
ed4c17bb
EZ
15312008-05-10 Eli Zaretskii <eliz@gnu.org>
1532
6c5665e9
EZ
1533 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1534 Mention w32-get-true-file-attributes in doc string.
1535
ed4c17bb
EZ
1536 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1537
71e1f69d
GM
15382008-05-09 Glenn Morris <rgm@gnu.org>
1539
1540 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1541 2008-04-23.
1542
ee7a2e7a
EZ
15432008-05-09 Eli Zaretskii <eliz@gnu.org>
1544
8aaaec6b
EZ
1545 Support for reporting owner and group of each file on MS-Windows:
1546 * dired.c (stat_uname, stat_gname): New functions, with special
1547 implementation for w32.
1548 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1549
ee7a2e7a
EZ
1550 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1551 (dflt_group_name): New static variable.
728bb8e0 1552 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1553 (init_user_info): Init dflt_group fields. Get user's group name
1554 from LookupAccountSid.
8aaaec6b
EZ
1555 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1556 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1557 New initialization states.
1558 (globals_of_w32): Initialize them to zero. Initialize the default
1559 group name to "None".
1560 (GetFileSecurity_Name): New global var, the name of the function
1561 to call for GetFileSecurity.
1562 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1563 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1564 (get_file_security, get_security_descriptor_owner)
1565 (get_security_descriptor_group, is_valid_sid)
1566 (get_file_security_desc, get_rid, get_name_and_id)
1567 (get_file_owner_and_group): New functions.
1568 (stat): Use get_file_security_desc and get_file_owner_and_group to
1569 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1570 high 32 bits of file's size, now that st_size is 64-bit wide.
1571 Fix test when to get true file attributes.
8aaaec6b
EZ
1572 (init_user_info): Use get_rid instead of equivalent inline code.
1573 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1574
b199c436
CY
15752008-05-09 Chong Yidong <cyd@stupidchicken.com>
1576
1577 * image.c (png_load): Use correct bit-depth for setting background
1578 color.
1579
86914123
EZ
15802008-05-08 Eli Zaretskii <eliz@gnu.org>
1581
1582 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1583 epa-hook.elc.
1584
67b5d7de
JB
15852008-05-08 Juanma Barranquero <lekktu@gmail.com>
1586
1587 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1588
1a111394
DN
15892008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1590
1591 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1592 because the original parameters are in pure storage now.
1593 (mac_window): Remove unused params. Update callers.
1594
6d77fa95
SM
15952008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1596
7a3d90dc
SM
1597 * lread.c (substitute_object_recurse): Use lower-level primitives.
1598 Don't signal errors when traversing sub-char-tables.
1599 Don't loop over all the possible characters when traversing char-tables.
1600
6d77fa95
SM
1601 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1602 just like we do in print.c.
1603
140eb764
SM
16042008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1605
1606 * minibuf.c (Ftry_completion): Remove code left over from when we used
1607 scmp instead of Fcompare_strings.
1608
e9184ccb
JB
16092008-05-04 Juanma Barranquero <lekktu@gmail.com>
1610
1611 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1612
0e9378b3
YM
16132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1614
1615 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1616 Create bitmap context in native byte order.
1617
f67e15be
MB
1618 * macterm.c (XDrawLine)
1619 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1620 context in native byte order.
064032d0 1621
f67e15be 16222008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1623
1624 * config.in: Regenerate.
1625
1626 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1627 New definitions for Image I/O support.
1628 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1629 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1630 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1631 (mac_data_provider_release_data, image_load_image_io)
1632 [USE_MAC_IMAGE_IO]: New functions.
1633 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1634 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1635 (init_image_func_pointer) [MAC_OSX]: Remove function.
1636 (image_load_quartz2d) [MAC_OSX]: Check availability of
1637 CGImageCreateWithPNGDataProvider at compile time.
1638 Use lowercase `false' for boolean constant.
1639 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1640 Use image_load_image_io.
1641 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1642 Don't check MyCGImageCreateWithPNGDataProvider.
1643 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1644 Don't call init_image_func_pointer.
1645
1646 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1647
1648 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1649 Make variable non-static.
1650 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1651 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1652
1653 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1654 (RED_FROM_ULONG): Mask off higher bits.
1655 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1656
1657 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1658 Include AvailabilityMacros.h.
1659 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1660 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1661
c6bff69e
SM
16622008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1663
1664 * chartab.c (Fset_char_table_range): If range is t, really set all
1665 chars to that value.
1666
7412d429
EZ
16672008-05-03 Eli Zaretskii <eliz@gnu.org>
1668
1669 * dired.c (Ffile_attributes): Don't allow the device number become
1670 negative.
1671
f83bbfac
DU
16722008-05-02 Daiki Ueno <ueno@unixuser.org>
1673
5a81d3d7 1674 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1675
2e3148e2
JL
16762008-05-02 Juri Linkov <juri@jurta.org>
1677
1678 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1679 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1680 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1681
923fb88c
CY
16822008-05-01 Chong Yidong <cyd@stupidchicken.com>
1683
1684 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1685
047aaeb9
MR
16862008-05-01 Martin Rudalics <rudalics@gmx.at>
1687
1688 * dispnew.c (change_frame_size_1): Preserve small windows when
1689 shrinking frames by calling set_window_height|width with third
1690 arg 2.
1691
1692 * window.h (struct window): Replace field too_small_ok by field
1693 resize_proportionally.
1694
1695 * window.c (make_window): Initialize resize_proportionally.
1696 (enlarge_window): Temporarily set resize_proportionally to make
1697 sure that shrink_windows does scale the window proportionally.
1698 (shrink_windows): When window has resize_proportionally set try
1699 to shrink it proportionally by stealing from other windows.
1700 (struct saved_window, Fset_window_configuration)
1701 (compare_window_configurations): Handle resize_proportionally.
1702 (WINDOW_TOTAL_SIZE): New macro.
1703 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1704 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1705 window-min-height|width are handled by window_min_size_2 now.
1706 (size_window, Fsplit_window, enlarge_window)
1707 (adjust_window_trailing_edge, grow_mini_window): Don't call
1708 check_min_window_sizes.
c6bff69e
SM
1709 (window_min_size_2, window_min_size_1, window_min_size):
1710 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1711 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1712 (adjust_window_trailing_edge, grow_mini_window):
1713 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1714 (shrink_windows): Argument min_size removed. New argument
1715 safe_p allows shrinking windows to their safe minimum sizes.
1716 Calculate minimum size and decide whether a window shall be
1717 deleted for each window individually.
1718 (size_window): When nodelete_p equals 2, tell shrink_windows to
1719 delete windows only if their new minimum size is no more safe.
1720 (shrink_window_lowest_first): Call window_min_size_1 to make
1721 sure to preserve modeline of bottom-most window when resizing
1722 the minibuffer.
1723 (Fset_window_configuration, Fcurrent_window_configuration)
1724 (compare_window_configurations): Do not handle
1725 window-min-height|width any more.
1726 (syms_of_window): Clarify window-min-height|width doc-strings.
1727
2a54a229
SM
17282008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1729
1730 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1731 some more. Copy some of the code from Ftry_completions.
1732 Remove special case code that dates back to initial revision when the
1733 slash was only added when necessary and that can't trigger nowadays.
1734
384bc634
KH
17352008-04-27 Kenichi Handa <handa@m17n.org>
1736
1737 * font.c (font_prop_validate): Signal `error' instead of `font'.
1738
2c2279c6
JR
17392008-04-29 Jason Rumney <jasonr@gnu.org>
1740
1741 * w32fns.c (Fw32_battery_status): New defun.
1742 (syms_of_w32fns): Defsubr it.
1743
fb4a622a
AS
17442008-04-28 Andreas Schwab <schwab@suse.de>
1745
1746 * dired.c (file_name_completion): Fix another mixing of encoded
1747 and decoded names.
1748
23f250f4
JB
17492008-04-28 Juanma Barranquero <lekktu@gmail.com>
1750
1751 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1752
d8d30dff
JB
17532008-04-27 Juanma Barranquero <lekktu@gmail.com>
1754
1755 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1756
ea6104a8
AS
17572008-04-27 Andreas Schwab <schwab@suse.de>
1758
9c691c00
AS
1759 * dired.c (file_name_completion): Fix inappropriate mixing of
1760 encoded and decoded names.
1761
ec1bf773
AS
1762 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1763
ea6104a8
AS
1764 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1765
01388a3d
EZ
17662008-04-26 Eli Zaretskii <eliz@gnu.org>
1767
1768 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1769 2008-03-31, it's not needed anymore with `struct stat' definition
1770 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1771 for the same reasons.
1772
175aea10 17732008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1774
1775 * m/sparc.h: Additional redefinitions for GNU/Linux.
1776
1289aeb8
YM
17772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1778
1779 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
1780 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1781 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
1782 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
1783 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1784 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
1785 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1786 Likewise.
1787
1788 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 1789 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
1790 (mac_ax_number_of_characters): Add externs.
1791 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1792 [USE_MAC_TSM]: Likewise.
1793 (mac_handle_text_input_event) [MAC_OSX]:
1794 Handle kEventTextInputOffsetToPos for no active input area case.
1795 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1796 (mac_handle_document_access_event)
1797 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
1798 (install_application_handler) [MAC_OSX]: Register handlers for
1799 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1800 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1801 Register mac_handle_document_access_event.
1802
1803 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
1804 Make functions non-static.
1805
dbd50d4b
SM
18062008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1807
1808 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
1809 (read_file_name_completion_ignore_case, insert_default_directory)
1810 (Qdefault_directory): Move to minibuffer.el.
1811 (Fread_file_name): Call the new `read-file-name' instead.
1812
9ea37b9d 18132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
1814
1815 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
1816 Make function non-static.
1817 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
1818 Remove function.
1819 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1820 Move to mactoolbox.c.
1821 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
1822
1823 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
1824 (mac_rect_make): New macro.
1825
1826 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
1827 instead of float.
1828 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1829 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
1830 (XSetBackground) [USE_CG_DRAWING]: Likewise.
1831 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
1832 CGRectMake.
1833 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1834 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
1835 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
1836 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1837 instead of WindowRef in argument type.
1838 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
1839 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
1840 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
1841 instead of DISPLAY. All uses changed.
1842 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
1843 (x_calc_absolute_position): Simplify so as not to use
1844 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
1845
1846 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1847 instead of WindowRef in argument type.
1848 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
1849 [TARGET_API_MAC_CARBON]: Remove externs.
1850 (create_apple_event, mac_event_parameters_to_lisp)
1851 [TARGET_API_MAC_CARBON]: Add externs.
1852
d8d30dff 1853 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
1854 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
1855 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
1856 is clicked.
1857 (x_activate_menubar): Remove extern for saved_menu_event_location.
1858 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1859 Move from mac.c.
1860
9ea37b9d 18612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
1862
1863 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
1864 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
1865
9ea37b9d 18662008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
1867
1868 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
1869 attributes only for local files.
1870
1871 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 1872 default to Qlocal.
bd735631 1873
88970542
JL
18742008-04-22 Juri Linkov <juri@jurta.org>
1875
1876 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
1877 read-buffer-to-switch instead of using the letter "B".
1878
92ec67e3
SM
18792008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * fileio.c (Qdefault_directory): New variable.
1882 (Fread_file_name): Use it to pass `dir' to the completion functions.
1883
a32b2382
CY
18842008-04-20 Chong Yidong <cyd@stupidchicken.com>
1885
2a2e8de7 1886 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 1887
6c8b4f07
SM
18882008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
1889
ece5f847
SM
1890 * keyboard.c (Vpre_help_message): Remove.
1891 (show_help_echo): Remove default C code.
1892
6c8b4f07
SM
1893 * dired.c (directory_files_internal, file_name_completion):
1894 Only call ENCODE_FILE if the string is indeed decoded.
1895
73d798d5
SM
18962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1897
1898 * Makefile.in (TOOLKIT_DEFINES): Remove.
1899 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
1900
d8d30dff 19012008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
1902
1903 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
1904 (mactoolbox.o): New target.
1905
1906 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
1907 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
1908
1909 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
1910 Use mac_set_frame_window_background instead of XSetWindowBackground.
1911 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
1912 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
1913 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
1914 instead of SetWindowTitleWithCFString.
1915 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
1916 Move function to mactoolbox.c.
1917 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1918 Use mac_set_window_modified instead of SetWindowModified.
1919 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
1920 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
1921 (Fx_focus_frame): Use mac_front_non_floating_window instead of
1922 FrontNonFloatingWindow. Use mac_activate_window instead of
1923 ActivateWindow. Use mac_active_non_floating_window instead of
1924 ActiveNonFloatingWindow.
1925 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
1926 Use mac_show_hourglass and mac_hide_hourglass.
1927 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
1928 instead of GetGlobalMouse.
1929 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
1930 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
1931 Use mac_bring_window_to_front instead of BringToFront.
1932 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
1933 mactoolbox.c.
1934 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
1935 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
1936 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
1937 mactoolbox.c.
1938
1939 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
1940 (XtPointer): Move typedef from macmenu.c.
1941 (enum button_type): Move enum from macmenu.c.
1942 (widget_value): Move typedef from macmenu.c.
1943 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
1944 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1945 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1946 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1947 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1948 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1949 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1950 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1951 (Selection): Move typedef from macselect.c.
1952 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1953 macterm.c.
1954 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1955 (mac_is_window_collapsed, mac_bring_window_to_front)
1956 (mac_send_window_behind, mac_hide_window, mac_show_window)
1957 (mac_collapse_window, mac_front_non_floating_window)
1958 (mac_active_non_floating_window, mac_activate_window)
1959 (mac_move_window_structure, mac_move_window, mac_size_window)
1960 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1961
1962 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1963 (enum mac_menu_kind): Move enum to mactoolbox.c.
1964 (min_menu_id): Move variable to mactoolbox.c.
1965 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1966 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1967 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1968 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1969 [TARGET_API_MAC_CARBON]: Likewise.
1970 (XtPointer): Move typedef to macgui.h.
1971 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1972 (widget_value): Move typedef to macgui.h.
1973 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1974 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1975 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1976 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1977 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1978 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1979 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1980 (popup_activated_flag): Make variable non-static.
1981 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1982 (add_menu_item, fill_menu, dispose_menus):
1983 Move functions to mactoolbox.c.
1984 (restore_show_help_function, menu_target_item_handler)
1985 (install_menu_target_item_handler, mac_handle_dialog_event)
1986 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1987 [TARGET_API_MAC_CARBON]: Likewise.
1988 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1989 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1990 (find_and_call_menu_selection, name_is_separator): Make function
1991 non-static.
1992 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1993 to mactoolbox.c.
1994 (set_frame_menubar): Don't call install_menu_quit_handler.
1995 (menu_item_selection): New variable.
1996 (mac_menu_show): Use create_and_show_popup_menu.
1997 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1998 selection but set variable menu_item_selection. All uses changed.
1999 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
2000 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 2001
d02fe47d
MB
2002 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
2003 (Selection): Move typedef to macgui.h.
2004 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
2005 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
2006 Make variables non-static.
2007 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2008 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
2009 Make functions non-static.
2010 (Vmac_service_selection) [MAC_OSX]: Likewise.
2011 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
2012 (mac_valid_selection_target_p, mac_clear_selection)
2013 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2014 (mac_put_selection_value, mac_selection_has_target_p)
2015 (mac_get_selection_value, mac_get_selection_target_list)
2016 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
2017 Move functions to mactoolbox.c.
2018 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
2019 Likewise.
2020 (copy_scrap_flavor_data, mac_handle_service_event)
2021 (install_service_handler) [MAC_OSX]: Likewise.
2022 (syms_of_macselect) <Vmac_dnd_known_types>:
2023 Use mac_dnd_default_known_types.
463f55ee 2024
d02fe47d
MB
2025 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
2026 Move to mactoolbox.c.
2027 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
2028 (Fx_selection_owner_p): Add EXFUN.
2029 (install_window_handler, remove_window_handler, XSetWindowBackground):
2030 Remove externs.
2031 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
2032 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
2033 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
2034 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
2035 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
2036 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
2037 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
2038 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
2039 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
2040 (create_and_show_popup_menu, mac_get_selection_from_symbol)
2041 (mac_valid_selection_target_p, mac_clear_selection)
2042 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
2043 (mac_put_selection_value, mac_selection_has_target_p)
2044 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
2045 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
2046 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
2047 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
2048 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
2049 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
2050 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
2051 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
2052 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 2053
d02fe47d 2054 * mactoolbox.c: New file.
af253914 2055
d8d30dff 20562008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 2057
d02fe47d 2058 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 2059
8ee085a4
SM
20602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2061
73d798d5
SM
2062 * character.c (Fmultibyte_char_to_unibyte):
2063 Return latin1 chars unchanged.
5556875b 2064
8ee085a4
SM
2065 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
2066 relocated if it points to `name'.
2067
5dff5999
KH
20682008-04-17 Kenichi Handa <handa@m17n.org>
2069
2070 * data.c (Faset): Allow setting a multibyte character in an
2071 ASCII-only unibyte string.
2072
2073 * lisp.h (STRING_SET_MULTIBYTE): New macro.
2074
a51f4969
SM
20752008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
2078 done in config.h.
2079
add553ac
JB
20802008-04-16 Juanma Barranquero <lekktu@gmail.com>
2081
2082 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
2083 (Fchar_direction): Add usage in the docstring.
2084
8ad7b280
CY
20852008-04-15 Chong Yidong <cyd@stupidchicken.com>
2086
2087 * keyboard.c (read_key_sequence): Remove always-true checks.
2088
e157d7ba
JR
20892008-04-14 Jason Rumney <jasonr@gnu.org>
2090
2091 * w32font.c (w32font_open_internal): Set max_bounds.descent in
2092 compatibility struct, for better underline positioning.
2093
9ec3aaef 20942008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
2095
2096 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
2097 string.
2098
36c08864
DN
20992008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2100
2101 * m/hp800.h (XUINT, XSET): Remove.
2102
f5acc071
JB
21032008-04-12 Juanma Barranquero <lekktu@gmail.com>
2104
2105 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
2106 previous change.
2107
5b5a2ea1
SM
21082008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2109
2110 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2111 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2112
492d9fd6
SM
21132008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2114
2115 * keymap.h (map_keymap_canonical): Declare.
2116 * xmenu.c (single_keymap_panes): Use it.
2117
dd60787c
GM
21182008-04-11 Glenn Morris <rgm@gnu.org>
2119
2120 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2121 set the target's value to that of the alias.
2122
c23b5410
SM
21232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2124
2125 * term.c (set_tty_color_mode): Left over typo.
2126
e89b536d
MA
21272008-04-10 Michael Albinus <michael.albinus@gmx.de>
2128
2129 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2130 only after check for file name handler functions. Signal, when
e89b536d
MA
2131 native functionality is not supported.
2132 (syms_of_fileio): Declare it unconditionally.
2133
40a339c8
JR
21342008-04-10 Jason Rumney <jasonr@gnu.org>
2135
31403b24
JR
2136 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2137 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2138
40a339c8
JR
2139 * w32.c (logon_network_drive): Also logon to remote drives that
2140 are mapped to drive letters.
2141
96a7394f
GM
21422008-04-10 Glenn Morris <rgm@gnu.org>
2143
2144 * xdisp.c (truncate-partial-width-windows): Doc fix.
2145
34b67b0f
SM
21462008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2147
2148 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2149 Move functions to minibuffer.el.
2150 (syms_of_fileio): Don't declare them.
2151
c025fb0a
SM
21522008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2153
ba5ff07b
SM
2154 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2155 (syms_of_minibuf): Remove its initialization.
2156
c025fb0a
SM
2157 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2158
7a6a86ad
JB
21592008-04-09 Juanma Barranquero <lekktu@gmail.com>
2160
2161 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2162
cf907d69
JR
21632008-04-09 Jason Rumney <jasonr@gnu.org>
2164
3dc94c30
JR
2165 * makefile.w32-in (distclean): Delete makefile too.
2166 (maintainer-clean): New target.
2167
8d28646b
JR
2168 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2169
cf907d69
JR
2170 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2171 for new font backend and composite cases.
2172
ef5eb925
JD
21732008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2174
2175 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2176 Most of the code moved to run_timers.
2177 (do_pending_atimers): Call run_timers.
2178 (run_timers): New function.
2179
cf907d69
JR
2180 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2181 run atimers.
ef5eb925
JD
2182
2183 * process.c (wait_reading_process_output): The same as above.
2184
9b2cd403
SM
21852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2186
32bae13c
SM
2187 * minibuf.c (last_exact_completion): Remove variable.
2188 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2189 (complete_and_exit_1, complete_and_exit_2)
2190 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2191 (Fdisplay_completion_list, display_completion_list_1)
2192 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
2193 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2194 minibuffer.el.
32bae13c
SM
2195 (syms_of_minibuf): Remove corresponding initializations.
2196
5c4cc82a
SM
2197 * keyboard.c (Qdeactivate_mark): New var.
2198 (command_loop_1): Use it to call `deactivate-mark'.
2199 (syms_of_keyboard): Initialize it.
2200
9b2cd403
SM
2201 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2202 to another frame.
2203 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2204 Don't call set_tty_color_mode.
2205 (store_frame_param): Reset previous_frame rather than call
2206 set_tty_color_mode.
2207 * term.c (set_tty_color_mode): Rewrite.
2208 * dispextern.h (set_tty_color_mode): New type.
2209 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2210
84cb7b45
SM
22112008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2212
2213 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2214 for generic chars, which do not exist any more in emacs-unicode.
2215
3ed051d4
MA
22162008-04-08 Michael Albinus <michael.albinus@gmx.de>
2217
2218 * coding.c (detect_coding_emacs_mule)
2219 (Ffind_operation_coding_system): Fix typo.
2220
58c3ea42
JR
22212008-04-08 Jason Rumney <jasonr@gnu.org>
2222
3bf8d230
JR
2223 * w32uniscribe.c (SNAME): Extract only symbol name.
2224
56a70cca
JR
2225 * w32font.h (struct w32_metric_cache): New struct.
2226 (w32font_info): Use it.
2227 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2228 (CACHE_BLOCKSIZE): New constants.
3ed051d4 2229
58c3ea42
JR
2230 * w32font.c (Qja, Qko, Qzh): New symbols.
2231 (syms_of_w32font): Initialise them.
2232 (font_matches_spec): Use them to filter by language.
2233 (recompute_cached_metrics): Remove function.
2234 (compute_metrics, clear_cached_metrics): New functions.
2235 (w32font_encode_char): Use them to manage metric cache.
2236 (w32font_text_extents): Cache metrics for all glyphs on demand.
2237 Delay converting glyph indices to WORD until needed.
2238 (w32font_open_internal): Initialize metric cache to empty.
2239 (registry_to_w32_charset): Charset should always be a symbol.
2240 (fill_in_logfont, list_all_matching_fonts): Family should
2241 always be a symbol.
2242
0ce24b2d
JR
22432008-04-06 Jason Rumney <jasonr@gnu.org>
2244
2245 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2246 Give up if glyph indices not supported. Use uniscribe obtained
2247 ABC widths for individual metrics. Map glyph clusters back to
2248 characters using fClusterStart flag. Return number of glyphs
2249 produced, not chars processed.
b7655e0c 2250 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2251
5bc6ddff 22522008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2253
fbf57abb
JB
2254 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2255 Use SetMenuItemHierarchicalMenu.
56613f06 2256
5bc6ddff 22572008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2258
5bc6ddff
MB
2259 * image.c (pbm_load): Allow color values up to 65535.
2260 Throw an error if max_color_idx is outside the supported range.
2261 Report an error when image size is invalid.
2262 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2263
5bc6ddff 22642008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2265
5bc6ddff
MB
2266 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2267 cFileName a file name that includes `?' characters, use the 8+3
2268 alias in cAlternateFileName instead.
5ed6ba5b 2269
5bc6ddff 22702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2271
5bc6ddff
MB
2272 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2273 append "CCL: Quitted" when the CCL program is quitted.
2274 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2275
5bc6ddff 2276 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2277
c36e15db
CY
22782008-04-05 Chong Yidong <cyd@stupidchicken.com>
2279
9605d567
CY
2280 * search.c (compile_pattern_1): Treat non-nil and non-string of
2281 search-spaces-regexp as nil.
2282
c36e15db
CY
2283 * minibuf.c (Fassoc_string): Tweak docstring.
2284
40beb147
EZ
22852008-04-05 Eli Zaretskii <eliz@gnu.org>
2286
2287 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2288 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2289 2008-03-14 to force inode be positive.
2290
2291 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2292 _S_* ones, since we now use our own sys/stat.h.
2293 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2294 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2295
4591d6cb
SM
22962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2297
d4417eb0
SM
2298 * frame.h (struct frame): Give one more bit to `visible' since we use
2299 values larger than 1 to indicate obscured frames on ttys.
2300
00f7c5ed
SM
2301 * keymap.c (Qkeymap_canonicalize): New var.
2302 (Fmap_keymap_internal): New fun.
2303 (describe_map): Use keymap-canonicalize.
2304
4591d6cb
SM
2305 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2306 (Fundo_boundary): Set them.
2307 (syms_of_undo): Initialize them.
2308 (record_point): Use them instead of last_point_position*.
2309 (last_undo_buffer): Change type.
2310
3187540e
JR
23112008-04-04 Jason Rumney <jasonr@gnu.org>
2312
0ce24b2d
JR
2313 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2314 (recompute_cached_metrics): Don't set ascent and descent per char.
2315
3187540e 2316 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2317 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2318 Rearrange loop for counting features.
3187540e 2319
f1a6b216
SM
23202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2321
2322 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2323 buffer with byte-size of source buffer.
2324
1d8dcf63
CY
23252008-04-03 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * callint.c (Fcall_interactively): Handle temporary region even
2328 when shift-select-mode is off.
2329
6b8aa22a
JR
23302008-04-03 Jason Rumney <jasonr@gnu.org>
2331
2332 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2333
2f3cbb32
KH
23342008-04-03 Kenichi Handa <handa@m17n.org>
2335
2336 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2337 (CATEGORY_MASK_UTF_16): Likewise.
2338 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2339 binary file.
2340 (detect_coding): Add null-byte detection for a binary file.
2341 (detect_coding_system): Likewise.
2342
43f4f91c
JR
23432008-04-03 Jason Rumney <jasonr@gnu.org>
2344
0c1b4ae2
JR
2345 * w32uniscribe.c: New file.
2346
2347 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2348
2349 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2350
2351 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2352 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2353 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2354 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2355 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2356 (Qphonetic): New symbols.
2357 (syms_of_w32font): Initialize them.
2358 (font_supported_scripts): Use them.
2359 (w32font_list_family): List all charsets.
2360 (w32font_text_extents, recompute_cached_metrics): Fix metric
2361 calculations.
2362 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2363 Give opentype fonts their own format.
2364 (font_matches_spec): New arguments backend and logfont.
2365 Handle :otf spec for uniscribe backend.
2366 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2367 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 2368
0c1b4ae2
JR
2369 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2370 font backend.
2371 (globals_of_w32fns): Initialize uniscribe font backend.
2372
fbf57abb 2373 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
2374 dependencies.
2375 (w32uniscribe.$(O)): New file to build.
2376 (FONT_OBJ): Include w32uniscribe.$(O).
2377 (LIBS): Add uniscribe libraries.
2378
43f4f91c
JR
2379 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2380
75043a7d
CY
23812008-04-02 Chong Yidong <cyd@stupidchicken.com>
2382
2383 * callint.c (Vshift_select_mode): New var.
2384 (Finteractive): Document new ^ spec.
2385 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2386 is present.
2387
2388 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2389 (command_loop_1): Avoid running the direct display versions of
2390 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2391 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2392 shift-translation takes place.
2393
2394 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2395 avoid clobbering by define-minor-mode.
2396
2397 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2398 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2399
2400 * syntax.c (Fforward_word): Add ^ interactive spec.
2401
2402 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2403 (Fscroll_right): Add ^ interactive spec.
2404
b2b7f29e
SM
24052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2406
a432c0a6
SM
2407 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2408
994b75e0
SM
2409 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2410
b2b7f29e
SM
2411 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2412
e99c7806
JL
24132008-03-31 Juri Linkov <juri@jurta.org>
2414
2415 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2416
1c9c1270
JD
24172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2418
2419 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2420 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2421 (x_wm_size_hint_off): Fix indentation.
2422 (xg_frame_set_char_size): Call flush_and_sync after
2423 gtk_window_resize.
2424 (x_wm_set_size_hint): Pass NULL as geometry window to
2425 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2426 Add menu bar and tool bar height to base height.
2427 (xg_update_frame_menubar, free_frame_menubar)
2428 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2429 (update_frame_tool_bar, free_frame_tool_bar):
2430 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2431
90b3fc84
MA
24322008-03-30 Michael Albinus <michael.albinus@gmx.de>
2433
2434 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2435 (Fdbus_call_method): New parameter TIMEOUT.
2436 (dbus-send-signal): Optimize UNGCPRO call.
2437
7ae6d1d1
JL
24382008-03-29 Juri Linkov <juri@jurta.org>
2439
2440 * window.c (Fdisplay_buffer): Move call to
2441 Vsplit_window_preferred_function out of conditions that check
2442 if window is eligible for vertical splitting.
2443 When Vsplit_window_preferred_function is non-nil, call it and use
2444 its non-nil return value as window. Otherwise, continue doing
2445 vertical splitting using Fsplit_window with arg horflag=nil.
2446 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2447 default value from `split-window' to nil.
2448
f03f8f2c
JL
24492008-03-29 Juri Linkov <juri@jurta.org>
2450
2451 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2452 for interactive code letters 'b' and 'B'.
2453
6d557778
EZ
24542008-03-29 Eli Zaretskii <eliz@gnu.org>
2455
2456 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2457 multibyte string.
2458
58555d81
SM
24592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2460
2461 * keyboard.c (pending_funcalls): New var.
2462 (timer_check): Run it.
2463 (syms_of_keyboard): Initialize it.
2464 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2465 (Vdelete_terminal_functions): New vars.
2466 (syms_of_terminal): Initialize them.
2467 (Fdelete_terminal): Run delete-terminal-functions.
2468 * xdisp.c (safe_eval): Rewrite.
2469 (safe_call2): New fun.
2470 * frame.c (Qdelete_frame_functions): New var.
2471 (syms_of_frame): Initialize it.
2472 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2473 * lisp.h (safe_call2, pending_funcalls): Declare.
2474
4c92f429
AS
24752008-03-28 Andreas Schwab <schwab@suse.de>
2476
2477 * indent.c (Fmove_to_column): Move declaration before statements.
2478
a1567c45
SM
24792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2480
2806a183
SM
2481 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2482 (struct frame): Use bit fields for boolean vars.
2483
eef60308
SM
2484 * process.c (server_accept_connection): Simplify naming.
2485 (emacs_get_tty_pgrp): Use SDATA.
2486
a1567c45
SM
2487 * coding.c (decode_coding_object): Fix last change.
2488
30076589
JR
24892008-03-27 Jason Rumney <jasonr@gnu.org>
2490
2491 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2492
880820fe
KH
24932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2494
2495 * charset.c (Fdefine_charset_internal): Change the way of
2496 registering charsets in Vcharset_order_list.
2497 (syms_of_charset): Make the charset `eight-bit' supplementary.
2498
3cf8cdfb
CY
24992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2500
2501 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2502 operations, to avoid having the difference between pointers
2503 overflow.
2504
ef6f5c0e
SM
25052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2506
80e3db56
SM
2507 * indent.c (check_display_width): New fun.
2508 (scan_for_column): Use it.
2509
c397dc7a
SM
2510 * data.c (syms_of_data): Mark most-positive-fixnum and
2511 most-negative-fixnum as constants.
2512
bf6b4d58
SM
2513 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2514
ef6f5c0e
SM
2515 * indent.c (scan_for_column): Extract from current_column_1.
2516 Merge with the same code from Fmove_to_column.
2517 (current_column_1, Fmove_to_column): Use it.
2518
72d5003d
SM
25192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2520
12270607
SM
2521 * keymap.c (map_keymap_internal): New fun.
2522 (map_keymap): Use it.
2523 (Fmap_keymap_internal): New fun.
2524 (Fmap_keymap): Remove left-out test from before make_save_value.
2525
a10cca6c
SM
2526 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2527
d7b10f4c
SM
2528 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2529 Use XCAR/XCDR.
2530
5431bd6a
SM
2531 * process.h (struct Lisp_Process): Remove filter_multibyte.
2532 * process.c (QCfilter_multibyte): Remove.
2533 (setup_process_coding_systems): Don't use filter_multibyte.
2534 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2535 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2536 (Fset_process_filter_multibyte): Change the coding-system to
2537 approximate the previous behavior.
2538 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2539 coding-system.
2540
72d5003d
SM
2541 * coding.c (decode_coding_object): When not decoding into a buffer,
2542 obey the coding system's preference of (uni|multi)byte.
2543
438eba3c
SM
25442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2545
2546 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2547 every char is changed and has a different byte-length.
2548 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2549 Fix int -> EMACS_INT.
2550
9ec3aaef 25512008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2552
438eba3c 2553 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2554 strings. Check for NULL `interface' or `member'.
2555
b07103dc
EZ
25562008-03-22 Eli Zaretskii <eliz@gnu.org>
2557
2558 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2559 cFileName a file name that includes `?' characters, use the 8+3
2560 alias in cAlternateFileName instead.
2561
5371d722
SM
25622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2563
2564 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2565
6ba7f443
SM
25662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2567
2568 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2569 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2570 work on current_buffer only instead (that was already the case
2571 for some of the code anyway).
2572 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2573 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2574 (SET_PT, SET_PT_BOTH): Adjust.
2575 * intervals.h (set_point, temp_set_point, set_point_both)
2576 (temp_set_point_both): Remove redundant declarations.
2577
bf1c0f27
SM
25782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2579
2580 * fileio.c (Finsert_file_contents):
2581 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2582 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2583 when buffer != current_buffer anyway.
2584
acab783e
AS
25852008-03-20 Andreas Schwab <schwab@suse.de>
2586
2587 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2588 as default.
2589
d148e14d
JR
25902008-03-19 Jason Rumney <jasonr@gnu.org>
2591
2592 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2593 (syms_of_w32fns): Initialize them.
2594 (HOURGLASS_ID): New constant.
2595 (x_window_to_frame): Don't check hourglass_window.
2596 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2597 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2598 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2599 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2600 Only change the cursor if hourglass is not active.
2601 (Fx_create_frame): Initialize frame's current_cursor.
2602 (hourglass_atimer): Remove.
2603 (hourglass_started): New function.
2604 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2605 (show_hourglass): Adapt to w32, changing argument to frame.
2606
2607 * w32term.h (struct w32_output): Remove hourglass_window.
2608 Add current_cursor.
2609
2610 * eval.c (call_debugger, Fsignal):
2611 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2612 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2613 (Fexecute_extended_command, cancel_hourglass_unwind):
2614 * minibuf.c (read_minibuf):
2615 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2616
a5c54077
JB
26172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2618
2619 * window.c (run_funs): New fun.
2620 (run_window_configuration_change_hook): Use it to run the buffer-local
2621 and the global part of the hook.
2622
2623 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2624 (unwind_format_mode_line): Restore selected window.
2625 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2626
f9f3238f
SM
26272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2628
253c3c82
SM
2629 * editfns.c (Fchar_equal): Check they are valid characters.
2630
f9f3238f
SM
2631 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2632
065a118d
AS
26332008-03-17 Andreas Schwab <schwab@suse.de>
2634
0b8be006
AS
2635 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2636 against a charset.
2637
065a118d
AS
2638 * lisp.h (Fbuffer_list): Declare.
2639
880820fe 26402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2641
2642 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2643 handlebox_widget is != 0.
2644
6206d6c2
JL
26452008-03-16 Juri Linkov <juri@jurta.org>
2646
2647 * callint.c (Fcall_interactively): For interactive code letters
2648 'b' and 'B' put the buffer list into the list of default "future"
2649 values of the minibuffer.
2650
f5020181
AS
26512008-03-16 Andreas Schwab <schwab@suse.de>
2652
a864f6d6
AS
2653 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2654 modifiers.
2655
f5020181
AS
2656 * regex.c (re_match_2_internal): Correct matching of a charset
2657 against latin-1 characters.
2658
03f244e2
KH
26592008-03-16 Kenichi Handa <handa@m17n.org>
2660
2661 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2662 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2663 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2664 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2665 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2666 CHAR_STRING_ADVANCE.
2667 (produce_chars): Fix for the case that the source and the
2668 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2669 instead of CHAR_STRING_ADVANCE.
2670 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2671 STRING_CHAR_ADVANCE.
2672
0e2501ed
AS
26732008-03-15 Andreas Schwab <schwab@suse.de>
2674
2675 * regex.c (re_match_2_internal): Correct matching of eight bit
2676 characters in unibyte strings.
2677
7723e095
MR
26782008-03-15 Martin Rudalics <rudalics@gmx.at>
2679
2680 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2681 at end of range when it coincides with the end of the buffer.
2682
f507f365
EZ
26832008-03-14 Eli Zaretskii <eliz@gnu.org>
2684
294f1153
EZ
2685 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2686
f507f365
EZ
2687 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2688
64f0809d
JR
26892008-03-14 Jason Rumney <jasonr@gnu.org>
2690
956ae531
JR
2691 * editfns.c (initial_tz): New variable.
2692 (syms_of_editfns): Initialize it.
2693 (Fset_time_zone_rule): Set it when first called.
2694 Use it when TZSTRING is nil.
2695
64f0809d
JR
2696 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2697 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2698 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2699 (globals_of_w32fns): Initialize them.
2700 (compute_tip_xy): Use them to position tooltips.
2701
21a4ff8e
GM
27022008-03-14 Glenn Morris <rgm@gnu.org>
2703
2704 * emacs.c (main): Revert previous change.
2705 (standard_args): Revert -internal-script back to -scriptload,
2706 and remove the long-option form.
2707
a09a5b5b
GM
27082008-03-13 Glenn Morris <rgm@gnu.org>
2709
2710 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2711 Remove option -enable-font-backend.
2712
1c55ebd1
SM
27132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2714
2715 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2716
880820fe 27172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2718
2719 * xterm.c (x_connection_closed): For GTK: If this is the last
2720 terminal just exit without closing the display.
2721
7145be81
JR
27222008-03-11 Jason Rumney <jasonr@gnu.org>
2723
2724 * w32font.c (w32font_full_name): Use floor to round.
2725
e6201af3 27262008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2727
2728 * sound.c (alsa_configure): Declare vol at beginning of block.
2729
e6201af3 2730 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2731
390b81fa 27322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2733
56388398
MB
2734 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2735 size of resulting string.
af0ad939 2736
390b81fa 27372008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2738
56388398 2739 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2740
390b81fa 27412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2742
56388398
MB
2743 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2744 Don't pretend as if characters with display property haven't been
2745 consumed for string-replacing-string case.
acd37560 2746
223ed6db
KS
27472008-03-08 Kim F. Storm <storm@cua.dk>
2748
2749 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2750 (get_next_display_element, next_element_from_string)
2751 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2752
28545f7c
AS
27532008-03-08 Andreas Schwab <schwab@suse.de>
2754
2755 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2756
c960bff8
JR
27572008-03-06 Jason Rumney <jasonr@gnu.org>
2758
290afd83
JB
2759 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2760 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2761 font_type is truetype.
2762 (w32font_coverage_ok): New function.
2763 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2764
87b8ce92
KH
27652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2766
2767 * lread.c (Fread_char): Resolve modifiers.
2768 (Fread_char_exclusive): Likewise.
2769
2770 * character.c (char_resolve_modifier_mask): New function.
2771 (char_string): Use char_resolve_modifier_mask.
2772 (Fchar_resolve_modifiers): New function.
2773 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2774 function.
2775
cefd56f6
JR
27762008-03-04 Jason Rumney <jasonr@gnu.org>
2777
2778 * makefile.w32-in: Always include w32font.c in the build.
2779 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
2780
03bd3c1f
AS
27812008-03-04 Andreas Schwab <schwab@suse.de>
2782
2783 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
2784 (versionclean): Likewise.
2785
6f69e89b
JB
27862008-03-04 Juanma Barranquero <lekktu@gmail.com>
2787
2788 * .cvsignore: Add oo.
2789
f4a3cc44
AS
27902008-03-03 Andreas Schwab <schwab@suse.de>
2791
2792 * coding.c (decode_coding_object): Inhibit gap shrinking while
2793 decoding in place.
2794
73f838ad
DN
27952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
2796
2797 * w32term.c: Remove unused include "gnu.h".
6f69e89b 2798 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
2799
2800 * gnu.h: Rename to ...
2801 * emacs-icon.h: ... this.
2802 * xterm.c: Use emacs-icon.h instead of gnu.h.
2803 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2804
ce9c1f06
JB
28052008-03-03 Juanma Barranquero <lekktu@gmail.com>
2806
2807 * w32font.c: Include math.h.
2808
34fd2d28
JR
28092008-03-03 Jason Rumney <jasonr@gnu.org>
2810
54efdcd1
JR
2811 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
2812 Compute options separately.
2813 (w32font_open_internal): Set glyph_idx before caching metrics.
2814
ce9c1f06
JB
2815 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
2816 Define if system headers don't.
2817 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
2818 (w32font_encode_char): Don't declare here.
2819
2820 * w32font.c (Quniscribe, QCformat): New symbols.
2821 (syms_of_w32font): Define them.
2822 (w32font_has_char): Indicate uncertainty.
ce9c1f06 2823 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 2824 (recompute_cached_metrics): New function.
ce9c1f06
JB
2825 (w32font_open_internal): Use it. Set font to use glyph points
2826 initially. Set format based on type of font.
34fd2d28 2827 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
2828 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
2829 on it. Set format based on information available here.
34fd2d28
JR
2830 (add_font_entity_to_list): Identify backend based on opentype_only.
2831
14daee73
AS
28322008-03-02 Andreas Schwab <schwab@suse.de>
2833
f907fb2e
AS
2834 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
2835
ce9c1f06
JB
2836 * coding.c (decode_coding_big5, produce_chars):
2837 Fix typos in last change.
14daee73 2838
c9cc6462
DN
28392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
2840
2841 * gnu.h: New icon.
2842
119852e7
KH
28432008-03-02 Kenichi Handa <handa@m17n.org>
2844
2845 * coding.c (decode_coding_utf_8): When eol-type of CODING is
2846 `dos', don't decode '\r' if that is the last in the source.
2847 (decode_coding_utf_16, decode_coding_emacs_mule)
2848 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2849 (decode_coding_raw_text, decode_coding_charset): Likewise.
2850 (produce_chars): Don't decode EOL here. Use EMACS_INT.
2851
a823468b
JR
28522008-03-01 Jason Rumney <jasonr@gnu.org>
2853
2854 * w32font.c (w32font_full_name): Report point size for scalable fonts.
2855
4ddc7e30
KS
28562008-03-01 Kim F. Storm <storm@cua.dk>
2857
2858 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
2859
67997c79
JR
28602008-03-01 Jason Rumney <jasonr@gnu.org>
2861
2862 * w32font.c (w32font_full_name): New function.
2863 (w32font_open_internal): Use it.
2864
3f4e9c35
KS
28652008-03-01 Kim F. Storm <storm@cua.dk>
2866
2867 * dispnew.c (line_draw_cost): Fix invalid glyph check.
2868
f3b9e479
JR
28692008-03-01 Jason Rumney <jasonr@gnu.org>
2870
2871 * font.c (font_unparse_fcname): Increase len when style is a symbol.
2872
880820fe 28732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
2874
2875 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
2876 xg_frame_resized when the event is for the edit widget.
2877
2878 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
2879
2880 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
2881 set_char_size.
2882 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
2883 operations on widgets here. Just set frame size if needed.
2884 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
2885 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
2886 (x_wm_set_size_hint): Set size hints on the edit widget only, not
2887 the whole frame.
2888 (xg_create_tool_bar): Move attachement of the tool bar to
2889 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
2890 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
2891
6c8acaa1
JR
28922008-03-01 Jason Rumney <jasonr@gnu.org>
2893
2894 * w32fns.c (w32_msg_pump): Disable debug code.
2895
51fb064b 28962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 2897
51fb064b 2898 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 2899
60221a33
CY
29002008-02-29 Chong Yidong <cyd@stupidchicken.com>
2901
2902 * xdisp.c (next_overlay_string): Don't set
2903 overlay_strings_at_end_processed_p if we're currently reading from
2904 a display string.
2905
10cbc34f
SM
29062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
2907
2908 * xdisp.c (get_overlay_strings_1): Fix typo.
2909
73c0054e
CY
29102008-02-29 Chong Yidong <cyd@stupidchicken.com>
2911
2912 * xdisp.c (get_overlay_strings_1): Add missing argument type.
2913
ec1c4354
KH
29142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2915
55082642
KH
2916 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
2917
ec1c4354
KH
2918 * xdisp.c (display_mode_element): Cancel the previous change.
2919 (decode_mode_spec): Likewise.
ee548a94
KH
2920 (handle_auto_composed_prop): Don't make composition if it->string
2921 is a string.
ec1c4354 2922
b6d898a2
KS
29232008-02-27 Kim F. Storm <storm@cua.dk>
2924
2925 * lisp.h (GLYPH): Change type from int to struct with separate char
2926 and face_id members.
2927 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
2928 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
2929 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
2930 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
2931 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
2932 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
2933 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
2934 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
2935 handle new Lisp glyph code encoding, either an integer or a cons.
2936
2937 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
2938 (GLYPH_ALIAS): Delete.
2939 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
2940 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
2941 (GLYPH_FROM_CHAR): Replace macro by ...
2942 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
2943
2944 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
2945 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
2946 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2947 (GLYPH_INVALID_P): New macro.
2948 (spec_glyph_lookup_face): Update prototype.
2949
2950 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2951 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2952 new glyph code encoding.
2953 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2954 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2955
2956 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2957 Adapt to new glyph type and new glyph code encoding.
2958
2959 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2960
2961 * indent.c (current_column, current_column_1, Fmove_to_column)
2962 (compute_motion): Adapt to new glyph code encoding.
2963
2964 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2965
af2080a2
CY
29662008-02-27 Chong Yidong <cyd@stupidchicken.com>
2967
2968 * process.c (wait_reading_process_output): Check for window
2969 changes caused by timers.
880820fe 2970 Suggested by Johan Bockgård.
af2080a2 2971
253ed25e
GM
29722008-02-27 Glenn Morris <rgm@gnu.org>
2973
2974 * emacs.c (USAGE1): Add `--disable-font-backend'.
2975
18a9f8d9
SM
29762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2977
2978 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2979 is made to the buffer.
2980
0f8b27ea
SM
29812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2982
2983 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2984 (face_at_string_position):
2985 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2986 (face_at_string_position):
2987 * xdisp.c (display_string, next_overlay_change):
2988 * buffer.h (overlays_at):
2989 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2990 Update callers.
2991
4e7c53ca
CY
29922008-02-26 Chong Yidong <cyd@stupidchicken.com>
2993
2994 * editfns.c (Fformat): Doc fix.
2995
51c01100
JB
29962008-02-26 Juanma Barranquero <lekktu@gmail.com>
2997
2998 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2999 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
3000 (Ffont_otf_alternates, Fquery_font): Doc fixes.
3001
13cda5f9
SM
30022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3003
3004 * buffer.c (Fbuffer_swap_text): New function.
3005 (syms_of_buffer): Defsubr it.
3006
8018d430
CY
30072008-02-25 Chong Yidong <cyd@stupidchicken.com>
3008
3009 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
3010
9bde1a21
JR
30112008-02-25 Jason Rumney <jasonr@gnu.org>
3012
3013 * w32font.c (w32font_draw): Draw one character at a time when padding.
3014
eeca6f6f
SM
30152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3016
3017 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
3018 Handle a nil arg. Use run_window_configuration_change_hook.
3019 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
3020 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
3021 Use run_window_configuration_change_hook.
3022
ec1c4354
KH
30232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3024
3025 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
3026 1-pixel width.
3027
ae185452
KH
30282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
3029
3030 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
3031 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
3032 if the glyph in the font is zero pixel with.
3033
3034 * dispextern.h (struct glyph_string): New member padding_p.
3035
3036 * w32font.c (w32font_draw): Pay attention to s->padding_p.
3037
3038 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
3039
3040 * xfont.c (xfont_draw): Pay attention to s->padding_p.
3041
3042 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
3043
eeca6f6f 3044 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 3045
ffe832ea 30462008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 3047
ffe832ea 3048 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 3049
06045130
SM
30502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
3051
3052 Allow fine-grained image-cache flushing.
3053 * dispextern.h (struct image): Add `dependencies' field.
3054 (clear_image_caches): Change arg to Lisp_Object.
3055 * image.c (make_image): Initialize `dependencies' field.
3056 (clear_image_cache): Change arg to allow fine-grained flushing.
3057 Perform the flush even if image-cache-eviction-delay is nil.
3058 (clear_image_caches): Change arg to Lisp_Object.
3059 (Fclear_image_cache): Expand meaning of the argument.
3060 (mark_image): Mark `dependencies' field.
3061 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
3062 (lface_hash): Use XHASH rather than XFASTINT.
3063 (face_at_buffer_position): Fix int -> EMACS_INT position.
3064 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
3065 (select_frame_for_redisplay): Remove code duplication.
3066 (redisplay_internal): Adapt arg to call to clear_image_caches.
3067
9d2818d6
DN
30682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
3069
3070 * s/vms4-0.h:
3071 * s/vms4-2.h:
3072 * s/vms4-4.h:
3073 * s/vms5-5.h: Remove, unused.
3074
3075 * s/irix5-2.h:
3076 * s/irix6-0.h:
3077 * s/riscos5.h:
3078 * s/mach-bsd4-3.h:
2a2e8de7 3079 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
3080
3081 * Makefile.in:
3082 * filelock.c:
3083 * unexmips.c:
3084 * m/hp9000s300.h:
3085 * m/iris4d.h:
3086 * s/aix3-1.h:
3087 * s/hpux.h:
3088 * s/msdos.h:
3089 * s/usg5-0.h:
3090 * s/usg5-2-2.h:
3091 * s/usg5-2.h:
3092 * s/usg5-3.h: Remove references to obsolete variables.
3093
3094 * s/irix5-0.h: Remove, move all the contents ...
3095 * s/irix6-5.h: ... here. Simplify.
3096 * config.in: Regenerate.
3097
2a36efcf
JR
30982008-02-24 Jason Rumney <jasonr@gnu.org>
3099
c5ad7a3d 3100 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
3101 manually when cleartype is in use.
3102 (x_draw_glyph_string_foreground): Draw text transparently when
3103 cleartype is in use.
3104
2a36efcf
JR
3105 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
3106 a font into it unless we have to.
3107
b03f96dc 31082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3109
b03f96dc
MB
3110 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3111 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3112
b03f96dc 31132008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3114
b03f96dc 3115 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3116
b03f96dc 31172008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3118
b03f96dc 3119 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3120
b03f96dc 31212008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3122
b03f96dc 3123 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3124
d5958163
CY
31252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3126
3127 * xterm.c (x_set_offset): Don't change the gravity if
3128 CHANGE_GRAVITY is -1.
3129
9997701e
CY
31302008-02-23 Chong Yidong <cyd@stupidchicken.com>
3131
3132 * fileio.c (auto_save_error_occurred): New var.
3133 (auto_save_error): Set it.
3134 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3135 error occurred.
3136
9d95a291
EZ
31372008-02-23 Eli Zaretskii <eliz@gnu.org>
3138
3139 * w32.c (globals_of_w32): Add initializations for
3140 g_b_init_get_sid_sub_authority and
3141 g_b_init_get_sid_sub_authority_count.
3142
43d1af23
SM
31432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3144
43a1d19b
SM
3145 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3146 (font_parse_xlfd): Use them for sanity check.
608c3307 3147 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 3148
354884c4
SM
3149 Consolidate the image_cache to the terminal struct.
3150 * termhooks.h (P_): Remove redundant def.
3151 (struct terminal): New field `image_cache'.
3152 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3153 of FRAME_X_IMAGE_CACHE.
3154 * xterm.h (struct x_display_info): Remove image_cache field.
3155 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3156 * w32term.h (struct w32_display_info): Remove image_cache field.
3157 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3158 * macterm.h (struct mac_display_info): Remove image_cache field.
3159 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3160 * xterm.c (x_term_init):
3161 * w32term.c (w32_term_init):
3162 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3163 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3164 Remove declarations.
3165 (clear_image_caches, mark_image_cache): New declarations.
3166 * xfaces.c (clear_face_cache):
3167 * xdisp.c (redisplay_internal): Use clear_image_caches.
3168 * image.c (clear_image_cache): Don't check that a frame is on
3169 a window-system before checking if it shares the same cache.
3170 (clear_image_caches): New function.
3171 (Fclear_image_cache): Use it.
3172 (mark_image): Move from allo.c.
3173 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3174 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3175 (mark_object): Don't call mark_image_cache for frames.
3176 (mark_terminals): Call mark_image_cache.
3177
c2e42690
SM
3178 * lisp.h (Fdelete_terminal): Declare.
3179
43d1af23
SM
3180 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3181 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3182 wrong_type_argument.
3183
cc8d1311
KH
31842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3185
3186 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 3187 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 3188
6bd92640
SM
31892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3190
3191 * xterm.c (x_connection_closed): Consolidate identical tests.
3192 (x_delete_terminal): Don't crash if called via x_connection_closed.
3193
a73b5627
KH
31942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3195
3196 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 3197 (display_mode_element): Adjust for the above change.
a73b5627 3198
1b511542
SM
31992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3200
3201 * callint.c (Fcall_interactively): Use AREF.
3202
81aefea4
SM
32032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3204
3205 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3206
880820fe 32072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
3208
3209 * xfns.c (Fx_show_tip): Set string to " " if empty.
3210
a2b84f35
DN
32112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3212
3213 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3214 with Qt.
3215
43c0454d
KH
32162008-02-17 Kenichi Handa <handa@m17n.org>
3217
3218 * ftfont.c (ftfont_shape): Return Lispy number.
3219
3220 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3221 for GCs.
3222 (Finternal_set_font_selection_order): Call font_update_sort_order
3223 only when enable_font_backend is set.
3224 (realize_x_face): Set face->font_info to that of default face only
3225 when enable_font_backend is set.
3226
3227 * xdisp.c (handle_composition_prop): Set it->c to the fist
3228 characte of the composed region.
3229 (fill_composite_glyph_string): Set base_face->font_info to
3230 s->font_info. Get a face for ascii from base_face->ascii_face.
3231 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3232 with a face already decided.
3233 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3234 non-negative.
978bef9a
JB
3235 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3236 call font_prepare_composition unconditionally.
43c0454d 3237
978bef9a 3238 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
3239
3240 * xterm.h (struct x_display_info): New member font.
3241
3242 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3243 (x_set_mouse_face_gc, x_new_font): Likewise.
3244 (x_term_init): Setup display_info->font.
3245 (x_delete_terminal): Free display_info->font.
3246
3247 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3248
3249 * ftxfont.c (ftxfont_default_fid): Delete it.
3250 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3251 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3252 font-driver.
3253
3254 * xftfont.c (xftfont_default_fid): Delete it.
3255 (xftfont_open): Set xfont->fid to 0.
3256
3257 * fontset.c (FONTSET_OBJLIST): New macro.
3258 (fontset_find_font): Update font-object list of the fontset.
3259 (free_realized_fontset): New function.
3260 (free_face_fontset): Call free_realized_fontset.
3261 (Ffont_info): Call font_close_object only when enable_font_backend
3262 is set.
3263
3264 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3265 [HAVE_NTGUI]: Include w32term.h.
3266 [MAC_OS]: Include macterm.ch.
3267 (font_otf_ValueRecord): Use make_number.
3268 (font_finish_cache): Fix handling of reference count.
3269 (font_clear_cache): Update num_fonts.
3270 (font_open_entity): Update smallest_char_width and
3271 smallest_font_height of the frame.
3272 (font_close_object): Update num_fonts.
3273 (Fclear_font_cache): Fix finding the target cache data.
3274
be617367
GM
32752008-02-16 Glenn Morris <rgm@gnu.org>
3276
3277 * fontset.c (Finternal_char_font): Fix compilation warning.
3278
2930d117
EZ
32792008-02-16 Eli Zaretskii <eliz@gnu.org>
3280
634d3003
EZ
3281 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3282 instead of char arrays. Enlarge the size of array passed to
3283 get_token_information.
3284
2930d117
EZ
3285 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3286 warnings.
3287
79214046
DN
32882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3289
3290 * .gdbinit: Don't set `args', it breaks gdb --args.
3291
7f5d2c72
SM
32922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3293
3294 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3295 within a narrowed buffer.
3296
6edacc43
KH
32972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3298
b270d6af
JB
3299 * coding.c (decode_coding_object, encode_coding_object):
3300 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3301
174105f7
SM
33022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3303
b270d6af
JB
3304 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3305 hardcoding 1.
13818c30
SM
3306 (detect_coding_system):
3307 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3308 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3309 * insdel.c (insert_from_gap):
3310 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3311 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3312 (string_to_multibyte):
3313 * character.c (chars_in_text, multibyte_chars_in_text):
3314 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3315
f1c99628
SM
3316 * character.h (FETCH_STRING_CHAR_ADVANCE)
3317 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3318 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3319 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3320
7927d8e3
SM
3321 * casefiddle.c (casify_region): Only call after-change and composition
3322 functions on the part of the region that was changed.
3323
adf6a429 3324 * keyboard.c (read_avail_input):
174105f7
SM
3325 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3326
3ee24aec
SM
33272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3328
3329 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3330 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3331
4ed4b975
JB
33322008-02-11 Juanma Barranquero <lekktu@gmail.com>
3333
3334 * w32menu.c (push_submenu_start, push_submenu_end)
3335 (push_left_right_boundary, push_menu_pane, push_menu_item):
3336 * keyboard.c (read_key_sequence): Don't pass args with side effects
3337 to AREF, it fails when compiling with -DENABLE_CHECKING.
3338
79e3bfb8
KH
33392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3340
4ed4b975
JB
3341 * Makefile.in (${lispsource}international/charprop.el):
3342 Delete this target.
6e76043f 3343
79e3bfb8
KH
3344 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3345 emacs-unicode-2.
3346
5b8de9c5
SM
33472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3348
3349 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3350
eac1939a
SM
33512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3352
c53956fe
SM
3353 * frame.c (Qnoelisp): New symbol.
3354 (syms_of_frame): Initialize it.
3355 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3356 someharmles Elisp code, from a strong `force' from x_connection_closed.
3357 * frame.h (Qnoelisp): Declare.
3358 * xterm.c (x_connection_closed): Pass `noelisp'.
3359
eac1939a
SM
3360 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3361 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3362 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3363 rather than `int' for the type of `type'.
3364
13f6772b
DN
33652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3366
3367 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3368
3369 * Makefile.in (GNUC): Remove support for gcc-1.x.
3370
e8455367
RS
33712008-02-10 Richard Stallman <rms@gnu.org>
3372
3373 * lisp.h (ASET): Use AREF, not ASLOT.
3374
4b75ffab
SM
33752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3376
3377 * lisp.h (ASET): Check bounds.
3378
d224e8c2
GM
33792008-02-10 Glenn Morris <rgm@gnu.org>
3380
3381 * buffer.c (mode-name): Doc fix.
3382
4624371d
DN
33832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3384
290afd83
JB
3385 * Makefile.in:
3386 * emacs.c:
3387 * gmalloc.c:
3388 * keyboard.c:
3389 * lisp.h:
3390 * m/ibm370aix.h:
3391 * process.c:
3392 * regex.c:
3393 * s/hpux.h:
3394 * sysdep.c:
3395 * sysselect.h:
3396 * systty.h:
3397 * unexec.c:
3398 * w32term.c:
3399 * xsmfns.c:
3400 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3401
3402 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3403
3404 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3405 nothing else needs it anymore.
3406
274ec34b
EZ
34072008-02-09 Eli Zaretskii <eliz@gnu.org>
3408
3409 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3410 instead of unibyte_char_to_multibyte.
3411
deeaffe1
DN
34122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3413
3414 * s/gnu-linux.h: Remove commented out code.
3415
4ed4b975 3416 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3417
3418 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3419 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3420 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3421 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3422 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3423
68b587a6
SM
34242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3425
9141ca5e
SM
3426 * keymap.c (Fkey_description): Move side effect outside of macro call.
3427
dfae5f9a 3428 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3429 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3430
ff7a2223
SM
3431 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3432 (syms_of_fontset): Use ASET.
3433
68b587a6
SM
3434 * fns.c (concat): Move side effect outside of macro call.
3435 (hash_clear): Use ASET.
3436
a31787b1
RS
34372008-02-08 Richard Stallman <rms@gnu.org>
3438
3439 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3440 If FORCE, and frame has a surrogate minibuffer for another frame,
3441 delete the other frame first.
3442
987be29b 34432008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3444
3445 * xterm.c (x_detect_focus_change): Handle embed client message.
3446 (handle_one_xevent): Ditto.
3447 (handle_one_xevent): If embedded and we get a button press/release,
3448 request focus.
3449 (xembed_set_info, xembed_send_message): New functions.
3450 (x_make_frame_visible): Call xembed_set_info if embedded.
3451 (x_make_frame_invisible): Call xembed_set_info if embedded.
3452 (x_term_init): Initialize Xatom_XEMBED.
3453 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3454 (x_iconify_frame): Ditto.
3455
3456 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3457 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3458 (enum xembed_modifier, enum xembed_accelerator): New.
3459 (xembed_set_info, xembed_send_message): Declare.
3460 (FRAME_X_EMBEDDED_P): New.
3461
3462 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3463 gtk_plug_new.
3464
3465 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3466 window ID of a frame.
3467 (x_window): Reparent frame if embedded.
3468 (Fx_create_frame): Don't set border width if embedded.
3469
1f204af3 3470 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
3471 (standard_args): Ditto.
3472
880820fe 34732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3474
3475 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3476
92413ef3
JD
34772008-02-07 Jim Meyering <meyering@redhat.com>
3478
6f69e89b 3479 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3480 The latter provokes a warning from gcc about the empty else, when
3481 followed by ";". Also, without that trailing semicolon, it would
3482 silently swallow up any following statement.
c3f9fba8 3483 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3484 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3485 * buffer.h (DECODE_POSITION): Likewise.
3486 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3487 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3488 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3489 (FETCH_CHAR_ADVANCE): Likewise.
3490 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3491
03fa5713
GM
34922008-02-07 Jim Meyering <meyering@redhat.com>
3493
3494 * lread.c [lint]: Don't include <sys/inode.h>.
3495
3ae565b3
SM
34962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3497
3498 * xselect.c (x_handle_dnd_message):
3499 * xmenu.c (digest_single_submenu, xmenu_show):
3500 * xdisp.c (with_echo_area_buffer_unwind_data)
3501 (format_mode_line_unwind_data, unwind_format_mode_line)
3502 (display_menu_bar):
3503 * eval.c (Ffetch_bytecode):
3504 * doc.c (store_function_docstring):
3505 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3506 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3507 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3508
146b6e55
KH
35092008-02-07 Kenichi Handa <handa@m17n.org>
3510
3511 * ftxfont.c (ftxfont_open): Don't set
3512 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3513
3514 * ftfont.c (ftfont_open): Fix previous change.
3515
46a923ac
JR
35162008-02-06 Jason Rumney <jasonr@gnu.org>
3517
3518 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3519 Use cached metrics for ASCII characters.
3ae565b3
SM
3520 (w32font_open_internal): Don't set font's owning_frame.
3521 Cache metrics for ASCII characters.
46a923ac
JR
3522
3523 * w32font.h (struct w32font_info): Add ascii_metrics.
3524 Remove owning_frame.
3525
da7d7c21
KH
35262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3527
3528 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3529 to negative value.
3530
3531 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3532
3ae565b3 3533 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3534
3535 * charset.c (syms_of_charset): Set QCtest and Qeq.
3536
c62c8ddb
SM
35372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3538
ca319910
SM
3539 * process.c (Fstart_process):
3540 * callproc.c (Fcall_process): Handle the case where
3541 Funhandled_file_name_directory returns nil.
3542
76860cbb
SM
3543 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3544 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3545 * font.c (check_gstring): Use them and AREF to access the vector before
3546 we know it's really a gstring.
3547 (Ffont_shape_text): Fix typo.
3548 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3549
15139d67
SM
3550 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3551 Declare.
3552
c62c8ddb
SM
3553 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3554
04b65d2b
JR
35552008-02-05 Jason Rumney <jasonr@gnu.org>
3556
3557 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3558 Set smallest_font_height and smallest_char_width in display info.
3559
fccaebfd
KH
35602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3561
3562 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3563
e7d7fd8c
MB
35642008-02-05 Miles Bader <miles@gnu.org>
3565
3566 * xfaces.c (get_lface_attributes, merge_named_face)
3567 (lookup_named_face, lookup_derived_face, realize_named_face):
3568 Revert 2008-02-01 change by cyd@stupidchicken.com.
3569
3d4448a8
KH
35702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3571
3572 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3573 fallback fonts.
15139d67 3574 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3575
5ace1ec1
JR
35762008-02-04 Jason Rumney <jasonr@gnu.org>
3577
3578 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3579 set full_name.
e3a77b22 3580 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3581
ffe42183
JR
35822008-02-03 Jason Rumney <jasonr@gnu.org>
3583
3584 * makefile.w32-in (OBJ1): Include font.o here.
3585 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3586
526dc3b3
JR
35872008-02-02 Jason Rumney <jasonr@gnu.org>
3588
a0fece35 3589 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3590
af805c82
JR
35912008-02-01 Jason Rumney <jasonr@gnu.org>
3592
3593 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3594
3595 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3596
7f6519c5
AS
35972008-02-01 Andreas Schwab <schwab@suse.de>
3598
1f45f627 3599 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3600 ../lisp/language/myanmar.el.
7f6519c5 3601
26f8aa27
CY
36022008-02-01 Chong Yidong <cyd@stupidchicken.com>
3603
1f45f627 3604 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3605 (merge_named_face, lookup_named_face, lookup_derived_face)
3606 (realize_named_face): Call lface_from_face_name directly, and use
3607 the fact that merge_face_vectors does not alter its FROM argument.
3608
73acf815 36092008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3610
3611 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3612 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3613
73acf815 36142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3615
3616 * fontset.c (reorder_font_vector): Exclude nil elements from the
3617 font group. Don't try multiple fonts.
15139d67 3618 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3619 (Finternal_char_font): Return nil if the found font doesn't
3620 contain the character ch.
3621
4c4475a8 3622 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3623
73acf815 36242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3625
3626 * font.h (FONTP): Make it return 1 also for a font-object.
3627
3628 * .gdbinit (xfontset): New function.
3629
3630 * font.c (font_find_for_lface): Check if the character C is
3631 supported or not only for the first font.
3632
3633 * fontset.c (reorder_font_vector): Fix typo.
3634 (fontset_find_font): Don't add a font-spec specifying a script.
3635 Use 0 (not Qt) for the indication of empty font-group. Change the
3636 format of RFONT-DEF. Return Qt if no font in the font-group
3637 support the character.
15139d67 3638 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3639 found the character, remember that.
15139d67 3640 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3641 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3642 no font for the target.
15139d67 3643 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3644
73acf815 36452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3646
3647 * font.c (font_load_for_face): Handle the case that the font in
3648 face->lface is a string.
3649
73acf815 36502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3651
1f45f627 3652 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3653
73acf815 36542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3655
3656 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3657 Fix previous change. If the frame is not on a window system,
3658 signal an error.
3659
73acf815 36602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3661
4c4475a8
GM
3662 * coding.c (decode_coding_object, encode_coding_object): Adjust
3663 marker positions after conversion.
aca7a3d2
MB
3664
3665 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3666
73acf815 36672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3668
3669 * font.c (font_find_for_lface): Fix the handling of the return
3670 value of font_has_char.
3671 (Ffont_shape_text): Fix previous change.
3672
3673 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3674 (fontset_ref_and_range): Delete it.
3675 (fontset_find_font): Call char_table_ref_and_range instead of
3676 FONTSET_REF_AND_RANGE.
3677 (make_fontset): Don't setup font groups of Latin here.
3678 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3679 (new_fontset_from_font): Make the specified font the default for
3680 all Latin characters.
3681
73acf815 36822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3683
3684 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3685 is on a window system before accessing the fontset of the frame.
3686
73acf815 36872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3688
1f45f627 3689 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3690
3691 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3692 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3693
3694 * font.c (Ffont_shape_text): If the font driver doesn't have a
3695 shaper function, make zero-width glyphs to have at least one-pixel
3696 width. Fix setting of `to' field of glyphs.
3697
73acf815 36982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3699
3700 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3701 glyphs.
3702
1f45f627 3703 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3704
73acf815 37052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3706
3707 * composite.c (syms_of_composite): Fix docstring of
3708 auto-composition-function.
3709
3710 * font.h (LGLYPH_SIZE): New macro.
3711
3712 * font.c (Ffont_fill_gstring): Stop filling when a character not
3713 supported by the font is found.
3714 (Ffont_shape_text): When a shape callback function returns nil,
3715 try at most two more times with larger gstring.
15139d67 3716 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3717
3718 * xdisp.c (handle_auto_composed_prop): Change the argument to
3719 auto-composition-function.
3720
3721 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3722 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3723 Lispy glyph and store it in the lgstring.
3724
3725 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3726
3727 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3728
73acf815 37292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3730
3731 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3732
3733 * fontset.c (Vfont_encoding_charset_alist): New variable.
3734 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3735 (reorder_font_vector, fontset_find_font): Optimize for the case of
3736 no need of reordering.
aca7a3d2
MB
3737 (face_for_char): Map the charset property by
3738 Vfont_encoding_charset_alist.
3739
73acf815 37402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3741
3742 * w32font.c (logfonts_match): Don't check adstyle here.
3743 (font_matches_spec): Check here against physical font instead.
3744 (add_font_entity_to_list): Avoid some substitutions.
3745
3746 * font.c (font_parse_fcname): Default weight and slant to normal.
3747 (font_score): Prefer normal fonts if weight or slant unspecified.
3748 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3749 match freetype scores.
3750
73acf815 37512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3752
3753 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3754 font, as it may have been deleted.
3755 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3756 most common hyphenless variation.
3757 (logfonts_match): Check generic family.
3758 (font_matches_spec): Don't check generic family here.
3759 (fill_in_logfont): Set generic family based on adstyle.
3760
3761 * w32font.h (w32font_get_cache): Update declaration.
3762
73acf815 37632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3764
3765 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3766
15139d67 3767 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3768 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3769 with the old drivers.
3770
3771 * w32font.c (w32font_get_cache): Adjust the argument type.
3772
3773 * xfont.c (xfont_get_cache): Adjust the argument type.
3774
3775 * font.h (struct font_driver): Change argument type of get_cache.
3776
3777 * xftfont.c (xftfont_start_for_frame): Delete prototype.
3778
3779 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 3780 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 3781 (font_clear_cache): New function.
4c4475a8 3782 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 3783 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
3784
3785 * fontset.c (fontset_find_font): Fix previous change.
3786
73acf815 37872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3788
3789 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
3790 dpyinfo->font_table.
3791 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 3792 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
3793
3794 * font.c (font_at): Handle the case that the arg C is negative.
3795 Handle the unibyte case.
3796 (Ffont_at): Call font_at with the arg C -1.
3797
3798 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
3799 the position here, and call font_at with the arg C -1.
3800 Don't check the range of the existing composition at the point.
aca7a3d2 3801
73acf815 38022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3803
15139d67 3804 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 3805 Change caller.
4c4475a8
GM
3806 (load_font_get_repertory, fontset_find_font): Assume that
3807 font_spec is always a font-spec object.
aca7a3d2
MB
3808 (Fset_fontset_font): Always store a font-spec object in a fontset.
3809
3810 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
3811 instead of get_property_and_range.
3812
73acf815 38132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3814
3815 * xftfont.c (struct xftfont_info): Delete the member ft_face.
3816 (xftfont_open): Don't keep locking face.
3817 (xftfont_close): Don't unlock face.
4c4475a8 3818 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
3819
3820 * fontset.c (fontset_find_font): Don't prefer a font of
3821 supplementary charset.
3822
73acf815 38232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3824
1f45f627
GM
3825 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
3826 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
3827 (OTF_TAG_STR): Terminate by '\0'.
3828 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
3829 listing to the script specified in that property. Fix arg to
3830 OTF_check_features.
3831
73acf815 38322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3833
3834 * w32font.h: New file.
3835
3836 * w32font.c: Include it.
3837 (struct w32font_info): Add owning_frame field. Move to w32font.h.
3838 (w32font_open): Set owning_frame.
3839 (w32font_text_extents): Use owning_frame.
3840 (struct font_callback_data): Add opentype_only field.
3841 (add_font_entity_to_list): Use it to filter fonts.
3842 Don't check against full name.
3843 (w32font_list_internal): New function.
3844 (w32font_list): Use it.
3845 (w32font_match_internal): New function.
3846 (w32font_match): Use it.
3847 (w32font_open_internal): New function.
3848 (w32font_open): Use it.
3849 (w32font_get_cache, w32font_close, w32font_has_char)
3850 (w32font_encode_char, w32font_text_extents, w32font_draw):
3851 Make non-static.
3852
3853 * makefile.w32-in (w32font.o): Depend on w32font.h.
3854
73acf815 38552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3856
3857 * charset.c (Fdefine_charset_internal): Record a supplementary
3858 charset at the tail of Vcharset_order_list.
3859
3860 * font.c (Ffont_shape_text): Fix the return value.
3861
3862 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
3863
3864 * xdisp.c (handle_auto_composed_prop): Fix previous change.
3865
73acf815 38662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3867
3868 * ftfont.c (struct OpenTypeSpec): New struct.
3869 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
3870 (ftfont_get_open_type_spec): New function.
3871 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
3872
15139d67 3873 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 3874
73acf815 38752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3876
3877 * w32font.c (add_font_entity_to_list): Compare only the beginning
3878 of full name.
3879
73acf815 38802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3881
15139d67
SM
3882 * xdisp.c (handle_auto_composed_prop): Simplify the code.
3883 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 3884
73acf815 38852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3886
3887 * font.c (font_gstring_produce): Delete it.
3888
15139d67
SM
3889 * composite.h (COMPOSITION_METHOD):
3890 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 3891
73acf815 38922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3893
15139d67 3894 * xfont.c (Qx): Delete.
aca7a3d2
MB
3895 (syms_of_xfont): Don't initialize Qx.
3896
15139d67
SM
3897 * composite.h (enum composition_method):
3898 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 3899
73acf815 39002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3901
3902 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
3903 (choose_face_font): Accept new form of font-spec.
3904
3905 * frame.h (font_driver_list): Declare it unconditionally.
3906 (struct frame): Define members font_driver_list and font_data_list
3907 unconditionally.
3908
3909 * fontset.c: Include "font.h" unconditionally.
15139d67 3910 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
3911 (Fset_fontset_font): Accept a font-spec object.
3912
3913 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
3914 PIXEL_SIZE part a wild card.
3915
3916 * dispextern.h (struct glyph_string): Define members clip and
3917 num_clips unconditionally.
3918 (struct face): Define members font_info and extra unconditionally.
3919
3920 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
3921 ftfont_info only when HAVE_LIBOTF is defined.
3922
73acf815 39232008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3924
3925 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
3926 and end.
3927
73acf815 39282008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3929
3930 * w32font.c (w32font_driver): Add new fields.
3931
73acf815 39322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3933
aca7a3d2
MB
3934 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
3935 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
3936 (LIBES): Add @M17N_FLT_CFLAGS@.
3937
3938 * composite.c (compose_text): Don't treat the new style
3939 composition specially.
3940
3941 * emacs.c (main): Call syms_of_font unconditionally.
3942
3943 * font.h (FONT_ENTITY_NOT_LOADABLE)
3944 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 3945 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 3946 (struct font_driver): New member shape.
1f45f627 3947 (font_registry_charsets): Extern it.
4c4475a8 3948 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3949 (font_otf_capability, font_drive_otf): Delete their externs.
3950
3951 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3952 (font_charset_alist, font_registry_charsets): Move from xfont.c
3953 and rename.
aca7a3d2
MB
3954 (font_prop_validate_otf): New function.
3955 (font_property_table): Register it for QCotf.
3956 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3957 (font_drive_otf): Delete.
1f45f627 3958 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3959 lispy gstring.
3960 (font_find_for_lface): New arg C.
15139d67 3961 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3962 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3963 lispy gstring.
aca7a3d2
MB
3964 (Ffont_shape_text): New function.
3965 (Fopen_font): If the font size is not given, use 12-pixel.
3966 (Ffont_at): New arg STRING.
15139d67
SM
3967 (syms_of_font): Initalize font_charset_alist.
3968 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3969 conditionally.
3970
3971 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3972 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3973 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3974 Adjust for the change of RFONT-DEF.
15139d67 3975 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3976
3977 * ftfont.h: New file.
3978
3979 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3980 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3981 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3982 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3983 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3984 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3985 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3986 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3987 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 3988 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
3989 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3990 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3991
15139d67
SM
3992 * w32term.c (x_draw_composite_glyph_string_foreground):
3993 Adjust for the change of lispy gstring.
aca7a3d2 3994
15139d67 3995 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3996 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3997 third arg it->window.
3998 (fill_composite_glyph_string): Adjust for the change of lispy string.
3999 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 4000
15139d67 4001 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4002 font_find_for_lface.
4003
1f45f627
GM
4004 * xfont.c (x_font_charset_alist): Move to font.c and rename.
4005 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
4006 (syms_of_xfont): Don't handle x_font_charset_alist.
4007
4008 * xftfont.c: Include "ftfont.h".
15139d67 4009 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
4010 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
4011 (xftfont_close) [HAVE_LIBOTF]: Close otf.
4012 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
4013 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
4014 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 4015
15139d67 4016 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4017 the change of lispy gstring.
4018
73acf815 40192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4020
4021 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
4022
73acf815 40232008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4024
4025 * w32font.c (w32font_draw): Fill background manually.
4026
73acf815 40272008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4028
4029 * font.c (Qfontp): Remove unused symbol.
4030 (QCantialias): New symbol.
4031 (syms_of_font): Define it.
4032 (font_property_table): Set a validator for QCantialias.
4033
15139d67
SM
4034 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
4035 Define if not already.
aca7a3d2
MB
4036 (QCfamily): Share with xfaces.c.
4037 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 4038 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
4039 (w32_antialias_type, lispy_antialias_type): New functions.
4040 (w32_enumfont_pattern_entity): New arg requested_font.
4041 Set antialias parameter if non-default was requested.
4042 (fill_in_logfont): Fill in lfQuality if :antialias specified.
4043
73acf815 40442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4045
4046 * lread.c (read1): Undo the previous change.
4047
73acf815 40482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
4049
4050 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 4051 USE_FONT_BACKEND is defined.
aca7a3d2 4052
73acf815 40532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4054
4055 * font.h (struct font_bitmap): New member bits_per_pixel.
4056 (struct font_driver): New members start_for_frame and end_for_frame.
4057 (struct font_data_list): New struct.
4058 (font_put_frame_data, font_get_frame_data): Extern them.
4059
4060 * frame.h (struct frame): New member font_data_list.
4061
4062 * font.c (font_update_drivers): Call driver->start_for_frame and
4063 driver->end_for_frame at proper timings.
4064 (font_put_frame_data, font_get_frame_data): New functions.
4065 (Ffont_spec): Add usage in the docstring.
4066
4067 * frame.c (make_frame): Initialize f->font_data_list to NULL.
4068 (Fdelete_frame): Call font_update_drivers.
4069
4070 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 4071 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
4072 (xftfont_get_xft_draw): New function.
4073 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
4074 (xftfont_end_for_frame): New function.
4075 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
4076
15139d67 4077 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 4078 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
4079 (struct ftxfont_frame_data): New struct.
4080 (ftxfont_draw_bitmap): New arg gc_fore and flush.
4081 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 4082 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
4083 (ftxfont_end_for_frame): New function.
4084 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
4085
4086 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
4087
73acf815 40882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4089
4090 * xselect.c (Vselection_coding_system)
4091 (Vnext_selection_coding_system): Delete them.
4092 (syms_of_xselect): Don't declare selection-coding-system and
4093 next-selection-coding-system. They are declared in select.el.
4094
73acf815 40952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4096
4097 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
4098
4099 * w32fns.c: Include imm.h.
4100 (get_composition_string_fn, get_ime_context_fn): New optional
4101 system functions.
4102 (globals_of_w32fns): Load them from imm32.dll.
4103 (ignore_ime_char): New flag.
4104 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
4105 WM_IME_ENDCOMPOSITION messages.
4106
4107 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4108 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4109
73acf815 41102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4111
4112 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4113 (READCHAR_REPORT_MULTIBYTE): New macro.
4114 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4115 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4116 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4117 source.
4118
73acf815 41192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4120
4121 * xfaces.c (face_for_overlay_string): Call lookup_face with
4122 correct arguments (fix of synching with the trunk).
4123
73acf815 41242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4125
4c4475a8
GM
4126 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4127 (font_prop_validate_non_neg, font_prop_validate_spacing):
4128 Delete argument prop_index.
15139d67
SM
4129 (font_property_table): Change arguments to validater. Change Callers.
4130 (font_lispy_object): Delete.
aca7a3d2
MB
4131 (font_at): Use font_find_object instead fo font_lispy_object.
4132
73acf815 41332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4134
4135 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4136 and file names.
4137
73acf815 41382008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4139
4140 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4141 (font_matches_spec): Remove debug output.
4142 (add_font_entity_to_list): Avoid using substituted fonts.
4143
73acf815 41442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4145
4146 * doc.c (Fsnarf_documentation):
4147 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4148
73acf815 41492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4150
290afd83 4151 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
4152 HAVE_WINDOW_SYSTEM is defined.
4153
73acf815 41542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4155
4156 Fix up multi-tty merge.
4157
4158 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4159 and indentation.
4160
4161 * xfaces.c (free_realized_face, clear_face_gcs):
4162 Include font_done_for_face in the input_blocked section, just in case.
4163
4164 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4165 (get_char_face_and_encoding): Undo last change and remove the *other*
4166 duplicate definition (i.e. keep the one that's better scoped and that
4167 includes code for the font-backend).
4168
4169 * terminal.c (create_terminal): Default keyboard_coding to
4170 `no-conversion' and terminal_coding to `undecided'.
4171
4172 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4173
4174 * fontset.c (free_realized_fontsets): Check that the table entry does
4175 contain a fontset before trying to compare it to `base'.
4176
4177 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4178 syms_of_charset, and syms_of_coding earlier because init_window_once
4179 now needs Vcoding_system_hash_table to be setup.
4180
4181 * coding.h (default_buffer_file_coding): Remove.
4182
4183 * coding.c (default_buffer_file_coding): Remove.
4184 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4185 than ->symbol, and use the terminal-local coding system.
4186 (syms_of_coding): Don't setup the coding-systems that are not
4187 terminal-local.
4188 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4189
4190 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4191 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4192
4193 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4194 in chartab.c and were re-added here by mistake.
4195 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4196
4197 * doc.c (Fsnarf_documentation):
4198 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4199 src to etc.
4200
4201 * ChangeLog.10: Add mistakenly removed entry.
4202
73acf815 42032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
4204
4205 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4206
73acf815 42072008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4208
4209 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4210 Add extra args to FACE_FOR_CHAR.
4211
73acf815 42122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4213
4214 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4215 in sequence.
4216
4c4475a8
GM
4217 * chartab.c (map_sub_char_table, map_char_table): If the range
4218 contains just one character, call the function with that character
4219 even if the depth is not 3.
aca7a3d2 4220
73acf815 42212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4222
4223 * w32font.c (w32font_text_extents): Calculate metrics for the
4224 whole string.
4225
73acf815 42262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4227
4228 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4229
73acf815 42302008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4231
4232 * w32term.c (x_set_glyph_string_clipping): Use
4233 get_glyph_string_clip_rects.
4c4475a8
GM
4234 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4235 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4236
4237 * w32font.c (w32font_draw): Do clipping here.
4238
73acf815 42392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4240
1f45f627 4241 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
4242 glyph_string.
4243
4244 * xterm.c (x_set_glyph_string_clipping): Use
4245 get_glyph_string_clip_rects.
4c4475a8
GM
4246 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4247 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4248
4249 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4250 the resulting clip(s}.
1f45f627 4251 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4252 row->clip temporarily.
4253 (expose_window): Redraw rows overlapping the exposed area.
4254
4255 * dispextern.h (struct glyph_row): New member clip.
4256 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4257 clip_height, new member clip, and num_clips.
4258
73acf815 42592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4260
4261 * data.c (Fchar_or_string_p): Fix docstring.
4262
73acf815 42632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4264
4265 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4266 create a temporal XftDraw object.
4267
73acf815 42682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4269
4270 * font.c (Ffontp): Fix docstring.
4271
4272 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4273 strong evidence of ISO-2022.
4274
73acf815 42752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4276
4277 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4278 SYNTAX_ENTRY_FOLLOW_PARENT.
4279
73acf815 42802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4281
4282 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4283 its type.
4284 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4285 Update to the new type of weak_hash_tables and next_weak.
4286
4287 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4288 a plain C pointer to Lisp_Hash_Table.
4289
4290 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4291 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4292 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4293 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4294 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4295 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4296 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4297 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4298 (GC_EQ): Remove since they've been identical to their non-GC_
4299 alter-egos ever since the markbit was eradicated.
4300
290afd83
JB
4301 * alloc.c:
4302 * buffer.c:
4303 * buffer.h:
4304 * data.c:
4305 * fileio.c:
4306 * filelock.c:
4307 * fns.c:
4308 * frame.h:
4309 * lisp.h:
4310 * macterm.c:
4311 * print.c:
4312 * process.c:
4313 * w32fns.c:
4314 * w32menu.c:
4315 * w32term.c:
4316 * xfns.c:
4317 * xmenu.c:
4318 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4319
73acf815 43202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4321
4322 * chartab.c (map_sub_char_table): Make it work for the top-level
4323 char-table. Fix handling of parent char-table.
c5ad7a3d 4324 (map_char_table): Adjust for the above change.
aca7a3d2 4325
73acf815 43262008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4327
4328 * w32font.c (Qgdi): Rename from Qw32.
4329
73acf815 43302008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4331
4332 * w32bdf.c (get_quoted_string): Make function static.
4333
73acf815 43342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4335
4336 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4337 bigger ascent and descent than those of the font, use them as
4338 font's ascent and descent.
4339
73acf815 43402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4341
4342 * Makefile.in (${lispsource}international/charprop.el): Move this
4343 target within "#ifdef HAVE_UNIDATA" and "#endif".
4344
73acf815 43452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4346
4347 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4348 (shortlisp): Add ../lisp/language/tai-viet.el.
4349
1f45f627 43502008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
4351
4352 * Makefile.in (${lispsource}international/charprop.el): Depend on
4353 temacs${EXEEXT}.
4354
73acf815 43552008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4356
4357 * w32font.c (w32font_close): Delete the GDI font object.
4358
6f69e89b 4359 * w32menu.c: Include character.h.
aca7a3d2
MB
4360
4361 * w32proc.c: Likewise.
4362
4363 * w32select.c: Likewise.
4364
6f69e89b 4365 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 4366
73acf815 43672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4368
4369 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4370
4371 * w32menu.c (syms_of_w32menu): Likewise.
4372
4373 * w32proc.c (syms_of_ntproc): Likewise.
4374
4375 * w32select.c (syms_of_w32select): Likewise.
4376
4377 * w32term.c (syms_of_w32term): Likewise.
4378
73acf815 43792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4380
4381 * w32font.c (w32font_draw): Delete brush after using it.
4382
73acf815 43832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4384
4385 * w32font.c (w32font_open): Don't set font_idx.
4386 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4387 to font settings.
4388 (w32font_draw): Fill background explicitly.
4389
73acf815 43902008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4391
4392 * w32term.c (w32_initialize): Don't call w32font_initialize.
4393
4394 * w32font.c (w32font_info): Remove subranges.
4395 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4396 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4397 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4398 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4399 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4400 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4401 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4402 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4403 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4404 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4405 New symbols.
4406 (font_callback_data): New struct.
4407 (w32font_list, w32font_match): Use it.
4408 (w32font_open): Don't populate subranges.
4409 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4410 (w32font_encode_char): Always return unicode code-point as-is.
4411 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4412 GetGlyphOutline. Never look up by glyph index. Avoid looping
4413 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 4414 glyph index version.
1f204af3 4415 (set_fonts_frame): Remove.
aca7a3d2 4416 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4417 set frame parameter. Use backward compatible fake foundries.
4418 Save generic family in extra slot under QCfamily. Make width slot
4419 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4420 binary subranges.
4421 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4422 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4423 unwanted fonts.
4424 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4425 (w32_registry): Default to iso10646_1.
4426 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4427 string font registries. Don't fill in font name if it is a generic
4428 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4429 extra info to fill pitch, family and charset fields.
4430 (list_all_matching_fonts): Use font_callback_data struct.
4431 (unicode_range_for_char): Remove.
4432 (font_supported_scripts): New function.
4433 (w32font_initialize): Remove.
4434 (syms_of_w32font): Update which symbols are defined.
4435
73acf815 44362008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4437
4438 * font.c (font_pixel_size): Reverse assq_no_quit args.
4439
4440 * w32term.h (FONT_WIDTH): Report max width, not average.
4441 (FONT_MAX_WIDTH): Remove.
4442 (FONT_AVG_WIDTH): New macro.
4443
4444 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4445 redefinition of FONT_WIDTH.
4446
4447 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4448 (w32_cache_char_metrics): Use FONT_WIDTH.
4449
4450 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4451
73acf815 44522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4453
4454 * w32font.c (w32font_open): Make lfHeight negative.
4455
4456 * w32fns.c (x_default_font_parameter): Use new style font name.
4457 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4458
73acf815 44592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4460
4461 * w32font.c (QCsubranges): New symbol.
4462 (w32font_open, w32font_has_char): Get subranges from subproperty
4463 of extra.
4464 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4465 (syms_of_w32font): Define :subranges symbol.
4466
4467 * font.c (font_put_extra): Expose externally.
4468
1f45f627 4469 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4470
4471 * font.c (Ffont_get): Use font driver to determine otf capability.
4472 (adjust_anchor): Check if driver defines anchor_point before using.
4473
4474 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4475 (w32font_draw): Use options.
4476 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4477 Fix detection of truetype fonts.
4478 (registry_to_w32_charset): Handle charsets other than iso8859-1
4479 expressed as lisp symbols.
4480 (w32_registry): Express charset as lisp symbol.
4481 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4482 Don't set width here. Set quality to default.
aca7a3d2
MB
4483
4484 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4485 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4486
4487 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4488 Remove redundant loop and allocation.
4489
4490 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4491 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4492 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4493
4494 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4495 STORE_XCHARB a valid l-value.
4496
4497 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4498 calculations for non-Truetype fonts.
4499 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4500 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4501 Remove redundant code.
aca7a3d2
MB
4502 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4503
4504 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4505 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4506
4507 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4508 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4509
4510 * w32font.c: New file for w32 font backend.
4511
73acf815 45122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4513
4514 * term.c: Don't include "buffer.h" twice.
4515
73acf815 45162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4517
4518 * character.c (Funibyte_string): New function.
4519 (syms_of_character): Defsubr it.
4520
73acf815 45212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4522
4523 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4524 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4525 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4526 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4527 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4528 (x_free_frame_resources): Sync with xterm.c.
4529
73acf815 45302008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4531
4532 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4533 char-table size.
4534
73acf815 45352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4536
c3f9fba8 4537 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4538
73acf815 45392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4540
4541 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4542 font_otf_gpos, add font_drive_otf.
4543
4544 * fontset.c (fontset_find_font): Pay attention to font size
4545 specified for a font.
4546 (reorder_font_vector): Check contents of font_def.
4547
4548 * font.c (struct otf_list): Delete it.
6f69e89b 4549 (otf_list): Make it a lisp variable.
aca7a3d2 4550 (otf_open): Use lispy otf_list.
1f45f627 4551 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4552 (check_otf_features): New function.
c3f9fba8
JB
4553 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4554 New functions.
aca7a3d2
MB
4555 (font_drive_otf): New function merging font_otf_gsub and
4556 font_otf_gpos.
4557 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4558 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4559 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4560 Ffont_otf_gpos.
4561 (syms_of_font): Staticpro otf_list. Delete defsubr of
4562 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4563
1f45f627 4564 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4565 font_open_for_lface.
4566
4567 * font.h (font_open_for_lface): Adjust prototype.
4568 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4569 member otf_drive.
4570 (font_otf_gsub, font_otf_gpos): Delete externs.
4571 (font_drive_otf): Extern it.
4572
73acf815 45732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4574
4575 * font.c (font_at): If the window W is not on a window system,
4576 return Qnil.
4577
4c4475a8
GM
4578 * coding.c (produce_chars, encode_coding): Don't call
4579 insert_from_gap if no characters to produce.
aca7a3d2 4580
73acf815 45812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4582
4583 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4584 Fclear_face_cache.
4585
4586 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4587
73acf815 45882008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4589
4590 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4591 Parse "--disable-font-backend" option.
4592 (standard_args): Add "--disable-font-backend" option.
4593
73acf815 45942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4595
4596 * fontset.c (fontset_find_font): New function.
4597 (fontset_font): Use fontset_find_font.
4598 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4599 Register the specified font for all Latin characters.
4600 (new_fontset_from_font): Register the specified font for all Latin
4601 characters.
4602 (dump_fontset): For a realized fontset, include the base fontset
4603 name in the returned vector.
4604
73acf815 46052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4606
4607 * character.h (CHAR_STRING): Cast C to unsigned on calling
4608 char_string.
4609
4610 * character.c (char_string): Type of arg C changed to unsigned.
4611 Signal an error if C is an invalid character code.
4612
4c4475a8
GM
4613 * editfns.c (general_insert_function, Fchar_to_string):
4614 Use CHARACTERP, not INTEGERP.
aca7a3d2 4615
73acf815 46162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4617
4618 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4619 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4620
4621 * regex.c (analyse_first): Fix for multibyte characters in "case
4622 charset:" and "case categoryspec:".
4623
73acf815 46242008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4625
4626 * Makefile.in (LIBES): Move standard libraries to the end.
4627
73acf815 46282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4629
4630 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4631 nonzero, don't shrink the buffer nextb.
4632
4633 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4634
4635 * coding.c (coding_alloc_by_making_gap): New arg offset.
4636 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4637 offset.
4638 (decode_coding_iso_2022): Update coding->safe_charsets.
4639 (decode_coding_gap): Temporarily set
4640 current_buffer->text->inhibit_shrinking to 1.
4641
73acf815 46422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4643
4644 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4645 indexing into elements of s->cmp and s->char2b.
4646
73acf815 46472008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4648
4649 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4650
73acf815 46512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4652
4653 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4654 target_multibyte instead of multibyte.
4655 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4656 (bcmp_translate): Change the argument name from multibyte to
4657 target_multibyte.
4658
73acf815 46592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4660
4661 These changes are to compile a regexp into a pattern that can be
4662 used both for multibyte and unibyte targets.
4663
4664 * Makefile.in (search.o): Depend on charset.h.
4665
4666 * character.c (multibyte_char_to_unibyte_safe): New function.
4667
4668 * search.c: Include "charset.h".
4669 (compile_pattern_1): Delete argument multibyte. Don't set
4670 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4671 (compile_pattern): Don't compare cp->buf.target_multibyte.
4672 Compare cp->buf.charset_unibyte.
4673 (compile_pattern): Set cp->buf.target_multibyte.
4674
4675 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4676
4677 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4678
4679 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4680 multibyte. Change callers.
aca7a3d2 4681 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4682 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4683 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4684 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4685 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4686 (regex_compile): Make the compiled pattern usable both for
4687 multibyte and unibyte targets.
4688 (analyse_first): Make the fastmap usable both for multibyte and
4689 unibyte targets.
1f45f627 4690 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4691 (re_match_2_internal): Pay attention to the case that the
4692 multibyteness of bufp and target may be different.
4693
73acf815 46942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4695
4696 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4697 empty box occupy at least one column width.
4698
73acf815 46992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4700
4701 * Makefile.in: Remove redundant HAVE_XFT clause.
4702
73acf815 47032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4704
4705 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4706
73acf815 47072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4708
4709 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4710 being nil.
4711
73acf815 47122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4713
4714 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4715
73acf815 47162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4717
4718 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4719
73acf815 47202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4721
4722 * search.c (simple_search): Fix previous change.
4723
73acf815 47242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4725
4726 * xftfont.c (ftfont_font_format): Extern declaration.
4727
4728 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4729
4730 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4731 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4732
4733 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4734 (ftfont_font_format): Fix previous change.
4735
4736 * font.h (Ffont_xlfd_name): EXFUN it.
4737
4738 * font.c (font_parse_xlfd): Fix the array size of `f'.
4739 (register_font_driver): Use EQ to compare driver->type.
4740
4741 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4742 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4743 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4744
73acf815 47452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4746
4c4475a8
GM
4747 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4748 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4751
4752 * xfont.c (xfont_open): Set font->format.
4753
4754 * xftfont.c (xftfont_open): Set font->format.
4755
4756 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4757 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4758 (ftfont_open): Set font->format.
4759 (ftfont_font_format): New function.
4760
4761 * font.h (struct font): New memeber format.
4762
4763 * font.c (Qopentype): New variable.
4764 (syms_of_font): Defsym it.
4765 (Fquery_font): Change the format of the last element of the return
4766 value.
4767
73acf815 47682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4769
4770 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4771 last resort.
4772
73acf815 47732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4774
4775 * coding.c (detect_coding_charset): Fix detection of multi-byte
4776 charset.
4777
73acf815 47782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
4779
4780 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
4781
73acf815 47822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4783
4784 * xdisp.c (get_next_display_element): Set it->face_id for the
4785 first component of a composition.
1f45f627 4786 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4787
73acf815 47882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4789
4790 * fontset.c (Qlatin): New variable.
4791 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 4792 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 4793
73acf815 47942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4795
4796 * font.c (font_unparse_fcname): Pay attention to the case that
4797 some of font property is a null string.
4798
73acf815 47992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4800
4801 * term.c: Include "composite.h".
4802 (encode_terminal_code): Output all components of composition.
4803 Check the size of encode_terminal_src.
424c157f 4804 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
4805 (append_composite_glyph, produce_composite_glyph): New functions.
4806
4807 * xdisp.c (x_produce_glyphs): In handling composition, if a font
4808 is not found, get font_info from the current ascii face.
4809
73acf815 48102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4811
4812 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
4813 buffer-file-name to Qnil before calling insert_from_buffer.
4814
4815 * font.c (font_unparse_fcname): Pay attention to the case that
4816 foundry is a null string.
4817
73acf815 48182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4819
4820 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
4821
4822 * font.c (Qunicode_sip): New variable.
4823 (syms_of_font): Declare it as a Lisp symbol.
4824
4825 * font.h (Qunicode_sip): Extern it.
4826
73acf815 48272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4828
1f45f627 4829 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
4830
4831 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 4832 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
4833 the first elememnt of allocated memory.
4834
1f45f627 4835 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
4836
4837 * xdisp.c (handle_composition_prop): Set it->c to the first
4838 non-TAB component.
1f45f627
GM
4839 (fill_composite_glyph_string): Change argument.
4840 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
4841 (x_produce_glyphs): Fix handling of left/right padding.
4842
73acf815 48432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4844
4845 * coding.c (detect_coding_system): Fix for handling off
4846 inhibit_iso_escape_detection. Fix for the case that no coding
4847 system is defined for a specific coding category.
4848
73acf815 48492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4850
1f45f627 4851 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
4852
4853 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
4854 opening a font.
4855
4856 * fileio.c (Finsert_file_contents): On recovering a file, assume
4857 Unix-like eol.
4858 (choose_write_coding_system): On auto-saving a file, force
4859 Unix-like eol.
4860
4861 * coding.c (setup_coding_system): Fix setting of
4862 coding->common_flags based on eol_type.
4863 (coding_inherit_eol_type): If PARENT is not nil, be sure to
4864 inherit from it.
4865
73acf815 48662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4867
1f45f627 4868 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 4869
73acf815 48702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4871
1f45f627 4872 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
4873 (ftfont_list): Don't check :name property.
4874 (ftfont_match): New function.
4875 (ftfont_pattern_entity): If the pattern doesn't contain
4876 FC_SPACING, don't assuce FC_MONO.
4877
4878 * font.h (struct font_driver): New member `match'.
1f45f627 4879 (font_update_drivers): Adjust prototype.
aca7a3d2 4880
4c4475a8
GM
4881 * font.c (font_parse_fcname, font_parse_name): Don't change :name
4882 property of FONT.
aca7a3d2
MB
4883 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
4884 them unconditionally.
4885 (font_matching_entity): New function.
4886 (font_open_by_name): Try font_matching_entity if exact match is
4887 not found.
4888 (font_update_drivers): Delete the arg FONT. Return a list of
4889 actually used backends. Don't free faces, font caches here.
4890 Don't store data in frame parameters. Don't call x_set_font.
4891 (Ffont_spec): Store :name property as is.
4892 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
4893 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
4894 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
4895 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
4896 Call font->driver->otf_gsub instead of font_otf_gsub.
4897
4898 * frame.c (x_set_font_backend): Do more works that were done in
4899 font_update_drivers before.
4900
4901 * xfont.c (xfont_match): New function.
4902 (xfont_driver): Set xfont_driver.match to xfont_match.
4903 (xfont_draw): Set font in GC if necessary.
4904
4905 * ftxfont.c (ftxfont_match): New function.
4906 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
4907
4908 * xftfont.c (xftfont_match): New function.
4909 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
4910
73acf815 49112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4912
4913 * font.h (struct font): New member scalable.
4914 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 4915 (font_otf_gsub): Adjust prototype.
aca7a3d2 4916
1f45f627
GM
4917 * font.c (font_otf_capability): Fix handling of the default langsys.
4918 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
4919 Check the contents of SPEC.
4920 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
4921 (check_gstring): New function.
4922 (REPLACEMENT_CHARACTER): New macro.
4923 (font_otf_gsub): New arg alternate_subst. Be sure to set all
4924 glyph codes of GSTRING.
4925 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
4926 (font_prepare_composition): Set cmp->glyph_len.
4927 (font_open_entity): Set font->scalable.
4928 (Ffont_get): Handle :otf property.
4929 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
4930 functions.
4931 (Fquery_font): Use font->font.full_name.
4932 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
4933 Sfont_otf_alternates.
4934
4935 * ftfont.c (ftfont_open): Set font->font.full_name and
4936 font->font.name properly. Fix calculation of font->font.height
4937 and font->min_width.
4938
4939 * ftxfont.c (ftxfont_create_gcs): New function.
4940 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4941 (ftxfont_draw_backgrond): Fix filling region.
4942 (ftxfont_default_fid): New function.
4943 (ftxfont_open): Set xfotn->fid to the return value of
4944 ftxfont_default_fid.
4945 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4946 (ftxfont_done_face): Free only GCs that are created by
4947 ftxfont_create_gcs.
4948 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4949
4950 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4951 Clip to src->width, etc (not src->clip_XXX).
4952
4953 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4954 FontBackend frame parameter.
4955
73acf815 49562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4957
4958 * font.h (struct font_driver_list): New member `on'.
4959 (Fclear_font_cache): EXFUN it.
4960 (font_update_drivers): Extern it.
4961
4962 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4963 (font_list_entities): Check driver_list->on.
4964 (register_font_driver): Initalize `on' member to 0.
4965 (font_update_drivers): New function.
4966 (Fclear_font_cache): Check driver_list->on.
4967
4968 * frame.h (Qfont_backend): Extern it.
4969 (x_set_font_backend): Extern it.
4970
4971 * frame.c (Qfont_backend): New variable.
4972 (frame_parms): New element for font-backend.
4973 (x_set_font_backend): New function.
4974
4975 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4976 FontBackend frame parameter.
4977 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4978 x_set_font_backend.
4979
4980 * xfont.c (xfont_list): Don't try listing by :name property if the
4981 name is not for XLFD.
4982
73acf815 49832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4984
4985 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4986 (LGLYPH_SET_TO): New macros.
4987 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4988 element of G is vector or not.
4989 (font_at): Extern it.
4990
4991 * font.c: Include window.h.
4992 (font_lispy_object): New function.
4993 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4994 end of valid glyph.
4995 (font_close_object): Fix getting (struct font *).
4996 (font_at): New function.
4997 (Ffont_get): If FONT is a font-object, get entity from it.
4998 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4999 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
5000 range check.
5001 (Ffont_at): New function.
5002 (syms_of_font): Defsubr Sfont_at.
5003
5004 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 5005 before the entry for Qcomposition.
1f45f627 5006 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
5007 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
5008 the font in gstring.
5009 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
5010 LGLYPH_FORM (g) to detect the end of valid glyph.
5011 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
5012 we are composing with gstring.
5013
5014 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
5015 Check if adjustment is vector or not.
5016
5017 * Makefile.in (font.o): Make it depends on window.h.
5018
73acf815 50192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5020
5021 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
5022 adjustment is vector or not.
5023
73acf815 50242008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5025
5026 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
5027
73acf815 50282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5029
5030 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
5031 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
5032 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
5033
1f45f627 5034 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 5035 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
5036 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
5037 LGLYPH format.
aca7a3d2 5038
1f45f627 5039 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
5040 the change of LGLYPH format.
5041
73acf815 50422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5043
5044 * ftfont.c (ftfont_list): Fix typo.
1f45f627 5045 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 5046
880820fe 50472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5048
5049 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
5050
5051 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
5052 xftface_info is non-NULL.
5053
880820fe 50542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 5055
1f45f627 5056 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 5057
73acf815 50582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5059
5060 * ftfont.c (ftfont_list): Pay attention to the case that
5061 FC_CAPABILITY is not defined.
5062
73acf815 50632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5064
5065 * xftfont.c (xftfont_open): Set charset related members to -1.
5066
1f45f627
GM
5067 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
5068 QCname.
aca7a3d2
MB
5069 (ftfont_open): Set charset related members to -1.
5070
5071 * fontset.c (Votf_script_alist): New variable.
5072 (syms_of_fontset): Initialize it.
5073 (fontset_font): Delete unused variable.
5074
5075 * fontset.h (Votf_script_alist): Extern it.
5076
1f45f627 5077 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
5078
5079 * font.h (font_close_object, font_merge_old_spec): Extern them.
5080
73acf815 50812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5082
5083 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
5084 (syms_of_font): Initialize them.
5085 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
5086 (font_prop_validate_type): Delete.
5087 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
5088 Change caller.
5089 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
5090 (font_prop_validate_extra): Delete.
aca7a3d2
MB
5091 (font_prop_validate_spacing): New function.
5092 (font_property_table): Add elements for all known properties.
1f45f627
GM
5093 (get_font_prop_index): Rename from check_font_prop_name. New
5094 argument FROM. Change caller.
aca7a3d2 5095 (font_prop_validate): Validate all known properties.
1f45f627 5096 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
5097 (font_expand_wildcards): Make it static. Fix the way of shrinking
5098 the possible range.
1f45f627 5099 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 5100 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 5101 Change caller.
aca7a3d2 5102 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
5103 (font_parse_fcname): Delete argument merge. Fix parsing of point
5104 size. Don't validate properties values here. Change caller.
5105 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
5106 (font_open_by_name): Delete unused variable.
5107 (Ffont_spec): Likewise. Validate property values.
5108 (Ffont_match_p): New function.
5109
5110 * font.h (QCscalable): Extern it.
1f45f627 5111 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5112
1f45f627 5113 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5114
1f45f627 5115 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5116 (xfont_list_pattern): New function.
5117 (xfont_list): Use xfont_list_pattern.
5118
73acf815 51192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5120
5121 * font.h (Flist_fonts): EXFUN it.
5122
73acf815 51232008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5124
5125 * w32term.c (w32_initialize): Add back smoothing_type and
5126 smoothing_enabled definitions.
5127
73acf815 51282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5129
5130 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5131 s->face->font on determining underline position.
5132
73acf815 51332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5134
5135 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5136 (font_has_char): Accept font-object too.
5137 (font_find_for_lface): Try at first with a size specified in face.
5138
73acf815 51392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5140
5141 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5142 font_open_by_name.
5143
73acf815 51442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5145
5146 * font.h (QCspacing, QCdpi): Extern them.
5147 (enum font_spacing): New enum.
5148 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5149
5150 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5151 (QCspacing, QCdpi): New variables.
5152 (syms_of_font): Initialize them.
5153 (font_pixel_size): New function.
5154 (font_put_extra): New function.
5155 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5156 in FONT_EXTRA.
e9184ccb
JB
5157 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5158 Fix handling font size. Add QCname property that contains only
aca7a3d2 5159 unknown properties.
1f45f627 5160 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 5161 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
5162 (font_sort_entites, font_list_entities, font_find_for_lface)
5163 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 5164 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
5165
5166 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5167 include weight in listing pattern, instead check weight of each
5168 listed font. Don't include scalable in pattern. Pay attention to
5169 FONT_PIXEL_SIZE_QUANTUM.
5170
73acf815 51712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5172
aca7a3d2 5173 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 5174 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
5175 (font_list_entities): Handle float size correctly.
5176 (font_open_by_name): Prefer `normal' property values if the name
5177 doesn't specify them.
5178
5179 * fontset.c (Finternal_char_font): Use font_get_name, not
5180 Ffont_xlfd_name.
5181
5182 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5183 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5184 pattern. Don't force scalable.
5185
5186 * xftfont.c (xftfont_open): For generating a name, start from
5187 96-byte buffer.
5188
880820fe 51892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5190
5191 * frame.h (x_new_fontset2): Fix prototype.
5192
73acf815 51932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5194
1f45f627 5195 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
5196 (font_match_p, font_get_spec, font_parse_fcname)
5197 (font_unparse_fcname): Extern them.
1f45f627 5198 (font_get_name): Adjust prototype.
aca7a3d2
MB
5199
5200 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5201 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5202 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5203 unnecessary checks for weight, slant, and swidth.
5204 (font_parse_fcname): New function.
5205 (font_unparse_fcname): New function.
5206 (font_parse_name): New function.
5207 (font_match_p): New function.
1f45f627 5208 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
5209 (font_get_spec): New function.
5210 (Qunspecified, Qignore_defface): Don't extern them.
5211 (font_find_for_lface): Assume that LFACE is fully specified.
5212 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5213 object, use it for FACE.
5214 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5215 driver->parse_name.
5216 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5217
1f45f627
GM
5218 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5219 prototype.
aca7a3d2 5220
1f45f627
GM
5221 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5222 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
5223 make_fontset.
5224
1f45f627 5225 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 5226
1f45f627 5227 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
5228 of x_new_fontset2.
5229
5230 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5231 (Qsans__serif): New variables.
5232 (ftfont_generic_family_list): New variable.
5233 (syms_of_ftfont): Initialize the above variables.
1f45f627 5234 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
5235 (ftfont_list_generic_family): New function.
5236 (ftfont_parse_name): Delete this function.
1f45f627 5237 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
5238 (ftfont_list_family): Fix args to FcObjectSetBuild.
5239
5240 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5241 object in attrs[LFACE_FONT_INDEX].
5242 (set_lface_from_font_name): Cancel all changes for font-backend.
5243 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5244 function.
5245 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5246 font object in QCfont attribute.
5247 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5248 (realize_default_face) [USE_FONT_BACKEND]: Call
5249 set_lface_from_font_and_fontset.
5250
5251 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5252 "fixed", and signal error here if no suitable font was found.
5253
5254 * xfont.c (xfont_parse_name): Delete this function.
5255
5256 * xftfont.c (xftfont_open): Change coding style of error
5257 handling. Generate fontconfig's fontname pattern.
5258
5259 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5260 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5261
5262 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5263 Both args FONTSET and FONT_OBJECT must be existing ones.
5264
73acf815 52652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5266
5267 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5268
73acf815 52692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5270
5271 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5272
5273 * font.h (struct font): Fix typo.
5274
5275 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5276 XLFD_XXX_INDEX.
5277 (enum xlfd_field_mask): New enum.
1f45f627 5278 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5279 are followed by non-digits, return a symbol.
5280 (font_expand_wildcards): New function.
5281 (font_parse_xlfd): Fix wildcard handling.
5282 (Ffont_spec): If :name is specified, reflect the info in the other
5283 properties.
5284
5285 * ftfont.c (ftfont_pattern_entity): Fix typo.
5286 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5287 locale.
5288
73acf815 52892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5290
5291 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5292
1f45f627 5293 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5294 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5295 registry doesn't specify encoding part.
5296 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5297 (font_open_by_name): At first try parsing the name.
5298 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5299 as Lisp symbols.
5300
5301 * fontset.c (reorder_font_vector): Pay attention to the case that
5302 the 3rd element of font_def is nil.
5303 (fontset_font): For the default fontset, append one more fontset
5304 elements for a script-based font specification. Don't add script
5305 attribute on finding a font.
5306 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5307 font name.
5308 (fontset_ascii_font): If a font can't be opened, return nil.
5309
1f45f627 5310 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5311 (ftfont_pattern_entity): New function.
5312 (ftfont_get_cache): Assume that freetype_font_cache is already
5313 initialized.
5314 (ftfont_list): Handle the case that a file is specified in font
5315 name. Use ftfont_pattern_entity to generate entities.
5316 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5317 (syms_of_ftfont): Initialize freetype_font_cache.
5318
5319 * xftfont.c (xftfont_open): Make the font name fontconfig's
5320 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5321 (xftfont_close): Free font->font.name if not NULL.
5322
5323 * xfont.c (xfont_list): If script is specified for a font, return
5324 null_vector.
5325 (xfont_list_family): Declare argument type.
5326
5327 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5328 name, set LFACE_FONT (lface) to nil.
5329
5330 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5331 return Qnil.
5332
73acf815 53332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5334
1f45f627 5335 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5336 (standard_args): Add "-enable-font-backend".
5337
73acf815 53382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5339
5340 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5341 (struct xftdraw_list, xftdraw_list): Delete them.
5342 (register_xftdraw, check_xftdraw): Delete them.
5343 (xftfont_prepare_face): Don't call register_xftdraw.
5344 (xftfont_done_face): Don't call check_xftdraw.
5345 (xftfont_draw): Get backroudn color only when with_background is
5346 nonzero.
5347
5348 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5349
73acf815 53502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5351
5352 These changes are for the new font handling codes.
5353
5354 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5355 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5356 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5357 (FONTSRC, FONTOBJ): New variables.
5358 (obj): Add $(FONTOBJ).
5359 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5360 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5361 @LIBOTF_LIBS@.
5362 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 5363 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 5364
1f45f627 5365 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
5366
5367 * character.h (Vscript_representative_chars): Extern it.
5368
5369 * character.c (Vscript_representative_chars): New variable.
5370 (syms_of_character): Declare it as a Lisp variable.
5371
5372 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5373 enable_font_backend is nonzero, accept the composition method
5374 COMPOSITION_WITH_GLYPH_STRING.
5375
5376 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5377 enumeration COMPOSITION_WITH_GLYPH_STRING.
5378
aca7a3d2
MB
5379 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5380 members clip_x, clip_y, clip_width, and clip_height.
5381 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5382
5383 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5384 --enable-font-backend. Call syms_of_font.
5385
5386 * fns.c (assoc_no_quit): New function.
5387
5388 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5389 (face_for_font, new_fontset_from_font)
5390 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5391
5392 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5393 (fontset_font, fontset_ascii, face_for_char)
5394 (make_fontset_for_ascii_face, Ffont_info)
5395 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5396 is nonzero, use font-backend mechanism.
5397 (find_font_encoding): Make it non-static.
5398 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5399 New functions.
5400
5401 * frame.h (struct frame): New members resx and resy.
5402 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5403 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5404
5405 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5406 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5407
5408 * lisp.h (assoc_no_quit): Extern it.
5409
5410 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5411 Through out the file, use FONT_INFO_FROM_FACE instead of
5412 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5413 rif->per_char_metric.
5414 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5415 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5416 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5417 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5418 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5419 nonzero, use font-backend mechanism.
5420 (get_per_char_metric): New function.
5421
5422 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5423 (set_lface_from_font_name)
5424 (set_font_frame_param, free_realized_face)
5425 (prepare_face_for_display, clear_face_gcs)
5426 (Finternal_set_font_selection_order, realize_x_face)
5427 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5428 font-backend mechanism.
1f45f627 5429 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5430 (load_face_font) [USE_FONT_BACKEND]: Abort.
5431 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5432 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5433
5434 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5435 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5436 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5437 nonzero, register all available font drivers. Call
5438 x_default_font_parameter for deciding a font.
5439 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5440
5441 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5442 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5443 (x_set_glyph_string_clipping_exactly)
5444 (x_compute_glyph_string_overhangs)
5445 (x_draw_glyph_string_foreground)
5446 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5447 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5448 enable_font_backend is nonzero, use font-backend mechanism.
5449 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5450
73acf815 54512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5452
fcb314b2 5453 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5454 system_eol_type.
5455 (syms_of_coding): Initialize system_eol_type.
5456
fcb314b2
GM
5457 * process.c (Fset_process_coding_system): Inherit system's eol
5458 format if necessary.
aca7a3d2 5459
73acf815 54602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5461
5462 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5463
73acf815 54642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5465
5466 * coding.c (decode_eol): Pay attention to buffer relocation in
5467 del_range_2.
5468 (decode_coding): Call decode_eol before restoring undo_list.
5469
73acf815 54702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5471
5472 * charset.c (Fdefine_charset_internal): Fix setting of
5473 emacs_mule_bytes.
5474
73acf815 54752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5476
5477 * keyboard.c (read_char): Check if C is a character or not before
5478 looking up Vkeyboard_translate_table.
5479
73acf815 54802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5481
5482 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5483 condition to terminate the loop.
5484
73acf815 54852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5486
5487 * coding.c (produce_composition): Compare charbuf[i] instead of
5488 args[i] against 0.
5489 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5490
73acf815 54912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5492
5493 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5494 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5495 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5496 detect_coding.
5497 (emacs_mule_char): Handle old style (Emacs 20) component character
5498 of a composition.
4c4475a8
GM
5499 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5500 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5501 composition rule.
aca7a3d2
MB
5502 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5503
73acf815 55042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5505
5506 * coding.c (encode_coding_ccl): Allocate destination dynamically
5507 when necessary.
5508
73acf815 55092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5510
5511 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5512 the loop. When quitted, show a proper error message.
5513
73acf815 55142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5515
aca7a3d2
MB
5516 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5517 src->clip_head and src->clip_tail temporarily instead of src->hl.
5518
5519 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5520 character sequence.
5521 (Fccl_execute_on_string): Use ASET, not XSET.
5522
73acf815 55232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5524
1f45f627 5525 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5526
73acf815 55272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5528
5529 * coding.c (decode_coding): Fix the condition of terminating the
5530 decoding loop.
5531
73acf815 55322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5533
5534 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5535 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5536
73acf815 55372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5538
5539 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5540 made by a mapping table.
5541
73acf815 55422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5543
5544 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5545 not.
5546 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5547 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5548
5549 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5550 s->face is NULL or not.
5551
73acf815 55522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5553
5554 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5555 (x_draw_glyph_string): Fix drawing of right_overhang and
5556 left_overhang around/on cursor.
5557
1f45f627 5558 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5559
73acf815 55602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5561
5562 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5563
73acf815 55642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5565
4c4475a8
GM
5566 * coding.c (Fdefine_coding_system_internal)
5567 (Fdefine_coding_system_alias): Avoid a duplicated element in
5568 Vcoding_system_alist.
aca7a3d2 5569
73acf815 55702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5571
5572 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5573
fcb314b2 5574 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5575 (syms_of_coding): Intern and staticpro it.
5576 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5577 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5578
5579 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5580 Fcoding_system_p.
5581 (CHECK_CODING_SYSTEM): If ID is not available, call
5582 Fcheck_coding_system.
4c4475a8
GM
5583 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5584 Try also Fcheck_coding_system.
aca7a3d2 5585
73acf815 55862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5587
aca7a3d2
MB
5588 * coding.c (code_conversion_restore): GCPRO arg.
5589
73acf815 55902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5591
5592 * character.c (lisp_string_width): Check multibyteness of STRING.
5593
73acf815 55942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5595
5596 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5597 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5598 (decode_mac_font_name): Use decode_coding_c_string instead of
5599 decode_coding.
5600 (x_load_font): Initialize fontp->fontset to -1. Set
5601 fontp->encoding_type.
5602
73acf815 56032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5604
5605 * search.c (search_buffer): Give up BM search on case-fold-search
5606 if one of a target character has a case-equivalence of different
5607 byte length even if that target charcter is an ASCII.
1f45f627
GM
5608 (simple_search): Fix calculation of byte length of matched text.
5609 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5610
73acf815 56112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5612
5613 * coding.c (decode_coding): Fix handling of invalid bytes.
5614
73acf815 56152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5616
5617 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5618 Unicode characters.
5619
73acf815 56202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5621
5622 * coding.c (encode_coding_object): If a pre-write-conversion
5623 function makes a new buffer, kill it.
5624
73acf815 56252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5626
5627 * coding.c (QCascii_compatible_p): New variable.
5628 (syms_of_coding): Initialize it.
4c4475a8
GM
5629 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5630 calling string_char.
aca7a3d2
MB
5631 (record_conversion_result): Add `default:' case.
5632 (coding_charset_list): Delete unused variable `coding_type'.
5633 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5634 property in the plist of the coding system.
5635 (Fcoding_system_put): Check QCascii_compatible_p.
5636
73acf815 56372008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5638
5639 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5640 removed calculation of frame `f', as it's now used.
5641
73acf815 56422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5643
1f45f627 5644 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5645 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5646 (UNIDATA): New variable.
5647 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5648 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5649 $(RUN_TEMACS) unconditionally.
5650
73acf815 56512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5652
1f45f627 5653 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5654 (admindir): New variable.
5655 ($(lispsource)international/charprop.el): New target.
5656
73acf815 56572008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5658
1f45f627 5659 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5660 (syms_of_character): Remove its initialization.
5661
73acf815 56622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5663
5664 * w32select.c (validate_coding_system)
5665 (setup_windows_coding_system): New functions.
5666 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5667 setup_windows_coding_system.
5668 (setup_config, Fw32_get_clipboard_data): Use
5669 validate_coding_system.
5670 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5671 where signals are allowed.
aca7a3d2
MB
5672
5673 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5674 (Fcheck_coding_system): Add declarations.
5675
73acf815 56762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5677
1f45f627 5678 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5679
73acf815 56802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5681
5682 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5683 string as the second argument for x_new_fontset.
5684
73acf815 56852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5686
5687 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5688 (encode_coding_object): Use safe_call instead of call2.
5689
73acf815 56902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5691
1f45f627 5692 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5693
5694 * Makefile.in (lisp): Include charprop.el.
5695
73acf815 56962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5697
5698 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5699 Not sure if it's unnecessary.
5700
73acf815 57012008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5702
5703 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5704 some possibly unnecessary fontset checking code that crashed
1f45f627 5705 when creating a new frame.
aca7a3d2 5706
73acf815 57072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5708
5709 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5710 lookup_face.
5711
5712 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5713
1f45f627 5714 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5715
73acf815 57162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5717
73acf815 5718 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5719 (coding_charset_list): New function.
5720
5721 * coding.h (coding_charset_list): Extern it.
5722
73acf815 57232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5724
5725 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5726 concatenation of family and registry.
5727
73acf815 57282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5729
5730 * character.h (BYTE8_STRING): Fix typo.
5731
5732 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5733 string to multibyte (sync to HEAD).
5734
5735 * casefiddle.c (casify_region): Handle changes in byte-length
5736 using replace_range_2 (sync to HEAD).
5737
73acf815 57382008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5739
5740 * chartab.c (map_char_table): GCPRO table and arg.
5741
73acf815 57422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5743
5744 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5745 already at limit.
5746
73acf815 57472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5748
5749 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5750 instead of fast_c_string_match_ignore_case.
1f45f627 5751 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5752 fast_string_match_ignore_case instead of
1f45f627 5753 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5754
73acf815 57552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5756
5757 * xdisp.c (get_next_display_element): In unibyte case, decide to
5758 display in octal form by checking a chacter by
5759 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5760
1f45f627 5761 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5762
5763 * character.c (unibyte_has_multibyte_table): New variable.
5764
5765 * character.h (unibyte_has_multibyte_table): Extern it.
5766 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5767
73acf815 57682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5769
5770 * coding.c (encode_coding_iso_2022): Fix handling of charset
5771 annotation.
5772
73acf815 57732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5774
5775 * coding.c (setup_coding_system): If coding_system is nil, use
5776 Qundecided.
5777 (Fterminal_coding_system): Return nil if terminal coding system is
5778 `undecided'.
5779 (syms_of_coding): Define coding-system `undecided' here. Setup
5780 terminal_coding as `undecided'.
5781
73acf815 57822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5783
5784 * xdisp.c (message_dolog, set_message_1): Call
5785 unibyte_char_to_multibyte with arg type int.
5786
aca7a3d2
MB
5787 * lread.c (read1): Fix reading of a char-table.
5788
5789 * print.c (print_object): Include sub char-table in cicularities
5790 detection.
5791
73acf815 57922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5793
5794 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 5795 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 5796
73acf815 57972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5798
5799 * fileio.c (report_file_error): Make a unibyte string from
5800 strerror (errorno).
5801 (Fsubstitute_in_file_name): Fix the arg to
5802 unibyte_char_to_multibyte. It is evaluated twice.
5803
73acf815 58042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5805
5806 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
5807
73acf815 58082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5809
5810 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
5811 BOM is not found.
4c4475a8
GM
5812 (detect_coding, detect_coding_system): Optimization for ISO-2022
5813 when no 8-bit data is found.
aca7a3d2 5814
73acf815 58152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5816
5817 * w32fns.c (x_to_w32_font): Update to use new coding struct.
5818
73acf815 58192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5820
4c4475a8
GM
5821 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
5822 CHARS.
aca7a3d2 5823
73acf815 58242008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5825
5826 * macterm.c (mac_encode_char): Add charset argument and update
5827 to use encoding_type.
2a2e8de7 5828 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
5829 switch to pure fontset.
5830 (decode_mac_font_name): Temporarily remove decoding.
5831 (x_font_name_to_mac_font_name): Temporarily remove encoding.
5832 (x_load_font): Temporarily remove encoding.
aca7a3d2 5833
73acf815 58342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5835
5836 * xfaces.c (Fface_font): If frame is not on a window system,
5837 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
5838 refer to face->font.
5839 (split_font_name_into_vector, build_font_name_from_vector)
5840 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
5841 whne HAVE_WINDOW_SYSTEM is defined.
5842
73acf815 58432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5844
5845 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
5846 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 5847 cmp->glyph_len is zero.
aca7a3d2 5848
1f45f627 5849 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
5850 (Ffontset_info): Make it backward compatible. New arg ALL.
5851
73acf815 58522008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
5853
5854 * process.c (read_process_output): Grow decoding_buf when needed;
5855 this could cause a crash in allocate_string and compact_small_strings.
5856
73acf815 58572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5858
1f45f627 5859 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 5860
73acf815 58612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5862
5863 * coding.c (setup_coding_system): Set coding->common_flags
5864 correctly for raw-text.
5865 (consume_chars): On encoding unibyte text by raw-text, don't check
5866 multibyte form.
1f45f627 5867 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
5868
5869 * fileio.c (e_write): Short cut for the case of no encoding.
5870
73acf815 58712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5872
4c4475a8
GM
5873 * coding.c (detect_coding, detect_coding_system): Delete unused
5874 variables.
aca7a3d2 5875
73acf815 58762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5877
5878 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
5879 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
5880
73acf815 58812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5882
5883 * coding.c (Ffind_coding_systems_region_internal): Include
5884 raw-text and no-conversion in the result.
5885
73acf815 58862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5887
1f45f627 5888 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
5889 (load_font_get_repertory): Delete unnecessary check of ENCODING of
5890 FONT_DEF.
5891 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 5892 (set_fontset_font): Change argument.
aca7a3d2
MB
5893 (Fset_fontset_font): Fix for the case that TARGET is a script
5894 name and charset name.
5895 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
5896
73acf815 58972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5898
1f45f627
GM
5899 * fontset.c (fontset_font): Rename from fontset_face. Change return
5900 value.
4c4475a8
GM
5901 (face_suitable_for_char_p, face_for_char): Adjust for the change
5902 of fontset_font.
aca7a3d2
MB
5903 (make_fontset_for_ascii_face): Fix setting of the fontset element
5904 for ASCII.
5905 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
5906 to get a font name.
1f45f627 5907 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 5908
fcb314b2 5909 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
5910
5911 * character.h (LEADING_CODE_LATIN_1_MIN)
5912 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
5913
73acf815 59142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5915
fcb314b2 5916 * editfns.c (check_translation): New function.
aca7a3d2
MB
5917 (Ftranslate_region_internal): Handle M:N mapping.
5918
73acf815 59192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5920
5921 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
5922
73acf815 59232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5924
5925 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
5926 goto invalid_code.
5927 (decode_coding_iso_2022): Fix handling of invalid designation.
5928
5929 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
5930 after calling code_conversion_save.
5931
73acf815 59322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5933
5934 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
5935
5936 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
5937
5938 * fontset.c: Include "intervals.h".
5939 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5940 (free_face_fontset, new_fontset_from_font_name): Fix
5941 Lisp_Object/int mixup.
aca7a3d2
MB
5942
5943 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5944
5945 * coding.c: Add many prototypes for static functions.
5946 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5947 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5948 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5949 get_translation_table with max_lookup NULL.
aca7a3d2 5950
73acf815 59512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5952
5953 * coding.c (get_translation_table): Declare it as Lisp_Object.
5954 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5955 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5956 instead of CHAR_TABLE_REF.
aca7a3d2 5957
73acf815 59582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5959
1f45f627 5960 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5961 annotation data format.
5962 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5963 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5964 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5965 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5966 (decode_coding_ccl, decode_coding_charset): Pay attention to
5967 coding->charbuf_used.
aca7a3d2
MB
5968 (get_translation): New function.
5969 (produce_chars): New arguments translation_table and last_block.
5970 Translate characters here. Return number of carryover chars.
1f45f627
GM
5971 Change caller.
5972 (produce_composition): New argument pos. Change caller.
5973 Adjust for the change of annotation data format.
aca7a3d2
MB
5974 (produce_charset, produce_annotation): Likewise.
5975 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5976 (consume_chars): New arg translation_table. Change caller.
5977 (translate_chars): Delete.
5978 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5979
73acf815 59802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5981
5982 * search.c (simple_search): Fix setting this_pos_byte in backward
5983 search.
5984
5985 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5986 byte sequence.
5987 (detect_coding_ccl): Fix setting of the variable valids.
5988
73acf815 59892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5990
5991 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5992
5993 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5994
1f45f627 5995 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5996 Ftranslate_region. Accept a char-table in TABLE.
5997 (syms_of_editfns): Defsubr Stranslate_region_internal.
5998
5999 * xfaces.c (set_lface_from_font_name): If a font is specified for
6000 a frame, generate a fontset from the font.
6001 (build_scalable_font_name): If the scalable font is requested for
6002 a specific size, don't change that size.
6003 (try_font_list): Try a scalable font also in the case that a
1f45f627 6004 pattern string is specified.
aca7a3d2 6005
73acf815 60062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6007
6008 * xfaces.c (Fface_font): New optional arg CHARACTER.
6009
73acf815 60102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6011
6012 * charset.h (CHARSET_OFFSET): New macro.
6013
73acf815 60142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6015
6016 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
6017
6018 * fontset.c (fontset_face): Handle the case that repertory is a
6019 char-table.
6020 (find_font_encoding): Return nil for unknown encoding.
6021 (Fset_fontset_font): Ignore a font of unknown encoding.
6022
73acf815 60232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6024
1f45f627 6025 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
6026
6027 * fontset.c (fontset_face): Handle fallback fonts correctly.
6028 (Ffontset_info): Return infomation about fallback fonts.
6029
73acf815 60302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6031
6032 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 6033 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
6034 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
6035 the case that it is nil.
6036 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 6037 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
6038
6039 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
6040 subset or superset.
6041
73acf815 60422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6043
6044 * emacs.c (main): Call init_charset after syms_of_XXX.
6045
1f45f627 6046 * charset.c (Vcharset_map_directory): Delete.
1f204af3 6047 (Vcharset_map_path): New variable.
aca7a3d2
MB
6048 (load_charset_map_from_file): Use Vcharset_map_path instead.
6049 (init_charset): Initialize Vcharset_map_path.
6050 (syms_of_charset): Delete declaration of "charset-map-directory",
6051 add declaration of "charset-map-path".
6052
73acf815 60532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6054
4c4475a8
GM
6055 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
6056 ASCII only string.
aca7a3d2
MB
6057
6058 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
6059
6060 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 6061 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 6062
73acf815 60632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6064
6065 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
6066
6067 * coding.c (QCmnemonic, QCdefalut_char)
6068 (QCdecode_translation_table, QCencode_translation_table)
6069 (QCpost_read_conversion, QCpre_write_conversion): New variables.
6070 (get_translation_table): Return a list of translation tables if
6071 necessary.
6072 (decode_coding): Call get_translation_table with ENCODEP 0.
6073 (char_encodable_p): If translation_table is non-nil, always call
6074 translate_char.
6075 (Fdefine_coding_system_internal): Accept list of translation
6076 tables as :encode-translation-table and :decode-translation-table.
6077 (Fcoding_system_put): New function.
6078 (syms_of_coding): Declare new symbols. Defsubr
6079 Scoding_system_put.
4c4475a8
GM
6080 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
6081 typically JISX0212.
aca7a3d2
MB
6082
6083 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
6084 when the charset is superset type.
6085
6086 * character.c (translate_char): Accept list of translation tables.
6087
73acf815 60882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6089
1f45f627 6090 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
6091 (CODING_ATTR_TRANS_TBL): New macro.
6092
6093 * coding.c (get_translation_table): New function.
6094 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
6095 (decode_coding, encode_coding): Utilize get_translation_table.
6096 (char_encodable_p, Funencodable_char_position): Translate char if
6097 necessary.
6098 (Ffind_coding_systems_region_internal)
6099 (Fcheck_coding_systems_region): Setup translation table for encode
6100 in a coding system attribute vector in advance.
aca7a3d2
MB
6101 (Fdefine_coding_system_internal): Allow a symbol as translation
6102 table. For shift-jis type coding system, allow 4th charset.
6103
73acf815 61042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6105
6106 * coding.c (decode_coding_sjis): Check the first byte rigidly.
6107
6108 * xdisp.c (get_next_display_element): Pass -1 as POS to
6109 FACE_FOR_CHAR if displaying a C-string.
6110
73acf815 61112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6112
6113 * composite.c (get_composition_id): Handle xoff and yoff in a
6114 composition rule.
6115
6116 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6117 (struct composition): New member lbearing and rbearing.
6118
6119 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6120 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6121 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6122
6123 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6124 composition glyph.
6125
73acf815 61262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6127
6128 * print.c: Include charset.h.
6129 (Vprint_charset_text_property): New variable.
6130 (Qdefault): Extern it.
6131 (PRINT_STRING_NON_CHARSET_FOUND)
6132 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6133 (print_check_string_result): New variable.
6134 (print_check_string_charset_prop): New function.
6135 (print_prune_charset_plist): New variable.
6136 (print_prune_string_charset): New function.
6137 (print_object): Call print_prune_string_charset if
6138 Vprint_charset_text_property is not t.
6139 (print_interval): Print nothing if itnerval->plist is nil.
6140 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6141 variable. Init and staticpro print_prune_charset_plist.
6142
73acf815 61432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6144
6145 * fontset.c (new_fontset_from_font_name): Use the specified font
6146 for all characters in the new fontset.
6147
6148 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6149 OBJECT args.
6150
6151 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6152 OBJECT args for composition too.
6153
6154 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6155 OBJECT args.
6156
73acf815 61572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6158
6159 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6160
1f45f627 6161 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 6162 FONT_DEF format.
1f45f627 6163 (fontset_face): New arg id. Change caller.
aca7a3d2 6164 (face_for_char): New args pos and object.
1f204af3 6165 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
6166 (fs_query_fontset): Check NAME by Fassoc too.
6167 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 6168 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 6169
1f45f627 6170 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 6171
4c4475a8
GM
6172 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6173 (append_space, extend_face_to_end_of_line)
6174 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6175 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
6176
6177 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6178 POS and OBJECT args.
6179
6180 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6181 POS and OBJECT args.
6182
73acf815 61832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6184
6185 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6186 of GlobalAlloc'ed memory.
6187
73acf815 61882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6189
6190 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6191
6192 * charset.h (charset_table_used): Delete extern.
6193
6194 * charset.c (charset_table_used): Make it static.
6195 (map_charset_chars): Fix args to c_function with.
6196
6197 * chartab.c (map_sub_char_table_for_charset): Fix args to
6198 c_function with.
6199
6200 * coding.h (enum coding_result_code): Delete
6201 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6202
6203 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 6204 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
6205 (Vlast_code_conversion_error): New variables.
6206 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6207 (ONE_MORE_BYTE): Record error if any instead of signaling an
6208 error. If non-ASCII multibyte char is found, return the negative
6209 value of the code. All callers changed to check it.
6210 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
6211 (record_conversion_result): New function. Change all codes setting
6212 coding->result to call this function.
4c4475a8
GM
6213 (detect_coding_utf_8, decode_coding_utf_8)
6214 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6215 Don't use the local variable incomplete.
aca7a3d2 6216 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
6217 (decode_coding): Fix of flushing out unprocessed data.
6218 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 6219 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
6220
6221 * fontset.c (set_fontset_font): Fix args.
6222
6223 * lisp.h (CHARACTERBITS): Define as 22.
6224
6225 * process.c (send_process): Be sure to set coding->src_multibyte.
6226
6227 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6228
73acf815 62292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6230
6231 * xdisp.c (handle_auto_composed_prop): Give limit to
6232 Fnext_single_char_property_change.
6233
73acf815 62342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6235
424c157f 6236 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 6237 table weak.
aca7a3d2
MB
6238
6239 * fontset.c (Fset_fontset_font): Fix docstring.
6240
6241 * lisp.h (detect_coding_system): Adjust prototype.
6242
6243 * fileio.c (kill_workbuf_unwind): Delete this function.
6244 (Finsert_file_contents): Adjust the call of detect_coding_system.
6245 Get conversion_buffer by code_conversion_save. Use the macor
6246 CODING_MAY_REQUIRE_DECODING. After decoding, update
6247 coding_system.
6248
6249 * coding.h (make_conversion_work_buffer): Delete extern.
6250 (code_conversion_save): Extern it.
6251
6252 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6253 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6254 (decode_coding_utf_8): Don't do eol converion.
6255 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6256 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6257 (decode_coding_emacs_mule, decode_coding_iso_2022)
6258 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6259 Don't do eol converion.
aca7a3d2
MB
6260 (adjust_coding_eol_type): Return a new coding system.
6261 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6262 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6263 each change.
6264 (decode_coding): Pay attention to undo_list. Do eol convesion for
6265 all types of coding-systems (if necessary).
6266 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6267 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6268 Vcode_conversion_reused_work_buf.
6269 (Vcode_conversion_workbuf_name): New variable.
6270 (reused_workbuf_in_use): New variable.
6271 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6272 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6273 (code_conversion_save): Delete the argument BUFFER. Change callers.
6274 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6275 Fix for utf-16 detection.
6276 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6277 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6278 reused_workbuf_in_use.
6279
73acf815 62802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6281
6282 * keymap.c (store_in_keymap): Pay attention to the case that idx
6283 is a cons specifying a character range.
6284
73acf815 62852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6286
6287 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6288 HANDLED_RECOMPUTE_PROPS.
6289
6290 * coding.c (Fdefine_coding_system_internal): Fix checking of
6291 ascii compatibility.
6292
73acf815 62932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6294
1f45f627 6295 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6296 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6297
6298 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6299 Resync charset_list to Vemacs_mule_charset_list.
6300
6301 * keymap.c (store_in_keymap): Pay attention to the case that idx
6302 is a cons specifying a character range.
6303
73acf815 63042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6305
6306 * composite.c (update_compositions): Bind inhibit-read-only, etc
6307 to t before calling remove-list-of-text-properties.
6308
6309 * print.c (print_object): Always print ASCII chars as is.
6310
73acf815 63112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6312
1f45f627 6313 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6314
4c4475a8
GM
6315 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6316 is a char table.
aca7a3d2 6317
73acf815 63182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6319
1f45f627 6320 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6321
73acf815 63222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6323
6324 * xfaces.c (set_lface_from_font_name): Fix for the case that
6325 FONTNAME is not fontset name.
6326
73acf815 63272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6328
6329 * fns.c (base64_encode_1): Fix previous change.
6330
73acf815 63312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6332
6333 * fontset.c (set_fontset_font): New function.
6334 (Fset_fontset_font): If a font is specified for a charset, use
6335 map_charset_chars to store the font spec in a fontset.
6336
73acf815 63372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6338
1f204af3 6339 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
6340 (make_fontset): Don't create a fallback fontset here.
6341 (free_face_fontset): Free a fallback fontset (if any) too.
6342 (n_auto_fontsets): Delete this variable.
6343 (auto_fontset_alist): New variable.
6344 (new_fontset_from_font_name): Check auto_fontset_alist.
6345 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6346 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6347 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6348 Defsubr Sfontset_list_all.
6349
73acf815 63502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6351
6352 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6353
73acf815 63542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6355
6356 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6357
73acf815 63582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6359
6360 * editfns.c (Fgoto_char): Fix docstring.
6361
73acf815 63622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6363
6364 * insdel.c (insert_from_gap): Adjust intervals correctly.
6365
73acf815 63662008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6367
6368 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6369 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6370 (w32_initialize): Try to load it.
6371 (x_get_font_repertory): Use it if available.
6372 (w32_encode_char): Add shortcut for unicode output.
6373
6374 * w32fns.c (w32_load_system_font): Default charset to -1.
6375 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 6376 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6377 or wildcard charsets.
6378 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6379 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6380 (w32_to_x_font): Match charset to real charset.
6381 (enum_font_cb2): Always list unicode versions.
6382
6383 * makefile.w32-in (temacs): Increase EMHEAP.
6384
73acf815 63852008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6386
6387 * w32term.c (w32_encode_char): New charset parameter.
6388 font_info.encoding becomes encoding_type.
1f45f627 6389 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6390 (x_new_font): Return quickly if font already set.
6391 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6392 Use new fs_query_fontset. Try new_fontset_from_font_name.
6393 Use fontset_name for return value.
aca7a3d2
MB
6394
6395 * w32term.h: Declare x_get_font_repertory.
6396
6397 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6398 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6399 of encode_coding.
6400 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6401 decode_coding.
6402
6403 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6404 of x_new_fontset.
6405 (w32_load_system_font): Initialize charset as unicode.
6406 font_info.encoding becomes encoding_type.
1f45f627
GM
6407 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6408 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6409 (syms_of_w32fns): Set get_font_repertory_func.
6410
1f45f627 6411 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6412 from term.c.
1f45f627 6413 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6414 encode_coding_object in place of encode_coding.
6415
6416 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6417 encoding becomes encoding_type.
6418
6419 * term.c (terminal_encode_buffer): Make externally visible.
6420
6421 * makefile.w32-in: Add character.h dependancies.
6422 (character.o, chartab.o): New targets.
6423
73acf815 64242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6425
6426 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6427 CODING_ID_EOL_TYPE.
aca7a3d2 6428
73acf815 64292008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6430
6431 * coding.c (produce_chars): Revert last change.
6432
73acf815 64332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6434
6435 * charset.h (charset_unicode): Extern it.
6436
6437 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6438 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6439 arg MULTIBYTE.
1f45f627 6440 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6441 change of find_charsets_in_text.
6442 (Fsplit_char): Fix doc. Never return unknown.
6443
6444 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6445
6446 * coding.c (Fdefine_coding_system_alias): Update
6447 Vcoding_system_list.
6448
6449 * fontset.c (load_font_get_repertory): Pay attention to the case
6450 that ENCODING of a font is specified by a char-table.
6451
6452 * xterm.c (x_get_font_repertory): Handle the case that the
6453 encoding of font is other than Unicode.
6454
73acf815 64552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6456
6457 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6458 if a character is encodable by the terminal coding system. If
6459 not, produces proper number of `?'s. Update
6460 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6461 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6462
73acf815 64632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6464
6465 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6466 variables.
1f45f627 6467 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6468 characters at once. Store the result of encoding in
6469 terminal_encode_buffer.
4c4475a8
GM
6470 (write_glyphs, insert_glyphs): Adjust for the change of
6471 encode_terminal_code.
aca7a3d2
MB
6472 (term_init): Initialize terminal_encode_buffer and
6473 terminal_encode_buf_size.
6474
6475 * coding.c (consume_chars): If coding->src_object is nil, don't
6476 check annotation.
6477
73acf815 64782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6479
6480 * character.c (char_string): Use ASCII_CHAR_P instead of
6481 SINGLE_BYTE_CHAR_P.
6482
73acf815 64832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6484
6485 * xdisp.c (handle_auto_composed_prop): Check if the last
6486 characters of auto-composed region is newly composed with the
6487 following characters.
6488 (handle_composition_prop): Fix checking of point being inside
6489 composition.
6490
73acf815 64912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6492
6493 * fns.c (concat): Don't change multibyteness of the result by
6494 concatenating an 8-bit character.
6495
6496 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6497 multibyteness of the result when newelt is an 8-bit character.
6498
73acf815 64992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6500
6501 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6502 EMACS_INT.
6503
6504 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6505
6506 * xfaces.c (face_numeric_value): Declare dim size_t.
6507 (Finternal_lisp_face_equal_p): Remove unused f.
6508
6509 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6510 (MATRIX_ROW): Remove unused vars.
6511 (draw_glyphs, x_insert_glyphs, fast_find_position)
6512 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6513 byte/char counts.
6514
6515 * regex.c (regex_compile): Remove unused var.
6516
6517 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6518
6519 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6520 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6521
6522 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6523
6524 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6525
6526 * fileio.c (Fwrite_region): Remove unused var.
6527
6528 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6529 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6530
6531 * composite.c (Fremove_list_of_text_properties): Declare.
6532
1f45f627
GM
6533 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6534 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6535 (coding_inherit_eol_type): Remove unused attrs.
6536 (detect_coding): Cast arg of detect_eol.
6537
6538 * charset.c (syms_of_charset): Remove unused var p.
6539 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6540 byte/char counts.
6541
6542 * casetab.c (set_case_table): Remove unused var.
6543
6544 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6545 unused vars.
aca7a3d2 6546
73acf815 65472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6548
6549 * xterm.c (x_bitmap_mask): Declare.
6550
73acf815 65512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6552
6553 * xterm.c (x_term_init): Fix type error.
6554
6555 * lisp.h: Add Funibyte_char_to_multibyte.
6556
6557 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6558 (Fset_coding_system_priority): Doc fix.
6559
aca7a3d2
MB
6560 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6561
6562 * indent.c (check_composition): Make start and end EMACS_INT.
6563
6564 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6565
6566 * xdisp.c (handle_composition_prop, check_point_in_composition):
6567 Make buffer positions EMACS_INT.
6568
6569 * composite.c (find_composition, run_composition_function)
6570 (update_compositions, Ffind_composition_internal): Make buffer
6571 positions EMACS_INT.
6572
6573 * composite.h (find_composition, update_compositions): Make
6574 position args EMACS_INT.
6575
1f45f627 6576 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6577
6578 * intervals.c (get_property_and_range):
6579 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6580
6581 * unexalpha.c: Don't include varargs.h.
6582
73acf815 65832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6584
6585 * coding.h (ENCODE_UTF_8): New.
6586
6587 * Makefile.in (gtkutil.o): Depend on coding.h.
6588
6589 * coding.c (Fset_coding_system_priority): Doc fix.
6590
73acf815 65912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6592
6593 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6594 the case of auto saving.
6595
73acf815 65962008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6597
4c4475a8
GM
6598 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6599 `range' from GC.
aca7a3d2 6600
73acf815 66012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6602
6603 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6604
73acf815 66052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6606
1f45f627 6607 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6608 (Fwrite_region): Set Vlast_coding_system_used to the return value
6609 of choose_write_coding_system.
6610
73acf815 66112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6612
6613 * charset.c (Fset_charset_priority): Pay attention to duplicated
6614 arguments.
6615
6616 * coding.c (QCcategory): New variable.
6617 (syms_of_coding): Defsym it. Set all elements of
6618 Vcoding_category_table and their symbol values.
6619 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6620 coding-category-XXX, and coding-category-list.
6621 (Fdefine_coding_system_internal): Add category in the plist.
6622
73acf815 66232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6624
6625 * callproc.c (Fcall_process): Handle carryover correctly.
6626
1f45f627 6627 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6628 (raw_text_coding_system): Check NILP (coding_system).
6629 (coding_inherit_eol_type): Check NILP (coding_system) and
6630 NILP (parent).
6631 (consume_chars): Fix for the case of raw-text.
6632
6633 * process.c (read_process_output): Handle carryover correctly.
6634
73acf815 66352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6636
6637 * regex.c (re_search_2): Fix last change.
6638
73acf815 66392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6640
6641 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6642 target_multibyte. Even in a unibyte case, return a converted
6643 multibyte char.
6644 (GET_CHAR_AFTER): New macro.
6645 (PATFETCH): Translate via multibyte char.
6646 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6647 (SETUP_MULTIBYTE_RANGE): New macro.
6648 (regex_compile): Setup compiled code so that its multibyteness
6649 matches that of a target. Fix the handling of "[X-YZ]" using
6650 SETUP_MULTIBYTE_RANGE.
6651 (analyse_first) <charset>: For filling fastmap for all multibyte
6652 characters, don't check by BASE_LEADING_CODE_P.
6653 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6654 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6655 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6656 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6657 (TRANSLATE_VIA_MULTIBYTE): New macro.
6658 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6659 It is the same as RE_MULTIBYTE_P (bufp) now.
6660 <exactn>: Translate via multibyte.
6661 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6662 translate it.
6663 <charset, charset_not>: Fetch a character by
6664 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6665 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6666 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6667 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6668 by GET_CHAR_AFTER.
c5ad7a3d 6669 (bcmp_translate): Likewise.
aca7a3d2
MB
6670
6671 * search.c (compile_pattern): Check the member target_multibyte,
6672 not the member multibyte of buf.
6673
6674 * lread.c (read1): While reading a string, set force_singlebyte
6675 and force_multibyte correctly.
6676
4c4475a8
GM
6677 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6678 up of unibyte_to_multibyte_table.
aca7a3d2 6679
73acf815 66802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6681
6682 * coding.c (setup_coding_system): If coding has
6683 post-read-conversion or pre-write-conversion, set
6684 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6685 respectively.
6686 (decode_coding_gap): Run post-read-conversion if any.
6687
6688 * fileio.c (Finsert_file_contents): Even if we read into a
6689 unibyte buffer, check if we must decode the result or not.
6690
73acf815 66912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6692
6693 * coding.c (make_conversion_work_buffer): Change the work buffer
6694 name to the same one as that of Emacs 21.
6695
73acf815 66962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6697
1f45f627 6698 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6699 (code_conversion_restore): Don't extern it.
6700
6701 * coding.c (detected_mask): Delete unused variable.
6702 (decode_coding_iso_2022): Pay attention to the byte sequence of
6703 CTEXT extended segment, and retain those bytes as is.
6704 (decode_coding_ccl): Delete unused variable `valids'.
6705 (setup_coding_system): Delete unused variable `category'.
6706 (consume_chars): Delete unused variable `category'. Make it work
6707 for non-multibyte case.
1f45f627 6708 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6709 (saved_coding): Delete unused variable.
6710 (code_conversion_restore): Don't check saved_coding->destination.
6711 (code_conversion_save): New function.
6712 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6713 instead of record_unwind_protect.
1f45f627 6714 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6715 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6716 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6717
6718 * fileio.c (kill_workbuf_unwind): New function.
6719 (Finsert_file_contents): On replacing, call
6720 make_conversion_work_buffer with correct args, and call
6721 record_unwind_protect with the first arg kill_workbuf_unwind.
6722
6723 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6724
73acf815 67252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6726
1f45f627 6727 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6728 (fontset_add): Fix for the case that TO is less than TO1.
6729 (Ffontset_info): Don't use fallback fontset on checking the
6730 default fontset.
6731 (dump_fontset): New function for debugging.
6732
6733 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6734 coding_type is Qcharset.
6735
73acf815 67362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6737
6738 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6739 (map_char_table): Don't inherit the value from the parent on
1f45f627 6740 initializing VAL. Adjust for the above change.
aca7a3d2 6741
73acf815 67422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6743
6744 * coding.c (Qsignature, Qendian): Delete these variables.
6745 (syms_of_coding): Don't initialize them.
6746 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6747 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6748 detect_info->found.
6749 (decode_coding_utf_16): Don't detect BOM here.
6750 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6751 is NOT utf_16_without_bom.
6752 (setup_coding_system): For a coding system of type utf-16, check
6753 if the attribute :endian is Qbig or not (not nil or not), and set
6754 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6755 (detect_coding): If coding type is utf-16 and BOM detection is
6756 required, detect it.
6757 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6758 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6759
73acf815 67602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6761
6762 * coding.c (coding_set_source): Fix for the case that the current
6763 buffer is different from coding->src_object.
6764 (decode_coding_object): Don't use the conversion work buffer if
6765 DST_OBJECT is a buffer.
6766
73acf815 67672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6768
6769 * lread.c (read_emacs_mule_char) [len==2]: Index
6770 emacs_mule_charset correctly.
6771
73acf815 67722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6773
6774 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
6775 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 6776 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
6777 treated specially.)
6778 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
6779 (detected_mask): Remove Big5 bits.
6780
73acf815 67812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6782
6783 The following changes are to make the font rescaling facility
6784 compatible with Emacs 21.
6785
1f45f627 6786 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
6787 Vface_resizing_fonts.
6788 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 6789 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
6790 (split_font_name): Set font->rescale_ratio.
6791 (better_font_p): Pay attention to font->rescale_ratio.
6792 (build_scalable_font_name): Likewise. Change RESX, and RESY
6793 fields.
1f45f627 6794 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 6795
73acf815 67962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6797
6798 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
6799 (Qutf_16_le): Remove these variables.
6800 (syms_of_coding): Don't DEFSYM them.
6801 (decode_coding_utf_16): Fix handling of BOM.
6802 (encode_coding_utf_16): Fix handling of BOM.
6803
73acf815 68042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6805
6806 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 6807 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 6808
73acf815 68092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6810
6811 * coding.c (Fcheck_coding_systems_region): Fix type errors.
6812
73acf815 68132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6814
6815 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6816 and fix C types.
6817
73acf815 68182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6819
6820 * xdisp.c (SKIP_GLYPHS): New macro.
6821 (set_cursor_from_row): Pay attention to string display properties.
6822
6823 * category.c (copy_category_entry): Fix for the case that RANGE
6824 is an integer.
6825
6826 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
6827
1f45f627 6828 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 6829
73acf815 68302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6831
6832 * charset.c (Fcharset_id_internal): New function.
6833 (syms_of_charset): Defsubr it.
6834
6835 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
6836 with the last arg charset_list acquired from coding.
6837 (Fdefine_coding_system_internal): For ccl-based coding system, fix
6838 the attribute coding_attr_ccl_valids.
6839
6840 * coding.h (enum define_coding_ccl_arg_index): Set the first
6841 member coding_arg_ccl_decoder to coding_arg_max.
6842
1f45f627 6843 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
6844
6845 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
6846 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
6847 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
6848 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
6849 last arg Qnil.
aca7a3d2 6850
73acf815 68512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6852
6853 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
6854 call encode_char.
6855
1f45f627 6856 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 6857
73acf815 68582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6859
1f45f627 6860 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 6861
73acf815 68622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6863
6864 * dispextern.h (check_face_attributes, generate_ascii_font_name)
6865 (font_name_registry): Don't extern them.
1f45f627 6866 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
6867
6868 * fontset.h (Qfontset): Don't extern it.
6869 (new_fontset_from_font_name): Extern it.
6870
6871 * fontset.c: Give 8 extra slots to fontset objects.
6872 (Qfontset_info): New variable.
6873 (syms_of_fontset): Defsym it.
6874 (FONTSET_FALLBACK): New macro.
6875 (fontset_face): Try also the default fontset.
1f45f627
GM
6876 (make_fontset): Realize a fallback fontset from the default fontset.
6877 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
6878 using split_font_name_into_vector and build_font_name_from_vector.
6879 (Fset_fontset_font): Access the elements of font_spec by enum
6880 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
6881 name by using split_font_name_into_vector.
6882 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
6883 generate a proper font name from the fontset name. Update
6884 Vfontset_alias_alist.
6885 (n_auto_fontsets): New variable.
6886 (new_fontset_from_font_name): New function.
6887 (Ffont_info): Store the information about fonts generated from the
1f45f627 6888 default fontset in the first extra slot of the returned char-table.
aca7a3d2 6889
1f45f627
GM
6890 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
6891 (font_name_registry): Delete function.
aca7a3d2
MB
6892 (split_font_name_into_vector): New function.
6893 (build_font_name_from_vector): New function.
1f45f627 6894 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
6895 (choose_face_font): If we are choosing an ASCII font, and ATTRS
6896 specifies an explicit font name, return the name as is. Make a
6897 list of registy names.
6898
1f45f627 6899 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
6900 of x_new_fontset.
6901 (Fx_create_frame): Don't call x_new_fontset here. Just use
6902 x_list_fonts to check the existence of fonts.
6903
1f45f627 6904 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
6905
6906 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
6907 string. Use new_fontset_from_font_name to create a fontset from a
6908 font name.
6909
1c8658b9
GM
69102008-02-01 Kenichi Handa <handa@m17n.org>
6911
6912 * syntax.c (Vfind_word_boundary_function_table): New name for
6913 Vnext_word_boundary_function_table.
6914 (find-word-boundary-function-table): New name for
6915 next-word-boundary-function-table.
6916
73acf815 69172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6918
6919 * Makefile.in: Fix some dependencies.
6920
6921 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
6922 set it to nil before returning.
6923
6924 * composite.c (update_compositions): Fix type error.
6925
6926 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
6927
73acf815 69282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6929
6930 * xterm.c (x_new_font): Optimize for the case that the font is
6931 already set for the frame.
6932
73acf815 69332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6934
6935 * chartab.c (char_table_ascii): Check if the char table contents
6936 is sub-char-table or not.
4c4475a8
GM
6937 (char_table_set, char_table_set_range): Fix argument to
6938 char_table_ascii.
aca7a3d2
MB
6939
6940 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6941 (detect_coding_utf_8, detect_coding_utf_16)
6942 (detect_coding_emacs_mule, detect_coding_iso_2022)
6943 (detect_coding_sjis, detect_coding_big5)
6944 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6945 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6946 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6947 (MAX_ANNOTATION_LENGTH): New macro.
6948 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6949 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6950 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6951 (ADD_CHARSET_DATA): New macro.
1f45f627 6952 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6953 (decode_coding_emacs_mule, decode_coding_iso_2022)
6954 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6955 Produce charset annotation data in coding->charbuf.
6956 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6957 to charset annotation data in coding->charbuf.
6958 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6959 coding->common_flags if the coding system is iso-2022 based and
6960 uses designation.
1f45f627 6961 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6962 (produce_charset): New function.
6963 (produce_annotation): Handle charset annotation.
6964 (handle_composition_annotation, handle_charset_annotation): New
6965 functions.
6966 (consume_chars): Handle charset annotation. Utilize the above two
6967 functions.
6968 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6969 buffer, get the deleted text as a string and set
6970 coding->src_object to that string.
6971 (detect_coding, detect_coding_system): Use the new struct
6972 coding_detection_info.
6973
6974 * coding.h (struct coding_detection_info): New structure.
1f45f627 6975 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6976 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6977
73acf815 69782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6979
6980 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6981
73acf815 69822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6983
1f45f627 6984 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6985 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6986 to new local and nullify apropos_accumulate before returning.
6987 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6988
73acf815 69892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6990
6991 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6992 correctly.
6993
73acf815 69942008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6995
6996 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6997
73acf815 69982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6999
7000 The following changes are to make character composition happen
7001 automatically on displaying.
7002
2a2e8de7 7003 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 7004
1f45f627
GM
7005 * composite.h (Qauto_composed, Vauto_composition_function)
7006 (Qauto_composition_function): Extern them.
aca7a3d2 7007
1f45f627
GM
7008 * composite.c (Vcomposition_function_table)
7009 (Qcomposition_function_table): Delete variables.
7010 (Qauto_composed, Vauto_composition_function)
7011 (Qauto_composition_function): New variables.
aca7a3d2
MB
7012 (run_composition_function): Don't call
7013 compose-chars-after-function.
7014 (update_compositions): Clear `auto-composed' text property.
7015 (compose_chars_in_text): Delete this function.
7016 (syms_of_composite): Staticpro Qauto_composed and
7017 Qauto_composition_function. Declare Vauto_composition_function as
7018 a Lisp variable.
7019
7020 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
7021
7022 * xdisp.c (it_props): Add an entry for Qauto_composed.
7023 (handle_auto_composed_prop): New function.
7024
7025 * xselect.c (selection_data_to_lisp_data): Don't call
7026 compose_chars_in_text.
7027
73acf815 70282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7029
7030 * keyboard.c (read_char): Modify checking around use of
7031 Vkeyboard_translate_table.
7032
7033 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7034 and fix C types.
7035
73acf815 70362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7037
4c4475a8
GM
7038 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
7039 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7040 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 7041 the case that the last byte is '\r' correctly.
1f45f627
GM
7042 (decode_coding): Flush out the unprocessed data correctly.
7043 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 7044
73acf815 70452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7046
7047 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
7048 XK_ISO... case.
7049 (xaw_scroll_callback): Revert last change.
7050
73acf815 70512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7052
1f45f627 7053 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 7054
73acf815 70552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7056
7057 * xfaces.c (Vface_resizing_fonts): New variable.
7058 (struct font_name): New member `resizing_ratio'.
7059 (font_resizing_ratio): New function.
7060 (split_font_name): Set font->resizing_ratio.
7061 (better_font_p): Pay attention to font->resizing_ratio.
7062 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
7063 RESX, and RESY fields.
7064 (try_alternative_families): Try scalable fonts if
7065 Vscalable_fonts_allowed is not Qt.
7066 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
7067
73acf815 70682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7069
7070 * xterm.c (xaw_scroll_callback): Cast correctly.
7071
73acf815 70722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7073
7074 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
7075 (lispy_kana_keys): Comment out.
7076 (make_lispy_event) [XK_kana_A]: Comment out.
7077
7078 * xterm.c (xaw_scroll_callback): Cast call_data.
7079 (XTread_socket): Deal with ASCII keysyms.
7080 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
7081
73acf815 70822008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7083
7084 * xterm.c (Vx_keysym_table): New.
7085 (syms_of_xterm): Initialize it.
7086 (XTread_socket): Use it.
7087 From head: Eliminate incorrect optimization that tried to avoid
7088 decoding the output of X*LookupString.
7089 (x_get_font_repertory): Delete charset declaration.
7090
73acf815 70912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7092
1f45f627
GM
7093 * coding.c (detect_coding_charset): If only ASCII bytes are found,
7094 return 0.
aca7a3d2
MB
7095 (Fdefine_coding_system_internal): Setup
7096 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
7097
73acf815 70982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7099
7100 * coding.c (Fcheck_coding_system): Doc fix.
7101
7102 * editfns.c (Finsert_byte): Return a proper value.
7103
73acf815 71042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7105
7106 * coding.c (decode_coding): Fix args to translate_chars. Pay
7107 attention to Vstandard_translation_table_for_decode.
7108 (encode_coding): Fix args to translate_chars. Pay attention to
7109 Vstandard_translation_table_for_encode.
7110
7111 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7112 SINGLE_BYTE_CHAR_P.
7113
7114 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7115 not by SINGLE_BYTE_CHAR_P.
7116
7117 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7118 SINGLE_BYTE_CHAR_P.
7119
7120 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7121 SINGLE_BYTE_CHAR_P.
7122
7123 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7124 by SINGLE_BYTE_CHAR_P.
7125
7126 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7127 SINGLE_BYTE_CHAR_P.
7128
73acf815 71292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7130
7131 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7132
73acf815 71332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7134
7135 * fns.c (Flanginfo): Fix typo.
7136
7137 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7138
73acf815 71392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7140
4c4475a8
GM
7141 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7142 (detect_coding_emacs_mule, detect_coding_iso_2022)
7143 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7144 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 7145 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 7146 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 7147 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 7148
73acf815 71492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7150
1f45f627
GM
7151 * character.c (char_string): Rename from
7152 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7153 (string_char): Rename from string_char.
aca7a3d2 7154
4c4475a8
GM
7155 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7156 if C is greater than MAX_3_BYTE_CHAR.
7157 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7158 string_char instead of string_char_with_unification.
aca7a3d2 7159
73acf815 71602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7161
7162 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7163
73acf815 71642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7165
1f45f627 7166 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
7167
7168 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7169
73acf815 71702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7171
7172 * charset.c (define_charset_internal): Rename `supprementary'.
7173
7174 * Makefile.in (lisp, shortlisp): Remove latin-N.
7175
73acf815 71762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7177
7178 * xfns.c (x_window, x_window): Use use_xim.
7179
7180 * xterm.c (use_xim): Initialize.
7181 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7182 (x_term_init): Maybe set use_xim.
7183
7184 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7185
73acf815 71862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7187
7188 * search.c (search_buffer): Fix case-fold-search of multibyte
7189 characters.
7190 (boyer_moore): Rename the last argument to char_high_bits.
7191
73acf815 71922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7193
7194 * xdisp.c (display_string): Fix for the case of zero width glyph.
7195
7196 * xfns.c (x_set_font): Change the error message of the case that
7197 x_new_fontset returns Qt.
7198
7199 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7200 (Finternal_set_lisp_face_attribute): Use signal_error for the
7201 error of invalid fontset.
7202
7203 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7204 fontset, return Qt.
7205
73acf815 72062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7207
aca7a3d2
MB
7208 * unexelf.c (unexec): Make .got handling not SGI-specific.
7209
7210 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7211
7212 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7213
7214 * keyboard.c (read_key_sequence): Fix type error.
7215
7216 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7217 type error.
7218
7219 * fontset.c (fontset_add): Return Lisp_Object.
7220
73acf815 72212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7222
7223 * charset.h (charset_ordered_list_tick): Declare extern.
7224
73acf815 72252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7226
73acf815 7227 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
7228 for handling syntax, category, and case conversion for unibyte
7229 characters by converting them to multibyte on the fly. With these
7230 changes, we don't have to setup syntax and case tables for unibyte
7231 characters in each language environment.
7232
7233 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7234 multibyte if necessary.
7235
7236 * bytecode.c (Fbyte_code): Likewise.
7237
7238 * character.h (LEADING_CODE_LATIN_1_MIN)
7239 (LEADING_CODE_LATIN_1_MAX): New macros.
7240 (unibyte_to_multibyte_table): Extern it.
7241 (unibyte_char_to_multibyte): New macro.
7242 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7243 (CHAR_LEADING_CODE): New macro.
7244 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7245
7246 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7247 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7248 (multibyte_char_to_unibyte): If C is an eight-bit character,
7249 convert it to the corresponding byte value.
7250
7251 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7252 not 1, singals an error. Update the elements of
7253 unibyte_to_multibyte_table.
7254 (init_charset_once): Initialize unibyte_to_multibyte_table.
7255 (syms_of_charset): Define the charset `iso-8859-1'.
7256
aca7a3d2
MB
7257 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7258 as is without converting it to unibyte. In a unibyte buffer,
7259 convert C to multibyte before checking the syntax.
7260
1f45f627 7261 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7262
7263 * minibuf.c (Fminibuffer_complete_word): Use the macro
7264 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7265
7266 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7267
7268 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7269 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7270 that is zero, convert an eight-bit char to multibyte.
7271 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7272 non-emacs case.
7273 (PATFETCH): Convert an eight-bit char to multibyte.
7274 (HANDLE_UNIBYTE_RANGE): New macro.
7275 (regex_compile): Setup the compiled pattern for multibyte chars
7276 even if the given regex string is unibyte. Use PATFETCH_RAW
7277 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7278 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7279 only for ASCII chars.
1f45f627 7280 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7281 is multibyte.
7282 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7283 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7284 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7285 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7286 multibyte always 1.
7287 (re_search_2): In emacs, set the locale variable multibyte to 1,
7288 otherwise to 0. New local variable target_multibyte. Check it
7289 to decide the multibyteness of STR1 and STR2. If
7290 target_multibyte is zero, convert unibyte chars to multibyte
7291 before translating and checking fastmap.
7292 (TARGET_CHAR_AND_LENGTH): New macro.
7293 (re_match_2_internal): In emacs, set the locale variable multibyte
7294 to 1, otherwise to 0. New local variable target_multibyte. Check
7295 it to decide the multibyteness of STR1 and STR2. Use
7296 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7297 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7298 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7299 target_multibyte, not with multibyte.
7300 <begline>: Declare the local variable C as `unsigned'.
7301 (bcmp_translate): Change the last arg name to target_multibyte.
7302
7303 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7304 the regexp pattern and the matching target. Set cp->buf.multibyte
7305 to the multibyteness of the regexp pattern. Set
1f45f627 7306 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7307 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7308 FETCH_STRING_CHAR_ADVANCE.
7309 (Freplace_match): Convert unibyte chars to multibyte.
7310
4c4475a8
GM
7311 * syntax.c (char_quoted, back_comment, scan_words)
7312 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7313 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7314 unibyte chars to multibyte.
1f45f627
GM
7315 (skip_chars): Delete the arg syntaxp, and move the code for
7316 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7317 Fix the case that the multibyteness of STRING and the current
7318 buffer doesn't match.
7319 (skip_syntaxes): New function.
7320 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7321 SINGLE_BYTE_CHAR_P.
aca7a3d2 7322
73acf815 73232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7324
7325 * xfaces.c (QCfontset): New variable.
7326 (LFACE_FONTSET): New macro.
7327 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7328 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7329 (Finternal_set_lisp_face_attribute)
7330 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7331 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7332 check also LFACE_FONTSET_INDEX.
7333 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7334 attrs[LFACE_FONT_INDEX].
7335 (syms_of_xfaces): Intern and staticpro QCfontset.
7336
7337 * dispextern.h (enum lface_attribute_index): New member
7338 LFACE_FONTSET_INDEX.
7339
7340 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7341
73acf815 73422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7343
7344 * coding.c (coding_set_destination): Fix coding->destination for
7345 the case converting a region.
7346 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7347 (encode_coding_object): Fix coding->dst_pos and
7348 coding->dst_pos_byte for the case converting a region.
7349
7350 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7351
7352 * character.h (BYTE8_STRING): New macro.
7353
7354 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7355
73acf815 73562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7357
7358 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7359 characters by octal form.
7360
7361 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7362
1f45f627 7363 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
7364 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7365 _fetch_multibyte_char_len.
aca7a3d2
MB
7366 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7367
1f45f627 7368 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 7369
1f45f627 7370 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 7371 the case conversion change the byte length.
1f45f627 7372 (casify_region): Likewise.
aca7a3d2 7373
1f45f627 7374 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 7375
1f45f627 7376 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7377 (syms_of_character): Setup Vprintable_chars.
7378
7379 * editfns.c (Fchar_equal): Fix for the unibyte case.
7380 (Finsert_byte): New function.
7381 (syms_of_editfns): Defsubr it.
7382
7383 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7384 of direct code 0x3ffff.
7385
7386 * search.c (Freplace_match): Fix for the unibyte case.
7387
73acf815 73882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7389
7390 * lread.c (safe_to_load_p): Fix the logic.
7391
7392 * syntax.c (scan_words): Don't treat characters belonging to
7393 different scripts as constituting a word.
7394
7395 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7396
1f45f627 7397 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7398
7399 * emacs.c (main): In the case of --unibyte, instead of aborting on
7400 finding non-empty buffer, make it unibyte.
7401
73acf815 74022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7403
7404 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7405 to create a fontset.
7406
73acf815 74072008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7408
7409 * character.c (Funibyte_char_to_multibyte): Doc fix.
7410
7411 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7412
73acf815 74132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7414
7415 * fontset.c (fontset_add): Make the type `int'.
7416 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7417
4c4475a8
GM
7418 * character.c (unibyte_char_to_multibyte)
7419 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7420 charset_unibyte, not charset_primary.
aca7a3d2 7421
1f45f627 7422 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7423
1f45f627
GM
7424 * charset.c (charset_unibyte): Rename from charset_primary.
7425 (Funibyte_charset): Rename from Fprimary_charset.
7426 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7427 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7428
7429 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7430 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7431 it->multibyte_p is zero.
7432
7433 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7434 Delete extern.
aca7a3d2 7435
73acf815 74362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7437
7438 * coding.c (Fdefine_coding_system_internal): Fix category setting
7439 for a coding system of type iso-2022.
7440
73acf815 74412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7442
1f45f627 7443 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7444
73acf815 74452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7446
7447 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7448 (next-word-boundary-function-table): Declare it as a Lisp variable
7449 in syms_of_syntax.
aca7a3d2
MB
7450 (scan_words): Call functions in Vnext_word_boundary_function_table
7451 if any.
7452
7453 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7454
7455 * fontset.c (fs_load_font): If fontp->charset is not negative,
7456 return fontp without setting its members.
7457
73acf815 74582008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7459
aca7a3d2
MB
7460 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7461
7462 * m/sparc.h (HAVE_ALLOCA): Delete.
7463
7464 * s/irix6-5.h: Don't include strings.h.
7465 (bcopy, bzero, bcmp): Don't undef.
7466
7467 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7468
7469 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7470 (TIOCSIGSEND): Don't test IRIX6.
7471 (bcopy, bzero, bcmp): Define conditionally.
7472
73acf815 74732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7474
7475 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7476 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7477 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7478
7479 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7480 we are inserting a process output into a multibyte buffer.
7481
7482 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7483 multibyte_char_to_unibyte.
7484
7485 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7486 by the primary charset, make it eight-bit char.
7487 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7488
1f45f627
GM
7489 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7490 (charset_8_bit__control, charset_8_bit_graphic)
7491 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7492 (define_charset_internal): New function.
7493 (syms_of_charset): Call define_charset_internal for pre-defined
7494 charsets.
7495
7496 * charset.h (charset_8_bit): Extern it.
7497
1f45f627 7498 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7499 of Fset_buffer_multibyte.
7500 (encode_coding_raw_text): Increment p0 in the loop.
7501
1f45f627 7502 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7503
1f45f627 7504 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7505 for the change of Fset_buffer_multibyte.
7506
7507 * fns.c (Fstring_to_multibyte): New function.
7508 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7509
73acf815 75102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7511
7512 * xfns.c (x_put_x_image): Declare args.
7513
1f45f627 7514 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7515 (try_font_list): Declare an arg.
7516
7517 * xdisp.c (message2_nolog, set_message): Declare an arg.
7518
7519 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7520
7521 * syntax.c (scan_sexps_forward): Declare an arg.
7522
7523 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7524 Declare an arg.
7525
7526 * lisp.h (Fnew_fontset): Declare.
7527
7528 * keymap.c (push_key_description): Call CHARACTERP correctly.
7529
1f45f627 7530 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7531 (face_for_char): Delete unused vars.
7532 (Fset_fontset_font): Doc fix. Delete unused vars.
7533
7534 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7535
7536 * composite.c (update_compositions): Declare arg.
7537
7538 * cm.c (calccost, cmgoto): Declare args.
7539
7540 * charset.c: Remove `emacs' conditional. Doc fixes.
7541 (map_char_table_for_charset): Declare.
7542
1f45f627 7543 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7544
1f45f627 7545 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7546
73acf815 75472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7548
7549 The following changes are to allow specifying multiple font
7550 patterns for a character range (specified by script or charset).
7551
7552 * Makefile.in (abbrev.o): Depend on syntax.h.
7553 (xfaces.o): Depend on charset.h.
7554
7555 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7556 SINGLE_BYTE_CHAR_P.
7557
7558 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7559
7560 * character.h (Vchar_script_table): Extern it.
7561
1f45f627 7562 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7563 (Vchar_script_table, Qchar_script_table): New variable.
7564 (syms_of_character): Declare Vchar_script_table as a lisp variable
7565 and initialize it.
7566
1f45f627 7567 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7568 have property char-table-extra-slots, make no extra slot.
7569
1f45f627 7570 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7571 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7572 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7573 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7574 Add prototypes.
7575 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7576 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7577
7578 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7579 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7580 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7581
7582 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7583 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7584 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7585 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7586 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7587 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7588 (load_font_get_repertory): New functions.
1f45f627 7589 (fontset_set): Delete.
aca7a3d2 7590 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7591 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7592 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7593 (face_for_char): Don't call lookup_face.
7594 (make_fontset_for_ascii_face): New arg FACE.
7595 (fs_load_font): New arg CHARSET_ID. Don't check
7596 Vfont_encoding_alist here.
7597 (find_font_encoding): New function.
7598 (list_fontsets): Use STRINGP, not ! NILP.
7599 (accumulate_script_ranges): New function.
7600 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7601 re-written to handle new fontset structure.
7602 (Ffontset_font): Return a copy of element.
7603 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7604 docstring of font-encoding-alist.
7605
7606 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7607 (Fset_fotset_font): Fix arguments to 5.
7608
1f45f627 7609 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7610
7611 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7612 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7613 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7614 lookup_named_face.
7615
7616 * xfaces.c: Include charset.h.
1f45f627
GM
7617 (load_face_font): Delete argument C. Change caller.
7618 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7619 (font_name_registry): New function.
7620 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7621 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7622 Lookup only ascii faces.
7623 (lookup_non_ascii_face): New function.
1f45f627
GM
7624 (lookup_named_face): Delete argument C. Change caller.
7625 (lookup_derived_face): Delete argument C. Change caller.
7626 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7627 a string, just call font_list with it.
1f45f627
GM
7628 (choose_face_font): Delete arguments FACE and C. New arg
7629 FONT_SPEC. Change caller.
4c4475a8
GM
7630 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7631 Change caller.
aca7a3d2
MB
7632 (realize_non_ascii_face): New function.
7633 (realize_x_face): Call load_face_font here.
1f45f627 7634 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7635 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7636 get a face ID.
7637 (dump_realized_face): Don't print charset of FACE.
7638
7639 * xfns.c (x_set_font): Always call x_new_fontset and
7640 store_frame_parameter.
7641 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7642 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7643
7644 * xterm.h (x_get_font_repertory): Extern it.
7645
7646 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7647 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7648 it->multibyte_p is zero.
7649 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7650 (x_new_fontset): If FONTSETNAME doesn't match any existing
7651 fontsets, create a new one.
7652 (x_get_font_repertory): New function.
7653
73acf815 76542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7655
7656 * coding.c (Ffind_coding_systems_region_internal): Detect an
7657 ASCII only string correctly.
7658
7659 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7660 version is 0.
7661
73acf815 76622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7663
7664 * lread.c: Include "coding.h".
1f45f627
GM
7665 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7666 (load_each_byte, unread_char): New variables.
7667 (readchar_backlog): Delete.
aca7a3d2
MB
7668 (readchar): Return a character unless load_each_byte is nonzero.
7669 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7670 cons. If unread_char is not -1, simply return it.
7671 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7672 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7673 (read_multibyte): Delete.
aca7a3d2
MB
7674 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7675 (read_emacs_mule_char): New functions.
7676 (Fload): Even if the file doesn't have the extention ".elc", if
7677 safe_to_load_p returns a positive version number, assume that the
7678 file contains bytecompiled code. If the version is less than 22,
7679 load the file while decoding multibyte sequences by emacs-mule.
7680 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7681 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7682 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7683 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7684 (read1): Set load_each_byte to 1 temporarily while handling
7685 #@NUMBER. Don't call read_multibyte.
7686 (read_vector): Call Fread with a cons. If readcharfun is
7687 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7688 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7689 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7690 and Qload_force_doc_strings.
7691
73acf815 76922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7693
7694 * xdisp.c (face_before_or_after_it_pos): Call
7695 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7696
73acf815 76972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7698
7699 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7700 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7701 (string_char_with_unification): Fix prototype.
7702 (Vscript_alist): Extern it.
7703
7704 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7705 (string_char_with_unification, str_as_unibyte)
7706 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7707 (syms_of_character): Declare script-alist as a Lisp variable.
7708
7709 * charset.h (Vcharset_ordered_list): Extern it.
7710 (charset_ordered_list_tick): Extern it.
7711 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7712 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7713 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 7714 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 7715 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7716
7717 * charset.c (charset_ordered_list_tick): New variable.
7718 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7719 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7720 deunify intead of unify a charset.
7721 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7722 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7723 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7724 detecting of invalid code.
7725 (Fset_charset_priority): Increment charset_ordered_list_tick.
7726 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7727 and TO_CODE.
7728
7729 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7730 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7731 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7732 (decode_coding_ccl, consume_chars)
7733 (Ffind_coding_systems_region_internal)
7734 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7735
7736 * print.c (print_object): Use octal form for printing the
7737 contents of a bool vector.
7738
73acf815 77392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7740
7741 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7742 <version == 20>: Refuse to load.
7743
73acf815 77442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7745
7746 * fns.c: Move coding.h.
7747 (Qcodeset, Qdays, Qmonths): New.
7748 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7749 (Flocale_codeset): Delete.
aca7a3d2 7750 (Flanginfo): New function.
1f45f627 7751 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7752
7753 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7754
73acf815 77552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7756
7757 * casetab.c (init_casetab_once, init_casetab_once): Fix
7758 CHAR_TABLE_SET call.
7759
7760 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7761
7762 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7763
7764 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7765 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7766 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7767
7768 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7769
7770 * coding.c (ENCODE_DESIGNATION, decode_eol)
7771 (make_conversion_work_buffer, code_conversion_restore)
7772 (Fdefine_coding_system_internal): Convert Lisp types.
7773 (code_conversion_restore): Use EQ, not ==.
7774 (Fencode_coding_string): Fix code_convert_string call.
7775
7776 * coding.h (code_convert_region): Fix prototype.
7777
1f45f627 7778 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
7779
7780 * fontset.c (fontset_ref, fontset_set, fs_load_font)
7781 (Ffontset_info): Convert Lisp types.
7782
7783 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
7784
7785 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
7786
7787 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
7788
7789 * chartab.c: Include "...h", not <...h> in some cases.
7790
7791 * callproc.c (Fcall_process): Remove unused variables.
7792
73acf815 77932008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7794
7795 * coding.c (Fset_coding_system_priority): Allow null arg list.
7796
73acf815 77972008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7798
7799 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7800 (Fself_insert_and_exit): Use CHARACTERP.
7801
7802 * callproc.c (Fcall_process): Remove unused vars.
7803
7804 * xterm.c (XTread_socket): Add extra dead keysyms.
7805
7806 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
7807
7808 * dispextern.h: Remove prototypes for redraw_frame,
7809 redraw_garbaged_frames.
7810
7811 * cmds.c (Fself_insert_command): Use CHARACTERP.
7812
7813 * chartab.c (make_sub_char_table): Remove unused var.
7814 (Fset_char_table_default, Fmap_char_table): Doc fix.
7815
7816 * keymap.c (access_keymap): Remove generic char code.
7817 (push_key_description): Use CHARACTERP.
7818
73acf815 78192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7820
7821 * charset.c: Doc fixes.
7822 (Funify_charset): Extra checking.
7823
73acf815 78242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7825
7826 * lread.c: Remove some unused variables.
7827 (safe_to_load_p): If safe, return the magic number version byte.
7828 (Fload): Maybe use load-with-code-conversion.
7829
73acf815 78302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7831
7832 * category.c (Fmodify_category_entry): Don't modify the contents
7833 of category_set for characters out of the range. Avoid
7834 unnecessary modification.
7835
1f45f627 7836 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
7837 Vchar_unify_table. The default value of the table is now nil.
7838
7839 * character.c (syms_of_character): Setup Vchar_width_table for
7840 eight-bit-control and raw-byte chars.
7841
7842 * charset.h (enum define_charset_arg_index): Delete
7843 charset_arg_parents and add charset_arg_subset and
7844 charset_arg_superset.
7845 (enum charset_attr_index): Delete charset_parents and add
7846 charset_subset and charset_superset.
7847 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
7848 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 7849 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
7850 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
7851 (CHARSET_SUPERSET): New macros.
7852 (charset_work): Extern it.
7853 (ENCODE_CHAR): Use charset_work.
1f45f627 7854 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
7855 (map_charset_chars): Extern it.
7856
7857 * charset.c (load_charset_map): Set the default value of encoder
7858 and deunifier char-tables to nil.
1f45f627 7859 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
7860 map_char_table_for_charset instead of map_char_table.
7861 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 7862 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
7863 `define-charset' (:parents -> :subset or :superset).
7864 (charset_work): New variable.
4c4475a8
GM
7865 (encode_char, syms_of_charset): Adjust for the change of
7866 Fdefine_charset_internal.
aca7a3d2
MB
7867 (Ffind_charset_string): Setup the vector `charsets' correctly.
7868
1f45f627 7869 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 7870 the previous change.
1f45f627 7871 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
7872 (map_sub_char_table_for_charset): New function.
7873 (map_char_table_for_charset): New function.
7874
7875 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 7876 (describe_char_table): Delete.
aca7a3d2 7877
1f45f627 7878 * lisp.h (map_charset_chars): Delete.
aca7a3d2 7879
73acf815 78802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7881
7882 * fns.c (count_combining): Comment out (unused).
7883 (Flocale_codeset): New.
7884 (syms_of_fns): Defsubr it.
7885
7886 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 7887 (size_t): Remove.
aca7a3d2 7888
73acf815 78892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7890
6f69e89b 7891 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 7892
73acf815 78932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7894
7895 * character.c (syms_of_character): Set the default value of
7896 Vprintable_chars to Qnil.
7897
73acf815 78982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7899
7900 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
7901
73acf815 79022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7903
7904 * charset.c (load_charset_map): Handle the case that from < to
7905 correctly.
7906
4c4475a8
GM
7907 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
7908 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
7909 Pay attention to raw-8-bit chars.
aca7a3d2 7910
73acf815 79112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7912
4c4475a8
GM
7913 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
7914 It is not bytecompiled now.
aca7a3d2
MB
7915
7916 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
7917 (charset_jisx0208): New variables.
7918 (Fdefine_charset_internal): Setup them if appropriate.
7919 (init_charset_once): Initialize them to -1.
7920
1f45f627
GM
7921 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
7922 (charset_jisx0208): Extern them.
aca7a3d2 7923
1f204af3 7924 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 7925 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
7926 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
7927 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
7928 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
7929 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
7930 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
7931 (encode_coding_iso_2022): Change the 1st arg to
7932 ENCODE_ISO_CHARACTER to a variable.
7933
73acf815 79342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7935
7936 * charset.h (enum define_charset_arg_index): New enums
7937 charset_arg_min_code and charset_arg_max_code.
7938 (struct charset): New member char_index_offset.
7939
4c4475a8
GM
7940 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7941 Take charset->char_index_offset into account.
aca7a3d2
MB
7942 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7943 args[charset_arg_max_code]. Setup charset.char_index_offset.
7944 (syms_of_charset): Fix args to Fdefine_charset_internal.
7945
73acf815 79462008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7947
7948 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7949
73acf815 79502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7951
7952 * coding.c: Doc fixes.
7953 (Fcoding_system_aliases): Fix return value.
7954 (Qmac): Remove (duplicated) definition.
7955
73acf815 79562008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7957
7958 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7959 functions.
7960
7961 * character.c (Fstring): Doc fix.
7962
7963 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7964
7965 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7966 ids.
7967 (font-encoding-alist): Doc fix.
7968
73acf815 79692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7970
7971 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7972 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7973
7974 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7975 for K&R.
7976
7977 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7978
7979 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7980 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7981
1f45f627 7982 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7983
7984 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7985
73acf815 79862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7987
7988 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7989
1f45f627 7990 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7991
2a2e8de7 79922008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7993
7994 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7995
1f45f627 7996 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7997
73acf815 79982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7999
4c4475a8 8000 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 8001 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 8002
73acf815 80032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8004
1f45f627 8005 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
8006 Fdefine_coding_system_internal.
8007 (Fdefine_coding_system_internal): For a coding system of
8008 `charset' type, store a list of charset IDs in
8009 `charset_attr_charset_valids' element of coding attributes.
8010
73acf815 80112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8012
8013 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
8014 (emacs_mule_char): New arg src. Delete arg `composition'. Change
8015 caller. Handle 2-byte and 3-byte charsets correctly.
8016 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
8017 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
8018 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
8019 (DECODE_EMACS_MULE_21_COMPOSITION): Call
8020 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
8021 sequence.
8022 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 8023 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
8024 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
8025 and alt&rule composition.
8026 (decode_coding_iso_2022): Handle composition correctly.
8027 (init_coding_once): Setup emacs_mule_bytes for private charsets.
8028
8029 * charset.c (Fdefine_charset_internal): Fix bug for the case of
8030 re-defining a charset. If the charset has :emacs-mule-id, setup
8031 emacs_mule_bytes.
1f45f627 8032 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 8033
73acf815 80342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8035
4c4475a8
GM
8036 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
8037 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
8038 encoding, produce a character specified by
8039 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 8040
73acf815 80412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8042
8043 * xterm.c (XSetIMValues): Declare.
8044
8045 * process.c: Conditionally include sys/wait.h, pty.h.
8046
1f45f627 8047 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 8048
1f45f627 8049 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
8050
8051 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
8052
8053 * fontset.c (Fclear_face_cache): Declare.
1f45f627 8054 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
8055 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
8056 variables.
8057
8058 * character.h (string_escape_byte8): Declare.
8059
8060 * charset.c (load_charset_map, load_charset_map_from_file): Remove
8061 unused vars.
8062 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
8063 (Fmap_charset_chars): Doc fix.
8064
1f45f627 8065 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
8066 (Fset_coding_system_priority, Fset_coding_system_priority)
8067 (Fdefine_coding_system_internal): Doc fix.
8068
73acf815 80692008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8070
8071 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
8072
73acf815 80732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8074
8075 * character.c (string_escape_byte8): Make multibyte string with
8076 correct size.
8077
8078 * charset.c (Fmake_char): Delete unnecessary code.
8079
73acf815 80802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8081
8082 * xfns.c (x_encode_text): Allocate coding.destination here, and
8083 call encode_coding_object with dst_object Qnil.
8084
8085 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
8086 multibyte form correctly.
8087
8088 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
8089 against Vfont_encoding_alist.
8090
8091 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
8092 handling of charset list.
8093 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8094 (decode_coding_object): Move point to coding->dst_pos before
8095 calling post-read-conversion function.
8096 (encode_coding_object): Give correct arguments to
8097 pre-write-conversion. Ignore the return value of
8098 pre-write-conversion function. Pay attention to the case that
8099 pre-write-conversion changes the current buffer. If dst_object is
8100 Qt, even if coding->src_bytes is zero, allocate at least one byte
8101 to coding->destination.
8102
8103 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
8104
8105 * charset.c (Fmake_char): Make it more backward compatible.
8106 (Fmap_charset_chars): Fix docstring.
8107
73acf815 81082008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8109
8110 * coding.c: Doc fixes.
8111 (Fdefine_coding_system_alias): Use names, not symbols, in
8112 coding-system-alist.
8113
73acf815 81142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8115
8116 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8117 of calling free_realized_face.
8118
2a2e8de7 81192008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8120
1f45f627
GM
8121 * charset.c (read_hex): Don't treat SPC as a comment starter.
8122 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8123 (Fdecode_char): Fix typo.
8124
73acf815 81252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8126
8127 * charset.h (struct charset): New member `code_space_mask'.
8128
1f45f627 8129 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8130 (encode_coding_charset, Fdefine_coding_system_internal):
8131 Delete the local variable charset.
aca7a3d2
MB
8132 (Fdefine_coding_system_internal): Setup
8133 attrs[coding_attr_charset_valids] correctly.
8134
8135 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8136 member to check if CODE is valid or not.
8137 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8138 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8139 is within the range of charset->min_code and carset->max_code.
8140
73acf815 81412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8142
8143 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8144
8145 * dispextern.h (generate_ascii_font): Fix return type.
8146
8147 * xfaces.c (generate_ascii_font): Fix arg declaration.
8148
8149 * coding.c (coding_inherit_eol_type)
8150 (Fset_terminal_coding_system_internal)
8151 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8152
73acf815 81532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8154
8155 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8156 multiple charsets correctly.
8157
73acf815 81582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8159
8160 * search.c (boyer_moore): Fix handling of mulitbyte character
8161 translation.
8162
8163 * xdisp.c (display_mode_element): When the variable `elt' is
8164 changed, update `this' and `lisp_string'.
8165
73acf815 81662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8167
8168 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8169
8170 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 8171 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
8172
8173 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
8174 (load_charset_map): Rename from parse_charset_map. New args
8175 entries and n_entries. Change caller.
8176 (load_charset_map_from_file): Rename from load_charset_map.
8177 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
8178 the tail.
8179 (load_charset_map_from_vector): New function.
8180 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8181 (encode_char): If the charset is compact, change a character index
8182 to a code point.
8183
8184 * coding.c (coding_alloc_by_making_gap): Check the case that the
8185 source and destination are the same correctly.
8186 (decode_coding_raw_text): Set coding->consumed_char and
8187 coding->consumed to 0.
8188 (produce_chars): If coding->chars_at_source is nonzero, update
8189 coding->consumed_char and coding->consumed before calling
8190 alloc_destination.
8191 (Fdefine_coding_system_alias): Register ALIAS in
8192 Vcoding_system_alist.
8193 (syms_of_coding): Define `no-convesion' coding system at the tail.
8194
8195 * fileio.c (Finsert_file_contents): Set coding_system instead of
8196 val. If the current buffer is multibyte, always call
8197 decode_coding_gap.
8198
8199 * xfaces.c (try_font_list): Give higher priority to fontset's
8200 family than face's family.
8201
73acf815 82022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8203
8204 * callproc.c (Fcall_process): Be sure to give the current buffer
8205 to decode_coding_c_string.
8206
8207 * xfaces.c (try_font_list): Give a family specified in a fontset
8208 higher priority than a family specified in a face.
8209
73acf815 82102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8211
8212 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8213 Fix arguments to insert_from_buffer.
8214
8215 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8216
73acf815 82172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8218
8219 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8220 (decode_coding_gap): Set coding->dst_multibyte correctly.
8221
73acf815 82222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8223
8224 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 8225 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
8226 (encode_coding_utf_16): Substitute coding->default_char for
8227 non-Unicode characters.
8228 (decode_coding): Don't call record_insert here.
8229 (setup_coding_system): Initialize `surrogate' of
8230 coding->spec.utf_16 to 0.
8231 (EMIT_ONE_BYTE): Fix for multibyte case.
8232
8233 * insdel.c (insert_from_gap): Call record_insert.
8234
73acf815 82352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8236
8237 * casefiddle.c (casify_region): Fix multibyte case.
8238
8239 * character.c (c_string_width): Add return type `int'.
1f45f627 8240 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
8241
8242 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 8243 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8244 (CHAR_STRING_ADVANCE): Make it do-while statement.
8245
1f45f627 8246 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8247 DEPTH == 3. Add workaround code for a GCC optimization bug.
8248
8249 * charset.c (parse_charset_map): Remove an unused variable.
8250
8251 * coding.c: Delete unused variables.
8252
8253 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8254 earlier. If inserted is zero and the coding system doesn't
8255 require flushing, don't call decode_coding_gap.
8256
8257 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8258
73acf815 82592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8260
8261 The following changes are for using Unicode as an internal
8262 character model, and use UTF-8 format for buffer/string
8263 representation.
8264
1f45f627 8265 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8266 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8267
8268 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8269 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8270 (*.o): For many files, change dependency on charset.h to
8271 character.h, and add dependency on character.h.
8272 (character.o, chartab.o): New targets.
8273
1f45f627
GM
8274 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8275 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8276 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8277 of "charset.h".
8278
8279 * dired.c, filelock.c: Include "character.h".
8280
8281 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8282 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8283 (syms_of_alloc): Remove defsubr for Smake_char_table.
8284
8285 * buffer.c: Include "character.h" instead of "charset.h", don't
8286 include "coding.h".
1f45f627 8287 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8288
8289 * buffer.h: EXFUN Fbuffer_live_p.
8290
8291 * callproc.c: Include "character.h" instead of "charset.h".
8292 (Fcall_process): Big change for the new code-conversion APIs.
8293
8294 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8295 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8296 map_char_table spec.
8297 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8298 accessing the char table structure.
8299
8300 * chartab.c: New file that implements char table.
8301
8302 * category.c: Include "character.h".
8303 (copy_category_entry): New function.
8304 (copy_category_table): Call map_char_table and copy_category_entry.
8305 (Fmake_category_table): Initialize all top-vel slots.
8306 (char_category_set): New function.
1f45f627 8307 (modify_lower_category_set): Delete.
aca7a3d2
MB
8308 (Fmodify_category_entry): Call char_table_ref_and_range.
8309
8310 * category.h (CATEGORY_SET): Just call char_category_set.
8311
8312 * ccl.c: Include "character.h".
8313 (Qccl, Qcclp): New variables.
8314 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8315 it's less than 256.
1f45f627
GM
8316 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8317 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8318 and DST type.
1f45f627
GM
8319 (ccl_driver): Change types of argument, adjust code accordingly.
8320 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8321 ccl_driver.
8322 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8323
1f45f627
GM
8324 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8325 New members src_multibyte, dst_multibyte, consumed, and produced.
8326 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8327 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8328 (ccl_driver): Update prototype.
aca7a3d2
MB
8329 (Qccl, Qcclp, Fccl_program_p): Extern them.
8330 (CHECK_CCL_PROGRAM): New macro.
8331
8332 * character.c, character.h, chartab.c: New files.
8333
1f45f627
GM
8334 * charset.c: Mostly re-written. Move character and multibyte sequence
8335 handling codes to character.c.
aca7a3d2 8336
1f45f627
GM
8337 * charset.h: Mostly re-written. Move character and multibyte sequence
8338 handling codes to character.h.
aca7a3d2
MB
8339
8340 * coding.c, coding.h: Mostly re-written.
8341
8342 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8343 (CHAR_WIDTH): Move to character.h.
8344 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8345
1f45f627
GM
8346 * composite.h (enum composition_method): Change order of enumeration
8347 symbols.
aca7a3d2
MB
8348
8349 * data.c: Include "character.h" instead of "charset.h".
8350 (Faref): Call CHAR_TABLE_REF for a char table.
8351 (Faset): Call CHAR_TABLE_SET for a char table.
8352
1f45f627
GM
8353 * dispextern.h (free_realized_face, check_face_attribytes)
8354 (generate_ascii_font): Extern them.
8355 (free_realized_multibyte_face): Delete extern.
aca7a3d2 8356
1f45f627 8357 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
8358 table structure.
8359
8360 * editfns.c: Include "character.h" instead of "charset.h".
8361 (Fchar_to_string): Always call CHAR_STRING.
8362
8363 * emacs.c (main): Call init_charset_once, init_charset,
8364 syms_of_chartab, and syms_of_character.
8365
8366 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 8367 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 8368 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 8369 (build_annotations_2): Delete.
aca7a3d2
MB
8370 (e_write): Big change for the new code-conversion API.
8371
8372 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 8373 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8374 (Fcopy_sequence): Call copy_char_table for a char table.
8375 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
8376 (string_char_to_byte, string_byte_to_char): Adjust for the new
8377 multibyte form.
1f45f627
GM
8378 (internal_equal): Adjust for the change of char table structure.
8379 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8380 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8381 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8382 (char_table_translate, optimize_sub_char_table)
8383 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8384 chartab.c.
1f45f627
GM
8385 (char_table_ref_and_index): Delete.
8386 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8387 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8388 Vcoding_category_list. Adjust for the new code-conversion API.
8389 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8390 chartab.c.
8391
8392 * fontset.c: Mostly re-written.
8393
1f45f627 8394 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8395 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8396 (fontset_font_pattern, fs_load_font): Update prototype.
8397 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8398
8399 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8400 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8401
8402 * insdel.c: Include "character.h" instead of "charset.h".
8403 (copy_text): Don't refer to Vnonascii_translation_table.
8404 (insert_from_gap): New function.
8405
8406 * keyboard.c: Include "character.h" instead of "charset.h".
8407 (command_loop_1): Never call direct_output_forward_char before
8408 a non-ASCII character.
8409 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8410 translate a character.
aca7a3d2
MB
8411
8412 * keymap.c: Include "character.h".
8413 (store_in_keymap): Handle the case that IDX is a cons.
8414 (Fdefine_key): Handle the case that KEY is a cons and the car part
8415 is also a cons (range).
1f45f627 8416 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8417 (describe_vector): Call describe_char_table for a char table.
8418 (describe_char_table): New function.
8419
8420 * keymap.h (describe_char_table): Extern it.
8421
8422 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8423 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8424 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8425 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8426 Delete.
8427 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8428 structure.
8429 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8430 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8431 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8432 (chartab_size): Extern it.
1f45f627 8433 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8434 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8435 (HASH_KEY, HASH_VALUE): Move from fns.c.
8436 (CHARACTERBITS): Define as 22.
8437 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8438 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8439 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8440 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8441 (code_convert_string_norecord): Deleted extern.
8442 (init_character_once, syms_of_character, init_charset)
8443 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8444
8445 * lread.c: Include "character.h".
8446 (read_multibyte): New arg NBYTES.
1f45f627
GM
8447 (read_escape): Change the meaning of returned *BYTEREP.
8448 (to_multibyte): Delete.
8449 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8450
8451 * print.c: Include "character.h" instead of "charset.h".
8452 (print_string): Convert 8-bit raw bytes to octal form by
8453 string_escape_byte8.
1f45f627 8454 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8455 raw bytes always in octal form. Handle sub char table correctly.
8456
8457 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8458 (read_process_output, send_process): Adjust for the new
8459 code-conversion API.
aca7a3d2 8460
1f45f627 8461 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8462
8463 * regex.c: Include "character.h" instead of "charset.h".
8464 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8465 (regex_compile): Accept a range whose starting and ending
8466 character have different leading bytes.
1f45f627 8467 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8468
8469 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8470 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8471 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8472
8473 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8474 (syntax_parent_lookup): Delete.
aca7a3d2 8475 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8476 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8477 (init_syntax_once): Call char_table_set_range instead of directly
8478 accessing the structure of a char table.
8479
8480 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8481 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8482 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8483 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8484
8485 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8486 (encode_terminal_code, write_glyphs): Adjust for the new
8487 code-conversion API.
aca7a3d2
MB
8488 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8489
1f45f627 8490 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8491
8492 * xdisp.c: Include "character.h".
1f45f627
GM
8493 (get_next_display_element): Adjust for the new multibyte form.
8494 (disp_char_vector): Adjust for the new char table structure.
8495 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8496 coding system.
1f45f627 8497 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8498
8499 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8500 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8501 FS_LOAD_FONT.
8502 (generate_ascii_font): New function.
1f45f627
GM
8503 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8504 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8505 (free_realized_face): Make it public.
1f45f627 8506 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8507 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8508 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8509 fontset_font_pattern and FS_LOAD_FONT.
8510
8511 * xfns.c: Include "character.h".
1f45f627 8512 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8513
8514 * xselect.c: Don't include "charset.h".
1f45f627 8515 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8516
8517 * xterm.c: Include "character.h".
1f45f627 8518 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8519 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8520 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8521 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8522 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8523 (XTread_socket): Adjust for the new code-conversion API.
8524 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8525 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8526
d6abfc14
SM
85272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8528
8529 * xfaces.c (face_at_buffer_position): Remove unused vars.
8530
0acdaf8d
KH
85312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8532
4c4475a8
GM
8533 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8534 Fix overflow checking.
0acdaf8d 8535
6c8a0ebf
GM
85362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8537
8538 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8539 Cancel previous change.
8540
85412008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8542
8543 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8544 ccl->eight_bit_control. Fix check for buffer overflow.
8545 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8546 (ccl_driver): Initialize extra_bytes to 0.
8547
a32aad64
KH
85482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8549
8550 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8551 return it ORed with ctrl_modifier.
8552
8b329dba
MB
85532008-01-29 Miles Bader <miles@gnu.org>
8554
8555 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8556
548667aa
JR
85572008-01-28 Jason Rumney <jasonr@gnu.org>
8558
8559 * w32.c (stat): Don't double check for networked drive.
8560
0975aa24
SM
85612008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8562
ef264c42
SM
8563 * window.c (run_window_configuration_change_hook): New function.
8564 Code extracted from set_window_buffer. Set the selected frame.
8565 (set_window_buffer): Use it.
8566 * window.h (run_window_configuration_change_hook): Declare.
8567 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8568
0975aa24
SM
8569 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8570
9c28b587
DN
85712008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8572
8573 * Makefile.in: Remove references to unused macros.
8574
c617afce
EZ
85752008-01-26 Eli Zaretskii <eliz@gnu.org>
8576
8577 * w32.c (g_b_init_get_sid_sub_authority)
8578 (g_b_init_get_sid_sub_authority_count): New static variables.
8579 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8580 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8581 (init_user_info): Use them to retrieve uid and gid.
8582 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8583 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8584 st_uid and st_gid of the file.
c617afce 8585
302d7d54
JR
85862008-01-26 Jason Rumney <jasonr@gnu.org>
8587
8588 * w32.c (logon_network_drive): New function.
8589 (stat): Use it.
8590
3ac7a21e
CY
85912008-01-26 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8594 invisible text covered with an ellipsis.
8595
bbb9fc1f
RS
85962008-01-25 Richard Stallman <rms@gnu.org>
8597
8598 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8599 jump back to beginning. Move some other initializations after that.
8600 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8601 New variables.
8602 (syms_of_xdisp): Init them.
8603
8604 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8605
0975aa24
SM
8606 * buffer.c (reset_buffer_local_variables):
8607 Implement `permanent-local-hook'.
bbb9fc1f 8608 (Qpermanent_local_hook): New variable.
0975aa24 8609 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8610
79235cbe
MA
86112008-01-25 Michael Albinus <michael.albinus@gmx.de>
8612
8613 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8614
ccd8f7fe
TTN
86152008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8616
8617 * fns.c (Fclrhash): Return TABLE.
8618
dfbe40f2 86192008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8620
8621 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8622 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8623 is set even without positional changes.
8624 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8625
8626 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8627
dfbe40f2 86282008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8629
d6169680
JR
8630 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8631
602e142f
JR
8632 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8633 the unicode range available in MULE by locale-coding-system.
c041e2d1 8634 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8635 earlier.
8636
dfbe40f2 86372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8638
8639 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8640 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8641 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8642 when used on child processes.
8643
8c7a4ac5
MA
86442008-01-21 Michael Albinus <michael.albinus@gmx.de>
8645
e0df1b73 8646 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8647 Fdbus_method_return.
e0df1b73 8648 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8649 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8650 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8651
8abe0f97
MR
86522008-01-20 Martin Rudalics <rudalics@gmx.at>
8653
8654 * undo.c (undo_inhibit_record_point): New variable.
8655 (syms_of_undo): Initialize it.
8656 (record_point): Don't record point when undo_inhibit_record_point
8657 is set.
8658
c3b232e4
SM
86592008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8660
e69c4cae
SM
8661 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8662
823e0ebb
SM
8663 * xdisp.c (Qauto_hscroll_mode): New var.
8664 (syms_of_xdisp): Initialize it.
8665 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8666 window's buffer.
8667 (hscroll_windows): Don't check automatic_hscrolling_p here.
8668
c3b232e4
SM
8669 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8670 vscroll if we're setting window-buffer to the value it already has.
8671
76ed5e01
DN
86722008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8673
8674 * m/intel386.h: Remove references to XENIX.
8675
55e6d9b2
AS
86762008-01-17 Andreas Schwab <schwab@suse.de>
8677
8678 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8679 instead of HAVE_X86_64_LIB64_DIR.
8680 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8681
b16ed52d
GM
86822008-01-17 Glenn Morris <rgm@gnu.org>
8683
8684 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8685 to HAVE_X86_64_LIB64_DIR.
8686
6bed5c4a
DN
86872008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8688
8689 * s/irix3-3.h:
8690 * s/irix4-0.h:
8691 * s/386-ix.h:
8692 * s/domain.h:
8693 * s/hpux9-x11r4.h:
8694 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8695
8696 * sysdep.c: Remove code containing references to symbols defined
8697 by unsupported systems.
8698
fdecf907
GM
86992008-01-16 Glenn Morris <rgm@gnu.org>
8700
8701 * coding.c (select-safe-coding-system-function): Doc fix.
8702
9292328f
GM
87032008-01-15 Glenn Morris <rgm@gnu.org>
8704
8705 * config.in: Revert 2008-01-13 change: this is a generated file.
8706
944df511
MO
87072008-01-13 Tom Tromey <tromey@redhat.com>
8708
8709 * lisp.h: Fix typo.
8710
8111ec05
DN
87112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8712
f40f5dc3
DN
8713 * m/sequent-ptx.h:
8714 * m/sequent.h:
8715 * s/ptx.h:
8716 * s/ptx4-2.h:
8717 * s/ptx4.h: Remove files for systems no longer supported.
8718
ce20b664 8719 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8720
e39a993c
DN
87212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8722
052e457f 8723 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8724
290afd83
JB
8725 * m/mips.h:
8726 * m/intel386.h:
e39a993c
DN
8727 * callproc.c:
8728 * config.in:
8729 * ecrt0.c:
8730 * emacs.c:
8731 * fileio.c:
8732 * frame.c:
8733 * getpagesize.h:
8734 * keyboard.c:
8735 * lread.c:
8736 * process.c:
8737 * puresize.h:
8738 * sysdep.c:
8739 * systty.h:
8740 * syswait.h:
8741 * unexec.c:
8742 * xdisp.c:
8743 * alloc.c: Remove code containing references to symbols defined by
8744 unsupported systems.
8745
81cd7687
KH
87462008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8747
8748 * coding.c (detect_coding_mask): Fix previous change.
8749
218b3b76
KH
87502008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8751
8752 * coding.c (detect_coding_iso2022): New arg
8753 latin_extra_code_state. Allow Latin extra codes only
8754 when *latin_extra_code_state is nonzero.
8755 (detect_coding_mask): If there is a NULL byte, detect the encoding
8756 as UTF-16 or binary. If Latin extra codes exist, detect the
8757 encoding as ISO-2022 only when there's no other proper encoding is
8758 found.
8759
59ce725a 87602008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8761
59ce725a
MB
8762 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8763 #ifdef MAC_OS.
048addec 8764
59ce725a 87652008-01-08 Richard Stallman <rms@gnu.org>
048addec 8766
59ce725a 8767 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8768
8290574e
NR
87692008-01-06 Nick Roberts <nickrob@snap.net.nz>
8770
a0a3805c 8771 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8772 menu bar in parentheses.
8773
f3041af1
DN
87742008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
8775
8776 * m/7300.h:
8777 * m/acorn.h:
8778 * m/alliant-2800.h:
8779 * m/alliant.h:
8780 * m/alliant1.h:
8781 * m/alliant4.h:
8782 * m/altos.h:
8783 * m/amdahl.h:
8784 * m/apollo.h:
8785 * m/att3b.h:
8786 * m/aviion-intel.h:
8787 * m/aviion.h:
8788 * m/celerity.h:
8789 * m/clipper.h:
8790 * m/cnvrgnt.h:
8791 * m/convex.h:
8792 * m/cydra5.h:
8793 * m/delta88k.h:
8794 * m/dpx2.h:
8795 * m/dual.h:
8796 * m/elxsi.h:
8797 * m/f301.h:
8798 * m/gould-np1.h:
8799 * m/gould.h:
8800 * m/i860.h:
8801 * m/ibmps2-aix.h:
8802 * m/ibmrt-aix.h:
8803 * m/ibmrt.h:
8804 * m/irist.h:
8805 * m/is386.h:
8806 * m/isi-ov.h:
8807 * m/mega68.h:
8808 * m/mg1.h:
8809 * m/news-r6.h:
8810 * m/news-risc.h:
8811 * m/news.h:
8812 * m/nh3000.h:
8813 * m/nh4000.h:
8814 * m/ns16000.h:
8815 * m/ns32000.h:
8816 * m/nu.h:
8817 * m/orion.h:
8818 * m/orion105.h:
8819 * m/paragon.h:
8820 * m/pfa50.h:
8821 * m/plexus.h:
8822 * m/pyramid.h:
8823 * m/pyrmips.h:
8824 * m/sh3el.h:
8825 * m/sps7.h:
8826 * m/sr2k.h:
8827 * m/stride.h:
8828 * m/sun1.h:
8829 * m/sun2.h:
8830 * m/sun3-68881.h:
8831 * m/sun3-fpa.h:
8832 * m/sun3-soft.h:
8833 * m/sun3.h:
8834 * m/sun386.h:
8835 * m/symmetry.h:
8836 * m/tad68k.h:
8837 * m/tahoe.h:
8838 * m/targon31.h:
8839 * m/tek4300.h:
8840 * m/tekxd88.h:
8841 * m/tower32.h:
8842 * m/tower32v3.h:
8843 * m/ustation.h:
8844 * m/wicat.h:
8845 * m/xps100.h:
8846 * s/cxux.h:
8847 * s/cxux7.h:
8848 * s/dgux.h:
8849 * s/dgux4.h:
8850 * s/dgux5-4-3.h:
8851 * s/dgux5-4r2.h:
8852 * s/esix.h:
8853 * s/esix5r4.h:
8854 * s/hiuxmpp.h:
8855 * s/hiuxwe2.h:
8856 * s/iris3-5.h:
8857 * s/iris3-6.h:
8858 * s/isc2-2.h:
8859 * s/isc3-0.h:
8860 * s/isc4-0.h:
8861 * s/isc4-1.h:
8862 * s/newsos5.h:
8863 * s/newsos6.h:
8864 * s/osf1.h:
8865 * s/osf5-0.h:
8866 * s/riscix1-1.h:
8867 * s/riscix12.h:
8868 * s/sco4.h:
8869 * s/sco5.h:
8870 * s/sunos4-0.h:
8871 * s/sunos4-1.h:
8872 * s/sunos413.h:
8873 * s/sunos4shr.h:
8874 * s/umax.h:
8875 * s/unipl5-2.h:
8876 * s/xenix.h:
8877 * cxux-crt0.s:
8878 * unexapollo.c:
8879 * unexconvex.c:
8880 * unexenix.c:
8881 * unexsni.c: Remove files for systems no longer supported.
8882
8883 * m/intel386.h: Remove references to unsupported systems.
8884
8885 * w32.c (get_emacs_configuration): Remove reference to i860.
8886
8887 * sysdep.c: Remove dead code.
8888
d35e1cd7
DN
88892008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
8890
8891 * s/rtu.h:
a0a3805c 8892 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 8893
abe136ee
MA
88942008-01-04 Michael Albinus <michael.albinus@gmx.de>
8895
8896 * dbusbind.c (Fdbus_method_return): New function.
8897 (xd_read_message): Add the serial number to the event.
8898 (Fdbus_register_method): Activate the function.
8899
87df3c32
SM
89002008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
8901
8902 * keyboard.c (read_key_sequence): Fix typo.
8903
5125905e
MA
89042008-01-03 Michael Albinus <michael.albinus@gmx.de>
8905
8906 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
8907 (xd_signature, xd_append_arg): Handle element type detection for
8908 empty arrays.
8909 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
8910 SDATA () calls; this must be solved more general.
8911 (Fdbus_register_signal): Use SBYTES instead of strlen.
8912
8bba1b5c
MH
89132008-01-03 Magnus Henoch <magnus@zemdatav>
8914
8915 * dbusbind.c (xd_append_arg): Use unsigned char instead of
8916 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 8917 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 8918
a0a3805c 89192007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
8920
8921 * dbusbind.c (xd_read_message): Use non-static input_event struct.
8922
a271e124
MH
89232007-12-31 Magnus Henoch <mange@freemail.hu>
8924
8925 * dbusbind.c (xd_signature): Signature of variant is just "v".
8926
17bc8f94
MA
89272007-12-30 Michael Albinus <michael.albinus@gmx.de>
8928
87df3c32 8929 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 8930 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
8931 (XD_ERROR, XD_DEBUG_MESSAGE)
8932 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
8933 (xd_append_arg): Part for basic D-Bus types rewitten.
8934 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
8935 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
8936 appropriate.
8937 (xd_read_message): Return Qnil. Don't signal an error; it is not
8938 useful during event reading.
8939 (Fdbus_register_signal): Signal an error if the check for
8940 FUNCTIONP fails.
8941 (Fdbus_register_method): New function. The implementation is not
8942 complete, the call of the function signals an error therefore.
8943 (Fdbus_unregister_object): New function, renamed from
8944 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8945 the object is not well formed.
17bc8f94 8946
dd6f2802
RS
89472007-12-30 Richard Stallman <rms@gnu.org>
8948
8949 * textprop.c (get_char_property_and_overlay):
8950 Signal error if POSITION is out of range in a buffer.
8951
1da8a031
MR
89522007-12-29 Martin Rudalics <rudalics@gmx.at>
8953
8954 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8955 because the original parameters are in pure storage now.
8956
5742be86
YM
89572007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8958
8959 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8960
b014713c
EZ
89612007-12-22 Eli Zaretskii <eliz@gnu.org>
8962
b17f53ab
MB
8963 * callint.c (syms_of_callint) <command-history>: Add reference to
8964 history-length in the doc string.
048addec 8965
b17f53ab 89662007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8967
b17f53ab
MB
8968 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8969 before passing as wParam.
048addec 8970
9af5078b
MA
89712007-12-22 Michael Albinus <michael.albinus@gmx.de>
8972
8973 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8974 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8975 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8976 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8977 as number.
8978 (Fdbus_call_method): Fix docstring.
8979
87cf1a39
MA
89802007-12-21 Michael Albinus <michael.albinus@gmx.de>
8981
8982 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8983 New macros.
87df3c32 8984 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8985 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8986 Simplify.
87cf1a39
MA
8987 (xd_signature): New function.
8988 (xd_append_arg): Compute also signatures. Major rewrite.
8989 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8990 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8991 Check for signatures of arguments.
87cf1a39 8992
54371585
MA
89932007-12-19 Michael Albinus <michael.albinus@gmx.de>
8994
8995 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8996 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8997 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8998 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8999 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 9000 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
9001 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
9002 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 9003 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
9004 (xd_append_arg): New function.
9005 (Fdbus_call_method, Fdbus_send_signal): Apply it.
9006
f5306ca3
MA
90072007-12-16 Michael Albinus <michael.albinus@gmx.de>
9008
9009 * dbusbind.c (top): Include <stdio.h>.
9010 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
9011 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
9012 (Fdbus_register_signal): Rename unique_name to uname.
9013 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
9014 non-existing unique name. Fix typos in matching rule. Return an
9015 object which is useful in Fdbus_unregister_signal.
9016 (Fdbus_unregister_signal): Reimplementation, in order to remove
9017 only the corresponding entry.
9018 (Vdbus_registered_functions_table): Change the order of entries.
9019 Apply these changes in xd_read_message and Fdbus_register_signal.
9020
77a28bbf
AS
90212007-12-16 Andreas Schwab <schwab@suse.de>
9022
9023 * fileio.c (Finsert_file_contents): Fix overflow check to not
9024 depend on undefined integer overflow.
9025
2e3566d8
JR
90262007-12-14 Jason Rumney <jasonr@gnu.org>
9027
9028 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
9029 for characters above 127.
9030
bf254037
JR
90312007-12-13 Jason Rumney <jasonr@gnu.org>
9032
9033 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
9034 before dereferencing array.
9035 (lookup_vk_code): Remove zero comparison.
9036
eb7c7bf5
MA
90372007-12-14 Michael Albinus <michael.albinus@gmx.de>
9038
9039 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
9040 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
9041 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
9042 (xd_read_message, Fdbus_register_signal): Split expressions into
9043 multiple lines before operators "&&" and "||", according to the
9044 GNU Coding Standards.
9045
34fb0fc9
EZ
90462007-12-14 Eli Zaretskii <eliz@gnu.org>
9047
9048 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
9049
c7d97628
JL
90502007-12-12 Juri Linkov <juri@jurta.org>
9051
9052 * buffer.c (Frename_buffer): In interactive spec replace
9053 `read-buffer' with `read-string' that uses `buffer-name-history'
9054 as history, and the current buffer's name as default.
9055
3709505e
SM
90562007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
9057
9058 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
9059 manipulating the backtrace manually.
9060 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
9061 (struct backtrace, backtrace_list): Remove.
9062 (command_loop_1): Remove dead var `no_direct'.
9063
9064 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
9065 preserve non-built-in buffer-local variables.
9066 (Fkill_all_local_variables): Don't re-create&re-set permanent
9067 buffer-local variables.
9068
e2bec886
JL
90692007-12-09 Juri Linkov <juri@jurta.org>
9070
9071 * buffer.c (Frename_buffer): Change interactive spec from "s" to
9072 Lisp code that uses `read-buffer' with current buffer as default.
9073
a31d47c7
MA
90742007-12-08 Michael Albinus <michael.albinus@gmx.de>
9075
9076 * dbusbind.c (xd_read_message): Generate an event for every
9077 registered handler. There might be several handlers registered
9078 for the same signal.
9079 (Fdbus_register_signal): Don't overwrite a registration for the
9080 same signal. Add a new registration if handlers are different.
9081 (Vdbus_registered_functions_table): Rework doc string.
9082
52da95fa
MA
90832007-12-07 Michael Albinus <michael.albinus@gmx.de>
9084
9085 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
9086 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
9087 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
9088 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
9089 Unify argument lists.
a0a3805c 9090 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
9091 arguments and hash table keys. Use unique name for service.
9092 (Fdbus_unregister_signal): Remove checks.
9093 (Vdbus_registered_functions_table): Fix doc string.
9094
e5e76c04 90952007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
9096
9097 * process.c (make_process): Initialize pty_flag to 0.
9098
e5e76c04 90992007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
9100
9101 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
9102 specified XBMs.
9103
e5e76c04 91042007-12-05 Richard Stallman <rms@gnu.org>
048addec 9105
e5e76c04 9106 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 9107
e5e76c04 91082007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9109
e5e76c04
MB
9110 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9111 New variable.
9112 (mac_try_close_socket) [MAC_OSX]: New function.
9113 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9114 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9115
e5e76c04
MB
9116 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9117 Use mac_try_close_socket.
048addec 9118
e5e76c04 91192007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9120
e5e76c04
MB
9121 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9122 reloc_base.
9123 (copy_dysymtab): Compute relocation base here.
9124 (rebase_reloc_address) [__ppc64__]: New function.
9125 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9126 changed.
048addec 9127
e5e76c04 91282007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9129
e5e76c04 9130 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9131
e5e76c04 91322007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9133
e5e76c04
MB
9134 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9135 __objc_* sections.
9136 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 9137
96faeb40
MA
91382007-12-05 Michael Albinus <michael.albinus@gmx.de>
9139
9140 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9141 Move check for Vdbus_registered_functions_table to
9142 xd_read_queued_messages.
9143 (xd_read_queued_messages): Protect xd_read_message calls by
9144 internal_condition_case_1.
9145
39abdd4a
MA
91462007-12-04 Michael Albinus <michael.albinus@gmx.de>
9147
87df3c32 9148 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 9149 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 9150 (Vdbus_intern_symbols): Remove.
39abdd4a 9151 (Vdbus_registered_functions_table): New hash table.
87df3c32 9152 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 9153 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 9154 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
9155 Vdbus_registered_functions_table.
9156
880820fe 91572007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
9158
9159 * xterm.c: Update URL to Window Manager Specification in comment.
9160
033b73e2
MA
91612007-12-02 Michael Albinus <michael.albinus@gmx.de>
9162
9163 * config.in (HAVE_DBUS): Add.
9164
a0a3805c 9165 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
9166 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9167 (obj): Add $(DBUS_OBJ).
9168 (LIBES): Add $(DBUS_LIBS).
9169 (dbusbind.o): New target.
9170
9171 * dbusbind.c: New file.
9172
9173 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9174
9175 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 9176 (Qdbus_event): New Lisp symbol.
033b73e2 9177 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 9178 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
9179 (keys_of_keyboard ): Define dbus-event.
9180
9181 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9182
39d0bf74
RS
91832007-12-01 Richard Stallman <rms@gnu.org>
9184
9185 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9186
f3157c65
JR
91872007-11-30 Jason Rumney <jasonr@gnu.org>
9188
9189 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9190 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
9191 (w32_face_attributes): Don't use color indexes that are out of range.
9192 Only reverse the default colors.
f3157c65
JR
9193
9194 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9195 WINDOWSNT.
9196
9197 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9198
b510360c
JR
91992007-11-29 Jason Rumney <jasonr@gnu.org>
9200
9201 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9202 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9203 if the terminal colors are initialized.
9204 (unspecified_fg, unspecified_bg): Remove unused declarations.
9205
4b7ab1c4
AS
92062007-11-29 Andreas Schwab <schwab@suse.de>
9207
9208 * keyboard.c (apply_modifiers): Fix typo.
9209
4bb6c266
RS
92102007-11-29 Richard Stallman <rms@gnu.org>
9211
9212 * keymap.c (Fcurrent_local_map): Doc fix.
9213
aa44cd84
GM
92142007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9215
9216 * s/gnu-kfreebsd.h: New file.
9217
21ec2c43
SM
92182007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9219
cc648cef
SM
9220 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9221 Don't cast redundantly.
9222
21ec2c43
SM
9223 * keyboard.c (KEY_TO_CHAR): New macro.
9224 (parse_modifiers, apply_modifiers): Accept integer arguments.
9225 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9226 for chars and symbol keys.
9227 After doing such remapping, apply function-key-map again.
9228
73e72da4
DN
92292007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9230
9231 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9232 compiled anymore.
9233
254693ff
AS
92342007-11-26 Andreas Schwab <schwab@suse.de>
9235
9236 * process.c (list_processes_1): Fix indentation level of the
9237 command column.
9238
ff6e6ac8
AS
92392007-11-23 Andreas Schwab <schwab@suse.de>
9240
9241 * editfns.c (Fformat): Handle %c specially since it requires the
9242 argument to be of type int.
9243
f7cf8b20
SM
92442007-11-23 Markus Triska <markus.triska@gmx.at>
9245
9246 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9247 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9248
569c11e3
SM
92492007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9250
8787dd73
SM
9251 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9252 (find_symbol_value): Use do_symval_forwarding.
9253
569c11e3
SM
9254 * data.c (set_internal): Set the value in the `cons-cell' (for
9255 Buffer_Local_values) not only for frame-local variables.
9256
6af1696d
AS
92572007-11-22 Andreas Schwab <schwab@suse.de>
9258
9259 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9260 values to sprintf.
9261 * keymap.c (Fsingle_key_description): Likewise.
9262 * print.c (print_object): Likewise.
9263
880820fe 92642007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9265
9266 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9267 file for image is nil.
9268
7c401d15
DN
92692007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9270
9271 * term.c: Include stdarg.h.
569c11e3 9272 (fatal): Implement using varargs.
a0a3805c 9273 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9274
64e16c3c
SM
92752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9276
9277 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9278 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9279 Update call to buffer_slot_type_mismatch.
9280 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9281 (buffer_slot_type_mismatch): Update.
9282 * buffer.c (buffer_local_types): Remove.
9283 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9284 (defvar_per_buffer): Set the type in the buffer_objfwd.
9285
d4aa48db 92862007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9287
64e16c3c
SM
9288 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9289 CreateFileMapping returns NULL on failure.
5f42a7eb 9290
d4aa48db 92912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9292
d4aa48db
MB
9293 * search.c (Fset_match_data): Remove the `evaporate' feature.
9294 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9295
bdae0540
JR
92962007-11-21 Jason Rumney <jasonr@gnu.org>
9297
9298 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9299
9300 * w32console.c (w32con_write_glyphs): Remove unused variables.
9301
202c09a8
DN
93022007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9303
b951420f
DN
9304 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9305
202c09a8
DN
9306 * s/darwin.h (MULTI_KBOARD): Remove.
9307
9308 * macfns.c (x_create_tip_frame, Fx_create_frame)
9309 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9310
bae72c12
SM
93112007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9312
e7c10f83
SM
9313 * buffer.c (Fbuffer_local_value): Remove redundant test.
9314 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9315 than in `current-buffer' to match the comment.
9316 Do the swap using swap_in_global_binding.
9317
136eb6ed
SM
9318 * data.c (store_symval_forwarding, set_internal):
9319 * eval.c (specbind): Remove dead code.
9320
bae72c12
SM
9321 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9322 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9323 Since we do not want to see internal Lisp_*fwd objects here.
9324
880820fe 93252007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9326
3d66b985
JD
9327 * sysdep.c (init_system_name): Use getaddrinfo if available.
9328
95fbaefc
JD
9329 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9330 (x_scroll_bar_note_movement): start, end, with, height in struct
9331 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9332
6c1d8cb6
DN
93332007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9334
9335 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9336
30f95089
SM
93372007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9338
66b04bd4
SM
9339 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9340 This undoes Richard's change of 14-Oct-2002.
9341
6d3f2bb2
SM
9342 * alloc.c (allocate_other_vector):
9343 * lisp.h (allocate_other_vector): Remove.
9344
b05b4e27
SM
9345 * window.c (struct save_window_data): Move non-lisp data to the end
9346 and make it `int' rather than Lisp_Object.
9347 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9348 Done wrap/unwrap integer values.
9349 (Fset_window_configuration, compare_window_configurations):
9350 Update use of fields to their new types.
9351
056ce195
SM
9352 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9353 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9354 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9355 (SET_SCROLL_BAR_X_WINDOW): Remove.
9356 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9357 Access the new x_window field directly.
9358 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9359 Don't wrap/unwrap integers into Lisp_Objects.
9360 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9361 (x_scroll_bar_report_motion):
9362 Don't wrap/unwrap integers into Lisp_Objects.
9363 (x_term_init): Use SDATA.
9364 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9365 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9366 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9367 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9368 * xfns.c (x_set_background_color):
9369 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9370 Access the new x_window field directly.
9371
30f95089
SM
9372 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9373 (allocate_pseudovector): Make non-static.
6d3f2bb2 9374
30f95089
SM
9375 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9376 (allocate_pseudovector): Declare.
6f69e89b 9377 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9378
9b6112e8
AS
93792007-11-15 Andreas Schwab <schwab@suse.de>
9380
30f95089
SM
9381 * editfns.c (Fformat): Correctly format EMACS_INT values.
9382 Also take precision into account when formatting an integer.
0f860bd7 9383
9b6112e8
AS
9384 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9385
262fcd41
SM
93862007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9387
58da34c7
SM
9388 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9389 (syms_of_keyboard): Defsubr it.
9390
262fcd41
SM
9391 * data.c (swap_in_global_binding): Fix longstanding bug where
9392 store_symval_forwarding was not called with the right second argument,
9393 thus causing objfwd-ing from being dropped.
9394
d29a9848
JB
93952007-11-14 Juanma Barranquero <lekktu@gmail.com>
9396
9397 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9398 (Fx_display_pixel_height, Fx_display_planes)
9399 (Fx_display_color_cells, Fx_server_max_request_size)
9400 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9401 (Fx_display_visual_class, Fx_display_save_under):
9402 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9403 (Fx_display_pixel_height, Fx_display_planes)
9404 (Fx_display_color_cells, Fx_server_max_request_size)
9405 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9406 (Fx_display_mm_height, Fx_display_mm_width)
9407 (Fx_display_backing_store, Fx_display_visual_class)
9408 (Fw32_select_font, Fx_display_save_under):
9409 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9410 (Fx_display_pixel_height, Fx_display_planes)
9411 (Fx_display_color_cells, Fx_server_max_request_size)
9412 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9413 (Fx_display_save_under): Fix typos in docstrings.
9414
74084731
JB
94152007-11-14 Juanma Barranquero <lekktu@gmail.com>
9416
9417 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9418 corresponding to deleted entries; they are an implementation detail.
9419 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9420 Remove variables.
9421 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9422 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9423 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9424 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9425 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9426 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9427 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9428 Fix typos in docstrings.
9429 (Fx_server_version): Reflow docstring.
9430 (Fw32_shell_execute): Doc fixes.
74084731 9431
fb053a1f
JB
94322007-11-13 Juanma Barranquero <lekktu@gmail.com>
9433
9434 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9435 if w32_parse_hot_key returned nil.
9436
a457417e 94372007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9438
a457417e 9439 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9440
4b219faa
JR
94412007-11-09 Jason Rumney <jasonr@gnu.org>
9442
9443 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9444
9445 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9446
9447 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9448 Remove W32_SCROLL_BAR_CLICK_EVENT.
9449
9450 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9451 Add MULTIMEDIA_KEY_EVENT.
9452
9453 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9454 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9455 (make_lispy_event) [WINDOWSNT]: Use it to translate
9456 MULTIMEDIA_KEY_EVENT.
9457
9458 * w32term.h (WM_APPCOMMAND): Define if not already.
9459 (GET_APPCOMMAND_LPARAM): Likewise.
9460
9461 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9462 WM_APPCOMMAND.
9463
9464 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9465 (syms_of_w32fns): Export and initialize it.
9466 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9467
c12ecb0a 94682007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9469
9470 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9471 twice.
9472
9473 * xdisp.c (handle_face_prop): Fix last change.
9474
c12ecb0a 94752007-11-09 Richard Stallman <rms@gnu.org>
048addec 9476
c12ecb0a
MB
9477 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9478 not just for after-strings and before-strings.
9479 Call face_for_overlay_string and pass the overlay to it.
9480 (handle_display_prop): Determine whether property came from an overlay.
9481 Pass OVERLAY arg to handle_single_display_spec.
9482 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9483 (load_overlay_strings): Fill in it->string_overlays.
9484 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9485
c12ecb0a
MB
9486 * xfaces.c (face_for_overlay_string): Function renamed from
9487 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9488
c12ecb0a
MB
9489 * dispextern.h (struct it): New elt string_overlays.
9490 New elt from_overlay, also in stack.
9491 Rearrange a few elements.
9492 (face_for_overlay_string): Decl renamed from
9493 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9494
c12ecb0a 94952007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9496
c12ecb0a
MB
9497 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9498 to get the base face for an overlay string.
0d8466cc 9499
c12ecb0a 9500 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9501
c12ecb0a 9502 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9503
c12ecb0a 9504 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9505
c12ecb0a 95062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9507
c12ecb0a
MB
9508 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9509 Fix conversion from Lisp object to ATSUFontID.
07025a55 9510
c12ecb0a 95112007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9512
c12ecb0a 9513 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9514
c12ecb0a 95152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9516
c12ecb0a
MB
9517 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9518 Don't assume regions are aligned to page boundary.
9519 (print_load_command_name): Add LC_UUID if defined.
3a232704 9520
c12ecb0a 95212007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9522
c12ecb0a 9523 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9524
b8ddfbcc
JR
95252007-11-07 Jason Rumney <jasonr@gnu.org>
9526
9527 * s/windows95.h: Remove.
9528
880820fe 95292007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9530
9531 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9532 abort with a message on unhandled store_type values.
9533
880820fe 95342007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9535
9536 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9537 Remove HAVE_X11R5 and HAVE_X11R4.
9538
04a697fe
DN
95392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9540
9541 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9542
880820fe 95432007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9544
9545 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9546 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9547 x_set_glyph_string_gc from x_draw_glyph_string.
9548
07e5c0b0
DN
95492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9550
2a2e8de7 9551 * sunfns.c: Remove file.
07e5c0b0
DN
9552
9553 * m/sun386.h:
9554 * m/sun2.h:
9555 * m/sparc.h: Remove Sun windows code.
9556
1bc973c2
SM
95572007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9558
9559 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9560 (init_keyboard): Set current_kboard's window-system to nil.
9561 (tty_read_avail_input): Typo.
9562 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9563
c22140f6
DN
95642007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9565
9566 * s/usg5-4.h:
9567 * s/usg5-3.h:
9568 * s/ptx.h:
9569 * m/is386.h:
9570 * m/ibmps2-aix.h:
2a2e8de7 9571 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9572
9573 * dispnew.c (syms_of_display): Don't mention version 10.
9574
660a8219
JB
95752007-10-28 Juanma Barranquero <lekktu@gmail.com>
9576
9577 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9578 ($(BLD)/abbrev.$(O)): Remove.
9579
e047f448
SM
95802007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9581
9582 Rewrite abbrev.c in Elisp.
9583 * image.c (Qcount): Don't declare as extern.
9584 (syms_of_image): Initialize and staticpro `Qcount'.
9585 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9586 * emacs.c (main): Don't call syms_of_abbrev.
9587 * Makefile.in (obj): Remove abbrev.o.
9588 (abbrev.o): Remove.
9589 * abbrev.c: Remove.
9590
67b73e3a
MR
95912007-10-26 Martin Rudalics <rudalics@gmx.at>
9592
9593 * window.c (window_min_size_2): Don't count header-line.
9594
e3d7bd83
DN
95952007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9596
9597 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9598 field to take advantage of the available space. Group all the
e3d7bd83
DN
9599 chars together to reduce wasted space due to padding.
9600
a3547743
JB
96012007-10-26 Juanma Barranquero <lekktu@gmail.com>
9602
e298936f
JB
9603 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9604
d3d47262
JB
9605 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9606 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9607 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9608 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9609 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9610 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9611 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9612 (last_marked, mark_object_loop_halt): Make static.
9613
a3547743
JB
9614 * frame.c (syms_of_frame) <delete-frame-functions>:
9615 Fix typo in docstring.
9616
14c71d8b
JB
96172007-10-25 Juanma Barranquero <lekktu@gmail.com>
9618
9619 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9620 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9621
70b8d0a4
SM
96222007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9623
9624 Make `window-system' into a keyboard-local variable (rather than
9625 frame-local as done originally by multi-tty).
9626
9627 * keyboard.h (struct kboard): Add Vwindow_system.
9628 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9629 (mark_kboards): Mark Vwindow_system.
9630
9631 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9632 (init_display): Don't set the obsolete `window-system' frame-param.
9633
9634 * xterm.c (x_term_init):
9635 * w32term.c (w32_create_terminal):
9636 * term.c (init_tty): Set Vwindow_system.
9637 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9638 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9639
9640 * xfns.c (Fx_create_frame, x_create_tip_frame):
9641 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9642 * macfns.c (Fx_create_frame):
9643 Don't set the obsolete `window-system' frame-param.
9644
9645 * frame.h (Qwindow_system): Remove.
9646 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9647 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9648
fdc90613 96492007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9650
fdc90613
MB
9651 * frame.c (x_figure_window_size): For fullscreen case,
9652 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9653
fdc90613 9654 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9655
fdc90613 9656 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9657
7357cb04
SM
96582007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9659
98228e72
SM
9660 * process.c (unwind_request_sigio): Only define if __ultrix__.
9661
1baf6db9
SM
9662 * callproc.c (child_setup): Remove spurious *.
9663
4d0ac3d7
SM
9664 * lisp.h (Fget_text_property): Declare.
9665 (have_menus_p): Declare it here rather than in sys-dep header files.
9666 * macterm.h (have_menus_p):
9667 * msdos.h (have_menus_p):
9668 * xterm.h (have_menus_p): Remove.
9669
7357cb04
SM
9670 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9671 (Fmake_variable_frame_local): Just check the variable's const-ness
9672 rather than checking nil or t.
9673
866e6dd6
JR
96742007-10-22 Jason Rumney <jasonr@gnu.org>
9675
b00afeae
JR
9676 * w32fns.c: Include math.h.
9677 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9678
c8f7c76b
JR
9679 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9680 (abort): Redefinition moved to nt/config.nt.
9681
866e6dd6
JR
9682 * m/windowsnt.h: Remove.
9683
e79beb56
JB
96842007-10-22 Juanma Barranquero <lekktu@gmail.com>
9685
9686 * emacs.c (Fdump_emacs): Fix typo in message.
9687 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9688 <installation-directory>: Reflow docstring.
9689
fb30dfd2
JL
96902007-10-22 Juri Linkov <juri@jurta.org>
9691
9692 * minibuf.c: Allow minibuffer default to be a list of default values.
9693 With empty input use the first element of this list as returned default.
e79beb56 9694 (string_to_object)
0f7f11b7 9695 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9696 (read_minibuf): If defalt is cons, set histstring to its car.
9697 (Fread_string): If default_value is cons, set val to its car.
9698 (Fread_buffer): If def is cons, use its car.
9699 (Fcompleting_read): If defalt is cons, set val to its car.
9700
1f163f28
MA
97012007-10-21 Michael Albinus <michael.albinus@gmx.de>
9702
9703 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9704
db3534c3
JB
97052007-10-20 Juanma Barranquero <lekktu@gmail.com>
9706
9707 * doc.c (Fdocumentation): Check for advice in all cases.
9708
c6f18a07
CY
97092007-10-19 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9712
2a1534d3
RS
97132007-10-19 Richard Stallman <rms@gnu.org>
9714
9715 * doc.c (Fdocumentation): Check for and handle an advised function.
9716
7b82c3b6
JB
97172007-10-19 Juanma Barranquero <lekktu@gmail.com>
9718
9719 * process.c (Fset_process_filter): Doc fix.
9720
3278f20e
SM
97212007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9722
9723 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9724 which caused key-translation-map to applied repeatedly (thus breaking
9725 double-mode).
9726
99784d63
SM
97272007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9728
9729 * xselect.c (x_own_selection, x_handle_selection_clear)
9730 (x_clear_frame_selections):
9731 * w32menu.c (list_of_panes, list_of_items):
9732 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9733 * textprop.c (validate_plist, interval_has_all_properties)
9734 (interval_has_some_properties, interval_has_some_properties_list)
9735 (add_properties, text_property_list):
9736 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9737 * minibuf.c (Fassoc_string):
9738 * macselect.c (x_own_selection, x_clear_frame_selections)
9739 (Fx_disown_selection_internal):
9740 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9741 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9742
44bb704d
CY
97432007-10-17 Chong Yidong <cyd@stupidchicken.com>
9744
9745 * process.c: Link to libs for calling res_init() if available.
9746 (Fmake_network_process): Call res_init() before getaddrinfo or
9747 gethostbyname, if possible.
9748
d314756e
SM
97492007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9750
2504022a
SM
9751 * lread.c (read1): Set pvectype for char_tables.
9752
19fa82b9
SM
9753 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9754 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9755 Add type checks.
9756 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9757
d314756e
SM
9758 * alloc.c (free_misc): Use XMISCTYPE.
9759 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9760
94b9aaa2
GM
97612007-10-17 Glenn Morris <rgm@gnu.org>
9762
9763 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9764 (syms_of_minibuf): Add Qcompletion_ignore_case.
9765 * dired.c (Qcompletion_ignore_case): Change to external.
9766 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9767 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9768 (Fread_file_name): Use it rather than intern'ing.
9769
9770 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9771 (Fread_coding_system): Ignore case of user input.
9772
da6658e8
YM
97732007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9774
9775 * xdisp.c (handle_display_prop): Ignore display specs after
9776 replacing one when string text is being replaced.
9777 (handle_single_display_spec): Pretend as if characters with display
9778 property haven't been consumed only when buffer text is being replaced.
9779
11fb4bdb
SM
97802007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
9781
9beb8baa
SM
9782 * xfns.c (Fx_create_frame, Fx_display_list):
9783 * window.c (window_fixed_size_p, enlarge_window)
9784 (shrink_window_lowest_first):
9785 * macterm.c (init_font_name_table):
9786 * macfns.c (Fx_create_frame, Fx_display_list):
9787 * lread.c (close_load_descs):
9788 * keyboard.c (read_char_x_menu_prompt):
9789 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
9790 * coding.c (code_convert_region_unwind): Test the type of an object
9791 rather than just !NILP before extracting data from it.
9792
d3f41ff5
SM
9793 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
9794
67ee9f6e
SM
9795 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
9796 (XMISCANY): New macro.
9797 (XMISCTYPE): Use it.
9798 (struct Lisp_Misc_Any): New type.
9799 (union Lisp_Misc): Use it.
9800 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
9801 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
9802 (find_symbol_value, set_internal, default_value, Fset_default)
9803 (Fmake_variable_buffer_local, Fmake_local_variable)
9804 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
9805 (Flocal_variable_if_set_p, Fvariable_binding_locus):
9806 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
9807 * alloc.c (allocate_buffer): Set the size and tag.
9808 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
9809 Use XMISCANY.
9810 (die): Follow the GNU convention for error messages.
9811 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
9812 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
9813 tag any more.
9814 (set_buffer_internal_1):
9815 * frame.c (store_frame_param):
9816 * eval.c (specbind):
9817 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
9818
11fb4bdb
SM
9819 * doc.c (Fsnarf_documentation): Simplify.
9820
decb374a
JB
98212007-10-14 Juanma Barranquero <lekktu@gmail.com>
9822
9823 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
9824 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
9825
b5a40ee7
SM
98262007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
9827
9828 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
9829
35277b03
JB
98302007-10-14 Juanma Barranquero <lekktu@gmail.com>
9831
9832 * eval.c (do_autoload): Don't save autoloads.
9833
9834 * data.c (Ffset): Save autoload of the function being set.
9835
35fdaa62
GM
98362007-10-07 John Paul Wallington <jpw@pobox.com>
9837
9838 * xfns.c (x_create_tip_frame): Set the `display-type' frame
9839 parameter before setting up faces.
9840
1ea40aa2
EZ
98412007-10-13 Eli Zaretskii <eliz@gnu.org>
9842
35fdaa62 9843 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
9844 * keyboard.c (append_tool_bar_item): Reformat last change.
9845
1ea40aa2
EZ
9846 * lisp.h (eabs): Rename from `abs'. All callers changed.
9847
35277b03 98482007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
9849
9850 * buffer.c (add_overlay_mod_hooklist):
9851 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
9852 * fontset.c (make_fontset):
9853 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
9854 (append_tool_bar_item):
9855 * macmenu.c (grow_menu_items):
35fdaa62 9856 * w32menu.c (grow_menu_items):
71d00ce4 9857 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 9858
bc82f120
EZ
98592007-10-13 Eli Zaretskii <eliz@gnu.org>
9860
9861 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
9862 selected frame'' on MSDOS).
9863
d57d5a78
MR
98642007-10-12 Martin Rudalics <rudalics@gmx.at>
9865
9866 * frame.c (Qexplicit_name): New variable.
9867 (x_report_frame_params): Report it in parameter alist.
9868 (syms_of_frame): Intern and staticpro it.
9869
35277b03 98702007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
9871
9872 * macfns.c (x_create_tip_frame): Set terminal for frame.
9873
c7a4b95b
SM
98742007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
9875
26f9c7b7
SM
9876 * frame.c (Qenvironment): Remove.
9877 (syms_of_frame) <Qenvironment>: Don't initialize.
9878 (Fdelete_frame): Don't treat the `environment' param specially.
9879 * frame.h (Qenvironment): Don't declare.
9880 * callproc.c (set_initial_environment): Don't set unused frame param.
9881
c7a4b95b
SM
9882 * frame.c (Fframe_with_environment): Remove.
9883 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 9884
c7a4b95b
SM
9885 * lisp.h (Fframe_with_environment): Don't declare.
9886
c86f7377
JB
98872007-10-10 Juanma Barranquero <lekktu@gmail.com>
9888
9889 * indent.c (indent_tabs_mode, last_known_column)
9890 (last_known_column_modified): Make static.
9891 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
9892
d1b3a122
KY
98932007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
9894
9895 * puresize.h (BASE_PURESIZE): Increase to 1170000.
9896
d57d5a78
MR
98972007-10-09 Jason Rumney <jasonr@gnu.org>
9898
9899 * w32term.c (x_set_window_size): Disable code that attempts to tell
9900 Lisp code about a size change before it actually happens.
9901
81d3d428 99022007-10-09 Richard Stallman <rms@gnu.org>
91175673 9903
81d3d428
MB
9904 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
9905 return HANDLED_RETURN.
91175673 9906
1af74d06 99072007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 9908
1af74d06
MB
9909 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
9910 when there's an unread command event.
e0fead5d 9911
c7a4b95b 9912 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
9913 window autoselection act appropriately when leaving selected frame.
9914 (syms_of_frame): Initialize focus_follows_mouse.
9915 * frame.h (focus_follows_mouse): Extern it.
9916 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 9917 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
9918 * msdos.c (dos_rawgetc): Likewise.
9919 * w32term.c (w32_read_socket): Likewise.
9920 * xterm.c (handle_one_xevent): Likewise.
9921 * xdisp.c (syms_of_xdisp): In doc-string of
9922 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 9923
1af74d06 99242007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 9925
1af74d06
MB
9926 * macterm.c (mac_load_query_font): Fix missing return value.
9927 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
9928 Add BLOCK_INPUT.
c186cdb3 9929
1af74d06 99302007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 9931
1af74d06
MB
9932 * xdisp.c (get_window_cursor_type): Implement documented behavior
9933 for cursor-in-non-selected-windows = t.
c186cdb3 9934
1af74d06 99352007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 9936
1af74d06 9937 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 9938
1af74d06 99392007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9940
1af74d06 9941 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9942
1af74d06 9943 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9944
1af74d06 99452007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9946
c7a4b95b 9947 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9948
1af74d06 99492007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9950
1af74d06 9951 * buffer.c (Foverlays_at): Doc fix.
036e218d 9952
1af74d06 99532007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9954
1af74d06 9955 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9956
1af74d06 99572007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9958
1af74d06 9959 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9960
1af74d06 9961 * frame.h (enum): Remove trailing comma.
90647b07 9962
8993ad2e 99632007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 9964
1af74d06 9965 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9966
1af74d06 99672007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9968
1af74d06 9969 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9970
1af74d06
MB
9971 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9972 last-repeatable-command.
9973 (init_kboard): Initialize Vlast_repeatable_command.
9974 (command_loop_1): Set it to real_this_command unless that was
9975 bound to an input event.
9976 (mark_kboards): Mark it.
9fbc32aa 9977
1af74d06 99782007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9979
1af74d06 9980 * eval.c (condition-case): Doc fix.
9fbc32aa 9981
1af74d06 99822007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9983
1af74d06
MB
9984 * xfaces.c (tty_supports_face_attributes_p): Fix code
9985 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9986 was copied and not edited.
9fbc32aa 9987
beb9f745
SM
99882007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9989
c86f7377 9990 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9991 escape sequences.
9992 * keyboard.h (struct kboard): Add Vinput_decode_map.
9993 Remove Vlocal_key_translation_map.
9994 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9995 (init_kboard): Init input-decode-map.
9996 Replace local-key-translation-map back with key-translation-map.
9997 (syms_of_keyboard): Declare input-decode-map.
9998 Remove local-key-translation-map. Update docstrings.
9999 (mark_kboards): Mark Vinput_decode_map.
10000 Don't mark Vlocal_key_translation_map.
10001 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
10002 Replace local-key-translation-map back with key-translation-map.
10003 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
10004 Bind in input-decode-map rather than function-key-map.
10005
beb9f745
SM
10006 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
10007 This was made redundant by the previous introduction of XSETPVECTYPE.
10008
65342ae3
RS
100092007-10-09 Richard Stallman <rms@gnu.org>
10010
beb9f745 10011 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
10012
100132007-09-29 Richard Stallman <rms@gnu.org>
10014
10015 * eval.c (internal_condition_case_2, internal_condition_case_1)
10016 (internal_condition_case): Reenable abort if x_catching_errors ()
10017 to see if that really happens and why.
10018
6cff77fd
AS
100192007-10-06 Andreas Schwab <schwab@suse.de>
10020
10021 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
10022
bbe6f2aa
JB
100232007-10-04 Juanma Barranquero <lekktu@gmail.com>
10024
10025 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
10026
a390930c
SM
100272007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
10028
10029 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
10030
d6aa1876
SM
100312007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
10032
d0fdb6da
SM
10033 * window.h (struct window):
10034 * window.c (struct save_window_data, struct saved_window):
10035 * termhooks.h (struct terminal):
10036 * process.h (struct Lisp_Process):
10037 * frame.h (struct frame):
10038 * buffer.h (struct buffer):
10039 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
10040 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
10041 The size field of (pseudo)vectors is now unsigned.
10042 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
10043
878f97ff
SM
10044 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
10045 Turn `count' into an integer.
d0fdb6da 10046
878f97ff
SM
10047 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
10048 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
10049 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
10050 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
10051 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
10052
d2029e5b
SM
10053 * alloc.c (allocate_pseudovector): New fun.
10054 (ALLOCATE_PSEUDOVECTOR): New macro.
10055 (allocate_window, allocate_terminal, allocate_frame)
10056 (allocate_process): Use it.
10057 (mark_vectorlike): New function.
10058 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
10059 (mark_terminals): Use it.
10060 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
10061 (Fmake_byte_code): Use XSETPVECTYPE.
10062
10063 * frame.c (Fframe_parameters): Minor simplification.
10064
10065 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
10066
10067 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
10068
10069 * buffer.c (Fget_buffer_create, init_buffer_once):
10070 * lread.c (defsubr):
10071 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
10072
10073 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
10074 defined differently in the m/*.h files.
10075 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
10076 (XSETPVECTYPE): New macro.
10077 (XSETPSEUDOVECTOR): Use it.
10078
d6aa1876
SM
10079 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
10080 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 10081
d6aa1876
SM
10082 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
10083 * lread.c (defvar_per_buffer):
10084 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
10085
10086 * window.c (candidate_window_p): Only consider as visible frames that
10087 are on the same terminal.
10088
10089 * m/ibms390x.h (MARKBIT): Remove unused macro.
10090
88852d45
JB
100912007-10-01 Juanma Barranquero <lekktu@gmail.com>
10092
10093 * lread.c (Fload): Fix typo in docstring.
10094
880820fe 100952007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
10096
10097 * floatfns.c (Fexpt): Manually check for overflows, so that a power
10098 of a non-zero value can't yield zero.
10099
ed0c79c6
SM
101002007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
10101
b870aa61
SM
10102 * term.c (term_clear_mouse_face, term_mouse_highlight)
10103 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
10104
4c37a414
SM
10105 * print.c (safe_debug_print): Use XHASH.
10106
b9466edb
SM
10107 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10108 Lisp elements such as tags.
10109 (XHASH): New macro.
10110 (EQ): Use it.
10111 (SREF, SSET, STRING_COPYIN): Use SDATA.
10112 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10113
9c545a55
SM
10114 * alloc.c (mark_terminal): Remove left-over declaration.
10115 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10116 (allocate_vectorlike): Remove type argument. Adjust callers.
10117 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10118 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10119
dafc79fa
SM
10120 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10121 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10122 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10123 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10124 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10125 Use them.
10126
ed0c79c6
SM
10127 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10128 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10129 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10130
3c81afd4
DN
101312007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10132
10133 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10134 loaded by default.
10135
6178ce5e
SM
101362007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10137
4ce5ab77
SM
10138 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10139 on this tty.
10140 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10141
6178ce5e
SM
10142 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10143 Update all users.
10144 (handle_one_term_event): Use Gpm_DrawPointer.
10145 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10146 Signal errors instead of returning nil. Always return nil.
10147 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10148 Make it a noop if gpm-mouse was not activated.
10149 (syms_of_term): Update names.
10150
bdf5f8ef
SM
101512007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10152
75a8734b
SM
10153 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10154 (init_sys_modes): Check that gpm_tty is the current tty.
10155
13559ee0
SM
10156 * alloc.c (allocate_terminal): Set the vector size to only count the
10157 lisp fields. Initialize those to nil.
10158 (mark_object): Don't treat terminals specially.
10159 (mark_terminal): Remove.
10160 (mark_terminals): Use mark_object instead.
10161
ff16b875
SM
10162 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10163 the GC to the beginning.
10164
83155776
SM
10165 * indent.h:
10166 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10167
bdf5f8ef
SM
10168 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10169
ec8705b6
JR
101702007-09-25 Jason Rumney <jasonr@gnu.org>
10171
10172 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10173
10174 * w32console.c (create_w32cons_output): Remove.
10175
10176 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10177
10178 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10179 (reset_sys_modes): Use reset_terminal_modes_hook.
10180
7351b242
SM
101812007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10182
10183 * eval.c (do_autoload): Don't output any message.
10184
16706228
JL
101852007-09-24 Juri Linkov <juri@jurta.org>
10186
10187 * emacs.c (standard_args): Change priority of "--no-splash"
10188 from 40 to 3. Add "--no-desktop" with the same priority.
10189
3ae2e3a3
RS
101902007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10191
10192 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10193 and optimize the case where they are all 1.
10194
7a58fb43
GM
101952007-09-23 Johannes Weiner <hannes@saeurebad.de>
10196
3ae2e3a3
RS
10197 * lisp.h (abs): Define if not defined.
10198 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10199 Don't define `abs', since it's defined in lisp.h.
7a58fb43 10200
78048085
EZ
102012007-09-22 Eli Zaretskii <eliz@gnu.org>
10202
c7a4b95b 10203 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
10204 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10205 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10206 (init_tty): Use DEV_TTY instead of "/dev/tty".
10207 [WINDOWSNT]: No need to protect from NAME arg being null.
10208
23d4cba5
DN
102092007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10210
10211 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10212 up the tty state.
10213
71f44e7a
SM
102142007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10215
10216 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10217 (gpm_tty): Change its type.
10218 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10219 (gpm_tty): Change its type and initialize it.
10220 (Fterm_open_connection): Check the frame is indeed a tty.
10221 Use the new gpm_tty.
10222 (Fterm_close_connection): Use the new gpm_tty.
10223 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10224 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10225
def7fa34
JB
102262007-09-21 Juanma Barranquero <lekktu@gmail.com>
10227
10228 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10229 underline_color, to draw strike-through.
10230
d2bb6598
SM
102312007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10232
273f164c
SM
10233 * lisp.h (allocate_terminal): Declare.
10234
ca2d5566
SM
10235 * window.c (candidate_window_p): Consider frames that are being placed
10236 by the user as somewhere between visible and iconified.
10237 (window_loop): Prefer windows on the current frame.
10238 (Fselect_window): Move the use of select-frame to the beginning so we
10239 can just delegate all the work (it'll call us back anyway).
10240
6168122d
SM
10241 * frame.c (Qdisplay_environment_variable):
10242 * frame.h (Qdisplay_environment_variable): Delete.
10243
c51842ec
SM
10244 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10245 of the first arg, since that value may be a union.
10246
d2bb6598
SM
10247 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10248 parameter rather than Qdisplay_environment_variable. If all else
10249 fails, look for DISPLAY in initial-environment.
10250
6f022c19
GM
102512007-09-21 Glenn Morris <rgm@gnu.org>
10252
10253 * Makefile.in (emacstool): Remove target.
f466320b 10254 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10255
ea1bf8c7
GM
102562007-09-21 Markus Triska <markus.triska@gmx.at>
10257
d2bb6598 10258 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10259
d30a25b3
SM
102602007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10261
db699fc6
SM
10262 * callproc.c (getenv_internal_1): New function.
10263 (getenv_internal): Use it.
10264 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10265
d2bb6598 10266 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10267 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10268 (Fset_terminal_parameter): Work with dead terminals as well.
10269 (Fmodify_terminal_parameters): Remove.
10270
d30a25b3
SM
10271 * terminal.c (get_terminal): Handle terminals.
10272 Make sure the terminal returned is live.
10273 (create_terminal): Use allocate_terminal.
10274 (mark_terminals): Move to alloc.c.
10275 (delete_terminal): Use terminal->name as liveness status.
10276 NULL out fields after freeing their contents.
10277 Don't deallocate the object.
10278 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10279 rather than an int.
10280 (Fterminal_live_p): Accept non-integer arguments.
10281 (Fterminal_list): Return terminal objects rather than an ints.
10282
10283 * alloc.c (enum mem_type): New member for `terminal' objects.
10284 (allocate_terminal): New function.
d2bb6598
SM
10285 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10286 Handle terminals.
d30a25b3
SM
10287 (mark_terminal): New fun.
10288 (mark_terminals): Move from terminal.c.
10289
10290 * term.c (get_tty_terminal): Don't treat output_initial specially.
10291 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10292 (delete_tty): Use terminal->name as liveness status.
10293
10294 * termhooks.h (struct terminal): Make it into a pseudovector.
10295 Remove `deleted' replaced by checking `name's nullness.
10296
10297 * print.c (print_object): Handle terminals.
10298
10299 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10300 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10301
10302 * frame.c (make_terminal_frame):
10303 * keyboard.c (tty_read_avail_input):
10304 * w32term.c (x_delete_terminal):
10305 * xfns.c (Fx_create_frame, x_create_tip_frame):
10306 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10307
eba25e7c
GM
103082007-09-20 Glenn Morris <rgm@gnu.org>
10309
10310 * process.c (Fmake_network_process): Doc fix.
10311
2a29c3c1
JR
103122007-09-19 Jason Rumney <jasonr@gnu.org>
10313
10314 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10315
880820fe 103162007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10317
10318 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10319 Fix a C warning regarding variable constness.
10320
10321 * xterm.c (handle_one_xevent): Fix a C warning.
10322
334a1195
JR
103232007-09-18 Jason Rumney <jasonr@gnu.org>
10324
10325 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10326
880820fe 103272007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10328
10329 * gtkutil.c (gdpy_def): New variable.
10330 (xg_initialize): Initialize gdpy_def.
10331 (xg_display_close): If no other display exists, set gdpy_def to a
10332 new connection.
10333
880820fe 103342007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10335
10336 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10337 when we have no file name for the icon.
10338 (xg_tool_bar_expose_callback): Remove.
10339 (xg_create_tool_bar): Don't connect expose signal to
10340 xg_tool_bar_expose_callback.
10341 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10342
4d580af2
AS
103432007-09-16 Andreas Schwab <schwab@suse.de>
10344
10345 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10346 values instead of zapping them.
10347
aca946f3
GM
103482007-09-14 Glenn Morris <rgm@gnu.org>
10349
10350 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10351 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10352 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10353 scope and rename to omfib_buffer for clarity.
10354 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10355
25c460e5
KH
103562007-09-14 Kenichi Handa <handa@m17n.org>
10357
10358 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10359
09b69f01
JR
103602007-09-13 Jason Rumney <jasonr@gnu.org>
10361
10362 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10363
10364 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10365
10366 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10367 (mac_term_init): Call here instead, passing rif.
10368
442218db
GM
103692007-09-13 Glenn Morris <rgm@gnu.org>
10370
10371 * s/hpux.h: No longer define `static' as nothing.
10372
880820fe 103732007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
10374
10375 * callint.c (Fcall_interactively): Remove unused var `fun'.
10376
1971a872
RF
103772007-09-12 Romain Francoise <romain@orebokech.com>
10378
10379 * window.c (prefer_window_split_horizontally, display_buffer):
10380 Revert 2007-09-08 change.
10381
2d33f506
GM
103822007-09-12 Glenn Morris <rgm@gnu.org>
10383
585474ae 10384 * alloca.c: Remove file.
ca7af97a
GM
10385 * Makefile.in (alloca): Do not undef.
10386 (allocaobj, alloca.o): Remove.
10387 (otherobj): Remove allocaobj.
10388 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10389 * regex.c (C_ALLOCA): Remove all references and code that was only
10390 used when this was defined.
10391 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10392 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10393 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10394
2d33f506 10395 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10396
10397 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10398 (menu_grab_callback): All uses changed.
10399
10400 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10401 (x_reply_selection_request): All uses changed.
2d33f506 10402
18a4a65e
SM
104032007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10404
10405 * lread.c (load_warn_old_style_backquotes): Change message to look
10406 better when it appears in the middle of byte-compiler messages.
10407
47cc8819
DN
104082007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10409
b7ea0894
DN
10410 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10411
47cc8819
DN
10412 * xterm.c (x_create_terminal): Add comment.
10413
10414 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10415
5632bd0f
RS
104162007-09-10 Richard Stallman <rms@gnu.org>
10417
10418 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10419
880820fe 104202007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10421
4bca9161
MC
10422 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10423 (DEFUN): Document `intspec', use it instead of `prompt'.
10424
04724b69
MC
10425 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10426
8a6d230a
MC
10427 * data.c (Finteractive_form): If the interactive specification starts
10428 with a `(', use it as a Lisp form.
10429
09fbdf6c
MC
10430 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10431 name and file modes.
10432
ccb5c14f
MC
10433 * callint.c (Fcall_interactively): Comment fixes.
10434
023accd6
SM
104352007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10436
10437 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10438 and compiled functions.
10439
f26b9544
EZ
104402007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10441
10442 * window.c (prefer_window_split_horizontally): New variable.
10443 (display_buffer): Consider splitting window horizontally depending
10444 on prefer_window_split_horizontally.
10445
4d395425
EZ
104462007-09-08 Eli Zaretskii <eliz@gnu.org>
10447
97ddc760 10448 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10449
08c1d235
SM
104502007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10451
179cef48
SM
10452 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10453
08c1d235
SM
10454 * frame.c (x_set_frame_parameters): Check number is positive before
10455 using XFASTINT.
10456
10457 * window.c (freeze_window_start): Don't presume selected_window holds
10458 a window object.
92f94a12 10459 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10460
97ddc760 104612007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10462
10463 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10464
90ab5c62
SM
104652007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10466
10467 * window.c (Vsplit_window_preferred_function): New var.
10468 (Fdisplay_buffer): Use it.
10469 (syms_of_window): Export, and initialize it.
10470
1ab2cd43
TTN
104712007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10472
10473 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10474
0b0515bc
GM
104752007-09-06 Glenn Morris <rgm@gnu.org>
10476
57fd5c55 10477 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10478 * xselect.c (x_reply_selection_request) <cnt>: Move static
10479 variable to file scope.
10480
98594580
SM
104812007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10482
10483 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10484 consistent values of selected_frame and selected_window.
10485
0f4c7aef
JR
104862007-09-04 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32console.c (initialize_w32_display): Zero unused hooks.
10489
e4019195
DN
104902007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10491
10492 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10493 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10494
bce179b5
JR
104952007-09-04 Jason Rumney <jasonr@gnu.org>
10496
a0236551
JR
10497 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10498 in w32console.c. Set up input. Remove XXX comments that have been
10499 confirmed as correct.
10500
a4926668
JR
10501 * s/ms-w32.h (MULTI_KBOARD): Define.
10502
953bf0dc
JR
10503 * w32console.c (one_and_only_w32cons): Remove.
10504 (initialize_w32_display): Take terminal argument.
10505
10506 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10507 initialize_w32_display.
10508 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10509
bce179b5
JR
10510 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10511
10512 * keyboard.c (discard_mouse_events): Discard it.
10513 (make_lispy_event): Translate it to a lisp event.
10514 (lispy_wheel_names): Add wheel-left and right events.
10515 (syms_of_keyboard): Enlarge wheel_syms.
10516
10517 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10518 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10519
10520 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10521
10522 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10523 from WM_MOUSEHWHEEL.
10524 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10525
10526 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10527 terminal.
10528
10529 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10530 keyboard for the terminal.
10531
92cd6a7c
DN
105322007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10533
10534 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10535 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10536 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10537 and resume-tty-function to resume-tty-hook.
10538 (Fsuspend_tty, Fresume_tty): Use new names.
10539
880820fe 105402007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10541
10542 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10543 if it starts with "n:".
10544
880820fe 105452007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10546
10547 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10548
6b8e474c
SM
105492007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10550
92d9c1d4
SM
10551 * frame.h:
10552 * frame.c (Qterm_environment_variable): Remove.
10553 (syms_of_frame): Don't init and staticpro it.
10554
92d9c1d4
SM
10555 * callproc.c (getenv_internal): Remove special case for $TERM.
10556
6b8e474c
SM
10557 * callproc.c (Vinitial_environment): New variable.
10558 (set_initial_environment): Initialize it.
10559 (syms_of_callproc): Declare it.
10560 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10561 TERM under which a process runs is never related to the TERM in which
10562 Emacs is running.
10563
0f1444e1
DN
105642007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10565
10566 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10567 * s/darwin.h: ... do it here.
10568
b8866860
SM
105692007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10570
10571 * lisp.h (set_initial_environment): Rename from set_global_environment.
10572
10573 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10574 removed by mistake on the multi-tty branch.
10575
10576 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10577 (Fmodify_frame_parameters): Return a value.
10578
10579 * image.c (png_load): Comment-out var only used in commented-out code.
10580
10581 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10582 before passing it to mark_object.
10583
10584 * xfaces.c (internal_resolve_face_name): Return a value.
10585 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10586
10587 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10588 (x_icon): Comment-out var only used in commented-out code.
10589
0a42be6d
RF
105902007-08-29 Romain Francoise <romain@orebokech.com>
10591
10592 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10593 QUIT hasn't been provided.
10594
8d9cc0b7
MB
105952007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10596
10597 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10598 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10599 (set_initial_environment): Initialise Vprocess_environment.
10600
10601 * config.in: Disable multi-keyboard support on a mac.
10602
10603 * frame.c (Qterm_environment_variable)
10604 (Qdisplay_environment_variable): New variables.
10605 (syms_of_frame): Intern and staticpro them.
10606 (Fmake_terminal_frame): Disable output method test.
10607
10608 * frame.h: Declare them here.
10609
10610 * macfns.c (x_set_mouse_color): Get rif from the frame.
10611 (x_set_tool_bar_lines): Don't use updating_frame.
10612 (mac_window): Add 2 new parameters for consistency with other systems.
10613 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10614 frame parameters following what is done in X11 and w32. Don't use
10615 FRAME_MAC_DISPLAY_INFO.
10616 (Fx_open_connection, start_hourglass): Remove window-system check.
10617 (x_create_tip_frame): Get the keyboard from the terminal.
10618
10619 * macmenu.c: Reorder includes.
10620 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10621
10622 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10623 terminal parameter.
10624 (x_clear_frame): Add a frame parameter.
10625 (note_mouse_movement): Get rif from the frame.
10626 (mac_term_init): Initialize the terminal.
10627 (mac_initialize): Make static and move terminal initialization ...
10628 (mac_create_terminal): ... to this new function.
10629
10630 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10631 (mac_initialize): Delete declaration.
8d9cc0b7 10632
381864b2 10633 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10634
10635 * sysdep.c: Comment out text after #endif.
10636
10637 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10638 is defined. Better initialize ttys in windows. Use terminal
10639 specific mouse_position_hook.
10640
10641 * termhooks.h (union display_info): Add mac_display_info.
10642
b8866860
SM
10643 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10644 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10645 frame parameters following what is done in X11.
10646
10647 * w32term.c (w32_initialize): Make static.
10648
10649 * xselect.c (x_handle_selection_clear): Only access
10650 terminal->kboard when MULTI_KBOARD is defined.
10651
10652 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10653 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10654
106552007-08-29 Jason Rumney <jasonr@gnu.org>
10656
10657 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10658 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10659
10660 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10661 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10662
10663 * keyboard.c (restore_kboard_configuration): Only define when
10664 MULTI_KBOARD defined.
10665
35277b03 10666 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10667 (OBJ1): Add terminal.$(O)
10668
b8866860
SM
10669 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10670 Don't define function body.
8d9cc0b7
MB
10671 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10672
10673 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10674
10675 * w32.c (request_sigio, unrequest_sigio): Remove.
10676
10677 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10678 (w32con_clear_frame, w32con_clear_end_of_line)
10679 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10680 (w32con_delete_glyphs, w32con_set_terminal_window)
10681 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10682 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10683 Add terminal arg.
8d9cc0b7
MB
10684 (PICK_FRAME): Remove.
10685 (w32con_write_glyphs): Use frame specific terminal coding.
10686 (one_and_only_w32cons): New global variable.
10687 (initialize_w32_display): Use it for storing hooks.
10688 (create_w32cons_output): New function.
10689
10690 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10691 arg a frame.
10692
b8866860
SM
10693 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10694 Set window_system.
8d9cc0b7
MB
10695 (x_set_tool_bar_lines): Don't use updating_frame.
10696 (Fx_create_frame): Set terminal and ref count.
10697 (Fx_open_connection): Remove window-system check.
10698
10699 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10700
10701 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10702 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10703 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10704 Add frame arg.
10705 (x_delete_terminal, w32_create_terminal): New functions.
10706 (w32_term_init): Create a terminal.
10707 (w32_initialize): Move terminal specific initialization to
10708 w32_create_terminal.
10709
b8866860 10710 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10711 (w32_clear_rect, w32_clear_area): Use background from frame.
10712 (w32_display_info): Add terminal.
10713 (w32_sys_ring_bell, x_delete_display): Declare here.
10714
10715 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10716
10717 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10718
107192007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10720
10721 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10722 Fix get_named_tty calls for the controlling tty.
10723
107242007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10725
10726 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10727
107282007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10729
10730 * term.c (tty_insert_glyphs): Add missing first parameter.
10731
880820fe 107322007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10733
b8866860
SM
10734 * buffer.c (Fbuffer_list, Fbury_buffer):
10735 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10736
10737 * cm.c (current_tty): New variable, for cmputc().
10738 (cmputc): Use it.
10739 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10740 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10741 (cmgoto): Add tty parameter. Pass it on to calccost().
10742 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10743
10744 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10745 tputs().
10746 (current_tty): New variable, for cmputc().
10747 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10748
10749 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10750 (internal_condition_case, internal_condition_case_1)
10751 (internal_condition_case_2): Don't abort when x_catching_errors.
10752
10753 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10754 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10755 prevent crashes caused by bogus longjmps in read_char.
10756
10757 * keymap.h (Fset_keymap_parent): Add EXFUN.
10758
10759 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10760 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10761 Remove redundant definition.
10762
b8866860
SM
10763 * macfns.c (x_set_mouse_color, x_make_gc):
10764 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10765
b8866860
SM
10766 * w32term.c (x_free_frame_resources):
10767 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10768 (w32_initialize): Use the accessor macros for terminal characteristics.
10769
10770 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10771 Use the accessor macros for terminal characteristics.
10772 * msdos.c (internal_terminal_init): Use the accessor macros for
10773 terminal characteristics.
b8866860
SM
10774 (ScreenVisualBell, internal_terminal_init):
10775 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10776
10777 * termopts.h (no_redraw_on_reenter): Declare.
10778
10779 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 10780 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 10781 (Fgarbage_collect): Call them.
03f06e5c 10782 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
10783
10784 * prefix-args.c: Include stdlib.h for exit.
10785
10786 * syssignal.h: Add comment.
10787
10788 * indent.c: Include stdio.h.
10789
10790 * window.h (Vinitial_window_system): Declare.
10791 (Vwindow_system): Delete declaration.
10792
10793 * fontset.c (Finternal_char_font): Use FRAME_RIF.
10794
10795 * image.c (lookup_image): Don't initialize `c' until the xasserts
10796 have been run.
10797
10798 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
10799 FRAME_FOREGROUND_PIXEL.
10800
10801 * print.c (print_preprocess): Don't lose print_depth levels while
10802 iterating.
10803
b8866860
SM
10804 * widget.c (update_from_various_frame_slots):
10805 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10806
10807 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
10808 frames.
10809 (window_internal_height): Remove bogus make_number call.
b8866860 10810 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
10811
10812 * fileio.c (Fread_file_name): Update comment.
10813
b8866860
SM
10814 * callint.c (Fcall_interactively):
10815 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
10816 Make sure it is correctly unwound.
10817
10818 * xsmfns.c (x_session_close): New function.
10819
03f06e5c 10820 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
10821 Delete declarations.
10822
10823 * xterm.h: Remove declaration for x_fully_uncatch_errors.
10824 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 10825 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 10826 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
10827
10828 * lread.c: Include setjmp.h. Update declaration of `read_char'.
10829 (read_filtered_event): Call `read_char' with a local
10830 `wrong_kboard_jmpbuf'.
10831
b8866860
SM
10832 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
10833 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
10834
10835 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
10836 systems.
10837
b8866860 10838 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 10839 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 10840 (Fset_quit_char): EXFUN.
03f06e5c 10841 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
10842 (init_sys_modes, reset_sys_modes): Update prototypes.
10843 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
10844
b8866860
SM
10845 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
10846 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 10847 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 10848 Delete declarations.
03f06e5c
JB
10849 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
10850 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
10851 New declarations.
10852
10853 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
10854 already does that during init_display(). Call syms_of_keymap
b8866860
SM
10855 before syms_of_keyboard. Call `syms_of_terminal'.
10856 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
10857 (shut_down_emacs): Call reset_all_sys_modes() instead of
10858 reset_sys_modes().
10859
10860 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
10861 (internal_resolve_face_name, resolve_face_name_error): New functions.
10862 (resolve_face_name): Protect against loops and errors thrown by Fget.
10863 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
10864 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
10865
10866 * scroll.c: Replace CURTTY() with local variables throughout the
10867 file (where applicable).
10868 (calculate_scrolling, calculate_direct_scrolling)
10869 (scrolling_1, scroll_cost): Use the accessor macros for terminal
10870 characteristics.
10871
10872 * keymap.c (Vfunction_key_map): Remove.
b8866860 10873 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
10874 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
10875 (Vkey_translation_map): Remove.
10876 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 10877 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
10878 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
10879 Update for terminal-local key-translation-map.
10880
10881 * Makefile.in (callproc.o): Update dependencies.
10882 (lisp, shortlisp): Add termdev.elc.
10883 (obj): Add terminal.o.
10884 (terminal.o): Add dependencies.
10885 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
10886 (data.o, fns.o): Add termhooks.h dependency.
10887 (SOME_MACHINE_LISP): Add dnd.elc.
10888 (minibuf.o): Fix typo.
10889 Update dependencies.
10890
10891 * data.c (do_symval_forwarding, store_symval_forwarding)
10892 (find_symbol_value): Use the selected frame's keyboard, not
10893 current_kboard.
10894
10895 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
10896 Vwindow_system.
10897
10898 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
10899 Fmenu_bar_open.
10900 (syms_of_xmenu): Update defsubr.
10901 (mouse_position_for_popup, Fx_popup_menu)
10902 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
10903 (set_frame_menubar, free_frame_menubar)
10904 (create_and_show_popup_menu, xmenu_show, )
10905 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
10906 an X frame.
10907
10908 * xselect.c (x_own_selection): Abort if not an X frame.
10909 (some_frame_on_display): Check if it is an X frame.
10910 (x_handle_selection_clear): Deal with MULTI_KBOARD.
10911
10912 * coding.c: Include frame.h and termhooks.h.
03f06e5c 10913 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
10914 (Fset_terminal_coding_system_internal)
10915 (Fset_keyboard_coding_system_internal)
10916 (Fkeyboard_coding_system)
03f06e5c
JB
10917 (Fterminal_coding_system): Add a terminal parameter.
10918 Get terminal_coding from the terminal.
8d9cc0b7
MB
10919 (init_coding_once): Don't call setup_coding_system here.
10920
10921 * dispextern.h (set_scroll_region, turn_off_insert)
10922 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
10923 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 10924 (delete_tty, updating_frame)
8d9cc0b7
MB
10925 (produce_special_glyphs, produce_glyphs, write_glyphs)
10926 (insert_glyphs): Remove.
10927 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 10928 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 10929 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
10930
10931 * frame.h (enum output_method): Add output_initial.
10932 (struct x_output): Delete.
b8866860
SM
10933 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10934 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
10935 (tty_display): Delete.
10936 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 10937 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
10938 (union output_data): Add tty.
10939 (FRAME_KBOARD): Get the kboard from the terminal.
10940 (FRAME_INITIAL_P): New macro.
10941 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10942 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10943 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10944 New declarations.
8d9cc0b7
MB
10945
10946 * termchar.h (tty_output, tty_display_info): New structures.
10947 (tty_list): Declare.
10948 (FRAME_TTY, CURTTY): New macros.
10949 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10950 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10951 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10952 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10953
10954 * callproc.c: Include frame.h and termhooks.h, for terminal
10955 parameters.
10956 (add_env): New function.
10957 (child_setup): Use it.
b8866860 10958 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10959 (getenv_internal): Fix get_terminal_param call.
10960 (Fgetenv_internal, egetenv): Update doc.
10961 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10962 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10963 strings.
10964 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10965 (getenv_internal): Add terminal parameter.
10966 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10967 (Fgetenv_internal): Add terminal parameter.
10968 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10969 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10970 (set_initial_environment): Rename from set_global_environment.
10971 Store Emacs environment in initial frame parameter.
10972
10973 * xdisp.c (redisplay_internal): Update references to
10974 `previous_terminal_frame'.
10975 (display_mode_line, Fformat_mode_line): Replace calls to
10976 `push_frame_kboard' with `push_kboard'.
10977 (get_glyph_string_clip_rects): Add extra parentheses and
10978 braces to prevent compiler warnings.
10979 (calc_pixel_width_or_height): Add xassert to check that the
10980 frame is alive. Don't call `lookup_image' on a termcap frame.
10981 (message2_nolog, message3_nolog, redisplay_internal)
10982 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10983 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10984 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10985 (Fx_display_pixel_width, Fx_display_pixel_height)
10986 (Fx_display_planes, Fx_display_color_cells)
10987 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10988 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10989 (Fx_display_backing_store, Fx_display_visual_class)
10990 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10991 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10992
10993 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10994 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10995 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10996 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10997 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10998 terminal that is being deleted.
10999 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 11000 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
11001 (Fx_close_connection, Fx_synchronize): Unify argument names with
11002 the rest of the DEFUNs.
11003
11004 * dispnew.c (Fsend_string_to_terminal): Update call to
11005 `get_tty_terminal'.
11006 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 11007 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
11008 FRAME_TERMCAP_P and FRAME_TTY.
11009 (window_change_signal): Don't believe width/height values that are
11010 impossibly small.
11011 (Vinitial_window_system): Rename from Vwindow_system.
11012 (termscript, Wcm, rif): Delete.
11013
11014 * termhooks.h (struct terminal): New struct containing the
11015 previously global text display hooks and new members NAME,
11016 DELETED and PARAM_ALIST.
11017 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
11018 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
11019 (FRAME_RIF): New macros.
11020 (get_terminal_param, get_device): New declarations.
11021 (termscript): Delete declaration.
11022
11023 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
11024 (XTflash, x_free_frame_resources, x_scroll_bar_create)
11025 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
11026 FRAME_FOREGROUND_PIXEL.
11027 (x_fully_uncatch_errors): Disable definition.
11028 (x_scroll_bar_expose): Fix reference to foreground pixel.
11029 (XTread_socket): Disable loop on all X displays.
11030 (x_delete_terminal): Don't set terminal->deleted and let
11031 delete_terminal delete the frames on the terminal.
11032 (x_delete_display): Doc update to reflect changes in
11033 delete_terminal.
11034 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
11035 (deleting_tty): Remove old variable.
11036 (Fsuspend_tty): Call clear_tty_hooks.
11037 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
11038 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
11039 errors on X frames.
11040 (x_catch_errors_unwind): Abort if x_error_message is NULL.
11041 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 11042 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
11043 (XTset_terminal_modes, XTreset_terminal_modes)
11044 (XTread_socket, x_connection_closed, x_term_init)
11045 (x_term_init, x_delete_display): Add terminal parameter.
11046 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
11047 X connections.
11048
bf380f53
GM
11049 * frame.c: Include termchar.h.
11050 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
11051 (Qwindow_system, Qenvironment, Qterm_environment_variable)
11052 (Qdisplay_environment_variable): New vars.
11053 (Fframep): Deal with output_initial.
11054 (Fframe-live-p): Doc fix.
11055 (Fwindow-system): New function.
8d9cc0b7
MB
11056 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
11057 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 11058 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 11059 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
11060 (Fmake_terminal_frame): Handle NULL tty names correctly.
11061 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
11062 (Fdelete_frame): Remove unused variable `count'. Don't allow other
11063 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 11064 (Fframe_with_environment): New function.
b8866860 11065 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
11066 (get_future_frame_param): New function.
11067 (Fmake_terminal_frame): Use it.
2d33f506 11068 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
11069
11070 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
11071 * sysdep.c (reset_sys_modes): Update for renames.
11072
11073 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 11074 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
11075 (syms_of_keyboard): Defsubr them.
11076 (Fset_input_meta_mode, Fset_quit_char): New functions.
11077 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
11078 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
11079 parameter. Use it in call to `read_char'.
b8866860
SM
11080 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
11081 Set wrong_kboard_jmpbuf correctly in recursive calls.
11082 Use current_kboard to access Vkeyboard_translate_table.
11083 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
11084 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
11085 Update longjmp invocations. Remember the original current_kboard,
11086 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
11087 changes it. Comment out unnecessary calls to
11088 `record_single_kboard_state' and `any_kboard_state'.
11089 Update recursive calls.
8d9cc0b7
MB
11090 (wrong_kboard_jmpbuf): Remove global variable.
11091 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
11092 Handle deleted interrupted_kboards correctly; that is a legal
11093 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 11094 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
11095 (any_kboard_state, single_kboard_state)
11096 (push_frame_kboard): Remove function.
11097 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
11098 been deleted. Remove unused variable. Help debugging by not
11099 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
11100 kboard of the selected frame when the stored kboard object has
11101 been deleted before pop_kboard.
11102 (temporarily_switch_to_single_kboard): Change first parameter to a
11103 frame pointer. Throw an error when caller wants to change kboards
11104 while in single_kboard mode. Don't push_kboard if we weren't in
11105 single kboard state. Don't pop_kboard if we popped into any
11106 kboard state.
11107 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11108 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11109 up single_kboard mode.
11110 (Frecursive_edit): Switch to single_kboard mode only in nested
11111 command loops.
b8866860
SM
11112 (cmd_error, command_loop, command_loop_1, timer_check):
11113 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11114 `record_single_kboard_state'.
11115 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11116 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11117 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11118 `fatal_error_signal'.
11119 (record_single_kboard_state): Don't push_kboard if we weren't in
11120 single kboard state. Don't pop_kboard if we popped into any
11121 kboard state.
11122 (push_frame_kboard): Rename to push_kboard.
11123 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11124 (read_avail_input): Read input from all terminals.
11125 (mark_kboards): Also mark Vkeyboard_translate_table.
11126 (kbd_buffer_store_event_hold): Simplify condition.
11127 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11128 (Vkeyboard_translate_table): Move to struct kboard.
11129 (init_kboard): Initialize Vkeyboard_translate_table.
11130 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11131 Vkeyboard_translate_table. Update doc strings. Update docs of
11132 local-function-key-map and function-key-map.
11133
11134 * terminal.c: New file.
11135
11136 * term.c: Include errno.h.
11137 (Vring_bell_function, device_list, initial_device)
11138 (next_device_id, ring_bell, update_begin, update_end)
11139 (set_terminal_window, cursor_to, raw_cursor_to)
11140 (clear_to_end, clear_frame, clear_end_of_line)
11141 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11142 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11143 (syms_of_term): Move their initialization to terminal.c.
11144 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11145 (Ftty_display_color_cells)
11146 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 11147 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
11148 (init_tty, maybe_fatal): New functions.
11149 (Ftty_type): Return nil if terminal is not on a tty instead of
11150 throwing an error. Doc update.
11151 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 11152 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
11153 (delete_tty): Use terminal->deleted.
11154 (tty_set_terminal_modes): Rename from set_terminal_modes.
11155 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11156 (set_scroll_region): Rename to `tty_set_scroll_region'.
11157 (turn_on_insert): Rename to `tty_turn_on_insert'.
11158 (turn_off_insert): Rename to `tty_turn_off_insert'.
11159 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11160 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11161 (toggle_highligh): Rename to `tty_toggle_highlight'.
11162 (background_highlight): Rename to `tty_background_highlight'.
11163 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11164 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11165 (tty_set_scroll_region, tty_background_highlight)
11166 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11167 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11168 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11169 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11170 Add static modifier.
11171 (tty_reset_terminal_modes, tty_set_terminal_window)
11172 (tty_set_scroll_region, tty_background_highlight)
11173 (tty_highlight_if_desired, tty_cursor_to)
11174 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11175 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11176 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11177 renames.
11178
880820fe 111792007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
11180
11181 * keyboard.c: Qrtl is new.
11182 (parse_tool_bar_item): Handle :rtl keyword.
11183 (syms_of_keyboard): Intern :rtl keyword.
11184
11185 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11186
11187 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11188 so no Lisp code is executed.
11189 (file_for_image, find_rtl_image): New functions.
1f204af3 11190 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
11191 (update_frame_tool_bar): If direction is RTL, use RTL image if
11192 defined. Use Gtk stock images if defined.
11193
83cc8d35
YM
111942007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11195
11196 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11197 for nonexistent or zero-width glyph in composition glyph.
11198
e60c4e15
SM
111992007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11200
d7e2a28f
SM
11201 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11202
e60c4e15
SM
11203 * xdisp.c (Finvisible_p): New function.
11204 (syms_of_xdisp): defsubr it.
11205
ee163e6d
JB
112062007-08-24 Juanma Barranquero <lekktu@gmail.com>
11207
11208 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11209 Doc fixes.
11210
90fa408d
YM
112112007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11212
35277b03 11213 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 11214
cac4219c
MR
112152007-08-24 Martin Rudalics <rudalics@gmx.at>
11216
11217 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11218 whether decoding has modified buffer contents.
11219
5fc9fdeb
JR
112202007-08-24 Jason Rumney <jasonr@gnu.org>
11221
11222 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11223 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11224 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11225 (init_svg_functions) [HAVE_NTGUI]: New function.
11226 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11227 (svg_load_image): Use them.
11228 (svg_load_image) [HAVE_NTGUI]: Implement background.
11229
93b23406
YM
112302007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11231
11232 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11233 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11234 (LIBX): Remove @RSVG_LIBS@.
11235 (LIBES): Add $(RSVG_LIBS).
11236
11237 * image.c (svg_load_image): Blend with specified background if exists.
11238 Use IMAGE_BACKGROUND. Add Mac OS Support.
11239
11240 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11241 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11242 Remove macros.
11243 [MAC_OSX] (socket_callback): Do nothing.
11244 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11245 ReceiveNextEvent.
11246 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11247 socket_callback.
11248 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11249
2467875c
GM
112502007-08-22 Glenn Morris <rgm@gnu.org>
11251
ff8da443 11252 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11253
4ab27a43
GM
112542007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11255
11256 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11257
666e0eda
GM
11258 * image.c: Add support for SVG images. Some additional comments
11259 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11260 (svg_image_p): New function to test for SVG image.
11261 (svg_load): New function to load SVG image.
11262 (svg_load_image): New function, helper for svg_load.
11263 (Qsvg): New Lisp_object.
11264 (svg_keyword_index): New enum.
11265 (svg_format): New static `image_keyword' struct.
11266 (svg_type): New static `image_type' struct.
11267 (librsvg/rsvg.h): Include it.
4ab27a43 11268
b636b4c1
SM
112692007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11272
9ecb827b
SM
112732007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11274
1d064697
SM
11275 * lread.c (Qold_style_backquotes): New var.
11276 (syms_of_lread): Init and staticpro it.
11277 (load_warn_old_style_backquotes): New fun.
11278 (Fload): Use them to warn about old style backquotes.
11279 (end_of_file_error, Fload): Remove unused vars.
11280
5772ed4b
SM
11281 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11282
9ecb827b 11283 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11284 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11285 (read1): Set it when we find an old-style (back)quote.
11286
32e1c7b1
JR
112872007-08-22 Jason Rumney <jasonr@gnu.org>
11288
11289 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11290
b8fa755b
KY
112912007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11292
11293 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11294
1283140e
RS
112952007-08-19 Richard Stallman <rms@gnu.org>
11296
11297 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11298
2c4685ee
AS
112992007-08-19 Andreas Schwab <schwab@suse.de>
11300
11301 * alloc.c (pure): Round PURESIZE up.
11302
880820fe 113032007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11304
11305 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11306 active frame.
11307
6e33efc4
RS
113082007-08-16 Richard Stallman <rms@gnu.org>
11309
11310 * eval.c (Fcommandp): Add parens to clarify.
11311
11312 * minibuf.c (Fall_completions): Use enum for type of table.
11313
11314 * emacs.c (USAGE2): Improve text.
11315
fcf8ff2e
GM
113162007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11317
5205ee62
GM
11318 * term.c (tty_default_color_capabilities): Declare static
11319 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11320
880820fe 113212007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11322
11323 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11324 to gtk_toolbar_insert.
11325
4a181359
SM
113262007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11327
1bc99c9c
SM
11328 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11329
4a181359
SM
11330 * insdel.c (reset_var_on_error): New fun.
11331 (signal_before_change, signal_after_change):
11332 Use it to reset (after|before)-change-functions to nil in case of error.
11333 Bind inhibit-modification-hooks to t.
11334 Don't bind (after|before)-change-functions to nil while they run.
11335
6c28435c
YM
113362007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11337
11338 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11339 filling pixmap with stippled background.
11340
ad3b3e02
YM
113412007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11342
11343 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11344 Don't use invisible frame as parent window for repositioning.
11345
a22dec27
SM
113462007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * print.c (new_backquote_output): Rename from old_backquote_output.
11349 (print): Inverse its logic (according to its name) so as to match the
11350 behavior of new_backquote_flag in lread.c.
11351
7b7d07bb
YM
113522007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11353
11354 * gmalloc.c (posix_memalign): New function.
11355
11356 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11357 ActivateControl/DeactivateControl here.
11358 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11359 frame-notice-user-settings is non-nil.
11360 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11361 for kEventParamFMFontStyle.
11362 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11363 mac_pass_command_to_system and mac_pass_control_to_system here.
11364 (XTread_socket): Call ActivateControl/DeactivateControl here.
11365 (XTread_socket) [TARGET_API_MAC_CARBON]:
11366 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
11367 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11368 for window repositioning.
7b7d07bb 11369
22e9fe24
GM
113702007-08-08 Glenn Morris <rgm@gnu.org>
11371
11372 * Replace `iff' in doc-strings and comments.
11373
ae494350
CY
113742007-08-07 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11377
6f2528d8
MR
113782007-08-07 Martin Rudalics <rudalics@gmx.at>
11379
11380 * fileio.c (Finsert_file_contents): Run format-decode and
11381 after_insert_file_functions on entire buffer when REPLACE is
11382 non-nil and inhibit modification_hooks and point_motion_hooks.
11383 For consistency, run after_insert_file_functions iff something
11384 got inserted. Move signal_after_change and update_compositions
11385 after code running after_insert_file_functions. Make sure that
6b8e474c 11386 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11387
3ceeb306
YM
113882007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11389
11390 * emacs.c (main)
11391 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11392 Call malloc_enable_thread on interactive startup.
11393
11394 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11395 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11396 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11397 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11398 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11399 New functions.
11400
ca5e6fd5
CY
114012007-08-06 Chong Yidong <cyd@stupidchicken.com>
11402
32bfce5d
CY
11403 * xdisp.c (redisplay_window): When restoring original buffer
11404 position, make sure it is still valid.
11405
ca5e6fd5
CY
11406 * image.c (png_load): Ignore png-supplied background color.
11407
a5b11587
YM
114082007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11409
11410 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11411 Use kCFAbsoluteTimeIntervalSince1970.
11412
11413 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11414 New variable.
11415 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11416 event loop should be quit.
11417 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11418 Quit dialog event loop if quit_dialog_event_loop is set.
11419
11420 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11421 (Selection): New typedef. Use instead of ScrapRef.
11422 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11423 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11424 (mac_clear_selection): Rename from clear_scrap.
11425 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11426 scrap_has_target_type. All uses changed.
a5b11587
YM
11427 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11428 (mac_selection_has_target_p): New functions.
11429 (mac_put_selection_value): Rename from put_scrap_string.
11430 (mac_get_selection_value): Rename from get_scrap_string.
11431 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11432 (put_scrap_private_timestamp, scrap_has_target_type)
11433 (get_scrap_private_timestamp): Remove functions.
11434 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11435 (x_own_selection, x_get_local_selection):
11436 Use mac_valid_selection_value_p.
11437 (x_own_selection): Don't use put_scrap_private_timestamp.
11438 Record OWNERSHIP-INFO into Vselection_alist instead.
11439 (x_get_local_selection): Don't check type if request is local.
11440 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11441 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11442
880820fe 114432007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11444
11445 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11446 add comment explaining why.
11447
73ff9d42
RS
114482007-08-03 Richard Stallman <rms@gnu.org>
11449
11450 * fileio.c (Fvisited_file_modtime): Use make_time.
11451
54ed9a2d 114522007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11453
11454 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11455 build.
11456
65a9c8e2
SM
114572007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11458
11459 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11460
c5925799
KY
114612007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11462
11463 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11464
adef3de7
RS
114652007-07-30 Richard Stallman <rms@gnu.org>
11466
11467 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11468
880820fe 114692007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11470
11471 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11472
a10421a1
NR
114732007-07-28 Nick Roberts <nickrob@snap.net.nz>
11474
11475 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11476 remote default-directory.
11477
11478 * buffer.c (mode-line-format): Update doc string.
11479
0cb1ae20
YM
114802007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11481
11482 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11483 scroll bar gap.
11484 (x_scroll_bar_create): Set bar->fringe_extended_p.
11485 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11486 on frame edge. Check fringe background extension. Don't clear
11487 extended fringe background area.
11488
11489 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11490 (w32_fill_area): Enclose multiple statements with do ... while (0).
11491
11492 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11493 Extend fringe background to scroll bar gap.
11494 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11495 Set bar->fringe_extended_p.
11496 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11497 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11498 background extension. Don't clear extended fringe background area.
11499
11500 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11501 New member fringe_extended_p.
11502
cacc7b51
GM
115032007-07-25 Glenn Morris <rgm@gnu.org>
11504
11505 * Relicense all FSF files to GPLv3 or later.
11506
11507 * COPYING: Switch to GPLv3.
11508
89835619
SM
115092007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11510
c4f46926
SM
11511 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11512
11513 * data.c (Finteractive_form): Check for the presence of an
11514 `interactive-form' symbol property more thoroughly.
11515
11516 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11517 present, analogous to the function-documentation property.
11518
ee04257d
JR
115192007-07-24 Jason Rumney <jasonr@gnu.org>
11520
11521 * w32fns.c (x_real_positions): Get real position from OS instead of
11522 calculating it.
11523
50624218
JR
115242007-07-23 Jason Rumney <jasonr@gnu.org>
11525
11526 * filelock.c (current_lock_owner): Allow for @ sign in username.
11527
3650f60e
NR
115282007-07-22 Nick Roberts <nickrob@snap.net.nz>
11529
11530 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11531 remote default-directory.
11532
11533 * buffer.c (mode-line-format): Describe above case in doc string.
11534
1e899515 115352007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11536
75be5258
EZ
11537 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11538 Define if not defined.
11539
2b6e2f4d
JR
115402007-07-18 Jason Rumney <jasonr@gnu.org>
11541
11542 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11543
23dacf80
JB
115442007-07-18 Richard Stallman <rms@gnu.org>
11545
11546 * data.c (Fsetq_default): Doc fix.
11547
11548 * eval.c (Fsetq): Doc fix.
11549
115502007-07-18 Juanma Barranquero <lekktu@gmail.com>
11551
11552 * coding.c (Ffind_operation_coding_system):
11553 * eval.c (For, Fand): Doc fixes.
880820fe 11554 Reported by Johan Bockgård.
23dacf80 11555
880820fe 115562007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11557
23dacf80 11558 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11559
23dacf80 11560 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11561
11562 * xterm.c (x_ewmh_activate_frame): New function.
11563 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11564
71ec17e6
MR
115652007-07-17 Martin Rudalics <rudalics@gmx.at>
11566
11567 * window.c (Fdisplay_buffer): If largest or LRU window is the
11568 only window, split it even if it is not eligible for splitting.
11569 This restores the original behavior broken by the 2007-07-15
11570 change.
11571
e9818042
GM
115722007-07-17 Glenn Morris <rgm@gnu.org>
11573
11574 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11575 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11576 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11577 constituents. Doc fix.
11578
e6fca843
SM
115792007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11580
11581 * process.c (Fstart_process, Fmake_network_process)
11582 (read_process_output): Fix up last changes.
11583
b5d2b4ab
EZ
115842007-07-16 Eli Zaretskii <eliz@gnu.org>
11585
11586 * makefile.w32-in (clean): Don't delete *~.
11587
413a79ad
AS
115882007-07-16 Andreas Schwab <schwab@suse.de>
11589
11590 * window.c (Fdisplay_buffer): Use NILP.
11591 (Fset_window_scroll_bars): Likewise.
11592
f1de8c77
MR
115932007-07-15 Martin Rudalics <rudalics@gmx.at>
11594
11595 * window.c (window_min_size_2): New function.
11596 (window_min_size_1, size_window, Fdisplay_buffer)
11597 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11598 windows without mode- or header-lines when window-min-height is
11599 too small.
11600 (size_window): Reset nodelete_p after testing it, following an
11601 earlier note by Kim F. Storm.
11602 (display_buffer): Do not set split_height_threshold to twice the
11603 value of window_min_height to avoid changing the value of a
11604 customizable variable. Rather explicitly check whether the
11605 height of the window that shall be splitted is at least as large
11606 as split_height_threshold.
1af74d06
MB
11607 (Fwindow_full_width_p): New defun.
11608 (syms_of_window): Defsubr it.
d31053f9 11609
1af74d06 11610 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11611
5e1ab613
JR
116122007-07-14 Jason Rumney <jasonr@gnu.org>
11613
11614 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11615
f01cbfdd
RS
116162007-07-14 Richard Stallman <rms@gnu.org>
11617
11618 * eval.c (maybe_call_debugger): New function.
11619 (find_handler_clause): Use maybe_call_debugger.
11620 Call it when the handler says `debug'.
11621 Eliminate DEBUGGER_VALUE_PTR.
11622 (Fsignal): Eliminate debugger_value.
11623 (Qdebug): New variable.
11624 (syms_of_eval): Initialize it.
11625
1bab435a
JB
116262007-07-14 Juanma Barranquero <lekktu@gmail.com>
11627
11628 * eval.c (Fprogn):
11629 * keyboard.c (Ftrack_mouse):
11630 * print.c (Fwith_output_to_temp_buffer):
11631 * window.c (Fsave_window_excursion): Doc fix.
11632
be436d23
SM
116332007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11634
11635 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11636
60f0fb11
SM
116372007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11638
11639 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11640 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11641 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11642 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11643 Remove unused encoding_carryover.
11644 * process.c: Adjust all functions accordingly.
11645
d8b18043
RS
116462007-07-12 Richard Stallman <rms@gnu.org>
11647
11648 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11649
d5781bb6
JR
116502007-07-11 Jason Rumney <jasonr@gnu.org>
11651
11652 * makefile.w32-in (LIBS): Include OLE32.
11653
11654 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11655 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11656
5bb7dfee
SM
116572007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11658
11659 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11660 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11661 from a Lisp_Object into a bare pointer.
11662 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11663 Adjust the code correspondingly.
11664
11665 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11666
11667 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11668 (term_show_mouse_face): Remove unused var `j'.
11669 (handle_one_term_event): Remove unused vars `i' and `j'.
11670 Don't cast return value of ttyname since it's not necessary.
11671
a1be1ce8
SM
116722007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11673
5045e68e
SM
11674 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11675 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11676
8071c00f
SM
11677 * fns.c (map_char_table): Use an array of int for `indices' rather than
11678 an array of Lisp_Objects (which are only ever integers anyway).
11679 (Fmap_char_table): Update caller.
11680 * lisp.h: Update prototype.
11681 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11682 * fontset.c (Ffontset_info):
11683 * casetab.c (set_case_table): Update callers.
11684
11685 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11686
fab84e3c
SM
11687 * keymap.c (struct accessible_keymaps_data)
11688 (struct where_is_internal_data): New structures.
11689 (accessible_keymaps_1, where_is_internal_1): Use them to change
11690 interface to adhere to the one used by map_keymap.
11691 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11692 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11693
a1be1ce8
SM
11694 * keymap.h (map_keymap_function_t): More informative prototype.
11695
ef887810
RS
116962007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11697
11698 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11699 (looking_at_1): Don't change search_regs and last_thing_searched
11700 if `inhibit-changing-match-data' is non-nil.
11701 (string_match_1, search_buffer, set_search_regs): Likewise.
11702 (syms_of_search): Add Lisp level definition for
11703 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11704 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11705 start and end of the match, instead of using values in search_regs.
ef887810 11706
4d02fc25
SM
117072007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11708
11709 * minibuf.c (Fcompleting_read): New value `confirm-only'
11710 for `require-match'.
11711
fe45b81f
SM
117122007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11713
11714 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11715 part of the 2007-06-27 change to syms_of_fileio.
11716
a56dd283
YM
117172007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11718
11719 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11720 Check WINDOWP before using XWINDOW. Consolidate return statements.
11721
0cf9f5b5
RS
117222007-06-27 Richard Stallman <rms@gnu.org>
11723
11724 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11725
a66f285a
JB
117262007-06-27 Juanma Barranquero <lekktu@gmail.com>
11727
11728 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11729
8d0d84d2
YM
117302007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11731
11732 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11733 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11734 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11735 (_free_internal, memalign): Use them.
11736 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11737 Initialize to PTHREAD_MUTEX_INITIALIZER.
11738 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11739 (morecore_nolock): Rename from morecore. All uses changed.
11740 Use only nolock versions of internal allocation functions.
11741 (_malloc_internal_nolock, _realloc_internal_nolock)
11742 (_free_internal_nolock): New functions created from
11743 _malloc_internal, _realloc_internal, and _free_internal.
11744 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11745 Copy hook value to automatic variable before its use.
11746 (memalign): Copy hook value to automatic variable before its use.
11747
5a0bbd9a
KH
117482007-06-26 Kenichi Handa <handa@m17n.org>
11749
11750 * coding.c (Ffind_operation_coding_system): Docstring improved.
11751 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11752
9a51747b
DK
117532007-06-25 David Kastrup <dak@gnu.org>
11754
11755 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11756 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11757 cater for additional parameter.
11758
11759 * keymap.h: Adjust number of parameters to `current-active-maps'.
11760
11761 * doc.c (Fsubstitute_command_keys): Adjust call of
11762 `current-active-maps'.
11763
e4305426
DK
117642007-06-25 David Kastrup <dak@gnu.org>
11765
11766 * callint.c (Fcall_interactively): Make the parsing of interactive
11767 specs somewhat more readable.
11768
511a18d9
YM
117692007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11770
11771 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11772 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11773 if extended background has already been filled.
11774
512eb161
YM
117752007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11776
11777 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
11778 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
11779
11780 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
11781 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
11782 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
11783 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
11784 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
11785 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
11786 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
11787 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
11788 Run timers during dialog popup.
11789 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
11790
2386b1f1
JR
117912007-06-21 Jason Rumney <jasonr@gnu.org>
11792
11793 * image.c (convert_mono_to_color_image): Swap fore and background.
11794
fab8b787
JR
117952007-06-20 Jason Rumney <jasonr@gnu.org>
11796
11797 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
11798 (w32_free_bdf_font): Unmap memory not handle.
11799
15bdd7a0 118002007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
11801
11802 * gmalloc.c (__morecore): Fix the declaration to comply with the
11803 definition.
11804
1bb8a291
JB
118052007-06-20 Juanma Barranquero <lekktu@gmail.com>
11806
11807 * w32term.c (w32_delete_display): Remove leftover declaration.
11808 (w32_define_cursor, w32_initialize): Make static.
11809
11810 * w32.c (_wsa_errlist): Fix typo in error message.
11811 (init_environment): Ignore any environment variable from the
11812 registry having a null value.
11813
92648dea
GM
118142007-06-20 Glenn Morris <rgm@gnu.org>
11815
11816 * Makefile.in (LIBGIF): Default to -lgif.
11817
ff25d115
JR
118182007-06-17 Jason Rumney <jasonr@gnu.org>
11819
11820 * w32menu.c (add_menu_item): Don't use multibyte string functions on
11821 unicode strings.
11822
a1a578a5
JB
118232007-06-16 Juanma Barranquero <lekktu@gmail.com>
11824
11825 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
11826 Fix typo in docstring.
11827
af41f8a8
EZ
118282007-06-16 Eli Zaretskii <eliz@gnu.org>
11829
11830 * w32menu.c (add_menu_item): Escape `&' characters in menu items
11831 and their keybindings.
11832
8b29cab9
CY
118332007-06-15 Chong Yidong <cyd@stupidchicken.com>
11834
11835 * composite.c (update_compositions): Fix last fix.
11836
c433c134
JR
118372007-06-14 Jason Rumney <jasonr@gnu.org>
11838
11839 * w32.c (get_process_times_fn): New function pointer.
11840 (globals_of_w32): Intialize it if present in kernel32.dll.
11841 (w32_get_internal_run_time): New function.
11842
11843 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
11844
553d3164
KH
118452007-06-14 Kenichi Handa <handa@etlken.m17n.org>
11846
11847 * composite.c (update_compositions): Check the validness of
11848 compositions.
11849
446ba96f
YM
118502007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11851
11852 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
11853 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
11854
11855 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
11856 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
11857
11858 * macgui.h (USE_MAC_TOOLBAR): New define.
11859
11860 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11861 Return immediately unless popup is activated.
11862
11863 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
11864 background to scroll bar gap.
11865 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
11866 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
11867 scroll bars on frame edge. Check fringe background extension.
11868 Don't clear extended fringe background area.
11869 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
11870 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
11871 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
11872 [USE_MAC_TOOLBAR]: New macros.
11873 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
11874 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
11875 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
11876 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
11877 [USE_MAC_TOOLBAR]: New functions.
11878 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
11879 manually if previous repositioning has failed.
11880 (mac_handle_keyboard_event): Use precomputed event kind.
11881 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
11882 as tool bar item click. Handle mouse movement over tool bar items.
11883
11884 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
11885 toolbar_win_gravity.
11886 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
11887 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
11888 Add externs.
11889
11890 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
11891 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
11892
9720173f
CY
118932007-06-14 Chong Yidong <cyd@stupidchicken.com>
11894
11895 * image.c (search_image_cache): Remove unused variable.
11896
1217dd00
CY
118972007-06-13 Chong Yidong <cyd@stupidchicken.com>
11898
11899 * xfns.c, xmenu.c: Link to xaw3d if available.
11900
c5b8e0ea
YM
119012007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11902
11903 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
11904 frame_foreground and frame_background.
11905
11906 * image.c (lookup_image): Save frame foreground and background colors.
11907 (search_image_cache): Check if saved and current frame colors match.
11908
c69b0314
SM
119092007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11910
11911 * regex.c (regex_compile): Remove the `regnum' counter.
11912 Use bufp->re_nsub instead. Add support for \(?N:RE\).
11913
c9612b8e
SM
119142007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11915
11916 * term.c: Include intervals.h to declare Fget_text_property.
11917
843d2458
JR
119182007-06-10 Jason Rumney <jasonr@gnu.org>
11919
11920 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
11921
1e0d2d60 119222007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
11923
11924 * callint.c (Fcall_interactively):
11925 * editfns.c (Fdelete_and_extract_region):
11926 * fileio.c (Fread_file_name):
11927 * fns.c (Fmapconcat):
11928 * keyboard.c (cmd_error_internal):
11929 * keymap.c (Fkey_description):
11930 * lread.c (openp):
11931 * minibuf.c (read_minibuf):
11932 * search.c (wordify):
11933 * sunfns.c (sel_read):
11934 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
11935 * xfns.c (x_default_scroll_bar_color_parameter):
11936 * xmenu.c (menu_help_callback):
11937 * xselect.c (Fx_get_atom_name):
11938 * xterm.c (x_term_init): Use empty_unibyte_string.
11939
15bdd7a0 119402007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11941
11942 * alloc.c (init_strings): Initialize canonical empty strings.
11943 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11944 canonical empty string when the requested size is 0.
11945
11946 * emacs.c (empty_unibyte_string): Rename from empty_string.
11947 (empty_multibyte_string): New canonical empty string.
11948 (syms_of_emacs): Don't initialize empty_string.
11949
11950 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11951 string, if appropriate.
11952 (empty_unibyte_string, empty_multibyte_string): New externs.
11953 (empty_string): Remove extern.
11954
11955 * lread.c (syms_of_lread): Use empty_unibyte_string.
11956
42c4c67a
JR
119572007-06-07 Jason Rumney <jasonr@gnu.org>
11958
11959 * s/ms-w32.h: Don't define HAVE_TZNAME.
11960
11961 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11962
aa8280d3
YM
119632007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11964
11965 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11966
11967 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11968 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11969
11970 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11971 Don't call next handler.
11972 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11973 Remove argument. Install handler to application.
11974 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11975 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11976 FRAME_OUTER_TO_INNER_DIFF_Y.
11977 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11978 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11979 [HAVE_DIALOGS]: New macros.
11980 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11981 Use them.
11982 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11983
11984 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11985 init_service_handler. All callers changed. Return OSStatus value.
11986
11987 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11988 All callers changed so as not to call SetPortWindowPort.
11989 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11990 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11991 mac_draw_string_common.
11992 (mac_draw_image_string_qd): Likewise.
11993 (mac_draw_string_common): Use them. Add INLINE.
11994 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11995 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11996 GetGlobalMouse.
11997 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11998 and FRAME_OUTER_TO_INNER_DIFF_Y.
11999 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
12000 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
12001 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
12002 repositioning window to mac_handle_window_event.
12003 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
12004 saving window location to mac_handle_window_event
12005 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
12006 (install_menu_target_item_handler): Remove argument in extern.
12007 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
12008 Also accept command events.
12009 (do_keystroke): New function created from XTread_socket.
12010 (init_command_handler): Remove functions.
12011 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
12012 and save window location by kEventWindowShowing and kEventWindowHiding
12013 handlers here. Don't call next handler for window state change and
12014 focus events.
12015 (mac_handle_application_event, mac_handle_keyboard_event)
12016 [TARGET_API_MAC_CARBON]: New functions.
12017 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
12018 kEventWindowShowing and kEventWindowHiding events. Move installation
12019 of mouse, font, text input and menu target item handlers to
12020 install_application_handler.
12021 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
12022 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12023 New function.
12024 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12025 Register it.
c9612b8e
SM
12026 (XTread_socket) [TARGET_API_MAC_CARBON]:
12027 Consolidate SendEventToEventTarget calls.
12028 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
12029 Move application activation handler to mac_handle_application_event.
12030 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
12031 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
12032 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
12033 init_command_handler. Call install_application_handler.
12034
12035 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
12036 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
12037
6926c954
GM
120382007-06-07 Glenn Morris <rgm@gnu.org>
12039
12040 * emacs.c (main): Use `emacs-copyright' in --version output.
12041
6fe04c89
CY
120422007-06-06 Chong Yidong <cyd@stupidchicken.com>
12043
c9612b8e 12044 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 12045
7eb0d727
YM
120462007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12047
12048 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
12049
12050 * macgui.h: Replace WindowPtr with WindowRef.
12051
12052 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12053 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12054 Replace ControlHandle with ControlRef.
12055 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
12056
12057 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
12058 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
12059 Replace ControlHandle with ControlRef.
12060 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
12061 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
12062
12063 * macterm.h (struct scroll_bar): Rename member control_handle_low
12064 and control_handle_high to control_ref_low and control_ref_high.
12065 All uses changed.
12066 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
12067 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
12068 respectively. All uses changed.
12069 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
12070 (install_window_handler, remove_window_handler): Replace WindowPtr
12071 with WindowRef in externs.
12072
65fddb74
JB
120732007-06-05 Juanma Barranquero <lekktu@gmail.com>
12074
12075 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
12076
db1213a9
NR
120772007-06-03 Nick Roberts <nickrob@snap.net.nz>
12078
12079 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
12080
65fddb74 12081 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
12082 Condition on HAVE_GPM too.
12083
12084 * term.c (term_mouse_highlight): Remove unused variables.
12085 (Fterm_open_connection): Set gpm_zerobased to 1.
12086 (term_mouse_movement, term_mouse_click, handle_one_term_event):
12087 Use zero based co-ordinates.
12088 (handle_one_term_event): Report a drag as mouse movement too.
12089
12090 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
12091
d94df25b
CY
120922007-06-03 Chong Yidong <cyd@stupidchicken.com>
12093
12094 * image.c (search_image_cache): New function. Require background
12095 color match if background color is unspecified in the image spec.
12096 (uncache_image, lookup_image): Use it.
12097
4797b6d9
JB
120982007-06-01 Juanma Barranquero <lekktu@gmail.com>
12099
12100 * window.c (Fshrink_window): Reflow docstring.
12101
1ffe7343
NR
121022007-06-02 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * Version 22.1 released.
12105
121062007-06-01 Richard Stallman <rms@gnu.org>
12107
12108 * xfns.c (x_encode_text): Add GCPRO.
12109
121102007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12111
12112 * xfns.c (x_set_name_internal): Save encoded name before
12113 x_encode_text in case string data is relocated.
12114
121152007-05-31 Richard Stallman <rms@gnu.org>
12116
12117 * buffer.c (syms_of_buffer): Doc fix.
12118
121192007-05-30 Nick Roberts <nickrob@snap.net.nz>
12120
12121 * sysdep.c (init_sys_modes): Add rather than replace with
12122 O_NONBLOCK.
12123
12124 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12125 term_mouse_moveto.
12126
12127 * termhooks.h (term_mouse_moveto): New extern.
12128
12129 * term.c (mouse_face_window): Rename...
12130 (Qmouse_face_window): ...to this.
12131 (term_show_mouse_face, term_clear_mouse_face)
12132 (term_mouse_highlight): Use Qmouse_face_window.
12133 (term_mouse_moveto): New function.
12134 (term_mouse_position): Make it work.
12135 (syms_of_term): Uncomment assignment to mouse_position_hook.
12136 Staticpro Qmouse_face_window.
12137
121382007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12139
12140 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12141 around current_column call.
12142
121432007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12144
12145 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12146 * xdisp.c (next_element_from_buffer):
12147 * window.c (delete_window):
12148 * term.c (term_mouse_highlight):
12149 * msdos.c (getdefdir):
12150 * macterm.c (mac_create_bitmap_from_bitmap_data)
12151 (init_font_name_table):
12152 * fns.c (Fsxhash):
12153 * data.c (Fmake_local_variable):
12154 * ccl.c (ccl_driver): Likewise.
12155
121562007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12157
12158 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12159 Call mac_wakeup_from_rne on window size change.
12160
121612007-05-25 Chong Yidong <cyd@stupidchicken.com>
12162
12163 * image.c (uncache_image): Fix typo.
12164
121652007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12166
12167 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12168
121692007-05-22 Richard Stallman <rms@gnu.org>
12170
12171 * xterm.c (x_connection_closed): Remove NO_RETURN.
12172
121732007-05-22 Martin Rudalics <rudalics@gmx.at>
12174
12175 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12176
121772007-05-21 Chong Yidong <cyd@stupidchicken.com>
12178
12179 * image.c (uncache_image): New function.
12180 (Fimage_refresh): New function.
12181
880820fe 121822007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12183
12184 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12185
121862007-05-20 Nick Roberts <nickrob@snap.net.nz>
12187
12188 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12189 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12190
121912007-05-20 Nick Roberts <nickrob@snap.net.nz>
12192
12193 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12194 conditional on [HAVE_GPM_H].
12195
121962007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12197
12198 * syntax.c (skip_chars): Update syntax-table only after we checked that
12199 the new location is valid.
12200
122012007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12202
12203 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12204 mac_get_window_bounds.
12205
122062007-05-20 Nick Roberts <nickrob@snap.net.nz>
12207
12208 * Makefile.in (LIBGPM): Allow it to be set from configure.
12209 If set then link Emacs with it.
12210
12211 * config.in: Regenerate.
12212
12213 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12214 New externs.
12215
12216 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12217 Include gpm.h.
12218 (handle_one_term_event, term_gpm): New externs.
12219
12220 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12221 and allow it to be interrupted by SIGIO.
12222
12223 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12224 (wait_reading_process_output): Wait on gpm_fd too.
12225 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12226 (add_gpm_wait_descriptor_called_flag): New variable.
12227 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12228
12229 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12230 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12231 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12232 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12233 (make_lispy_event): Add case GPM_CLICK_EVENT.
12234 (read_avail_input): Handle mouse input.
12235
12236 * term.c (write_glyphs_with_face): New function.
12237 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12238 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12239 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12240 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12241 (last_mouse_x, last_mouse_y): New variables.
12242 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12243 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12244 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12245 (Fterm_close_connection): New functions.
12246 (term_init): Initialise mouse_face_window.
12247
122482007-05-19 Chong Yidong <cyd@stupidchicken.com>
12249
12250 * xdisp.c (redisplay_window): If first window line is a
12251 continuation line, recompute the new window start instead of
12252 recentering.
12253
122542007-05-18 Glenn Morris <rgm@gnu.org>
12255
12256 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12257 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12258
122592007-05-17 Glenn Morris <rgm@gnu.org>
12260
12261 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12262
122632007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12264
12265 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12266 dead key repeat and up events.
12267
122682007-05-14 Chong Yidong <cyd@stupidchicken.com>
12269
12270 * image.c (pbm_load): Check image size for monochrome pbm.
12271
122722007-05-13 Chong Yidong <cyd@stupidchicken.com>
12273
12274 * xterm.c (XTread_socket): Revert last change.
12275
122762007-05-12 Chong Yidong <cyd@stupidchicken.com>
12277
12278 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12279
12280 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12281
122822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12283
12284 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12285 mixup (YAILOM).
12286
122872007-05-07 Andreas Schwab <schwab@suse.de>
12288
12289 * keymap.c (Flookup_key): Fix typo in last change.
12290
122912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12292
12293 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12294 mapping for unibyte strings.
12295
122962007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12297
12298 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12299 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12300
123012007-04-29 Richard Stallman <rms@gnu.org>
12302
12303 * insdel.c (replace_range): For undo, record insertion first.
12304
123052007-04-29 Andreas Schwab <schwab@suse.de>
12306
12307 * lisp.h (VECSIZE): Use OFFSETOF.
12308
123092007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12310
12311 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12312 disabled lines.
12313
123142007-04-28 Richard Stallman <rms@gnu.org>
12315
12316 * lread.c (read_escape): In a string, \s is always space.
12317
880820fe 123182007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12319
12320 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12321
12322 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12323 submenu for menu bar items.
12324
382c648d 12325See ChangeLog.10 for earlier changes.
6922b018
KH
12326
12327;; Local Variables:
880820fe 12328;; coding: utf-8
33462dfa 12329;; add-log-time-zone-rule: t
6922b018 12330;; End:
2a34a036 12331
59ce725a 12332 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12333
12334 This file is part of GNU Emacs.
12335
5a1dde61 12336 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12337 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12338 the Free Software Foundation, either version 3 of the License, or
12339 (at your option) any later version.
7f6d64f8
GM
12340
12341 GNU Emacs is distributed in the hope that it will be useful,
12342 but WITHOUT ANY WARRANTY; without even the implied warranty of
12343 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12344 GNU General Public License for more details.
12345
12346 You should have received a copy of the GNU General Public License
5a1dde61 12347 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12348
28f60c3d 12349;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40