* font.c (font_parse_fcname): Fix last change; accept decimal
[bpt/emacs.git] / src / ChangeLog
CommitLineData
cc02ebe1
CY
12008-06-11 Chong Yidong <cyd@stupidchicken.com>
2
3 * font.c (font_parse_fcname): Fix last change; accept decimal
4 points in font size.
5
351ccb76
JR
62008-06-10 Jason Rumney <jasonr@gnu.org>
7
5d6333d5
JB
8 * w32uniscribe.c (add_opentype_font_name_to_list): Skip non unicode
9 fonts.
351ccb76 10
f473ed6f
CY
112008-06-10 Chong Yidong <cyd@stupidchicken.com>
12
13 * xfns.c (Fx_font_dialog): New function.
14
5d6333d5 15 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
16 xg_file_response_callback.
17 (pop_down_dialog): Rename from pop_down_file_dialog.
18 (xg_get_file_name): Callers changed.
19 (xg_get_font_name): New function.
20
5d6333d5 21 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 22
2a3bd2e1
SM
232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
24
25 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
26 x_underline_minimum_display_offset.
27 (syms_of_xdisp): Declare it here rather than in xterm.c.
28 * dispextern.h (underline_minimum_offset): Declare it.
29 * w32term.c (x_draw_glyph_string): Use it.
30 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
31 (syms_of_xterm): Don't declare it any more.
32 (x_draw_glyph_string): Adjust to the new name.
33
d5dc6163
SM
342008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
35
36 * xterm.c (x_underline_minimum_display_offset): New var.
37 (x_draw_glyph_string): Use it.
38 (syms_of_xterm): Declare it.
39
0abdd197
CY
402008-06-10 Chong Yidong <cyd@stupidchicken.com>
41
42 * font.c (font_parse_fcname): Accept GTK-style font names too.
43
a1562258
SM
442008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
45
928b5acc
SM
46 * dired.c (file_name_completion): Don't return t if the match is exact
47 but with different capitalization.
48 * minibuf.c (Ftry_completion): Simplify.
49
a1562258
SM
50 * window.c (Vwindow_point_insertion_type): New var.
51 (set_window_buffer): Use it.
52 (syms_of_window): Init and export it to Lisp.
53
9552dbd1
KH
542008-06-10 Kenichi Handa <handa@m17n.org>
55
56 * font.h (font_intern_prop): Prototype adjusted.
57
58 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
59 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
60 Adjust for the change of font_intern_prop.
9552dbd1 61
a1562258
SM
62 * ftfont.c (ftfont_pattern_entity):
63 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
64 (w32_registry):
65 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
66 the change of font_intern_prop.
67
8993ad2e
JB
682008-06-09 Juanma Barranquero <lekktu@gmail.com>
69
70 * w32menu.c (digest_single_submenu): Declare extern.
71
0c2258fc
JR
722008-06-09 Jason Rumney <jasonr@gnu.org>
73
a1562258 74 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 75
a1562258
SM
76 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
77 (parse_single_submenu): Remove.
78 (digest_single_submenu): Remove.
79 (syms_of_w32menu): Don't initialise variables that have moved
80 to menu.c.
81 (set_frame_menubar): Sync with version in xmenu.c.
82 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 83
8993ad2e
JB
84 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
85 Make static again.
0c2258fc 86
02246cb8
JR
872008-06-09 Jason Rumney <jasonr@gnu.org>
88
8993ad2e
JB
89 Changes to w32 files related to the move of common menu code
90 to menu.c on 2008-06-08 by Chong Yidong.
91
92 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
93 defs to w32gui.h.
94 (single_keymap_panes, push_menu_item, push_menu_pane):
95 Make globally visible.
96
97 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc):
98 (local_free, malloc_widget_value, free_widget_value):
99 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE):
100 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION):
101 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP):
102 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
103 (menu_items, menu_items_allocated, menu_items_used):
104 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
105 (init_menu_items, finish_menu_items, discard_menu_items)
106 (grow_menu_items, push_submenu_start, push_submenu_end)
107 (push_left_right_boundary, push_menu_pane, push_menu_item)
108 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
109 (free_menubar_widget_tree_value, parse_single_submenu):
110 (update_submenu_strings): Remove functions.
111 (xmalloc_widget_value): Remove and declare extern.
112
113 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
114 (OBJ1): Build it.
115
116 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
117 (local_heap, local_alloc, local_free, malloc_widget_value)
118 (free_widget_value): Define here.
02246cb8 119
9e1bb909
KH
1202008-06-09 Kenichi Handa <handa@m17n.org>
121
366664ad
KH
122 * font.h (Qascii_0): Extern it.
123
9e1bb909
KH
124 * font.c (Qascii_0): New variable.
125 (syms_of_font): DEFSYM it.
126 (font_open_by_name): If the registry "iso8859-1" fails, try also
127 "ascii-0".
128
129 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
130
b2ee479e
KH
1312008-06-08 Kenichi Handa <handa@m17n.org>
132
8f440b79 133 * .gdbinit (xfont): New command.
b2ee479e 134
01ef9d36
AS
1352008-06-08 Andreas Schwab <schwab@suse.de>
136
a4240420
AS
137 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
138 * Makefile.in (menu.o): Update dependencies.
139
0181bf66 140 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
141 * emacs.c (main): Always call syms_of_menu.
142 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
143
c07cbae6
CY
1442008-06-08 Chong Yidong <cyd@stupidchicken.com>
145
146 * Makefile.in: Compile menu.c.
147
148 * lisp.h: Declare syms_of_menu.
149
150 * emacs.c (main): Call syms_of_menu.
151
152 * keyboard.h: Relocate platform-independent menu definitions from
153 xmenu.c.
154
155 * menu.c: New file. Relocate platform-independent menu
904d8c69 156 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
157
158 * xmenu.c: Remove platform-independent menu definitions.
159 (menu_items menu_items_inuse, menu_items_allocated)
160 (menu_items_used, menu_items_n_panes)
161 (menu_items_submenu_depth): Move to keyboard.h.
162 (init_menu_items, finish_menu_items, unuse_menu_items)
163 (discard_menu_items, restore_menu_items, save_menu_items)
164 (grow_menu_items, push_submenu_start, push_submenu_end)
165 (push_left_right_boundary, push_menu_pane, push_menu_item)
166 (keymap_panes, single_keymap_panes, single_menu_item)
167 (list_of_panes, list_of_items, find_and_call_menu_selection)
168 (xmalloc_widget_value, free_menubar_widget_value_tree)
169 (parse_single_submenu, digest_single_submenu)
170 (update_submenu_strings): Move to menu.c.
171
4958ed94
SM
1722008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
173
174 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
175
408b8ab4
MB
1762008-06-06 Miles Bader <miles@gnu.org>
177
178 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
179 face, not frame default.
180
87478b52
SM
1812008-06-05 Martin Rudalics <rudalics@gmx.at>
182
183 * window.c (pop_up_windows, pop_up_frames)
184 (display_buffer_reuse_frames, Vpop_up_frame_function)
185 (Vdisplay_buffer_function, Veven_window_heights)
186 (Vspecial_display_buffer_names, Vspecial_display_regexps)
187 (Vspecial_display_function, Vsame_window_buffer_names)
188 (Vsame_window_regexps, split_height_threshold)
189 (Vsplit_window_preferred_function): Move those vars to window.el.
190 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
191 (Fdisplay_buffer): Move those functions to window.el.
192 (syms_of_window): Remove corresponding declarations.
193 (display_buffer): New function.
194 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
195 * dispnew.c (Flast_nonminibuf_frame): New function.
196 * buffer.c (Fpop_to_buffer): Move to window.el.
197
9e0e0d77
SM
1982008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
199
200 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
201
4a485df8
KH
2022008-06-05 Kenichi Handa <handa@m17n.org>
203
204 * coding.c (detect_coding): Fix previous change.
205 (detect_coding_system): Likewise.
206
8ba31f36
SM
2072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
208
c0dc8f64
SM
209 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
210
8ba31f36
SM
211 * keymap.c (Vminibuffer_local_filename_must_match_map):
212 Rename from Vminibuffer_local_must_match_filename_map.
213 (syms_of_keymap):
214 * minibuf.c (Fcompleting_read): Adjust accordingly.
215 * commands.h: Rename declaration as well.
216
7740d2c7
KH
2172008-06-05 Kenichi Handa <handa@m17n.org>
218
e7438ece
KH
219 * font.c (Ffont_spec): Don't use font_parse_family_registry for
220 family name.
221 (Ffont_put): Likewise.
222
223 * fontset.c (fontset_find_font): Call font_open_for_lface with the
224 current font-spec.
225
7740d2c7
KH
226 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
227 is unspecified.
228
229 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
230 are the same as those of default face, realize a new fontset from
231 default->fontset.
9e0e0d77 232 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 233
c876b227
SM
2342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
235
236 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
237 (move_it_in_display_line): New wrapper.
238
239 * window.c (window_scroll_pixel_based_preserve_x)
240 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
241 (window_scroll_pixel_based, window_scroll_line_based):
242 Use them to preserve column positions.
243 (syms_of_window): Initialize them.
244
245 * indent.c (Fvertical_motion): Extend first arg to allow passing an
246 (HPOS . VPOS) pair.
247
248 * dispextern.h (move_it_in_display_line): Declare.
249
927abf37
JB
2502008-06-05 Juanma Barranquero <lekktu@gmail.com>
251
252 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
253 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
254 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
255
9d14503e
JB
2562008-06-04 Juanma Barranquero <lekktu@gmail.com>
257
258 * window.c (Fset_window_parameter): Doc fix.
259 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
260
e6841c3b
JB
2612008-06-04 Joakim Verona <joakim@verona.se>
262
263 * window.h (struct window): Add new member window_parameters.
264
265 * window.c (Fwindow_parameters, Fwindow_parameter)
266 (Fset_window_parameter): New defuns.
267 (syms_of_window): Defsubr the new defuns.
268 (make_window): Initialize window_parameters to nil.
269
4ba50634
JPW
2702008-06-04 John Paul Wallington <jpw@pobox.com>
271
272 * eval.c (Fdefmacro): Doc fix.
273
c0e16b14
KH
2742008-06-04 Kenichi Handa <handa@m17n.org>
275
276 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 277 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
278 (detect_coding_system): Fix handling of coding->head_ascii.
279
0615d903
AS
2802008-06-03 Andreas Schwab <schwab@suse.de>
281
282 * font.c (font_prop_validate_spacing): Fix last change.
283
8a1816bb
KH
2842008-06-03 Kenichi Handa <handa@m17n.org>
285
eea9c5c4
KH
286 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
287 (font_parse_fcname): Fix handling of unknown key.
288
289 * xfont.c (xfont_list): Try an alias.
290
8a1816bb
KH
291 * charset.c (char_charset): Return NULL if the arg charset_list is
292 specified and C doesn't belong to any of them.
293
2f593f4c 2942008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
295
296 * font.c (font_pixel_size): Don't take cdr of an integer.
297
c2cd06e6
JM
2982008-06-02 Jim Meyering <meyering@redhat.com>
299
70fdbb46
JM
300 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
301 * alloc.c (xfree): Return right away for a NULL arg.
302 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
303 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
304 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
305 (create_apple_event_from_drag_ref, cfstring_create_normalized):
306 Likewise.
70fdbb46
JM
307 * doprnt.c (doprnt1): Likewise.
308 * frame.c (frame): Likewise.
309 * keyboard.c (wipe_kboard): Likewise.
1f204af3 310 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
311 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
312 * term.c (tty_default_color_capabilities, maybe_fatal)
313 (delete_tty): Likewise.
314 * w16select.c (string): Likewise.
315 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
316 * w32bdf.c (w32_free_bdf_font): Likewise.
317 * w32fns.c (w32_unload_font): Likewise.
318 * w32font.c (w32font_close): Likewise.
319 * window.c (size_window): Likewise.
320 * xselect.c (receive_incremental_selection): Likewise.
321 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
322 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
323 * w32.c (stat): Likewise.
324
2f593f4c 325 Remove useless if-before-free tests.
70fdbb46
JM
326 * editfns.c (Fset_time_zone_rule): Likewise.
327 * lread.c (nosuffix): Likewise.
328 * ralloc.c (get_bloc): Likewise.
329 * regex.c (reg_free): Likewise.
330 * xftfont.c (xftfont_open, xftfont_close): Likewise.
331 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
332 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 333
4fc1984a
KH
3342008-06-02 Kenichi Handa <handa@m17n.org>
335
1d1e1245
KH
336 * font.c (font_find_for_lface): Handle float font size.
337 (font_open_for_lface): Likewise.
338
4fc1984a
KH
339 * xfaces.c (x_supports_face_attributes_p): Check face->font before
340 comparing the properties.
341
aee986fd
JR
3422008-06-01 Jason Rumney <jasonr@gnu.org>
343
e6841c3b
JB
344 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
345 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
346 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
347 Don't add empty script list.
348 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 349
60a3d7ee
DN
3502008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
351
aee986fd 352 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
353 ".." has been used elsewhere in the file for a long time.
354 (LIBXT_STATIC): Remove conditional based on unused variable.
355
f2cec7a9
MB
3562008-06-01 Miles Bader <miles@gnu.org>
357
358 * xfaces.c (Vface_remapping_alist): New variable.
359 (syms_of_xfaces): Initialize it.
360 (enum named_merge_point_kind): New type.
361 (struct named_merge_point): Add `named_merge_point_kind' field.
362 (push_named_merge_point): Make cycle detection respect different
363 named-merge-point kinds.
c876b227 364 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
365 Remove face-name alias resolution.
366 (lface_from_face_name): New definition using
367 `lface_from_face_name_no_resolve'.
c876b227 368 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
369 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
370 (get_lface_attributes): New definition that layers face-remapping on
371 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
372 (lookup_basic_face): New function.
373 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
374 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
375 `get_lface_attributes'.
376 (face_at_buffer_position): Use `lookup_basic_face' to lookup
377 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
378 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
379
380 * xdisp.c (init_iterator): Pass base_face_id through
381 `lookup_basic_face' when we actually use it as a face-id.
382 (handle_single_display_prop): Use `lookup_basic_face' to lookup
383 DEFAULT_FACE_ID.
384
385 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
386 lookup the initial face-id.
387
388 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
389
518c0b83
JB
3902008-06-01 Juanma Barranquero <lekktu@gmail.com>
391
392 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
393 (Fremove_text_properties): Fix typos in docstrings.
394
719b3d63
KH
3952008-05-31 Kenichi Handa <handa@m17n.org>
396
e4c93315
KH
397 * font.c (font_list_entities): Fix the car part of data to be
398 stored in the cache.
399
719b3d63
KH
400 * ftfont.c (ftfont_font_format): Don't use strcasestr.
401
d0827857
SM
4022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
403
404 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
405 Add a `test' argument so another predicate than `equal' can be used.
406 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
407 (map_char_table): Remove unused vars `c' and `i'.
408 * lisp.h (Foptimize_char_table): Adjust declaration.
409 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
410
a266686a
KH
4112008-05-30 Kenichi Handa <handa@m17n.org>
412
d0827857 413 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
414 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
415 defined.
416
fd9440c5
SM
4172008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
418
419 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
420 (Fmake_variable_frame_local): Disallow mixing buffer-local and
421 frame-local settings for the same variable.
422
fd2ae9b2
KH
4232008-05-30 Kenichi Handa <handa@m17n.org>
424
9e0e0d77 425 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
426 (syms_of_fontset): Delete defsubr of Sfont_info.
427
428 * font.c (font_style_to_value, font_score): Delete casting of the
429 args to xstcasecmp.
430 (register_font_driver): Increment num_font_drivers only when
431 registering the driver globally.
9e0e0d77 432 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
433 (syms_of_font): Defsubr Sfont_info.
434
eaf11618
KH
4352008-05-29 Kenichi Handa <handa@m17n.org>
436
437 * coding.h (enum define_coding_utf8_arg_index): New enum.
438 (enum coding_attr_index): Change coding_attr_utf_16_bom to
439 coding_attr_utf_bom.
fd9440c5
SM
440 (enum utf_bom_type): Rename from utf_16_bom_type.
441 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
442 (struct coding_system): Add utf_8_bom in `spec' union.
443
444 * coding.c (CODING_UTF_8_BOM): New macro.
445 (enum coding_category): Delete coding_category_utf_8, add
446 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
447 coding_category_utf_8_sig.
448 (CATEGORY_MASK_UTF_8): Delete it.
449 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
450 (CATEGORY_MASK_UTF_8_SIG): New macros.
451 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
452 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
453 CATEGORY_MASK_UTF_8_SIG.
454 (CATEGORY_MASK_UTF_8): New macro.
455 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
456 (detect_coding_utf_8): Check BOM.
457 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 458 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
459 (encode_coding_utf_16): Likewise.
460 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
461 (detect_coding, detect_coding_system): Handle utf-8-auto.
462 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
463 (syms_of_coding): Fix setting up of Vcoding_category_table.
464
891bd142
SM
4652008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
466
467 * process.c (Faccept_process_output): If `millisec' is non-nil,
468 `seconds' default to 0.
469 (wait_reading_process_output): Also return non-nil if we read output
470 from a non-running process.
471
1519d52e
JR
4722008-05-29 Jason Rumney <jasonr@gnu.org>
473
fd9440c5
SM
474 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
475 `raster' specified.
476 (add_font_entity_to_list): Allow non-opentype truetype fonts back
477 in the uniscribe backend, but disallow any font that has no
478 unicode subrange support.
1519d52e 479
d5ab09cd
JB
4802008-05-29 Juanma Barranquero <lekktu@gmail.com>
481
482 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
483 Fix typos in docstrings.
484
a4eec626
KH
4852008-05-29 Kenichi Handa <handa@m17n.org>
486
487 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 488 (Fx_family_fonts): Set frame correctly.
a4eec626 489
a6e0b7e5
JR
4902008-05-28 Jason Rumney <jasonr@gnu.org>
491
d5ab09cd 492 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 493
6b3d752c
SM
4942008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
495
496 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
497 calling build_annotations.
498
c3f9fba8
JB
4992008-05-28 Juanma Barranquero <lekktu@gmail.com>
500
501 * coding.c (Fdecode_coding_region, Fencode_coding_region)
502 (Fencode_coding_string):
503 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
504 <latin-extra-code-table>: Fix typos in docstrings.
505 (syms_of_coding) <coding-system-alist>: Doc fix.
506 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
507
00c670e1
KH
5082008-05-28 Kenichi Handa <handa@m17n.org>
509
b75d7f28
KH
510 * fontset.c (Ffont_info): Don't call font_close_object.
511
512 * font.c (font_parse_family_registry): Use Ffont_put to validate
513 foundry and family.
514 (font_delete_unmatched): Don't check spacing.
515 (font_list_entities): Add spacing to the spec to list fonts.
516
517 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 518 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 519
00c670e1
KH
520 * coding.c (encode_coding_raw_text): Fix previous change.
521 (encode_coding_object): When the dst_object is a buffer and is
522 different from src_object, move gap to PT.
523
45feca91
CY
5242008-05-27 Chong Yidong <cyd@stupidchicken.com>
525
c3f9fba8 526 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 527
5dd5d9eb
SM
5282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
529
01d45367
SM
530 * coding.c (encode_coding_raw_text): Set coding->produced_char for
531 all branches. Compute it differently.
532
5dd5d9eb
SM
533 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
534
9c623c85
JB
5352008-05-27 Juanma Barranquero <lekktu@gmail.com>
536
537 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
538 into "else if () ... else ...".
539
943f2093
JR
5402008-05-27 Jason Rumney <jasonr@gnu.org>
541
5dd5d9eb
SM
542 * w32font.c (w32font_open_internal): Determine if glyph indices
543 are likely to work here.
943f2093 544
7385fe74
CY
5452008-05-27 Chong Yidong <cyd@stupidchicken.com>
546
547 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
548 draw overlap glyphs with appropriate highlighting.
549
4f64a164
KH
5502008-05-27 Kenichi Handa <handa@m17n.org>
551
552 * xfont.c (xfont_open): Fix calculation of font->average_width.
553
1fb5aad7
SM
5542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
555
556 * casefiddle.c (casify_object): Try to guess better whether the
557 argument is a byte or a char.
558
f8eb1603
AS
5592008-05-26 Andreas Schwab <schwab@suse.de>
560
1fb5aad7
SM
561 * xselect.c (x_reply_selection_request): Properly handle format == 32.
562 Always send multiples of format size.
5a9c35e5 563
f8eb1603
AS
564 * xterm.c (x_set_frame_alpha): Fix type mismatch.
565
ba93d684
JR
5662008-05-26 Jason Rumney <jasonr@gnu.org>
567
1fb5aad7
SM
568 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
569 (compute_metrics): Don't set failure if we just cleared the cache.
570 (w32_weight_table): Remove unused variable.
571 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
572 backwards compatibility.
ba93d684 573
505ecc49
KH
5742008-05-25 Kenichi Handa <handa@m17n.org>
575
1fb5aad7
SM
576 * w32term.c (x_draw_glyph_string):
577 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
578
579 * xfaces.c: Delete unused function prototypes.
580 (xstrlwr, font_frame): Delete them.
581 (clear_face_cache): Delete unused variable.
582
1fb5aad7
SM
583 * xftfont.c (xftfont_open): Delete unused variable.
584 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
585
586 * ftxfont.c (ftxfont_open): Delete unused variable.
587
588 * fontset.c (face_for_char): Optimize for the case of no charset
589 property.
590
591 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
592 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
593 (otf_open, font_otf_capability, generate_otf_features)
594 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 595 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
596 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
597 (syms_of_font): Codes for accessing above commented out.
598
f481eb31
EZ
5992008-05-24 Eli Zaretskii <eliz@gnu.org>
600
601 * w32proc.c: Include dispextern.h.
602
603 * w32.c: Include dispextern.h.
604
20746fe4
JB
6052008-05-23 Juanma Barranquero <lekktu@gmail.com>
606
607 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
608 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
609 Fix typos in docstrings.
610
e7150846
JR
6112008-05-23 Jason Rumney <jasonr@gnu.org>
612
20746fe4 613 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 614
dbf46ba6
KH
6152008-05-23 Kenichi Handa <handa@m17n.org>
616
6c652beb
KH
617 * charset.c (Qemacs, charset_emacs): New variables.
618 (char_charset): Fix for non-Unicode characters.
619 (syms_of_charset): Define charset_emacs.
620
baf4d3b3 621 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
622 s->underline_thickness and s->underline_position. Be sure to draw
623 underline within the current line area.
baf4d3b3
KH
624
625 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 626 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 627 underline within the current line area.
baf4d3b3 628
dbf46ba6
KH
629 * fontset.c: Delete unused variables and add casting for char *
630 throughout the file.
631 (fontset_font): Try the fallback fonts of the current fontset
632 before consulting the default fontset.
633
634 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
635
9e0e0d77 636 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 637
3b780338
JR
6382008-05-22 Jason Rumney <jasonr@gnu.org>
639
20746fe4 640 * font.c: Don't include strings.h.
577eba22 641
9e0e0d77 642 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 643
20746fe4
JB
644 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
645 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
646 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
647 to call xstrcasecmp.
05131107 648
b1722a46 649 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 650
b1722a46 651 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 652
b1722a46 653 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 654
b1722a46 655 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 656
a30e1957
KH
6572008-05-22 Kenichi Handa <handa@m17n.org>
658
20746fe4 659 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 660
20746fe4 661 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
662 change of font_style_table.
663
a30e1957
KH
664 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
665 two args.
666
667 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
668 two args.
669
631248e5
SM
6702008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
671
672 * minibuf.c (keys_of_minibuf): Delete.
673 * lisp.h (keys_of_minibuf): Delete.
674 * emacs.c (main): Don't call keys_of_minibuf.
675
318548be
KH
6762008-05-22 Kenichi Handa <handa@m17n.org>
677
631248e5 678 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
679 ftfont_list_generic_family. Return a single family for each
680 generic family.
681 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
682 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
683 Call font_add_log.
318548be
KH
684 (ftfont_match): Call font_add_log.
685
686 * font.h (Ffont_xlfd_name): EXFUN adjusted.
687 (FONT_DEBUG): Define it.
688 (font_add_log): Extern it.
631248e5 689 (font_assert): Rename from xassert.
318548be
KH
690
691 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
692 (xfont_list_family): Call font_add_log.
693 (xfont_match): Likewise.
631248e5 694 (memq_no_quit): Delete.
318548be
KH
695
696 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
697 call of Ffont_xlfd_name.
698
699 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 700 (swidth_table): Move to font.c.
318548be
KH
701
702 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 703 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
704 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
705 New variables.
631248e5
SM
706 (struct table_entry): Move from xfaces.c and modified.
707 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 708 contents adjusted for the change of struct table_entry.
20746fe4 709 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 710 format change of font_style_table.
318548be
KH
711 (font_parse_family_registry): Don't overwrite existing foundry and
712 family of font_spec.
713 (font_score): Fix calculation of diff for sizes.
714 (font_sort_entites): Call font_add_log.
715 (font_delete_unmatched): Return a newly created list.
716 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
717 (font_matching_entity, font_open_entity, font_close_entity):
718 Call font_add_log.
318548be 719 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 720 (Finternal_set_font_style_table): Delete.
318548be
KH
721 (BUILD_STYLE_TABLE): New macro.
722 (build_style_table): New function.
723 (Vfont_log, font_log_env_checked): New variables.
724 (font_add_log): New function.
725 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
726 Declare Lisp variables "font-weight-table", "font-slant-table",
727 "font-width-table", and "font-log". Initialize font_style_table.
728
6aac1c03
DN
7292008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
730
bcc850aa 731 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 732
7950790f
GM
7332008-05-21 Seiji Zenitani <zenitani@mac.com>
734 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 735
7950790f 736 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 737 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 738 (x_set_alpha): New function.
a2979e8e 739
7950790f 740 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 741
7950790f
GM
742 * xfns.c (x-create-frame, Qalpha):
743 Initialize the frame parameter `alpha'.
b9fb2c45
GM
744 * xterm.c (OPAQUE, OPACITY): New.
745 (x_set_frame_alpha): New function.
746 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 747
7950790f
GM
748 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
749 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 750
5c2a72d9
JR
7512008-05-20 Jason Rumney <jasonr@gnu.org>
752
20746fe4
JB
753 * w32font.c (add_font_entity_to_list): Don't add non-opentype
754 truetype fonts to opentype list.
5c2a72d9 755
eb152aa9
JB
7562008-05-20 Juanma Barranquero <lekktu@gmail.com>
757
758 * fontset.c (Ffontset_info): Doc fix.
759 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
760 <ignore-relative-composition>: Fix typos in docstrings.
761
762 * font.c (syms-of-font) <font-encoding-alist>:
763 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
764 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
765 (Ffont_otf_alternates): Doc fixes.
766
ad00e1a3
KH
7672008-05-20 Kenichi Handa <handa@m17n.org>
768
769 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
770 font.h through out the file.
9e0e0d77 771 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 772 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
773 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
774
775 * emacs.c (main): Call syms_of_font unconditionally.
776
777 * font.h (find_font_encoding): Extern it.
778
9e0e0d77 779 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
780 fontset.c.
781 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
782 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
783 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
784 only when HAVE_WINDOW_SYSTEM is defined.
785 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
786 when HAVE_WINDOW_SYSTEM is defined.
787
9e0e0d77
SM
788 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
789 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
790
791 * xfaces.c: Include font.h unconditionally.
792 (merge_face_ref, merge_face_vectors)
793 (Finternal_set_lisp_face_attribute): Cancel the previous change.
794
40a69fac
SM
7952008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
796
797 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
798 indirect_variable.
799 * eval.c (lisp_indirect_variable): New fun.
800 (Fuser_variable_p): Use it.
801
8c2dccbf
SM
8022008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
803
ad97b375
SM
804 * lisp.h (indirect_variable):
805 * data.c (indirect_variable, let_shadows_buffer_binding_p):
806 Use Lisp_Symbol pointers rather than Lisp_Object.
807 Adjust callers.
808 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
809 To this end, change calling-convention.
810
8c2dccbf
SM
811 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
812 if some non-hidden buffers are selected by string&pred.
813
ad97b375
SM
8142008-05-19 Chong Yidong <cyd@stupidchicken.com>
815
816 * process.c (wait_reading_process_output): Always check status
817 when in batch mode.
818
25b81df4
KH
8192008-05-19 Kenichi Handa <handa@m17n.org>
820
821 * font.c (font_list_entities): Fix handling of cache.
822 (font_matching_entity): Likewise.
823
8c2dccbf 824 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 825 (ft_face_cache): New variable.
1f204af3 826 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 827 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
828 (fc_charset_table): New variable.
829 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
830 . FC_CHARSET_IDX) as :font-entity property in the font entity.
831 Callers changed.
dde8403f 832 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
833 (ftfont_spec_pattern): New argument fc_charset_idx.
834 Check registry more rigidly. Change callers.
a2979e8e 835 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
836 change of :font-entity property of the font.
837
a2979e8e 838 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
839 property of the font.
840
d4a1d553
JB
8412008-05-18 Juanma Barranquero <lekktu@gmail.com>
842
843 * coding.c (Fcoding_system_p): Rename argument to match docstring.
844 (Funencodable_char_position, Fcheck_coding_systems_region)
845 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
846 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
847 (Ffind_operation_coding_system, Fset_coding_system_priority)
848 (Fcoding_system_eol_type): Doc fixes.
849
07cfc4e7
GM
8502008-05-17 Glenn Morris <rgm@gnu.org>
851
852 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
853
1cab27d2
EZ
8542008-05-16 Eli Zaretskii <eliz@gnu.org>
855
856 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
857 and st_gid.
858
dde8403f 859 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
860 HAVE_WINDOW_SYSTEM is not defined.
861
862 * xfaces.c (merge_face_ref, merge_face_vectors)
863 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
864 HAVE_WINDOW_SYSTEM is defined.
865 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
866
86b89713
SM
8672008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
868
869 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
870
6750bd93
YM
8712008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
872
62867b11 873 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 874
79f105c9
KH
8752008-05-15 Kenichi Handa <handa@m17n.org>
876
877 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
878 preference.
879
6b33da9f
GM
8802008-05-15 Glenn Morris <rgm@gnu.org>
881
882 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
883
d0e4433b
CY
8842008-05-15 Chong Yidong <cyd@stupidchicken.com>
885
886 * fns.c (init_fns): Don't initialize weak_hash_tables here.
887 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
888
889 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
890
5f2d79e0
KH
8912008-05-15 Kenichi Handa <handa@m17n.org>
892
fd8a1cae
KH
893 * ftfont.c (ftfont_list): Downcase family name to check generic
894 families.
895
896 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
897 font-spec for QCfont value.
898
5f2d79e0
KH
899 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
900 buffer. Check the return value of it.
901
e5e29349
JR
9022008-05-14 Jason Rumney <jasonr@gnu.org>
903
904 * w32term.c (w32_get_glyph_overhangs): Remove.
905 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
906
1f09f444
KH
9072008-05-14 Kenichi Handa <handa@m17n.org>
908
909 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
910 (font_clear_cache): Check if the cached vector of entities is nil
911 or not.
1f09f444 912
ecae6af9 9132008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
914
915 * emacs.c (main_thread): Conditionalize on
916 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
917 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
918
919 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
920 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
921 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
922
c6b278e7
KH
9232008-05-14 Kenichi Handa <handa@m17n.org>
924
925 * coding.c (detect_coding_iso_2022): Ignore a coding category that
926 has no corresponding coding system.
927
9282008-05-14 Jason Rumney <jasonr@gnu.org>
929
930 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
931
932 * w32font.h (w32font_open_internal): Update declaration.
933
934 * w32font.c (w32font_open_internal): Change last argument from
935 w32font_info struct to font object. Fill in font object from
936 font_entity. Get Outline metrics if possible. Use them to
937 calculate underline position and thickness. Use xlfd name as name
938 property. Don't set codepage.
939 (w32font_open): Pass font_object to w32font_open_internal. Don't
940 update dpyinfo->smallest_font_height and
941 dpyinfo->smallest_char_width.
942 (w32font_draw): Use s->font.
943 (clear_cached_metrics): Don't clear non-existent blocks.
944
945 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
946 font was not found.
947 (x_draw_glyph_string): Use underline position and thickness from
948 font.
949
950 * w32uniscribe.c (uniscribe_open): Pass font_object to
951 w32font_open_internal.
952
9532008-05-14 Kenichi Handa <handa@m17n.org>
954
955 These changes are to delete all legacy font-handling codes, and
956 make Emacs use only font-backends.
957
958 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
959 (frame.o, image.o, print.o): Depend on $(FONTSRC).
960
961 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
962
963 * charset.h (Vcharset_non_preferred_head)
964 (Vcurrent_iso639_language): Extern them.
965
966 * charset.c (Vcharset_non_preferred_head): New variable.
967 (Vcurrent_iso639_language): New variable.
968 (syms_of_charset): Declare it as a Lisp variable.
969 (char_charset): Don't check non preferred charsets. As a last
970 resort, return charset_unicode.
971 (Fset_charset_priority): Update Vcharset_non_preferred_head.
972
973 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
974 conditionals. Don't check enable_font_backend. Delete all codes
975 used only when USE_FONT_BACKEND is not defined.
976
977 * dispextern.h (struct glyph_string): Change type of `font' to
978 `struct font *'.
979 (struct glyph_string): New member underline_position and
980 underline_thickness.
981 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
982 (struct face): Change type of `font' to `struct font *'. Remove
983 members `font_name', `font_info_id'.
984 (per_char_metric, encode_char): Delete externs.
985 (calc_pixel_width_or_height): Adjust the prototype.
986
987 * emacs.c (enable_font_backend): Delete extern.
988 (main): Don't set enable_font_backend. Don't check the command
989 line argument "-disable-font-backend".
990
991 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
992 (enum font_property_index): New members FONT_DPI_INDEX,
993 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
994 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
995 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
996 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
997 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
998 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
999 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
1000 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
1001 (struct font_spec, struct font_entity): New structs.
1002 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
1003 (struct font): Many members from old "struct font_info" moved to
1004 here. Members font and entity deleted.
1005 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
1006 the new font-related objects.
1007 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
1008 (CHECK_FONT_GET_OBJECT): Likewise.
1009 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
1010 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
1011 (struct font_driver): New members case_sensitive anc check. Type
1012 of the member list and open changed.
1013 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
1014 (font_symbolic_width, font_find_object, font_get_spec)
1015 (font_set_lface_from_name): Delete extern.
20746fe4 1016 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
1017
1018 * font.c: Include <strings.h>.
1019 (enable_font_backend): Delete it.
1020 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
1021 (CHECK_VALIDATE_FONT_SPEC): Delete it.
1022 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
1023 (null_string): Delete it.
1024 (null_vector): Make it static.
1025 (font_family_alist): Delete it.
1026 (Qnormal): Extern it.
1027 (QCextra, QClanguage): Delete it.
1f204af3 1028 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
1029 (font_make_spec, font_make_entity, font_make_object)
1030 (font_intern_prop): Renamed from intern_downcase. Don't downcase
1031 the string. Callers changed.
1032 (font_pixel_size): Adjusted for the format change of font-related
1033 objects.
1034 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
1035 (font_style_to_value, font_style_symbolic): New function.
1036 (build_font_family_alist): Delete it.
1037 (font_registry_charsets): Use Fassoc_string instead of
1038 assq_no_quit.
1039 (font_prop_validate_symbol): Don't return null_string.
1040 (font_prop_validate_style): Adjusted for the change of
1041 style-related values in a font vector.
20746fe4 1042 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
1043 QCantialias, add entries for QCavgwidth.
1044 (get_font_prop_index): Delete the 2nd argument FROM.
1045 (font_prop_validate): Arguments changed.
1046 (font_put_extra): Adjusted for the change of font-related objects.
1047 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
1048 (font_parse_fcname, font_unparse_fcname)
1049 (font_prepare_composition): Likewise.
1050 (font_parse_family_registry): Renamed from font_merge_old_spec.
1051 (otf_open): Delete the 1st arg entity.
1052 (font_otf_capability): Adjusted for the above change.
1053 (font_score): New arg alternate_families. Adjusted for the change
1054 of font-related objects.
1055 (font_sort_entites): New arg best_only.
1056 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
1057 Delete them.
1058 (font_match_p): Check alternate families.
1059 (font_find_object): Delete it.
1060 (font_check_object): New function.
c3f9fba8 1061 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
1062 (font_delete_unmatched): New arg.
1063 (font_list_entities): Call font_driver->list with a spec that
1064 doesn't specify style-related properties.
1065 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 1066 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
1067 (font_close_object, font_has_char, font_encode_char)
1068 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
1069 (font_spec_from_name, font_clear_prop, font_update_lface):
1070 New functions.
1071 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
1072 (font_prepare_for_face, font_done_for_face, font_open_by_name)
1073 (font_at): Adjusted for the change of font-related objects.
1074 (font_range): New function.
1075 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 1076 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
1077 (Fcopy_font_spec, Fmerge_font_spec): New function.
1078 (Ffont_family_list): Renamed from list-families.
1079 (Finternal_set_font_style_table): Arguments changed.
1080 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
1081 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
1082 change of font-related objects.
c3f9fba8 1083 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7
KH
1084
1085 * fontset.h (struct font_info): Delete it. Most memnbers go to
1086 struct font.
1087 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
1088 (enum FONT_SPEC_INDEX): Delete it.
1089 (font_info, list_fonts_func, load_font_func, query_font_func)
1090 (set_frame_fontset_func, find_ccl_program_func)
1091 (get_font_repertory_func, new_fontset_from_font_name): Delete
1092 externs.
1093 (fontset_from_font_name): Extern it.
1094 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
1095 (FONT_INFO_FROM_FACE): Deleted.
1096 (face_for_font): Adjust prototype.
1097
1098 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
1099 conditionals. Don't check enable_font_backend. Delete all codes
1100 used only when USE_FONT_BACKEND is not defined.
1101 (get_font_info_func, list_font_func, load_font_func)
1102 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
1103 (get_font_repertory_func): Delete them.
1104 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
1105 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
1106 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
1107 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
1108 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
1109 (fontset_compare_rfontdef): New function.
1110 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
1111 ront-defs by qsort. Adjusted for the change of font-group vector.
1112 (load_font_get_repertory): Deleted.
1113 (fontset_find_font): Use new macros to ref/set elements of
1114 font-def and rfont-def.
1115 (fontset_font): Fix the timing of remembering that no font for C.
1116 (free_face_fontset): Do nothing if the face has no fontset.
1117 (face_suitable_for_char_p): Use new macros to ref/set elements of
1118 rfont-def.
1119 (face_for_char): Likewise. Call face_for_char with font_object.
1120 (fs_load_font): Delete. Delete #pragma surrounding it.
1121 (fs_query_fontset): Use strcasecmp instead of strcmp.
1122 (generate_ascii_font_name): Adjusted for the format change of
1123 font-spec.
1124 (Fset_fontset_font): Likewise. Use new macros to set elements of
1125 font-def.
1126 (Fnew_fontset): Use font_unparse_xlfd to generate
1127 FONTSET_ASCII (fontset).
1128 (new_fontset_from_font_name): Deleted.
1129 (fontset_from_font): Renamed from new_fontset_from_font. Check if
1130 a fontset is already created for the font. FIx updating of
1131 Vfontset_alias_alist.
1132 (fontset_ascii_font): Deleted.
1133 (Ffont_info): Adjusted for the format change of font-spec.
1134 (Finternal_char_font): Likewise.
1135 (Ffontset_info): Likewise.
1136 (syms_of_fontset): Don't check load_font_func.
1137
1138 * fns.c (internal_equal): Handle PREV_FONT.
1139
1140 * frame.h: Delete USE_FONT_BACKEND conditional.
1141
1142 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
1143 conditionals. Don't check enable_font_backend. Delete all codes
1144 used only when USE_FONT_BACKEND is not defined.
1145 (x_set_font): Call x_new_font, not x_new_fontset2.
1146 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
1147 already set for the frame.
1148
1149 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
1150 a font-entity by font_make_entity. Use font_intern_prop instead
1151 of intern_downcase. Use FONT_SET_STYLE to set a style-related
1152 font property. If a font is scalable, set avgwidth property to 0.
1153 Set font-entity property by font_put_extra.
1154 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
1155 (ffont_driver): Adjusted for the change of struct font_driver.
1156 (ftfont_spec_pattern): New function.
1157 (ftfont_list): Return a list, not vector.
1158 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
1159 (ftfont_list_family): Don't downcase names.
1160 (ftfont_free_entity): Deleted.
1161 (ftfont_open): Return a font-ojbect. Adjusted for the change of
1162 struct font. Get underline_thickness and underline_position from
1163 font property. Don't update dpyinfo->smallest_font_height and
1164 dpyinfo->smallest_char_width.
1165 (ftfont_close): Don't free `struct font'.
1166 (ftfont_has_char): Adjusted for the format change of font-entity.
1167 (ftfont_encode_char, ftfont_text_extents): Likewise.
1168
1169 * ftxfont.c (ftxfont_list): Return a list, not vector.
1170 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
1171 struct font. Get underline_thickness and underline_position from
1172 font property. Don't update dpyinfo->smallest_font_height and
1173 dpyinfo->smallest_char_width.
1174 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
1175 (ftxfont_draw): Adjusted for the change of struct font.
1176
1177 * image.c (image_ascent): Don't include "charset.h". Include
1178 "character.h" and "font.h".
1179
1180 * lisp.h (enum pvec_type): New member PREV_FONT.
1181 (Fassoc_string): EXFUN it.
1182
1183 * print.c: Include font.h.
1184 (print_object): Handle font-related objects.
1185
1186 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
1187 conditionals. Don't check enable_font_backend. Delete all codes
1188 used only when USE_FONT_BACKEND is not defined.
1189 (handle_auto_composed_prop): Do nothing if it->f is not on a
1190 window system. Check how many following characters can be
1191 displayed by the same font.
1192 (calc_pixel_width_or_height): Type of the 4th arg is changed to
1193 'struct font *'.
1194 (get_char_face_and_encoding): Assign the whole encoding task to
1195 the `encode-char' method of a font driver.
1196 (fill_composite_glyph_string): Adjusted for the change of `struct
1197 face' and `struct glyph_string'.
1198 (fill_glyph_string): Likewise.
1199 (get_per_char_metric): Arguments changed.
1200 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
1201 and `struct glyph_string'.
1202 (produce_stretch_glyph, calc_line_height_property)
1203 (x_produce_glyphs): Likewise.
1204
1205 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
1206 conditionals. Don't check enable_font_backend. Delete all codes
1207 used only when USE_FONT_BACKEND is not defined. Use
1208 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
1209 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
1210 (Qp): Extern them.
1211 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
1212 Deleted.
1213 (struct font_name): Deleted.
1214 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
1215 (compare_fonts_by_sort_order): New function.
1216 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
1217 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
1218 Deleted.
1219 (Fx_family_fonts): Use font_list_entities, and sort fonts by
1220 compare_fonts_by_sort_order.
1221 (Fx_font_family_list): Call Ffont_family_list.
1222 (face_numeric_value, face_numeric_weight, face_numeric_slant)
1223 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
1224 (face_symbolic_slant, face_symbolic_swidth)
1225 (split_font_name_into_vector, build_font_name_from_vector)
1226 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
1227 (font_rescale_ratio, split_font_name, build_font_name)
1228 (free_font_names, sort_fonts, x_face_list_fonts)
1229 (face_font_available_p, sorted_font_list, cmp_font_names)
1230 (font_list_1, concat_font_list, font_list, remove_duplicates):
1231 Deleted.
1232 (Fx_list_fonts): Use Ffont_list.
1233 (LFACE_AVGWIDTH): Deleted.
1234 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
1235 by FONTP.
1236 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1237 (set_lface_from_font_name): Delete it.
1238 (set_lface_from_font): Renamed from
1239 set_lface_from_font_and_fontset. Caller changed. Don't set
1240 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
1241 for face.
c3f9fba8
JB
1242 (merge_face_vectors): Copy font-spec if necessary.
1243 Clear properties of the font-spec if necessary.
c6b278e7
KH
1244 (merge_face_ref): Clear properties of the font-spec if necessary.
1245 (Finternal_set_lisp_face_attribute): Likewise.
1246 (set_font_frame_param): Use font_load_for_lface to load a
1247 font-object, and call Fmodify_frame_parameters with it.
1248 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
1249 font name by Ffont_xlfd_name.
1250 (Finternal_lisp_face_attribute_values): Don't check QCweight,
1251 QCslant, and QCwidth.
1252 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
1253 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
1254 Compare fonts by EQ.
1255 (lookup_non_ascii_face): Deleted.
1256 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
1257 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
1258 Check atomic font properties by case insensitive.
c6b278e7
KH
1259 (realize_non_ascii_face): Set face->overstrike correctly.
1260 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
1261 (dump_realized_face): Get font name from
1262 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
1263
1264 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
1265 conditionals. Don't check enable_font_backend. Delete all codes
1266 used only when USE_FONT_BACKEND is not defined.
1267 (xic_create_xfontset): Original code deleted and renamed from
1268 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
1269 (x_make_gc): Don't set GCFont in GCs.
1270 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
1271 opened by "fixed".
1272 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
1273 find_ccl_program_func, query_font_func, set_frame_fontset_func,
1274 get_font_repertory_func.
1275
1276 * xfont.c: Include <stdlib.h> and "ccl.h".
1277 (struct xfont_info): New structure.
1278 (xfont_query_font): Deleted.
1279 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
1280 moved from xterm.c.
1281 (xfont_driver): Adjusted for the change of struct font_driver.
1282 (compare_font_names): New function.
1283 (xfont_list_pattern): Sort font names case insensitively. Make
1284 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
1285 (xfont_list): Return a list, not vector.
1286 (xfont_match): If the font doesn't have QCname property, generate
1287 a name from the other font properties.
1288 (xfont_open): Return a font-ojbect. Adjusted for the change of
1289 struct font. Get underline_thickness and underline_position from
1290 font property. Don't update dpyinfo->smallest_font_height and
1291 dpyinfo->smallest_char_width.
1292 (xfont_close): Don't free struct font.
1293 (xfont_prepare_face): Adjusted for the change of struct font.
1294 (xfont_done_face): Deleted.
1295 (xfont_has_char): Adjusted for the change of struct font.
1296 (xfont_encode_char, xfont_draw): Likewise.
1297 (xfont_check): New function.
1298
1299 * xftfont.c (xftfont_list): Adjusted for the change of `list'
1300 callback function.
1301 (xftfont_match): Adjusted for the fontmat change of font-entity.
1302 (xftfont_open): Adjusted for the format change of font-entity and
1303 font-object. Adjusted for the change of struct font. Return a
1304 font-object. Don't update dpyinfo->smallest_font_height and
1305 dpyinfo->smallest_char_width.
1306 (xftfont_close): Block input while calling XftFontClose.
1307 (xftfont_prepare_face): Don't block input while calling
1308 xftfont_get_colors. Adjusted for the change of struct font.
1309 (xftfont_shape): Return value of error case fixed.
1310
1311 * xrdb.c (x_load_resources): Don't setup a fontset resource.
1312
1313 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
1314 conditionals.
1315 (FONT_WIDTH): Return (f)->max_width.
1316 (struct x_display_info): Delete member `font'.
1317 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
1318 (x_find_ccl_program, x_get_font_repertory): Delete externs.
1319 (struct x_output): Change type of `font' to `struct font *'.
1320
1321 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
1322 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 1323 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
1324 (x_per_char_metric, x_encode_char): Deleted.
1325 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
1326 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 1327 `struct face'.
c6b278e7
KH
1328 (x_draw_glyph_string_foreground)
1329 (x_draw_composite_glyph_string_foreground): Likewise.
1330 (x_draw_glyph_string): Likewise. Use font->underline_position and
1331 font->underline_thickness.
1332 (x_new_font): Renamed from x_new_fontset2.
1333 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
1334 (x_check_font): Call `check' method of a font driver.
1335 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
1336 (x_query_font, x_get_font_repertory): Deleted.
1337 (x_find_ccl_program): Renamed and moved to xfont.c.
1338 (x_redisplay_interface): Adjusted for the change of `struct
1339 redisplay_interface'.
1340
1341 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
1342 conditionals. Don't check enable_font_backend. Delete all codes
1343 used only when USE_FONT_BACKEND is not defined. Surround non-used
1344 code by "#ifdef OLD_FONT" and "endif".
1345 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
1346
1347 * w32font.h (struct w32font_info): New member.
1348 (FONT_COMPAT): New macro.
1349 (w32font_open_internal): Prototype adjusted.
1350
1351 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
1352 OLD_FONT" and "endif".
1353
1354 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
1355 conditionals. Don't check enable_font_backend. Delete all codes
1356 used only when USE_FONT_BACKEND is not defined.
1357 (w32font_open): Return a font-object. Make a font-object by
1358 font_make_object. Adjusted for the change of struct w32font_info.
1359 (w32font_close): Don't free struct font. Adjusted for the change
1360 of struct w32font_info.
1361 (w32font_encode_char, w32font_text_extents, w32font_draw):
1362 Adjusted for the change of struct w32font_info.
1363 (w32font_draw): Likewise.
1364 (w32font_list_internal): Return a list, not vector.
1365 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 1366 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
1367 (add_font_name_to_list): Don't downcase names.
1368 (w32_enumfont_pattern_entity): Make a font-entity by
1369 font_make_entity. Adjusted for the format change of font-entity.
1370 Use FONT_SET_STYLE to set a style-related font property. If a
1371 font is scalable, set avgwidth property to 0. Set font-entity
1372 property by font_put_extra.
c3f9fba8 1373 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
1374 (w32_weight_table, w32_decode_weight): New variables.
1375 (w32_encode_weight): New function.
1376 (fill_in_logfont): Adjusted for the format change of font-spec.
1377 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
1378 weight value.
1379 (w32font_driver): Adjusted for the change of struct font_driver.
1380
1381 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
1382 conditionals. Don't check enable_font_backend. Surround non-used
1383 code by "#ifdef OLD_FONT" and "endif".
1384 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
1385 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
1386
1387 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
1388 conditionals. Don't check enable_font_backend. Delete all codes
1389 used only when USE_FONT_BACKEND is not defined. Surround non-used
1390 code by "#ifdef OLD_FONT" and "endif".
1391
1392 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
1393 (uniscribe_open): Return value changed to font-object.
1394 Adjusted for the format change of font-object.
1395 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
1396 (add_opentype_font_name_to_list): Don't downcase names.
1397 (uniscribe_font_driver): Adjusted for the change of struct
1398 font_driver.
1399
f9d4c199
CY
14002008-05-13 Chong Yidong <cyd@stupidchicken.com>
1401
1402 * dispnew.c (update_frame_1): Check if tty output is still valid
1403 before flushing it.
1404
44f249c0
JD
14052008-05-13 Jan Djärv <jan.h.d@swipnet.se>
1406
1407 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
1408 to Gtk+ menus.
1409
01bb4018
SM
14102008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1411
3271a8f5
SM
1412 * dired.c (file_name_completion): Tweak the code so as to always do it
1413 in a single pass. Tighten the scope of some variables.
1414
01bb4018
SM
1415 * dired.c (Qdefault_directory): New var.
1416 (file_name_completion): Use it instead of Fexpand_file_name.
1417 (syms_of_dired): Initialize it.
1418
728bb8e0
SM
14192008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
1420
1421 * fileio.c (double_dollars): Remove dead code.
1422
ed4c17bb
EZ
14232008-05-10 Eli Zaretskii <eliz@gnu.org>
1424
6c5665e9
EZ
1425 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
1426 Mention w32-get-true-file-attributes in doc string.
1427
ed4c17bb
EZ
1428 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1429
71e1f69d
GM
14302008-05-09 Glenn Morris <rgm@gnu.org>
1431
1432 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
1433 2008-04-23.
1434
ee7a2e7a
EZ
14352008-05-09 Eli Zaretskii <eliz@gnu.org>
1436
8aaaec6b
EZ
1437 Support for reporting owner and group of each file on MS-Windows:
1438 * dired.c (stat_uname, stat_gname): New functions, with special
1439 implementation for w32.
1440 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
1441
ee7a2e7a
EZ
1442 * w32.c: Rename the_passwd_* to dflt_passwd_*.
1443 (dflt_group_name): New static variable.
728bb8e0 1444 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
1445 (init_user_info): Init dflt_group fields. Get user's group name
1446 from LookupAccountSid.
8aaaec6b
EZ
1447 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
1448 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
1449 New initialization states.
1450 (globals_of_w32): Initialize them to zero. Initialize the default
1451 group name to "None".
1452 (GetFileSecurity_Name): New global var, the name of the function
1453 to call for GetFileSecurity.
1454 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
1455 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
1456 (get_file_security, get_security_descriptor_owner)
1457 (get_security_descriptor_group, is_valid_sid)
1458 (get_file_security_desc, get_rid, get_name_and_id)
1459 (get_file_owner_and_group): New functions.
1460 (stat): Use get_file_security_desc and get_file_owner_and_group to
1461 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
1462 high 32 bits of file's size, now that st_size is 64-bit wide.
1463 Fix test when to get true file attributes.
8aaaec6b
EZ
1464 (init_user_info): Use get_rid instead of equivalent inline code.
1465 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 1466
b199c436
CY
14672008-05-09 Chong Yidong <cyd@stupidchicken.com>
1468
1469 * image.c (png_load): Use correct bit-depth for setting background
1470 color.
1471
86914123
EZ
14722008-05-08 Eli Zaretskii <eliz@gnu.org>
1473
1474 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
1475 epa-hook.elc.
1476
67b5d7de
JB
14772008-05-08 Juanma Barranquero <lekktu@gmail.com>
1478
1479 * font.c (Ffont_match_p): Don't use `iff' in docstring.
1480
1a111394
DN
14812008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1482
1483 * macfns.c (Fx_create_frame): Make a copy of frame parameters
1484 because the original parameters are in pure storage now.
1485 (mac_window): Remove unused params. Update callers.
1486
6d77fa95
SM
14872008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1488
7a3d90dc
SM
1489 * lread.c (substitute_object_recurse): Use lower-level primitives.
1490 Don't signal errors when traversing sub-char-tables.
1491 Don't loop over all the possible characters when traversing char-tables.
1492
6d77fa95
SM
1493 * print.c (print_preprocess): Add sub-char-tables to the print-table,
1494 just like we do in print.c.
1495
140eb764
SM
14962008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1497
1498 * minibuf.c (Ftry_completion): Remove code left over from when we used
1499 scmp instead of Fcompare_strings.
1500
e9184ccb
JB
15012008-05-04 Juanma Barranquero <lekktu@gmail.com>
1502
1503 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
1504
0e9378b3
YM
15052008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1506
1507 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
1508 Create bitmap context in native byte order.
1509
f67e15be
MB
1510 * macterm.c (XDrawLine)
1511 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
1512 context in native byte order.
064032d0 1513
f67e15be 15142008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
1515
1516 * config.in: Regenerate.
1517
1518 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
1519 New definitions for Image I/O support.
1520 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1521 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
1522 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1523 (mac_data_provider_release_data, image_load_image_io)
1524 [USE_MAC_IMAGE_IO]: New functions.
1525 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
1526 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
1527 (init_image_func_pointer) [MAC_OSX]: Remove function.
1528 (image_load_quartz2d) [MAC_OSX]: Check availability of
1529 CGImageCreateWithPNGDataProvider at compile time.
1530 Use lowercase `false' for boolean constant.
1531 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
1532 Use image_load_image_io.
1533 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
1534 Don't check MyCGImageCreateWithPNGDataProvider.
1535 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
1536 Don't call init_image_func_pointer.
1537
1538 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
1539
1540 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
1541 Make variable non-static.
1542 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1543 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
1544
1545 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
1546 (RED_FROM_ULONG): Mask off higher bits.
1547 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
1548
1549 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
1550 Include AvailabilityMacros.h.
1551 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
1552 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
1553
c6bff69e
SM
15542008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
1555
1556 * chartab.c (Fset_char_table_range): If range is t, really set all
1557 chars to that value.
1558
7412d429
EZ
15592008-05-03 Eli Zaretskii <eliz@gnu.org>
1560
1561 * dired.c (Ffile_attributes): Don't allow the device number become
1562 negative.
1563
f83bbfac
DU
15642008-05-02 Daiki Ueno <ueno@unixuser.org>
1565
5a81d3d7 1566 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 1567
2e3148e2
JL
15682008-05-02 Juri Linkov <juri@jurta.org>
1569
1570 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
1571 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
1572 DEFAULT argument as a list of default values in docstrings.
2e3148e2 1573
923fb88c
CY
15742008-05-01 Chong Yidong <cyd@stupidchicken.com>
1575
1576 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1577
047aaeb9
MR
15782008-05-01 Martin Rudalics <rudalics@gmx.at>
1579
1580 * dispnew.c (change_frame_size_1): Preserve small windows when
1581 shrinking frames by calling set_window_height|width with third
1582 arg 2.
1583
1584 * window.h (struct window): Replace field too_small_ok by field
1585 resize_proportionally.
1586
1587 * window.c (make_window): Initialize resize_proportionally.
1588 (enlarge_window): Temporarily set resize_proportionally to make
1589 sure that shrink_windows does scale the window proportionally.
1590 (shrink_windows): When window has resize_proportionally set try
1591 to shrink it proportionally by stealing from other windows.
1592 (struct saved_window, Fset_window_configuration)
1593 (compare_window_configurations): Handle resize_proportionally.
1594 (WINDOW_TOTAL_SIZE): New macro.
1595 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 1596 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
1597 window-min-height|width are handled by window_min_size_2 now.
1598 (size_window, Fsplit_window, enlarge_window)
1599 (adjust_window_trailing_edge, grow_mini_window): Don't call
1600 check_min_window_sizes.
c6bff69e
SM
1601 (window_min_size_2, window_min_size_1, window_min_size):
1602 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 1603 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
1604 (adjust_window_trailing_edge, grow_mini_window):
1605 Adjust arguments of window_min_size... functions.
047aaeb9
MR
1606 (shrink_windows): Argument min_size removed. New argument
1607 safe_p allows shrinking windows to their safe minimum sizes.
1608 Calculate minimum size and decide whether a window shall be
1609 deleted for each window individually.
1610 (size_window): When nodelete_p equals 2, tell shrink_windows to
1611 delete windows only if their new minimum size is no more safe.
1612 (shrink_window_lowest_first): Call window_min_size_1 to make
1613 sure to preserve modeline of bottom-most window when resizing
1614 the minibuffer.
1615 (Fset_window_configuration, Fcurrent_window_configuration)
1616 (compare_window_configurations): Do not handle
1617 window-min-height|width any more.
1618 (syms_of_window): Clarify window-min-height|width doc-strings.
1619
2a54a229
SM
16202008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
1621
1622 * dired.c (file_name_completion): Fix up the encoding/decoding issue
1623 some more. Copy some of the code from Ftry_completions.
1624 Remove special case code that dates back to initial revision when the
1625 slash was only added when necessary and that can't trigger nowadays.
1626
384bc634
KH
16272008-04-27 Kenichi Handa <handa@m17n.org>
1628
1629 * font.c (font_prop_validate): Signal `error' instead of `font'.
1630
2c2279c6
JR
16312008-04-29 Jason Rumney <jasonr@gnu.org>
1632
1633 * w32fns.c (Fw32_battery_status): New defun.
1634 (syms_of_w32fns): Defsubr it.
1635
fb4a622a
AS
16362008-04-28 Andreas Schwab <schwab@suse.de>
1637
1638 * dired.c (file_name_completion): Fix another mixing of encoded
1639 and decoded names.
1640
23f250f4
JB
16412008-04-28 Juanma Barranquero <lekktu@gmail.com>
1642
1643 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
1644
d8d30dff
JB
16452008-04-27 Juanma Barranquero <lekktu@gmail.com>
1646
1647 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1648
ea6104a8
AS
16492008-04-27 Andreas Schwab <schwab@suse.de>
1650
9c691c00
AS
1651 * dired.c (file_name_completion): Fix inappropriate mixing of
1652 encoded and decoded names.
1653
ec1bf773
AS
1654 * xterm.c (XTread_socket): Fix use of uninitialized variable.
1655
ea6104a8
AS
1656 * puresize.h (BASE_PURESIZE): Increase to 1200000.
1657
01388a3d
EZ
16582008-04-26 Eli Zaretskii <eliz@gnu.org>
1659
1660 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
1661 2008-03-31, it's not needed anymore with `struct stat' definition
1662 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
1663 for the same reasons.
1664
175aea10 16652008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
1666
1667 * m/sparc.h: Additional redefinitions for GNU/Linux.
1668
1289aeb8
YM
16692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1670
1671 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
1672 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1673 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
1674 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
1675 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1676 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
1677 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1678 Likewise.
1679
1680 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 1681 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
1682 (mac_ax_number_of_characters): Add externs.
1683 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
1684 [USE_MAC_TSM]: Likewise.
1685 (mac_handle_text_input_event) [MAC_OSX]:
1686 Handle kEventTextInputOffsetToPos for no active input area case.
1687 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1688 (mac_handle_document_access_event)
1689 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
1690 (install_application_handler) [MAC_OSX]: Register handlers for
1691 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
1692 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1693 Register mac_handle_document_access_event.
1694
1695 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
1696 Make functions non-static.
1697
dbd50d4b
SM
16982008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1699
1700 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
1701 (read_file_name_completion_ignore_case, insert_default_directory)
1702 (Qdefault_directory): Move to minibuffer.el.
1703 (Fread_file_name): Call the new `read-file-name' instead.
1704
9ea37b9d 17052008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
1706
1707 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
1708 Make function non-static.
1709 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
1710 Remove function.
1711 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1712 Move to mactoolbox.c.
1713 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
1714
1715 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
1716 (mac_rect_make): New macro.
1717
1718 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
1719 instead of float.
1720 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1721 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
1722 (XSetBackground) [USE_CG_DRAWING]: Likewise.
1723 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
1724 CGRectMake.
1725 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
1726 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
1727 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
1728 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1729 instead of WindowRef in argument type.
1730 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
1731 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
1732 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
1733 instead of DISPLAY. All uses changed.
1734 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
1735 (x_calc_absolute_position): Simplify so as not to use
1736 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
1737
1738 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
1739 instead of WindowRef in argument type.
1740 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
1741 [TARGET_API_MAC_CARBON]: Remove externs.
1742 (create_apple_event, mac_event_parameters_to_lisp)
1743 [TARGET_API_MAC_CARBON]: Add externs.
1744
d8d30dff 1745 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
1746 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
1747 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
1748 is clicked.
1749 (x_activate_menubar): Remove extern for saved_menu_event_location.
1750 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
1751 Move from mac.c.
1752
9ea37b9d 17532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
1754
1755 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
1756 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
1757
9ea37b9d 17582008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
1759
1760 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
1761 attributes only for local files.
1762
1763 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 1764 default to Qlocal.
bd735631 1765
88970542
JL
17662008-04-22 Juri Linkov <juri@jurta.org>
1767
1768 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
1769 read-buffer-to-switch instead of using the letter "B".
1770
92ec67e3
SM
17712008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1772
1773 * fileio.c (Qdefault_directory): New variable.
1774 (Fread_file_name): Use it to pass `dir' to the completion functions.
1775
a32b2382
CY
17762008-04-20 Chong Yidong <cyd@stupidchicken.com>
1777
2a2e8de7 1778 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 1779
6c8b4f07
SM
17802008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
1781
ece5f847
SM
1782 * keyboard.c (Vpre_help_message): Remove.
1783 (show_help_echo): Remove default C code.
1784
6c8b4f07
SM
1785 * dired.c (directory_files_internal, file_name_completion):
1786 Only call ENCODE_FILE if the string is indeed decoded.
1787
73d798d5
SM
17882008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1789
1790 * Makefile.in (TOOLKIT_DEFINES): Remove.
1791 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
1792
d8d30dff 17932008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
1794
1795 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
1796 (mactoolbox.o): New target.
1797
1798 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
1799 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
1800
1801 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
1802 Use mac_set_frame_window_background instead of XSetWindowBackground.
1803 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
1804 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
1805 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
1806 instead of SetWindowTitleWithCFString.
1807 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
1808 Move function to mactoolbox.c.
1809 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1810 Use mac_set_window_modified instead of SetWindowModified.
1811 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
1812 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
1813 (Fx_focus_frame): Use mac_front_non_floating_window instead of
1814 FrontNonFloatingWindow. Use mac_activate_window instead of
1815 ActivateWindow. Use mac_active_non_floating_window instead of
1816 ActiveNonFloatingWindow.
1817 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
1818 Use mac_show_hourglass and mac_hide_hourglass.
1819 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
1820 instead of GetGlobalMouse.
1821 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
1822 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
1823 Use mac_bring_window_to_front instead of BringToFront.
1824 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
1825 mactoolbox.c.
1826 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
1827 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
1828 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
1829 mactoolbox.c.
1830
1831 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
1832 (XtPointer): Move typedef from macmenu.c.
1833 (enum button_type): Move enum from macmenu.c.
1834 (widget_value): Move typedef from macmenu.c.
1835 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
1836 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1837 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1838 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1839 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1840 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1841 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1842 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
1843 (Selection): Move typedef from macselect.c.
1844 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
1845 macterm.c.
1846 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
1847 (mac_is_window_collapsed, mac_bring_window_to_front)
1848 (mac_send_window_behind, mac_hide_window, mac_show_window)
1849 (mac_collapse_window, mac_front_non_floating_window)
1850 (mac_active_non_floating_window, mac_activate_window)
1851 (mac_move_window_structure, mac_move_window, mac_size_window)
1852 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
1853
1854 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
1855 (enum mac_menu_kind): Move enum to mactoolbox.c.
1856 (min_menu_id): Move variable to mactoolbox.c.
1857 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
1858 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
1859 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
1860 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
1861 [TARGET_API_MAC_CARBON]: Likewise.
1862 (XtPointer): Move typedef to macgui.h.
1863 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
1864 (widget_value): Move typedef to macgui.h.
1865 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1866 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
1867 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1868 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1869 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1870 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1871 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
1872 (popup_activated_flag): Make variable non-static.
1873 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
1874 (add_menu_item, fill_menu, dispose_menus):
1875 Move functions to mactoolbox.c.
1876 (restore_show_help_function, menu_target_item_handler)
1877 (install_menu_target_item_handler, mac_handle_dialog_event)
1878 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
1879 [TARGET_API_MAC_CARBON]: Likewise.
1880 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
1881 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1882 (find_and_call_menu_selection, name_is_separator): Make function
1883 non-static.
1884 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
1885 to mactoolbox.c.
1886 (set_frame_menubar): Don't call install_menu_quit_handler.
1887 (menu_item_selection): New variable.
1888 (mac_menu_show): Use create_and_show_popup_menu.
1889 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
1890 selection but set variable menu_item_selection. All uses changed.
1891 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
1892 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 1893
d02fe47d
MB
1894 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
1895 (Selection): Move typedef to macgui.h.
1896 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
1897 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
1898 Make variables non-static.
1899 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1900 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
1901 Make functions non-static.
1902 (Vmac_service_selection) [MAC_OSX]: Likewise.
1903 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
1904 (mac_valid_selection_target_p, mac_clear_selection)
1905 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1906 (mac_put_selection_value, mac_selection_has_target_p)
1907 (mac_get_selection_value, mac_get_selection_target_list)
1908 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
1909 Move functions to mactoolbox.c.
1910 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
1911 Likewise.
1912 (copy_scrap_flavor_data, mac_handle_service_event)
1913 (install_service_handler) [MAC_OSX]: Likewise.
1914 (syms_of_macselect) <Vmac_dnd_known_types>:
1915 Use mac_dnd_default_known_types.
463f55ee 1916
d02fe47d
MB
1917 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
1918 Move to mactoolbox.c.
1919 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
1920 (Fx_selection_owner_p): Add EXFUN.
1921 (install_window_handler, remove_window_handler, XSetWindowBackground):
1922 Remove externs.
1923 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
1924 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
1925 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
1926 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
1927 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
1928 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
1929 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
1930 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
1931 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
1932 (create_and_show_popup_menu, mac_get_selection_from_symbol)
1933 (mac_valid_selection_target_p, mac_clear_selection)
1934 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
1935 (mac_put_selection_value, mac_selection_has_target_p)
1936 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
1937 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
1938 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
1939 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
1940 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
1941 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
1942 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
1943 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
1944 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 1945
d02fe47d 1946 * mactoolbox.c: New file.
af253914 1947
d8d30dff 19482008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 1949
d02fe47d 1950 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 1951
8ee085a4
SM
19522008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1953
73d798d5
SM
1954 * character.c (Fmultibyte_char_to_unibyte):
1955 Return latin1 chars unchanged.
5556875b 1956
8ee085a4
SM
1957 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
1958 relocated if it points to `name'.
1959
5dff5999
KH
19602008-04-17 Kenichi Handa <handa@m17n.org>
1961
1962 * data.c (Faset): Allow setting a multibyte character in an
1963 ASCII-only unibyte string.
1964
1965 * lisp.h (STRING_SET_MULTIBYTE): New macro.
1966
a51f4969
SM
19672008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
1970 done in config.h.
1971
add553ac
JB
19722008-04-16 Juanma Barranquero <lekktu@gmail.com>
1973
1974 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
1975 (Fchar_direction): Add usage in the docstring.
1976
8ad7b280
CY
19772008-04-15 Chong Yidong <cyd@stupidchicken.com>
1978
1979 * keyboard.c (read_key_sequence): Remove always-true checks.
1980
e157d7ba
JR
19812008-04-14 Jason Rumney <jasonr@gnu.org>
1982
1983 * w32font.c (w32font_open_internal): Set max_bounds.descent in
1984 compatibility struct, for better underline positioning.
1985
9ec3aaef 19862008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
1987
1988 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
1989 string.
1990
36c08864
DN
19912008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1992
1993 * m/hp800.h (XUINT, XSET): Remove.
1994
f5acc071
JB
19952008-04-12 Juanma Barranquero <lekktu@gmail.com>
1996
1997 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
1998 previous change.
1999
5b5a2ea1
SM
20002008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2001
2002 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
2003 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2004
492d9fd6
SM
20052008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2006
2007 * keymap.h (map_keymap_canonical): Declare.
2008 * xmenu.c (single_keymap_panes): Use it.
2009
dd60787c
GM
20102008-04-11 Glenn Morris <rgm@gnu.org>
2011
2012 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
2013 set the target's value to that of the alias.
2014
c23b5410
SM
20152008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2016
2017 * term.c (set_tty_color_mode): Left over typo.
2018
e89b536d
MA
20192008-04-10 Michael Albinus <michael.albinus@gmx.de>
2020
2021 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 2022 only after check for file name handler functions. Signal, when
e89b536d
MA
2023 native functionality is not supported.
2024 (syms_of_fileio): Declare it unconditionally.
2025
40a339c8
JR
20262008-04-10 Jason Rumney <jasonr@gnu.org>
2027
31403b24
JR
2028 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
2029 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2030
40a339c8
JR
2031 * w32.c (logon_network_drive): Also logon to remote drives that
2032 are mapped to drive letters.
2033
96a7394f
GM
20342008-04-10 Glenn Morris <rgm@gnu.org>
2035
2036 * xdisp.c (truncate-partial-width-windows): Doc fix.
2037
34b67b0f
SM
20382008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
2041 Move functions to minibuffer.el.
2042 (syms_of_fileio): Don't declare them.
2043
c025fb0a
SM
20442008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2045
ba5ff07b
SM
2046 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
2047 (syms_of_minibuf): Remove its initialization.
2048
c025fb0a
SM
2049 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
2050
7a6a86ad
JB
20512008-04-09 Juanma Barranquero <lekktu@gmail.com>
2052
2053 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
2054
cf907d69
JR
20552008-04-09 Jason Rumney <jasonr@gnu.org>
2056
3dc94c30
JR
2057 * makefile.w32-in (distclean): Delete makefile too.
2058 (maintainer-clean): New target.
2059
8d28646b
JR
2060 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
2061
cf907d69
JR
2062 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
2063 for new font backend and composite cases.
2064
ef5eb925
JD
20652008-04-09 Jan Djärv <jan.h.d@swipnet.se>
2066
2067 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
2068 Most of the code moved to run_timers.
2069 (do_pending_atimers): Call run_timers.
2070 (run_timers): New function.
2071
cf907d69
JR
2072 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
2073 run atimers.
ef5eb925
JD
2074
2075 * process.c (wait_reading_process_output): The same as above.
2076
9b2cd403
SM
20772008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2078
32bae13c
SM
2079 * minibuf.c (last_exact_completion): Remove variable.
2080 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
2081 (complete_and_exit_1, complete_and_exit_2)
2082 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2083 (Fdisplay_completion_list, display_completion_list_1)
2084 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
2085 (Fexit_minibuffer, Fminibuffer_message): Move functions to
2086 minibuffer.el.
32bae13c
SM
2087 (syms_of_minibuf): Remove corresponding initializations.
2088
5c4cc82a
SM
2089 * keyboard.c (Qdeactivate_mark): New var.
2090 (command_loop_1): Use it to call `deactivate-mark'.
2091 (syms_of_keyboard): Initialize it.
2092
9b2cd403
SM
2093 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
2094 to another frame.
2095 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
2096 Don't call set_tty_color_mode.
2097 (store_frame_param): Reset previous_frame rather than call
2098 set_tty_color_mode.
2099 * term.c (set_tty_color_mode): Rewrite.
2100 * dispextern.h (set_tty_color_mode): New type.
2101 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
2102
84cb7b45
SM
21032008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2104
2105 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
2106 for generic chars, which do not exist any more in emacs-unicode.
2107
3ed051d4
MA
21082008-04-08 Michael Albinus <michael.albinus@gmx.de>
2109
2110 * coding.c (detect_coding_emacs_mule)
2111 (Ffind_operation_coding_system): Fix typo.
2112
58c3ea42
JR
21132008-04-08 Jason Rumney <jasonr@gnu.org>
2114
3bf8d230
JR
2115 * w32uniscribe.c (SNAME): Extract only symbol name.
2116
56a70cca
JR
2117 * w32font.h (struct w32_metric_cache): New struct.
2118 (w32font_info): Use it.
2119 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
2120 (CACHE_BLOCKSIZE): New constants.
3ed051d4 2121
58c3ea42
JR
2122 * w32font.c (Qja, Qko, Qzh): New symbols.
2123 (syms_of_w32font): Initialise them.
2124 (font_matches_spec): Use them to filter by language.
2125 (recompute_cached_metrics): Remove function.
2126 (compute_metrics, clear_cached_metrics): New functions.
2127 (w32font_encode_char): Use them to manage metric cache.
2128 (w32font_text_extents): Cache metrics for all glyphs on demand.
2129 Delay converting glyph indices to WORD until needed.
2130 (w32font_open_internal): Initialize metric cache to empty.
2131 (registry_to_w32_charset): Charset should always be a symbol.
2132 (fill_in_logfont, list_all_matching_fonts): Family should
2133 always be a symbol.
2134
0ce24b2d
JR
21352008-04-06 Jason Rumney <jasonr@gnu.org>
2136
2137 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
2138 Give up if glyph indices not supported. Use uniscribe obtained
2139 ABC widths for individual metrics. Map glyph clusters back to
2140 characters using fClusterStart flag. Return number of glyphs
2141 produced, not chars processed.
b7655e0c 2142 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 2143
5bc6ddff 21442008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 2145
fbf57abb
JB
2146 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
2147 Use SetMenuItemHierarchicalMenu.
56613f06 2148
5bc6ddff 21492008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 2150
5bc6ddff
MB
2151 * image.c (pbm_load): Allow color values up to 65535.
2152 Throw an error if max_color_idx is outside the supported range.
2153 Report an error when image size is invalid.
2154 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 2155
5bc6ddff 21562008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 2157
5bc6ddff
MB
2158 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2159 cFileName a file name that includes `?' characters, use the 8+3
2160 alias in cAlternateFileName instead.
5ed6ba5b 2161
5bc6ddff 21622008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 2163
5bc6ddff
MB
2164 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
2165 append "CCL: Quitted" when the CCL program is quitted.
2166 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 2167
5bc6ddff 2168 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 2169
c36e15db
CY
21702008-04-05 Chong Yidong <cyd@stupidchicken.com>
2171
9605d567
CY
2172 * search.c (compile_pattern_1): Treat non-nil and non-string of
2173 search-spaces-regexp as nil.
2174
c36e15db
CY
2175 * minibuf.c (Fassoc_string): Tweak docstring.
2176
40beb147
EZ
21772008-04-05 Eli Zaretskii <eliz@gnu.org>
2178
2179 * dired.c (Ffile_attributes): Support inode numbers wider than 32
2180 bits. Remove ugly WINDOWSNT-specific kludge introduced on
2181 2008-03-14 to force inode be positive.
2182
2183 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
2184 _S_* ones, since we now use our own sys/stat.h.
2185 (stat, fstat): Don't mangle the inode number.
aa08d1ff 2186 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 2187
4591d6cb
SM
21882008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
2189
d4417eb0
SM
2190 * frame.h (struct frame): Give one more bit to `visible' since we use
2191 values larger than 1 to indicate obscured frames on ttys.
2192
00f7c5ed
SM
2193 * keymap.c (Qkeymap_canonicalize): New var.
2194 (Fmap_keymap_internal): New fun.
2195 (describe_map): Use keymap-canonicalize.
2196
4591d6cb
SM
2197 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
2198 (Fundo_boundary): Set them.
2199 (syms_of_undo): Initialize them.
2200 (record_point): Use them instead of last_point_position*.
2201 (last_undo_buffer): Change type.
2202
3187540e
JR
22032008-04-04 Jason Rumney <jasonr@gnu.org>
2204
0ce24b2d
JR
2205 * w32font.c (w32font_text_extents): Use font's ascent and descent.
2206 (recompute_cached_metrics): Don't set ascent and descent per char.
2207
3187540e 2208 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 2209 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 2210 Rearrange loop for counting features.
3187540e 2211
f1a6b216
SM
22122008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2213
2214 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
2215 buffer with byte-size of source buffer.
2216
1d8dcf63
CY
22172008-04-03 Chong Yidong <cyd@stupidchicken.com>
2218
2219 * callint.c (Fcall_interactively): Handle temporary region even
2220 when shift-select-mode is off.
2221
6b8aa22a
JR
22222008-04-03 Jason Rumney <jasonr@gnu.org>
2223
2224 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
2225
2f3cbb32
KH
22262008-04-03 Kenichi Handa <handa@m17n.org>
2227
2228 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
2229 (CATEGORY_MASK_UTF_16): Likewise.
2230 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
2231 binary file.
2232 (detect_coding): Add null-byte detection for a binary file.
2233 (detect_coding_system): Likewise.
2234
43f4f91c
JR
22352008-04-03 Jason Rumney <jasonr@gnu.org>
2236
0c1b4ae2
JR
2237 * w32uniscribe.c: New file.
2238
2239 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
2240
2241 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
2242
2243 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
2244 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
2245 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
2246 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
2247 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
2248 (Qphonetic): New symbols.
2249 (syms_of_w32font): Initialize them.
2250 (font_supported_scripts): Use them.
2251 (w32font_list_family): List all charsets.
2252 (w32font_text_extents, recompute_cached_metrics): Fix metric
2253 calculations.
2254 (w32_enumfont_pattern_entity): Make full_type a DWORD.
2255 Give opentype fonts their own format.
2256 (font_matches_spec): New arguments backend and logfont.
2257 Handle :otf spec for uniscribe backend.
2258 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
2259 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 2260
0c1b4ae2
JR
2261 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
2262 font backend.
2263 (globals_of_w32fns): Initialize uniscribe font backend.
2264
fbf57abb 2265 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
2266 dependencies.
2267 (w32uniscribe.$(O)): New file to build.
2268 (FONT_OBJ): Include w32uniscribe.$(O).
2269 (LIBS): Add uniscribe libraries.
2270
43f4f91c
JR
2271 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
2272
75043a7d
CY
22732008-04-02 Chong Yidong <cyd@stupidchicken.com>
2274
2275 * callint.c (Vshift_select_mode): New var.
2276 (Finteractive): Document new ^ spec.
2277 (Fcall_interactively): Call handle-shift-selection if the ^ spec
2278 is present.
2279
2280 * keyboard.c (Vthis_command_keys_shift_translated): New var.
2281 (command_loop_1): Avoid running the direct display versions of
2282 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
2283 (read_key_sequence): Set Vthis_command_keys_shift_translated if
2284 shift-translation takes place.
2285
2286 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
2287 avoid clobbering by define-minor-mode.
2288
2289 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
2290 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
2291
2292 * syntax.c (Fforward_word): Add ^ interactive spec.
2293
2294 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
2295 (Fscroll_right): Add ^ interactive spec.
2296
b2b7f29e
SM
22972008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2298
a432c0a6
SM
2299 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
2300
994b75e0
SM
2301 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
2302
b2b7f29e
SM
2303 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
2304
e99c7806
JL
23052008-03-31 Juri Linkov <juri@jurta.org>
2306
2307 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
2308
1c9c1270
JD
23092008-03-30 Jan Djärv <jan.h.d@swipnet.se>
2310
2311 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 2312 (xg_resize_outer_widget): Remove.
1c9c1270
JD
2313 (x_wm_size_hint_off): Fix indentation.
2314 (xg_frame_set_char_size): Call flush_and_sync after
2315 gtk_window_resize.
2316 (x_wm_set_size_hint): Pass NULL as geometry window to
2317 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
2318 Add menu bar and tool bar height to base height.
2319 (xg_update_frame_menubar, free_frame_menubar)
2320 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
2321 (update_frame_tool_bar, free_frame_tool_bar):
2322 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 2323
90b3fc84
MA
23242008-03-30 Michael Albinus <michael.albinus@gmx.de>
2325
2326 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
2327 (Fdbus_call_method): New parameter TIMEOUT.
2328 (dbus-send-signal): Optimize UNGCPRO call.
2329
7ae6d1d1
JL
23302008-03-29 Juri Linkov <juri@jurta.org>
2331
2332 * window.c (Fdisplay_buffer): Move call to
2333 Vsplit_window_preferred_function out of conditions that check
2334 if window is eligible for vertical splitting.
2335 When Vsplit_window_preferred_function is non-nil, call it and use
2336 its non-nil return value as window. Otherwise, continue doing
2337 vertical splitting using Fsplit_window with arg horflag=nil.
2338 (syms_of_window) <Vsplit_window_preferred_function>: Change the
2339 default value from `split-window' to nil.
2340
f03f8f2c
JL
23412008-03-29 Juri Linkov <juri@jurta.org>
2342
2343 * callint.c (Fcall_interactively): Revert 2008-03-16 change
2344 for interactive code letters 'b' and 'B'.
2345
6d557778
EZ
23462008-03-29 Eli Zaretskii <eliz@gnu.org>
2347
2348 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
2349 multibyte string.
2350
58555d81
SM
23512008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2352
2353 * keyboard.c (pending_funcalls): New var.
2354 (timer_check): Run it.
2355 (syms_of_keyboard): Initialize it.
2356 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
2357 (Vdelete_terminal_functions): New vars.
2358 (syms_of_terminal): Initialize them.
2359 (Fdelete_terminal): Run delete-terminal-functions.
2360 * xdisp.c (safe_eval): Rewrite.
2361 (safe_call2): New fun.
2362 * frame.c (Qdelete_frame_functions): New var.
2363 (syms_of_frame): Initialize it.
2364 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
2365 * lisp.h (safe_call2, pending_funcalls): Declare.
2366
4c92f429
AS
23672008-03-28 Andreas Schwab <schwab@suse.de>
2368
2369 * indent.c (Fmove_to_column): Move declaration before statements.
2370
a1567c45
SM
23712008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2372
2806a183
SM
2373 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
2374 (struct frame): Use bit fields for boolean vars.
2375
eef60308
SM
2376 * process.c (server_accept_connection): Simplify naming.
2377 (emacs_get_tty_pgrp): Use SDATA.
2378
a1567c45
SM
2379 * coding.c (decode_coding_object): Fix last change.
2380
30076589
JR
23812008-03-27 Jason Rumney <jasonr@gnu.org>
2382
2383 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
2384
880820fe
KH
23852008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
2386
2387 * charset.c (Fdefine_charset_internal): Change the way of
2388 registering charsets in Vcharset_order_list.
2389 (syms_of_charset): Make the charset `eight-bit' supplementary.
2390
3cf8cdfb
CY
23912008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
2392
2393 * regex.c (EXTEND_BUFFER): Change order of pointer addition
2394 operations, to avoid having the difference between pointers
2395 overflow.
2396
ef6f5c0e
SM
23972008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2398
80e3db56
SM
2399 * indent.c (check_display_width): New fun.
2400 (scan_for_column): Use it.
2401
c397dc7a
SM
2402 * data.c (syms_of_data): Mark most-positive-fixnum and
2403 most-negative-fixnum as constants.
2404
bf6b4d58
SM
2405 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
2406
ef6f5c0e
SM
2407 * indent.c (scan_for_column): Extract from current_column_1.
2408 Merge with the same code from Fmove_to_column.
2409 (current_column_1, Fmove_to_column): Use it.
2410
72d5003d
SM
24112008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2412
12270607
SM
2413 * keymap.c (map_keymap_internal): New fun.
2414 (map_keymap): Use it.
2415 (Fmap_keymap_internal): New fun.
2416 (Fmap_keymap): Remove left-out test from before make_save_value.
2417
a10cca6c
SM
2418 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2419
d7b10f4c
SM
2420 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
2421 Use XCAR/XCDR.
2422
5431bd6a
SM
2423 * process.h (struct Lisp_Process): Remove filter_multibyte.
2424 * process.c (QCfilter_multibyte): Remove.
2425 (setup_process_coding_systems): Don't use filter_multibyte.
2426 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
2427 (read_process_output): Don't adjust multibyteness to filter_multibyte.
2428 (Fset_process_filter_multibyte): Change the coding-system to
2429 approximate the previous behavior.
2430 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
2431 coding-system.
2432
72d5003d
SM
2433 * coding.c (decode_coding_object): When not decoding into a buffer,
2434 obey the coding system's preference of (uni|multi)byte.
2435
438eba3c
SM
24362008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2437
2438 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
2439 every char is changed and has a different byte-length.
2440 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
2441 Fix int -> EMACS_INT.
2442
9ec3aaef 24432008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 2444
438eba3c 2445 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
2446 strings. Check for NULL `interface' or `member'.
2447
b07103dc
EZ
24482008-03-22 Eli Zaretskii <eliz@gnu.org>
2449
2450 * w32.c (readdir): If FindFirstFile/FindNextFile return in
2451 cFileName a file name that includes `?' characters, use the 8+3
2452 alias in cAlternateFileName instead.
2453
5371d722
SM
24542008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
2455
2456 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
2457
6ba7f443
SM
24582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2459
2460 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
2461 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
2462 work on current_buffer only instead (that was already the case
2463 for some of the code anyway).
2464 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
2465 (temp_set_point, temp_set_point_both): Use EMACS_INT.
2466 (SET_PT, SET_PT_BOTH): Adjust.
2467 * intervals.h (set_point, temp_set_point, set_point_both)
2468 (temp_set_point_both): Remove redundant declarations.
2469
bf1c0f27
SM
24702008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2471
2472 * fileio.c (Finsert_file_contents):
2473 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
2474 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
2475 when buffer != current_buffer anyway.
2476
acab783e
AS
24772008-03-20 Andreas Schwab <schwab@suse.de>
2478
2479 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
2480 as default.
2481
d148e14d
JR
24822008-03-19 Jason Rumney <jasonr@gnu.org>
2483
2484 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
2485 (syms_of_w32fns): Initialize them.
2486 (HOURGLASS_ID): New constant.
2487 (x_window_to_frame): Don't check hourglass_window.
2488 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
2489 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
2490 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
2491 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
2492 Only change the cursor if hourglass is not active.
2493 (Fx_create_frame): Initialize frame's current_cursor.
2494 (hourglass_atimer): Remove.
2495 (hourglass_started): New function.
2496 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
2497 (show_hourglass): Adapt to w32, changing argument to frame.
2498
2499 * w32term.h (struct w32_output): Remove hourglass_window.
2500 Add current_cursor.
2501
2502 * eval.c (call_debugger, Fsignal):
2503 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
2504 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
2505 (Fexecute_extended_command, cancel_hourglass_unwind):
2506 * minibuf.c (read_minibuf):
2507 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 2508
a5c54077
JB
25092008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2510
2511 * window.c (run_funs): New fun.
2512 (run_window_configuration_change_hook): Use it to run the buffer-local
2513 and the global part of the hook.
2514
2515 * xdisp.c (format_mode_line_unwind_data): Add window argument.
2516 (unwind_format_mode_line): Restore selected window.
2517 (x_consider_frame_title, Fformat_mode_line): Set selected window.
2518
f9f3238f
SM
25192008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2520
253c3c82
SM
2521 * editfns.c (Fchar_equal): Check they are valid characters.
2522
f9f3238f
SM
2523 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
2524
065a118d
AS
25252008-03-17 Andreas Schwab <schwab@suse.de>
2526
0b8be006
AS
2527 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
2528 against a charset.
2529
065a118d
AS
2530 * lisp.h (Fbuffer_list): Declare.
2531
880820fe 25322008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
2533
2534 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
2535 handlebox_widget is != 0.
2536
6206d6c2
JL
25372008-03-16 Juri Linkov <juri@jurta.org>
2538
2539 * callint.c (Fcall_interactively): For interactive code letters
2540 'b' and 'B' put the buffer list into the list of default "future"
2541 values of the minibuffer.
2542
f5020181
AS
25432008-03-16 Andreas Schwab <schwab@suse.de>
2544
a864f6d6
AS
2545 * keyboard.c (read_key_sequence): Fix downcasing of letters with
2546 modifiers.
2547
f5020181
AS
2548 * regex.c (re_match_2_internal): Correct matching of a charset
2549 against latin-1 characters.
2550
03f244e2
KH
25512008-03-16 Kenichi Handa <handa@m17n.org>
2552
2553 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
2554 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
2555 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
2556 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
2557 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
2558 CHAR_STRING_ADVANCE.
2559 (produce_chars): Fix for the case that the source and the
2560 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
2561 instead of CHAR_STRING_ADVANCE.
2562 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
2563 STRING_CHAR_ADVANCE.
2564
0e2501ed
AS
25652008-03-15 Andreas Schwab <schwab@suse.de>
2566
2567 * regex.c (re_match_2_internal): Correct matching of eight bit
2568 characters in unibyte strings.
2569
7723e095
MR
25702008-03-15 Martin Rudalics <rudalics@gmx.at>
2571
2572 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
2573 at end of range when it coincides with the end of the buffer.
2574
f507f365
EZ
25752008-03-14 Eli Zaretskii <eliz@gnu.org>
2576
294f1153
EZ
2577 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
2578
f507f365
EZ
2579 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
2580
64f0809d
JR
25812008-03-14 Jason Rumney <jasonr@gnu.org>
2582
956ae531
JR
2583 * editfns.c (initial_tz): New variable.
2584 (syms_of_editfns): Initialize it.
2585 (Fset_time_zone_rule): Set it when first called.
2586 Use it when TZSTRING is nil.
2587
64f0809d
JR
2588 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
2589 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
2590 (monitor_from_point_fn, get_monitor_info_fn): New globals.
2591 (globals_of_w32fns): Initialize them.
2592 (compute_tip_xy): Use them to position tooltips.
2593
21a4ff8e
GM
25942008-03-14 Glenn Morris <rgm@gnu.org>
2595
2596 * emacs.c (main): Revert previous change.
2597 (standard_args): Revert -internal-script back to -scriptload,
2598 and remove the long-option form.
2599
a09a5b5b
GM
26002008-03-13 Glenn Morris <rgm@gnu.org>
2601
2602 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
2603 Remove option -enable-font-backend.
2604
1c55ebd1
SM
26052008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2606
2607 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
2608
880820fe 26092008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
2610
2611 * xterm.c (x_connection_closed): For GTK: If this is the last
2612 terminal just exit without closing the display.
2613
7145be81
JR
26142008-03-11 Jason Rumney <jasonr@gnu.org>
2615
2616 * w32font.c (w32font_full_name): Use floor to round.
2617
e6201af3 26182008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
2619
2620 * sound.c (alsa_configure): Declare vol at beginning of block.
2621
e6201af3 2622 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 2623
390b81fa 26242008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 2625
56388398
MB
2626 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
2627 size of resulting string.
af0ad939 2628
390b81fa 26292008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 2630
56388398 2631 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 2632
390b81fa 26332008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 2634
56388398
MB
2635 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
2636 Don't pretend as if characters with display property haven't been
2637 consumed for string-replacing-string case.
acd37560 2638
223ed6db
KS
26392008-03-08 Kim F. Storm <storm@cua.dk>
2640
2641 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
2642 (get_next_display_element, next_element_from_string)
2643 (next_element_from_ellipsis, next_element_from_buffer): Use it.
2644
28545f7c
AS
26452008-03-08 Andreas Schwab <schwab@suse.de>
2646
2647 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
2648
c960bff8
JR
26492008-03-06 Jason Rumney <jasonr@gnu.org>
2650
290afd83
JB
2651 * w32font.c (w32_registry): Take font_type argument. Use ANSI
2652 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
2653 font_type is truetype.
2654 (w32font_coverage_ok): New function.
2655 (add_font_entity_to_list): Use it to filter unsuitable fonts.
2656
87b8ce92
KH
26572008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
2658
2659 * lread.c (Fread_char): Resolve modifiers.
2660 (Fread_char_exclusive): Likewise.
2661
2662 * character.c (char_resolve_modifier_mask): New function.
2663 (char_string): Use char_resolve_modifier_mask.
2664 (Fchar_resolve_modifiers): New function.
2665 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
2666 function.
2667
cefd56f6
JR
26682008-03-04 Jason Rumney <jasonr@gnu.org>
2669
2670 * makefile.w32-in: Always include w32font.c in the build.
2671 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
2672
03bd3c1f
AS
26732008-03-04 Andreas Schwab <schwab@suse.de>
2674
2675 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
2676 (versionclean): Likewise.
2677
6f69e89b
JB
26782008-03-04 Juanma Barranquero <lekktu@gmail.com>
2679
2680 * .cvsignore: Add oo.
2681
f4a3cc44
AS
26822008-03-03 Andreas Schwab <schwab@suse.de>
2683
2684 * coding.c (decode_coding_object): Inhibit gap shrinking while
2685 decoding in place.
2686
73f838ad
DN
26872008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
2688
2689 * w32term.c: Remove unused include "gnu.h".
6f69e89b 2690 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
2691
2692 * gnu.h: Rename to ...
2693 * emacs-icon.h: ... this.
2694 * xterm.c: Use emacs-icon.h instead of gnu.h.
2695 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
2696
ce9c1f06
JB
26972008-03-03 Juanma Barranquero <lekktu@gmail.com>
2698
2699 * w32font.c: Include math.h.
2700
34fd2d28
JR
27012008-03-03 Jason Rumney <jasonr@gnu.org>
2702
54efdcd1
JR
2703 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
2704 Compute options separately.
2705 (w32font_open_internal): Set glyph_idx before caching metrics.
2706
ce9c1f06
JB
2707 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
2708 Define if system headers don't.
2709 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
2710 (w32font_encode_char): Don't declare here.
2711
2712 * w32font.c (Quniscribe, QCformat): New symbols.
2713 (syms_of_w32font): Define them.
2714 (w32font_has_char): Indicate uncertainty.
ce9c1f06 2715 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 2716 (recompute_cached_metrics): New function.
ce9c1f06
JB
2717 (w32font_open_internal): Use it. Set font to use glyph points
2718 initially. Set format based on type of font.
34fd2d28 2719 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
2720 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
2721 on it. Set format based on information available here.
34fd2d28
JR
2722 (add_font_entity_to_list): Identify backend based on opentype_only.
2723
14daee73
AS
27242008-03-02 Andreas Schwab <schwab@suse.de>
2725
f907fb2e
AS
2726 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
2727
ce9c1f06
JB
2728 * coding.c (decode_coding_big5, produce_chars):
2729 Fix typos in last change.
14daee73 2730
c9cc6462
DN
27312008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
2732
2733 * gnu.h: New icon.
2734
119852e7
KH
27352008-03-02 Kenichi Handa <handa@m17n.org>
2736
2737 * coding.c (decode_coding_utf_8): When eol-type of CODING is
2738 `dos', don't decode '\r' if that is the last in the source.
2739 (decode_coding_utf_16, decode_coding_emacs_mule)
2740 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2741 (decode_coding_raw_text, decode_coding_charset): Likewise.
2742 (produce_chars): Don't decode EOL here. Use EMACS_INT.
2743
a823468b
JR
27442008-03-01 Jason Rumney <jasonr@gnu.org>
2745
2746 * w32font.c (w32font_full_name): Report point size for scalable fonts.
2747
4ddc7e30
KS
27482008-03-01 Kim F. Storm <storm@cua.dk>
2749
2750 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
2751
67997c79
JR
27522008-03-01 Jason Rumney <jasonr@gnu.org>
2753
2754 * w32font.c (w32font_full_name): New function.
2755 (w32font_open_internal): Use it.
2756
3f4e9c35
KS
27572008-03-01 Kim F. Storm <storm@cua.dk>
2758
2759 * dispnew.c (line_draw_cost): Fix invalid glyph check.
2760
f3b9e479
JR
27612008-03-01 Jason Rumney <jasonr@gnu.org>
2762
2763 * font.c (font_unparse_fcname): Increase len when style is a symbol.
2764
880820fe 27652008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
2766
2767 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
2768 xg_frame_resized when the event is for the edit widget.
2769
2770 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
2771
2772 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
2773 set_char_size.
2774 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
2775 operations on widgets here. Just set frame size if needed.
2776 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
2777 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
2778 (x_wm_set_size_hint): Set size hints on the edit widget only, not
2779 the whole frame.
2780 (xg_create_tool_bar): Move attachement of the tool bar to
2781 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
2782 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
2783
6c8acaa1
JR
27842008-03-01 Jason Rumney <jasonr@gnu.org>
2785
2786 * w32fns.c (w32_msg_pump): Disable debug code.
2787
51fb064b 27882008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 2789
51fb064b 2790 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 2791
60221a33
CY
27922008-02-29 Chong Yidong <cyd@stupidchicken.com>
2793
2794 * xdisp.c (next_overlay_string): Don't set
2795 overlay_strings_at_end_processed_p if we're currently reading from
2796 a display string.
2797
10cbc34f
SM
27982008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
2799
2800 * xdisp.c (get_overlay_strings_1): Fix typo.
2801
73c0054e
CY
28022008-02-29 Chong Yidong <cyd@stupidchicken.com>
2803
2804 * xdisp.c (get_overlay_strings_1): Add missing argument type.
2805
ec1c4354
KH
28062008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
2807
55082642
KH
2808 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
2809
ec1c4354
KH
2810 * xdisp.c (display_mode_element): Cancel the previous change.
2811 (decode_mode_spec): Likewise.
ee548a94
KH
2812 (handle_auto_composed_prop): Don't make composition if it->string
2813 is a string.
ec1c4354 2814
b6d898a2
KS
28152008-02-27 Kim F. Storm <storm@cua.dk>
2816
2817 * lisp.h (GLYPH): Change type from int to struct with separate char
2818 and face_id members.
2819 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
2820 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
2821 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
2822 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
2823 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
2824 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
2825 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
2826 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
2827 handle new Lisp glyph code encoding, either an integer or a cons.
2828
2829 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
2830 (GLYPH_ALIAS): Delete.
2831 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
2832 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
2833 (GLYPH_FROM_CHAR): Replace macro by ...
2834 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
2835
2836 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
2837 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
2838 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
2839 (GLYPH_INVALID_P): New macro.
2840 (spec_glyph_lookup_face): Update prototype.
2841
2842 * dispnew.c (line_draw_cost): Adapt to new glyph type.
2843 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
2844 new glyph code encoding.
2845 (spec_glyph_lookup_face): No return value; update passed glyph instead.
2846 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
2847
2848 * xdisp.c (get_next_display_element, next_element_from_display_vector):
2849 Adapt to new glyph type and new glyph code encoding.
2850
2851 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
2852
2853 * indent.c (current_column, current_column_1, Fmove_to_column)
2854 (compute_motion): Adapt to new glyph code encoding.
2855
2856 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
2857
af2080a2
CY
28582008-02-27 Chong Yidong <cyd@stupidchicken.com>
2859
2860 * process.c (wait_reading_process_output): Check for window
2861 changes caused by timers.
880820fe 2862 Suggested by Johan Bockgård.
af2080a2 2863
253ed25e
GM
28642008-02-27 Glenn Morris <rgm@gnu.org>
2865
2866 * emacs.c (USAGE1): Add `--disable-font-backend'.
2867
18a9f8d9
SM
28682008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
2869
2870 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
2871 is made to the buffer.
2872
0f8b27ea
SM
28732008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
2874
2875 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
2876 (face_at_string_position):
2877 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2878 (face_at_string_position):
2879 * xdisp.c (display_string, next_overlay_change):
2880 * buffer.h (overlays_at):
2881 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
2882 Update callers.
2883
4e7c53ca
CY
28842008-02-26 Chong Yidong <cyd@stupidchicken.com>
2885
2886 * editfns.c (Fformat): Doc fix.
2887
51c01100
JB
28882008-02-26 Juanma Barranquero <lekktu@gmail.com>
2889
2890 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
2891 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
2892 (Ffont_otf_alternates, Fquery_font): Doc fixes.
2893
13cda5f9
SM
28942008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2895
2896 * buffer.c (Fbuffer_swap_text): New function.
2897 (syms_of_buffer): Defsubr it.
2898
8018d430
CY
28992008-02-25 Chong Yidong <cyd@stupidchicken.com>
2900
2901 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
2902
9bde1a21
JR
29032008-02-25 Jason Rumney <jasonr@gnu.org>
2904
2905 * w32font.c (w32font_draw): Draw one character at a time when padding.
2906
eeca6f6f
SM
29072008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
2908
2909 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
2910 Handle a nil arg. Use run_window_configuration_change_hook.
2911 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
2912 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
2913 Use run_window_configuration_change_hook.
2914
ec1c4354
KH
29152008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2916
2917 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
2918 1-pixel width.
2919
ae185452
KH
29202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
2921
2922 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
2923 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
2924 if the glyph in the font is zero pixel with.
2925
2926 * dispextern.h (struct glyph_string): New member padding_p.
2927
2928 * w32font.c (w32font_draw): Pay attention to s->padding_p.
2929
2930 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
2931
2932 * xfont.c (xfont_draw): Pay attention to s->padding_p.
2933
2934 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
2935
eeca6f6f 2936 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 2937
ffe832ea 29382008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 2939
ffe832ea 2940 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 2941
06045130
SM
29422008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
2943
2944 Allow fine-grained image-cache flushing.
2945 * dispextern.h (struct image): Add `dependencies' field.
2946 (clear_image_caches): Change arg to Lisp_Object.
2947 * image.c (make_image): Initialize `dependencies' field.
2948 (clear_image_cache): Change arg to allow fine-grained flushing.
2949 Perform the flush even if image-cache-eviction-delay is nil.
2950 (clear_image_caches): Change arg to Lisp_Object.
2951 (Fclear_image_cache): Expand meaning of the argument.
2952 (mark_image): Mark `dependencies' field.
2953 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
2954 (lface_hash): Use XHASH rather than XFASTINT.
2955 (face_at_buffer_position): Fix int -> EMACS_INT position.
2956 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
2957 (select_frame_for_redisplay): Remove code duplication.
2958 (redisplay_internal): Adapt arg to call to clear_image_caches.
2959
9d2818d6
DN
29602008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
2961
2962 * s/vms4-0.h:
2963 * s/vms4-2.h:
2964 * s/vms4-4.h:
2965 * s/vms5-5.h: Remove, unused.
2966
2967 * s/irix5-2.h:
2968 * s/irix6-0.h:
2969 * s/riscos5.h:
2970 * s/mach-bsd4-3.h:
2a2e8de7 2971 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
2972
2973 * Makefile.in:
2974 * filelock.c:
2975 * unexmips.c:
2976 * m/hp9000s300.h:
2977 * m/iris4d.h:
2978 * s/aix3-1.h:
2979 * s/hpux.h:
2980 * s/msdos.h:
2981 * s/usg5-0.h:
2982 * s/usg5-2-2.h:
2983 * s/usg5-2.h:
2984 * s/usg5-3.h: Remove references to obsolete variables.
2985
2986 * s/irix5-0.h: Remove, move all the contents ...
2987 * s/irix6-5.h: ... here. Simplify.
2988 * config.in: Regenerate.
2989
2a36efcf
JR
29902008-02-24 Jason Rumney <jasonr@gnu.org>
2991
c5ad7a3d 2992 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
2993 manually when cleartype is in use.
2994 (x_draw_glyph_string_foreground): Draw text transparently when
2995 cleartype is in use.
2996
2a36efcf
JR
2997 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
2998 a font into it unless we have to.
2999
b03f96dc 30002008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 3001
b03f96dc
MB
3002 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
3003 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 3004
b03f96dc 30052008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 3006
b03f96dc 3007 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 3008
b03f96dc 30092008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 3010
b03f96dc 3011 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 3012
b03f96dc 30132008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 3014
b03f96dc 3015 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 3016
d5958163
CY
30172008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
3018
3019 * xterm.c (x_set_offset): Don't change the gravity if
3020 CHANGE_GRAVITY is -1.
3021
9997701e
CY
30222008-02-23 Chong Yidong <cyd@stupidchicken.com>
3023
3024 * fileio.c (auto_save_error_occurred): New var.
3025 (auto_save_error): Set it.
3026 (Fdo_auto_save): Don't overwrite the error message if an auto-save
3027 error occurred.
3028
9d95a291
EZ
30292008-02-23 Eli Zaretskii <eliz@gnu.org>
3030
3031 * w32.c (globals_of_w32): Add initializations for
3032 g_b_init_get_sid_sub_authority and
3033 g_b_init_get_sid_sub_authority_count.
3034
43d1af23
SM
30352008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3036
43a1d19b
SM
3037 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
3038 (font_parse_xlfd): Use them for sanity check.
608c3307 3039 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 3040
354884c4
SM
3041 Consolidate the image_cache to the terminal struct.
3042 * termhooks.h (P_): Remove redundant def.
3043 (struct terminal): New field `image_cache'.
3044 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
3045 of FRAME_X_IMAGE_CACHE.
3046 * xterm.h (struct x_display_info): Remove image_cache field.
3047 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3048 * w32term.h (struct w32_display_info): Remove image_cache field.
3049 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3050 * macterm.h (struct mac_display_info): Remove image_cache field.
3051 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
3052 * xterm.c (x_term_init):
3053 * w32term.c (w32_term_init):
3054 * macterm.c (mac_term_init): Set the image_cache in the terminal.
3055 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
3056 Remove declarations.
3057 (clear_image_caches, mark_image_cache): New declarations.
3058 * xfaces.c (clear_face_cache):
3059 * xdisp.c (redisplay_internal): Use clear_image_caches.
3060 * image.c (clear_image_cache): Don't check that a frame is on
3061 a window-system before checking if it shares the same cache.
3062 (clear_image_caches): New function.
3063 (Fclear_image_cache): Use it.
3064 (mark_image): Move from allo.c.
3065 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
3066 * alloc.c (mark_image, mark_image_cache): Move to image.c.
3067 (mark_object): Don't call mark_image_cache for frames.
3068 (mark_terminals): Call mark_image_cache.
3069
c2e42690
SM
3070 * lisp.h (Fdelete_terminal): Declare.
3071
43d1af23
SM
3072 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
3073 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
3074 wrong_type_argument.
3075
cc8d1311
KH
30762008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
3077
3078 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 3079 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 3080
6bd92640
SM
30812008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
3082
3083 * xterm.c (x_connection_closed): Consolidate identical tests.
3084 (x_delete_terminal): Don't crash if called via x_connection_closed.
3085
a73b5627
KH
30862008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
3087
3088 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 3089 (display_mode_element): Adjust for the above change.
a73b5627 3090
1b511542
SM
30912008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3092
3093 * callint.c (Fcall_interactively): Use AREF.
3094
81aefea4
SM
30952008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3096
3097 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
3098
880820fe 30992008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
3100
3101 * xfns.c (Fx_show_tip): Set string to " " if empty.
3102
a2b84f35
DN
31032008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
3104
3105 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
3106 with Qt.
3107
43c0454d
KH
31082008-02-17 Kenichi Handa <handa@m17n.org>
3109
3110 * ftfont.c (ftfont_shape): Return Lispy number.
3111
3112 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
3113 for GCs.
3114 (Finternal_set_font_selection_order): Call font_update_sort_order
3115 only when enable_font_backend is set.
3116 (realize_x_face): Set face->font_info to that of default face only
3117 when enable_font_backend is set.
3118
3119 * xdisp.c (handle_composition_prop): Set it->c to the fist
3120 characte of the composed region.
3121 (fill_composite_glyph_string): Set base_face->font_info to
3122 s->font_info. Get a face for ascii from base_face->ascii_face.
3123 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
3124 with a face already decided.
3125 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
3126 non-negative.
978bef9a
JB
3127 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
3128 call font_prepare_composition unconditionally.
43c0454d 3129
978bef9a 3130 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
3131
3132 * xterm.h (struct x_display_info): New member font.
3133
3134 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
3135 (x_set_mouse_face_gc, x_new_font): Likewise.
3136 (x_term_init): Setup display_info->font.
3137 (x_delete_terminal): Free display_info->font.
3138
3139 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
3140
3141 * ftxfont.c (ftxfont_default_fid): Delete it.
3142 (ftxfont_open): Set xfont->fid to 0.
978bef9a 3143 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
3144 font-driver.
3145
3146 * xftfont.c (xftfont_default_fid): Delete it.
3147 (xftfont_open): Set xfont->fid to 0.
3148
3149 * fontset.c (FONTSET_OBJLIST): New macro.
3150 (fontset_find_font): Update font-object list of the fontset.
3151 (free_realized_fontset): New function.
3152 (free_face_fontset): Call free_realized_fontset.
3153 (Ffont_info): Call font_close_object only when enable_font_backend
3154 is set.
3155
3156 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
3157 [HAVE_NTGUI]: Include w32term.h.
3158 [MAC_OS]: Include macterm.ch.
3159 (font_otf_ValueRecord): Use make_number.
3160 (font_finish_cache): Fix handling of reference count.
3161 (font_clear_cache): Update num_fonts.
3162 (font_open_entity): Update smallest_char_width and
3163 smallest_font_height of the frame.
3164 (font_close_object): Update num_fonts.
3165 (Fclear_font_cache): Fix finding the target cache data.
3166
be617367
GM
31672008-02-16 Glenn Morris <rgm@gnu.org>
3168
3169 * fontset.c (Finternal_char_font): Fix compilation warning.
3170
2930d117
EZ
31712008-02-16 Eli Zaretskii <eliz@gnu.org>
3172
634d3003
EZ
3173 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
3174 instead of char arrays. Enlarge the size of array passed to
3175 get_token_information.
3176
2930d117
EZ
3177 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
3178 warnings.
3179
79214046
DN
31802008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
3181
3182 * .gdbinit: Don't set `args', it breaks gdb --args.
3183
7f5d2c72
SM
31842008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
3185
3186 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
3187 within a narrowed buffer.
3188
6edacc43
KH
31892008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
3190
b270d6af
JB
3191 * coding.c (decode_coding_object, encode_coding_object):
3192 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 3193
174105f7
SM
31942008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3195
b270d6af
JB
3196 * coding.c (coding_set_destination): Use BEG_BYTE rather than
3197 hardcoding 1.
13818c30
SM
3198 (detect_coding_system):
3199 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
3200 (string_char_to_byte, string_byte_to_char, insert_from_gap):
3201 * insdel.c (insert_from_gap):
3202 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
3203 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
3204 (string_to_multibyte):
3205 * character.c (chars_in_text, multibyte_chars_in_text):
3206 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
3207
f1c99628
SM
3208 * character.h (FETCH_STRING_CHAR_ADVANCE)
3209 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
3210 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
3211 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
3212
7927d8e3
SM
3213 * casefiddle.c (casify_region): Only call after-change and composition
3214 functions on the part of the region that was changed.
3215
adf6a429 3216 * keyboard.c (read_avail_input):
174105f7
SM
3217 * frame.c (Fdelete_frame): Call Fdelete_terminal.
3218
3ee24aec
SM
32192008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3220
3221 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
3222 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
3223
4ed4b975
JB
32242008-02-11 Juanma Barranquero <lekktu@gmail.com>
3225
3226 * w32menu.c (push_submenu_start, push_submenu_end)
3227 (push_left_right_boundary, push_menu_pane, push_menu_item):
3228 * keyboard.c (read_key_sequence): Don't pass args with side effects
3229 to AREF, it fails when compiling with -DENABLE_CHECKING.
3230
79e3bfb8
KH
32312008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
3232
4ed4b975
JB
3233 * Makefile.in (${lispsource}international/charprop.el):
3234 Delete this target.
6e76043f 3235
79e3bfb8
KH
3236 * search.c (boyer_moore): Fix incorrect synching of the trunk and
3237 emacs-unicode-2.
3238
5b8de9c5
SM
32392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3240
3241 * terminal.c (Fdelete_terminal): Clean up the `force' path.
3242
eac1939a
SM
32432008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3244
c53956fe
SM
3245 * frame.c (Qnoelisp): New symbol.
3246 (syms_of_frame): Initialize it.
3247 (Fdelete_frame): Use it to distinguish a mere `force' passed from
3248 someharmles Elisp code, from a strong `force' from x_connection_closed.
3249 * frame.h (Qnoelisp): Declare.
3250 * xterm.c (x_connection_closed): Pass `noelisp'.
3251
eac1939a
SM
3252 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
3253 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
3254 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
3255 rather than `int' for the type of `type'.
3256
13f6772b
DN
32572008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
3258
3259 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
3260
3261 * Makefile.in (GNUC): Remove support for gcc-1.x.
3262
e8455367
RS
32632008-02-10 Richard Stallman <rms@gnu.org>
3264
3265 * lisp.h (ASET): Use AREF, not ASLOT.
3266
4b75ffab
SM
32672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
3268
3269 * lisp.h (ASET): Check bounds.
3270
d224e8c2
GM
32712008-02-10 Glenn Morris <rgm@gnu.org>
3272
3273 * buffer.c (mode-name): Doc fix.
3274
4624371d
DN
32752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3276
290afd83
JB
3277 * Makefile.in:
3278 * emacs.c:
3279 * gmalloc.c:
3280 * keyboard.c:
3281 * lisp.h:
3282 * m/ibm370aix.h:
3283 * process.c:
3284 * regex.c:
3285 * s/hpux.h:
3286 * sysdep.c:
3287 * sysselect.h:
3288 * systty.h:
3289 * unexec.c:
3290 * w32term.c:
3291 * xsmfns.c:
3292 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
3293
3294 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
3295
3296 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
3297 nothing else needs it anymore.
3298
274ec34b
EZ
32992008-02-09 Eli Zaretskii <eliz@gnu.org>
3300
3301 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
3302 instead of unibyte_char_to_multibyte.
3303
deeaffe1
DN
33042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
3305
3306 * s/gnu-linux.h: Remove commented out code.
3307
4ed4b975 3308 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
3309
3310 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 3311 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 3312 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
3313 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
3314 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
3315
68b587a6
SM
33162008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
3317
9141ca5e
SM
3318 * keymap.c (Fkey_description): Move side effect outside of macro call.
3319
dfae5f9a 3320 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
3321 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
3322
ff7a2223
SM
3323 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
3324 (syms_of_fontset): Use ASET.
3325
68b587a6
SM
3326 * fns.c (concat): Move side effect outside of macro call.
3327 (hash_clear): Use ASET.
3328
a31787b1
RS
33292008-02-08 Richard Stallman <rms@gnu.org>
3330
3331 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
3332 If FORCE, and frame has a surrogate minibuffer for another frame,
3333 delete the other frame first.
3334
987be29b 33352008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
3336
3337 * xterm.c (x_detect_focus_change): Handle embed client message.
3338 (handle_one_xevent): Ditto.
3339 (handle_one_xevent): If embedded and we get a button press/release,
3340 request focus.
3341 (xembed_set_info, xembed_send_message): New functions.
3342 (x_make_frame_visible): Call xembed_set_info if embedded.
3343 (x_make_frame_invisible): Call xembed_set_info if embedded.
3344 (x_term_init): Initialize Xatom_XEMBED.
3345 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
3346 (x_iconify_frame): Ditto.
3347
3348 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
3349 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
3350 (enum xembed_modifier, enum xembed_accelerator): New.
3351 (xembed_set_info, xembed_send_message): Declare.
3352 (FRAME_X_EMBEDDED_P): New.
3353
3354 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
3355 gtk_plug_new.
3356
3357 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
3358 window ID of a frame.
3359 (x_window): Reparent frame if embedded.
3360 (Fx_create_frame): Don't set border width if embedded.
3361
1f204af3 3362 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
3363 (standard_args): Ditto.
3364
880820fe 33652008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
3366
3367 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
3368
92413ef3
JD
33692008-02-07 Jim Meyering <meyering@redhat.com>
3370
6f69e89b 3371 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
3372 The latter provokes a warning from gcc about the empty else, when
3373 followed by ";". Also, without that trailing semicolon, it would
3374 silently swallow up any following statement.
c3f9fba8 3375 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
3376 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
3377 * buffer.h (DECODE_POSITION): Likewise.
3378 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
3379 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
3380 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
3381 (FETCH_CHAR_ADVANCE): Likewise.
3382 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 3383
03fa5713
GM
33842008-02-07 Jim Meyering <meyering@redhat.com>
3385
3386 * lread.c [lint]: Don't include <sys/inode.h>.
3387
3ae565b3
SM
33882008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
3389
3390 * xselect.c (x_handle_dnd_message):
3391 * xmenu.c (digest_single_submenu, xmenu_show):
3392 * xdisp.c (with_echo_area_buffer_unwind_data)
3393 (format_mode_line_unwind_data, unwind_format_mode_line)
3394 (display_menu_bar):
3395 * eval.c (Ffetch_bytecode):
3396 * doc.c (store_function_docstring):
3397 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
3398 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
3399 * buffer.c (add_overlay_mod_hooklist): Use ASET.
3400
146b6e55
KH
34012008-02-07 Kenichi Handa <handa@m17n.org>
3402
3403 * ftxfont.c (ftxfont_open): Don't set
3404 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
3405
3406 * ftfont.c (ftfont_open): Fix previous change.
3407
46a923ac
JR
34082008-02-06 Jason Rumney <jasonr@gnu.org>
3409
3410 * w32font.c (w32font_text_extents): Fill in lbearing metric.
3411 Use cached metrics for ASCII characters.
3ae565b3
SM
3412 (w32font_open_internal): Don't set font's owning_frame.
3413 Cache metrics for ASCII characters.
46a923ac
JR
3414
3415 * w32font.h (struct w32font_info): Add ascii_metrics.
3416 Remove owning_frame.
3417
da7d7c21
KH
34182008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
3419
3420 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
3421 to negative value.
3422
3423 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
3424
3ae565b3 3425 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
3426
3427 * charset.c (syms_of_charset): Set QCtest and Qeq.
3428
c62c8ddb
SM
34292008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
3430
ca319910
SM
3431 * process.c (Fstart_process):
3432 * callproc.c (Fcall_process): Handle the case where
3433 Funhandled_file_name_directory returns nil.
3434
76860cbb
SM
3435 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
3436 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
3437 * font.c (check_gstring): Use them and AREF to access the vector before
3438 we know it's really a gstring.
3439 (Ffont_shape_text): Fix typo.
3440 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 3441
15139d67
SM
3442 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
3443 Declare.
3444
c62c8ddb
SM
3445 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
3446
04b65d2b
JR
34472008-02-05 Jason Rumney <jasonr@gnu.org>
3448
3449 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
3450 Set smallest_font_height and smallest_char_width in display info.
3451
fccaebfd
KH
34522008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
3453
3454 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
3455
e7d7fd8c
MB
34562008-02-05 Miles Bader <miles@gnu.org>
3457
3458 * xfaces.c (get_lface_attributes, merge_named_face)
3459 (lookup_named_face, lookup_derived_face, realize_named_face):
3460 Revert 2008-02-01 change by cyd@stupidchicken.com.
3461
3d4448a8
KH
34622008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
3463
3464 * fontset.c (Ffontset_info): Handle the case of inhibitting the
3465 fallback fonts.
15139d67 3466 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 3467
5ace1ec1
JR
34682008-02-04 Jason Rumney <jasonr@gnu.org>
3469
3470 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
3471 set full_name.
e3a77b22 3472 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 3473
ffe42183
JR
34742008-02-03 Jason Rumney <jasonr@gnu.org>
3475
3476 * makefile.w32-in (OBJ1): Include font.o here.
3477 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
3478
526dc3b3
JR
34792008-02-02 Jason Rumney <jasonr@gnu.org>
3480
a0fece35 3481 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 3482
af805c82
JR
34832008-02-01 Jason Rumney <jasonr@gnu.org>
3484
3485 * s/cygwin.h: Define VIRT_ADDR_VARIES.
3486
3487 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
3488
7f6519c5
AS
34892008-02-01 Andreas Schwab <schwab@suse.de>
3490
1f45f627 3491 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 3492 ../lisp/language/myanmar.el.
7f6519c5 3493
26f8aa27
CY
34942008-02-01 Chong Yidong <cyd@stupidchicken.com>
3495
1f45f627 3496 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
3497 (merge_named_face, lookup_named_face, lookup_derived_face)
3498 (realize_named_face): Call lface_from_face_name directly, and use
3499 the fact that merge_face_vectors does not alter its FROM argument.
3500
73acf815 35012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3502
3503 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 3504 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 3505
73acf815 35062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3507
3508 * fontset.c (reorder_font_vector): Exclude nil elements from the
3509 font group. Don't try multiple fonts.
15139d67 3510 (fontset_font): Adjust for the above change.
aca7a3d2
MB
3511 (Finternal_char_font): Return nil if the found font doesn't
3512 contain the character ch.
3513
4c4475a8 3514 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 3515
73acf815 35162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3517
3518 * font.h (FONTP): Make it return 1 also for a font-object.
3519
3520 * .gdbinit (xfontset): New function.
3521
3522 * font.c (font_find_for_lface): Check if the character C is
3523 supported or not only for the first font.
3524
3525 * fontset.c (reorder_font_vector): Fix typo.
3526 (fontset_find_font): Don't add a font-spec specifying a script.
3527 Use 0 (not Qt) for the indication of empty font-group. Change the
3528 format of RFONT-DEF. Return Qt if no font in the font-group
3529 support the character.
15139d67 3530 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 3531 found the character, remember that.
15139d67 3532 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
3533 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
3534 no font for the target.
15139d67 3535 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 3536
73acf815 35372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3538
3539 * font.c (font_load_for_face): Handle the case that the font in
3540 face->lface is a string.
3541
73acf815 35422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3543
1f45f627 3544 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 3545
73acf815 35462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3547
3548 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
3549 Fix previous change. If the frame is not on a window system,
3550 signal an error.
3551
73acf815 35522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3553
4c4475a8
GM
3554 * coding.c (decode_coding_object, encode_coding_object): Adjust
3555 marker positions after conversion.
aca7a3d2
MB
3556
3557 * lisp.h (struct Lisp_Marker): New member need_adjustment.
3558
73acf815 35592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3560
3561 * font.c (font_find_for_lface): Fix the handling of the return
3562 value of font_has_char.
3563 (Ffont_shape_text): Fix previous change.
3564
3565 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
3566 (fontset_ref_and_range): Delete it.
3567 (fontset_find_font): Call char_table_ref_and_range instead of
3568 FONTSET_REF_AND_RANGE.
3569 (make_fontset): Don't setup font groups of Latin here.
3570 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
3571 (new_fontset_from_font): Make the specified font the default for
3572 all Latin characters.
3573
73acf815 35742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3575
3576 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
3577 is on a window system before accessing the fontset of the frame.
3578
73acf815 35792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3580
1f45f627 3581 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
3582
3583 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
3584 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
3585
3586 * font.c (Ffont_shape_text): If the font driver doesn't have a
3587 shaper function, make zero-width glyphs to have at least one-pixel
3588 width. Fix setting of `to' field of glyphs.
3589
73acf815 35902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3591
3592 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
3593 glyphs.
3594
1f45f627 3595 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 3596
73acf815 35972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3598
3599 * composite.c (syms_of_composite): Fix docstring of
3600 auto-composition-function.
3601
3602 * font.h (LGLYPH_SIZE): New macro.
3603
3604 * font.c (Ffont_fill_gstring): Stop filling when a character not
3605 supported by the font is found.
3606 (Ffont_shape_text): When a shape callback function returns nil,
3607 try at most two more times with larger gstring.
15139d67 3608 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
3609
3610 * xdisp.c (handle_auto_composed_prop): Change the argument to
3611 auto-composition-function.
3612
3613 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
3614 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
3615 Lispy glyph and store it in the lgstring.
3616
3617 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
3618
3619 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
3620
73acf815 36212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3622
3623 * font.c (Ffont_shape_text): Avoid unnecessary composition.
3624
3625 * fontset.c (Vfont_encoding_charset_alist): New variable.
3626 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
3627 (reorder_font_vector, fontset_find_font): Optimize for the case of
3628 no need of reordering.
aca7a3d2
MB
3629 (face_for_char): Map the charset property by
3630 Vfont_encoding_charset_alist.
3631
73acf815 36322008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3633
3634 * w32font.c (logfonts_match): Don't check adstyle here.
3635 (font_matches_spec): Check here against physical font instead.
3636 (add_font_entity_to_list): Avoid some substitutions.
3637
3638 * font.c (font_parse_fcname): Default weight and slant to normal.
3639 (font_score): Prefer normal fonts if weight or slant unspecified.
3640 (font_score) [WINDOWSNT]: Scale weight difference down to closer
3641 match freetype scores.
3642
73acf815 36432008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3644
3645 * w32font.c (w32font_text_extents): Don't use the frame stored in the
3646 font, as it may have been deleted.
3647 (w32_enumfont_pattern_entity): Map generic family to adstyle using
3648 most common hyphenless variation.
3649 (logfonts_match): Check generic family.
3650 (font_matches_spec): Don't check generic family here.
3651 (fill_in_logfont): Set generic family based on adstyle.
3652
3653 * w32font.h (w32font_get_cache): Update declaration.
3654
73acf815 36552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3656
3657 * ftfont.c (ftfont_get_cache): Adjust the argument type.
3658
15139d67 3659 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 3660 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
3661 with the old drivers.
3662
3663 * w32font.c (w32font_get_cache): Adjust the argument type.
3664
3665 * xfont.c (xfont_get_cache): Adjust the argument type.
3666
3667 * font.h (struct font_driver): Change argument type of get_cache.
3668
3669 * xftfont.c (xftfont_start_for_frame): Delete prototype.
3670
3671 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 3672 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 3673 (font_clear_cache): New function.
4c4475a8 3674 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 3675 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
3676
3677 * fontset.c (fontset_find_font): Fix previous change.
3678
73acf815 36792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3680
3681 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
3682 dpyinfo->font_table.
3683 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 3684 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
3685
3686 * font.c (font_at): Handle the case that the arg C is negative.
3687 Handle the unibyte case.
3688 (Ffont_at): Call font_at with the arg C -1.
3689
3690 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
3691 the position here, and call font_at with the arg C -1.
3692 Don't check the range of the existing composition at the point.
aca7a3d2 3693
73acf815 36942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3695
15139d67 3696 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 3697 Change caller.
4c4475a8
GM
3698 (load_font_get_repertory, fontset_find_font): Assume that
3699 font_spec is always a font-spec object.
aca7a3d2
MB
3700 (Fset_fontset_font): Always store a font-spec object in a fontset.
3701
3702 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
3703 instead of get_property_and_range.
3704
73acf815 37052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3706
3707 * xftfont.c (struct xftfont_info): Delete the member ft_face.
3708 (xftfont_open): Don't keep locking face.
3709 (xftfont_close): Don't unlock face.
4c4475a8 3710 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
3711
3712 * fontset.c (fontset_find_font): Don't prefer a font of
3713 supplementary charset.
3714
73acf815 37152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3716
1f45f627
GM
3717 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
3718 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
3719 (OTF_TAG_STR): Terminate by '\0'.
3720 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
3721 listing to the script specified in that property. Fix arg to
3722 OTF_check_features.
3723
73acf815 37242008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3725
3726 * w32font.h: New file.
3727
3728 * w32font.c: Include it.
3729 (struct w32font_info): Add owning_frame field. Move to w32font.h.
3730 (w32font_open): Set owning_frame.
3731 (w32font_text_extents): Use owning_frame.
3732 (struct font_callback_data): Add opentype_only field.
3733 (add_font_entity_to_list): Use it to filter fonts.
3734 Don't check against full name.
3735 (w32font_list_internal): New function.
3736 (w32font_list): Use it.
3737 (w32font_match_internal): New function.
3738 (w32font_match): Use it.
3739 (w32font_open_internal): New function.
3740 (w32font_open): Use it.
3741 (w32font_get_cache, w32font_close, w32font_has_char)
3742 (w32font_encode_char, w32font_text_extents, w32font_draw):
3743 Make non-static.
3744
3745 * makefile.w32-in (w32font.o): Depend on w32font.h.
3746
73acf815 37472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3748
3749 * charset.c (Fdefine_charset_internal): Record a supplementary
3750 charset at the tail of Vcharset_order_list.
3751
3752 * font.c (Ffont_shape_text): Fix the return value.
3753
3754 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
3755
3756 * xdisp.c (handle_auto_composed_prop): Fix previous change.
3757
73acf815 37582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3759
3760 * ftfont.c (struct OpenTypeSpec): New struct.
3761 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
3762 (ftfont_get_open_type_spec): New function.
3763 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
3764
15139d67 3765 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 3766
73acf815 37672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3768
3769 * w32font.c (add_font_entity_to_list): Compare only the beginning
3770 of full name.
3771
73acf815 37722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3773
15139d67
SM
3774 * xdisp.c (handle_auto_composed_prop): Simplify the code.
3775 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 3776
73acf815 37772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3778
3779 * font.c (font_gstring_produce): Delete it.
3780
15139d67
SM
3781 * composite.h (COMPOSITION_METHOD):
3782 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 3783
73acf815 37842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3785
15139d67 3786 * xfont.c (Qx): Delete.
aca7a3d2
MB
3787 (syms_of_xfont): Don't initialize Qx.
3788
15139d67
SM
3789 * composite.h (enum composition_method):
3790 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 3791
73acf815 37922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3793
3794 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
3795 (choose_face_font): Accept new form of font-spec.
3796
3797 * frame.h (font_driver_list): Declare it unconditionally.
3798 (struct frame): Define members font_driver_list and font_data_list
3799 unconditionally.
3800
3801 * fontset.c: Include "font.h" unconditionally.
15139d67 3802 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
3803 (Fset_fontset_font): Accept a font-spec object.
3804
3805 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
3806 PIXEL_SIZE part a wild card.
3807
3808 * dispextern.h (struct glyph_string): Define members clip and
3809 num_clips unconditionally.
3810 (struct face): Define members font_info and extra unconditionally.
3811
3812 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
3813 ftfont_info only when HAVE_LIBOTF is defined.
3814
73acf815 38152008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3816
3817 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
3818 and end.
3819
73acf815 38202008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3821
3822 * w32font.c (w32font_driver): Add new fields.
3823
73acf815 38242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 3825
aca7a3d2
MB
3826 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
3827 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
3828 (LIBES): Add @M17N_FLT_CFLAGS@.
3829
3830 * composite.c (compose_text): Don't treat the new style
3831 composition specially.
3832
3833 * emacs.c (main): Call syms_of_font unconditionally.
3834
3835 * font.h (FONT_ENTITY_NOT_LOADABLE)
3836 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 3837 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 3838 (struct font_driver): New member shape.
1f45f627 3839 (font_registry_charsets): Extern it.
4c4475a8 3840 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
3841 (font_otf_capability, font_drive_otf): Delete their externs.
3842
3843 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
3844 (font_charset_alist, font_registry_charsets): Move from xfont.c
3845 and rename.
aca7a3d2
MB
3846 (font_prop_validate_otf): New function.
3847 (font_property_table): Register it for QCotf.
3848 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 3849 (font_drive_otf): Delete.
1f45f627 3850 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
3851 lispy gstring.
3852 (font_find_for_lface): New arg C.
15139d67 3853 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
3854 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
3855 lispy gstring.
aca7a3d2
MB
3856 (Ffont_shape_text): New function.
3857 (Fopen_font): If the font size is not given, use 12-pixel.
3858 (Ffont_at): New arg STRING.
15139d67
SM
3859 (syms_of_font): Initalize font_charset_alist.
3860 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
3861 conditionally.
3862
3863 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
3864 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
3865 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
3866 Adjust for the change of RFONT-DEF.
15139d67 3867 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
3868
3869 * ftfont.h: New file.
3870
3871 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
3872 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
3873 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3874 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
3875 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 3876 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
3877 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
3878 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
3879 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 3880 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
3881 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
3882 (otf_gstring, gstring, m17n_flt_initialized): New variables.
3883
15139d67
SM
3884 * w32term.c (x_draw_composite_glyph_string_foreground):
3885 Adjust for the change of lispy gstring.
aca7a3d2 3886
15139d67 3887 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 3888 lispy gstring. Call a function for auto-composition with the
15139d67
SM
3889 third arg it->window.
3890 (fill_composite_glyph_string): Adjust for the change of lispy string.
3891 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 3892
15139d67 3893 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
3894 font_find_for_lface.
3895
1f45f627
GM
3896 * xfont.c (x_font_charset_alist): Move to font.c and rename.
3897 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
3898 (syms_of_xfont): Don't handle x_font_charset_alist.
3899
3900 * xftfont.c: Include "ftfont.h".
15139d67 3901 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
3902 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
3903 (xftfont_close) [HAVE_LIBOTF]: Close otf.
3904 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
3905 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
3906 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 3907
15139d67 3908 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
3909 the change of lispy gstring.
3910
73acf815 39112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3912
3913 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
3914
73acf815 39152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3916
3917 * w32font.c (w32font_draw): Fill background manually.
3918
73acf815 39192008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3920
3921 * font.c (Qfontp): Remove unused symbol.
3922 (QCantialias): New symbol.
3923 (syms_of_font): Define it.
3924 (font_property_table): Set a validator for QCantialias.
3925
15139d67
SM
3926 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
3927 Define if not already.
aca7a3d2
MB
3928 (QCfamily): Share with xfaces.c.
3929 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 3930 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
3931 (w32_antialias_type, lispy_antialias_type): New functions.
3932 (w32_enumfont_pattern_entity): New arg requested_font.
3933 Set antialias parameter if non-default was requested.
3934 (fill_in_logfont): Fill in lfQuality if :antialias specified.
3935
73acf815 39362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3937
3938 * lread.c (read1): Undo the previous change.
3939
73acf815 39402008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
3941
3942 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 3943 USE_FONT_BACKEND is defined.
aca7a3d2 3944
73acf815 39452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
3946
3947 * font.h (struct font_bitmap): New member bits_per_pixel.
3948 (struct font_driver): New members start_for_frame and end_for_frame.
3949 (struct font_data_list): New struct.
3950 (font_put_frame_data, font_get_frame_data): Extern them.
3951
3952 * frame.h (struct frame): New member font_data_list.
3953
3954 * font.c (font_update_drivers): Call driver->start_for_frame and
3955 driver->end_for_frame at proper timings.
3956 (font_put_frame_data, font_get_frame_data): New functions.
3957 (Ffont_spec): Add usage in the docstring.
3958
3959 * frame.c (make_frame): Initialize f->font_data_list to NULL.
3960 (Fdelete_frame): Call font_update_drivers.
3961
3962 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 3963 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
3964 (xftfont_get_xft_draw): New function.
3965 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
3966 (xftfont_end_for_frame): New function.
3967 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
3968
15139d67 3969 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 3970 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
3971 (struct ftxfont_frame_data): New struct.
3972 (ftxfont_draw_bitmap): New arg gc_fore and flush.
3973 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 3974 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
3975 (ftxfont_end_for_frame): New function.
3976 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
3977
3978 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
3979
73acf815 39802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3981
3982 * xselect.c (Vselection_coding_system)
3983 (Vnext_selection_coding_system): Delete them.
3984 (syms_of_xselect): Don't declare selection-coding-system and
3985 next-selection-coding-system. They are declared in select.el.
3986
73acf815 39872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3988
3989 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
3990
3991 * w32fns.c: Include imm.h.
3992 (get_composition_string_fn, get_ime_context_fn): New optional
3993 system functions.
3994 (globals_of_w32fns): Load them from imm32.dll.
3995 (ignore_ime_char): New flag.
3996 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
3997 WM_IME_ENDCOMPOSITION messages.
3998
3999 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
4000 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
4001
73acf815 40022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4003
4004 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
4005 (READCHAR_REPORT_MULTIBYTE): New macro.
4006 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
4007 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
4008 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
4009 source.
4010
73acf815 40112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4012
4013 * xfaces.c (face_for_overlay_string): Call lookup_face with
4014 correct arguments (fix of synching with the trunk).
4015
73acf815 40162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4017
4c4475a8
GM
4018 * font.c (font_prop_validate_symbol, font_prop_validate_style)
4019 (font_prop_validate_non_neg, font_prop_validate_spacing):
4020 Delete argument prop_index.
15139d67
SM
4021 (font_property_table): Change arguments to validater. Change Callers.
4022 (font_lispy_object): Delete.
aca7a3d2
MB
4023 (font_at): Use font_find_object instead fo font_lispy_object.
4024
73acf815 40252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
4026
4027 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
4028 and file names.
4029
73acf815 40302008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4031
4032 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
4033 (font_matches_spec): Remove debug output.
4034 (add_font_entity_to_list): Avoid using substituted fonts.
4035
73acf815 40362008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4037
4038 * doc.c (Fsnarf_documentation):
4039 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
4040
73acf815 40412008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 4042
290afd83 4043 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
4044 HAVE_WINDOW_SYSTEM is defined.
4045
73acf815 40462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4047
4048 Fix up multi-tty merge.
4049
4050 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
4051 and indentation.
4052
4053 * xfaces.c (free_realized_face, clear_face_gcs):
4054 Include font_done_for_face in the input_blocked section, just in case.
4055
4056 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
4057 (get_char_face_and_encoding): Undo last change and remove the *other*
4058 duplicate definition (i.e. keep the one that's better scoped and that
4059 includes code for the font-backend).
4060
4061 * terminal.c (create_terminal): Default keyboard_coding to
4062 `no-conversion' and terminal_coding to `undecided'.
4063
4064 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
4065
4066 * fontset.c (free_realized_fontsets): Check that the table entry does
4067 contain a fontset before trying to compare it to `base'.
4068
4069 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
4070 syms_of_charset, and syms_of_coding earlier because init_window_once
4071 now needs Vcoding_system_hash_table to be setup.
4072
4073 * coding.h (default_buffer_file_coding): Remove.
4074
4075 * coding.c (default_buffer_file_coding): Remove.
4076 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
4077 than ->symbol, and use the terminal-local coding system.
4078 (syms_of_coding): Don't setup the coding-systems that are not
4079 terminal-local.
4080 (Fdefine_coding_system_internal): Use XCAR/XCDR.
4081
4082 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
4083 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
4084
4085 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
4086 in chartab.c and were re-added here by mistake.
4087 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
4088
4089 * doc.c (Fsnarf_documentation):
4090 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
4091 src to etc.
4092
4093 * ChangeLog.10: Add mistakenly removed entry.
4094
73acf815 40952008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
4096
4097 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
4098
73acf815 40992008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4100
4101 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
4102 Add extra args to FACE_FOR_CHAR.
4103
73acf815 41042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4105
4106 * keymap.c (where_is_internal_1): If key is a cons, store the copy
4107 in sequence.
4108
4c4475a8
GM
4109 * chartab.c (map_sub_char_table, map_char_table): If the range
4110 contains just one character, call the function with that character
4111 even if the depth is not 3.
aca7a3d2 4112
73acf815 41132008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4114
4115 * w32font.c (w32font_text_extents): Calculate metrics for the
4116 whole string.
4117
73acf815 41182008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4119
4120 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
4121
73acf815 41222008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4123
4124 * w32term.c (x_set_glyph_string_clipping): Use
4125 get_glyph_string_clip_rects.
4c4475a8
GM
4126 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4127 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4128
4129 * w32font.c (w32font_draw): Do clipping here.
4130
73acf815 41312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4132
1f45f627 4133 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
4134 glyph_string.
4135
4136 * xterm.c (x_set_glyph_string_clipping): Use
4137 get_glyph_string_clip_rects.
4c4475a8
GM
4138 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
4139 Adjust for the change of struct glyph_string.
aca7a3d2
MB
4140
4141 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
4142 the resulting clip(s}.
1f45f627 4143 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
4144 row->clip temporarily.
4145 (expose_window): Redraw rows overlapping the exposed area.
4146
4147 * dispextern.h (struct glyph_row): New member clip.
4148 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
4149 clip_height, new member clip, and num_clips.
4150
73acf815 41512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4152
4153 * data.c (Fchar_or_string_p): Fix docstring.
4154
73acf815 41552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4156
4157 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
4158 create a temporal XftDraw object.
4159
73acf815 41602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4161
4162 * font.c (Ffontp): Fix docstring.
4163
4164 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
4165 strong evidence of ISO-2022.
4166
73acf815 41672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4168
4169 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
4170 SYNTAX_ENTRY_FOLLOW_PARENT.
4171
73acf815 41722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
4173
4174 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
4175 its type.
4176 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
4177 Update to the new type of weak_hash_tables and next_weak.
4178
4179 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
4180 a plain C pointer to Lisp_Hash_Table.
4181
4182 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
4183 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
4184 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
4185 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
4186 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
4187 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
4188 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
4189 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
4190 (GC_EQ): Remove since they've been identical to their non-GC_
4191 alter-egos ever since the markbit was eradicated.
4192
290afd83
JB
4193 * alloc.c:
4194 * buffer.c:
4195 * buffer.h:
4196 * data.c:
4197 * fileio.c:
4198 * filelock.c:
4199 * fns.c:
4200 * frame.h:
4201 * lisp.h:
4202 * macterm.c:
4203 * print.c:
4204 * process.c:
4205 * w32fns.c:
4206 * w32menu.c:
4207 * w32term.c:
4208 * xfns.c:
4209 * xmenu.c:
4210 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 4211
73acf815 42122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4213
4214 * chartab.c (map_sub_char_table): Make it work for the top-level
4215 char-table. Fix handling of parent char-table.
c5ad7a3d 4216 (map_char_table): Adjust for the above change.
aca7a3d2 4217
73acf815 42182008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4219
4220 * w32font.c (Qgdi): Rename from Qw32.
4221
73acf815 42222008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4223
4224 * w32bdf.c (get_quoted_string): Make function static.
4225
73acf815 42262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4227
4228 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
4229 bigger ascent and descent than those of the font, use them as
4230 font's ascent and descent.
4231
73acf815 42322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4233
4234 * Makefile.in (${lispsource}international/charprop.el): Move this
4235 target within "#ifdef HAVE_UNIDATA" and "#endif".
4236
73acf815 42372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4238
4239 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
4240 (shortlisp): Add ../lisp/language/tai-viet.el.
4241
1f45f627 42422008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
4243
4244 * Makefile.in (${lispsource}international/charprop.el): Depend on
4245 temacs${EXEEXT}.
4246
73acf815 42472008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4248
4249 * w32font.c (w32font_close): Delete the GDI font object.
4250
6f69e89b 4251 * w32menu.c: Include character.h.
aca7a3d2
MB
4252
4253 * w32proc.c: Likewise.
4254
4255 * w32select.c: Likewise.
4256
6f69e89b 4257 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 4258
73acf815 42592008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4260
4261 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
4262
4263 * w32menu.c (syms_of_w32menu): Likewise.
4264
4265 * w32proc.c (syms_of_ntproc): Likewise.
4266
4267 * w32select.c (syms_of_w32select): Likewise.
4268
4269 * w32term.c (syms_of_w32term): Likewise.
4270
73acf815 42712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4272
4273 * w32font.c (w32font_draw): Delete brush after using it.
4274
73acf815 42752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4276
4277 * w32font.c (w32font_open): Don't set font_idx.
4278 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
4279 to font settings.
4280 (w32font_draw): Fill background explicitly.
4281
73acf815 42822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4283
4284 * w32term.c (w32_initialize): Don't call w32font_initialize.
4285
4286 * w32font.c (w32font_info): Remove subranges.
4287 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
4288 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
4289 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
4290 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
4291 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
4292 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
4293 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
4294 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
4295 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
4296 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
4297 New symbols.
4298 (font_callback_data): New struct.
4299 (w32font_list, w32font_match): Use it.
4300 (w32font_open): Don't populate subranges.
4301 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
4302 (w32font_encode_char): Always return unicode code-point as-is.
4303 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
4304 GetGlyphOutline. Never look up by glyph index. Avoid looping
4305 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 4306 glyph index version.
1f204af3 4307 (set_fonts_frame): Remove.
aca7a3d2 4308 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
4309 set frame parameter. Use backward compatible fake foundries.
4310 Save generic family in extra slot under QCfamily. Make width slot
4311 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
4312 binary subranges.
4313 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 4314 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
4315 unwanted fonts.
4316 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
4317 (w32_registry): Default to iso10646_1.
4318 (fill_in_logfont): Use dpi from extra slot. Don't bother with
4319 string font registries. Don't fill in font name if it is a generic
4320 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
4321 extra info to fill pitch, family and charset fields.
4322 (list_all_matching_fonts): Use font_callback_data struct.
4323 (unicode_range_for_char): Remove.
4324 (font_supported_scripts): New function.
4325 (w32font_initialize): Remove.
4326 (syms_of_w32font): Update which symbols are defined.
4327
73acf815 43282008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4329
4330 * font.c (font_pixel_size): Reverse assq_no_quit args.
4331
4332 * w32term.h (FONT_WIDTH): Report max width, not average.
4333 (FONT_MAX_WIDTH): Remove.
4334 (FONT_AVG_WIDTH): New macro.
4335
4336 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
4337 redefinition of FONT_WIDTH.
4338
4339 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
4340 (w32_cache_char_metrics): Use FONT_WIDTH.
4341
4342 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
4343
73acf815 43442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4345
4346 * w32font.c (w32font_open): Make lfHeight negative.
4347
4348 * w32fns.c (x_default_font_parameter): Use new style font name.
4349 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
4350
73acf815 43512008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4352
4353 * w32font.c (QCsubranges): New symbol.
4354 (w32font_open, w32font_has_char): Get subranges from subproperty
4355 of extra.
4356 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
4357 (syms_of_w32font): Define :subranges symbol.
4358
4359 * font.c (font_put_extra): Expose externally.
4360
1f45f627 4361 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
4362
4363 * font.c (Ffont_get): Use font driver to determine otf capability.
4364 (adjust_anchor): Check if driver defines anchor_point before using.
4365
4366 * w32font.c (w32font_open): Handle size, height and pixel_size better.
4367 (w32font_draw): Use options.
4368 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
4369 Fix detection of truetype fonts.
4370 (registry_to_w32_charset): Handle charsets other than iso8859-1
4371 expressed as lisp symbols.
4372 (w32_registry): Express charset as lisp symbol.
4373 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 4374 Don't set width here. Set quality to default.
aca7a3d2
MB
4375
4376 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
4377 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
4378
4379 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4380 Remove redundant loop and allocation.
4381
4382 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 4383 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
4384 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
4385
4386 * xdisp.c (fill_composite_glyph_string): Make the first arg to
4387 STORE_XCHARB a valid l-value.
4388
4389 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
4390 calculations for non-Truetype fonts.
4391 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
4392 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
4393 Remove redundant code.
aca7a3d2
MB
4394 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
4395
4396 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
4397 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
4398
4399 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
4400 (x_to_w32_charset, w32_to_x_charset): Expose externally.
4401
4402 * w32font.c: New file for w32 font backend.
4403
73acf815 44042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4405
4406 * term.c: Don't include "buffer.h" twice.
4407
73acf815 44082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4409
4410 * character.c (Funibyte_string): New function.
4411 (syms_of_character): Defsubr it.
4412
73acf815 44132008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4414
4415 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
4416 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
4417 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
4418 (x_draw_glyph_string, x_draw_glyph_string_foreground)
4419 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
4420 (x_free_frame_resources): Sync with xterm.c.
4421
73acf815 44222008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4423
4424 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
4425 char-table size.
4426
73acf815 44272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4428
c3f9fba8 4429 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 4430
73acf815 44312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4432
4433 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
4434 font_otf_gpos, add font_drive_otf.
4435
4436 * fontset.c (fontset_find_font): Pay attention to font size
4437 specified for a font.
4438 (reorder_font_vector): Check contents of font_def.
4439
4440 * font.c (struct otf_list): Delete it.
6f69e89b 4441 (otf_list): Make it a lisp variable.
aca7a3d2 4442 (otf_open): Use lispy otf_list.
1f45f627 4443 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 4444 (check_otf_features): New function.
c3f9fba8
JB
4445 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
4446 New functions.
aca7a3d2
MB
4447 (font_drive_otf): New function merging font_otf_gsub and
4448 font_otf_gpos.
4449 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 4450 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
4451 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
4452 Ffont_otf_gpos.
4453 (syms_of_font): Staticpro otf_list. Delete defsubr of
4454 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
4455
1f45f627 4456 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
4457 font_open_for_lface.
4458
4459 * font.h (font_open_for_lface): Adjust prototype.
4460 (struct font_driver): Delete members otf_gsub and otf_gpos, add
4461 member otf_drive.
4462 (font_otf_gsub, font_otf_gpos): Delete externs.
4463 (font_drive_otf): Extern it.
4464
73acf815 44652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4466
4467 * font.c (font_at): If the window W is not on a window system,
4468 return Qnil.
4469
4c4475a8
GM
4470 * coding.c (produce_chars, encode_coding): Don't call
4471 insert_from_gap if no characters to produce.
aca7a3d2 4472
73acf815 44732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4474
4475 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
4476 Fclear_face_cache.
4477
4478 * xfaces.c (face_for_font): Check also face->font==font->font.font.
4479
73acf815 44802008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4481
4482 * emacs.c (main): Change default value of `enable_font_backend' to 1.
4483 Parse "--disable-font-backend" option.
4484 (standard_args): Add "--disable-font-backend" option.
4485
73acf815 44862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4487
4488 * fontset.c (fontset_find_font): New function.
4489 (fontset_font): Use fontset_find_font.
4490 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
4491 Register the specified font for all Latin characters.
4492 (new_fontset_from_font): Register the specified font for all Latin
4493 characters.
4494 (dump_fontset): For a realized fontset, include the base fontset
4495 name in the returned vector.
4496
73acf815 44972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4498
4499 * character.h (CHAR_STRING): Cast C to unsigned on calling
4500 char_string.
4501
4502 * character.c (char_string): Type of arg C changed to unsigned.
4503 Signal an error if C is an invalid character code.
4504
4c4475a8
GM
4505 * editfns.c (general_insert_function, Fchar_to_string):
4506 Use CHARACTERP, not INTEGERP.
aca7a3d2 4507
73acf815 45082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4509
4510 * character.h (MIN_MULTIBYTE_LEADING_CODE)
4511 (MAX_MULTIBYTE_LEADING_CODE): New macros.
4512
4513 * regex.c (analyse_first): Fix for multibyte characters in "case
4514 charset:" and "case categoryspec:".
4515
73acf815 45162008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4517
4518 * Makefile.in (LIBES): Move standard libraries to the end.
4519
73acf815 45202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4521
4522 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
4523 nonzero, don't shrink the buffer nextb.
4524
4525 * buffer.h (struct buffer_text): New member inhibit_shrinking.
4526
4527 * coding.c (coding_alloc_by_making_gap): New arg offset.
4528 (alloc_destination): Call coding_alloc_by_making_gap with the arg
4529 offset.
4530 (decode_coding_iso_2022): Update coding->safe_charsets.
4531 (decode_coding_gap): Temporarily set
4532 current_buffer->text->inhibit_shrinking to 1.
4533
73acf815 45342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4535
4536 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
4537 indexing into elements of s->cmp and s->char2b.
4538
73acf815 45392008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
4540
4541 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
4542
73acf815 45432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4544
4545 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
4546 target_multibyte instead of multibyte.
4547 (re_match_2_internal): Call bcmp_translate with target_multibyte.
4548 (bcmp_translate): Change the argument name from multibyte to
4549 target_multibyte.
4550
73acf815 45512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4552
4553 These changes are to compile a regexp into a pattern that can be
4554 used both for multibyte and unibyte targets.
4555
4556 * Makefile.in (search.o): Depend on charset.h.
4557
4558 * character.c (multibyte_char_to_unibyte_safe): New function.
4559
4560 * search.c: Include "charset.h".
4561 (compile_pattern_1): Delete argument multibyte. Don't set
4562 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
4563 (compile_pattern): Don't compare cp->buf.target_multibyte.
4564 Compare cp->buf.charset_unibyte.
4565 (compile_pattern): Set cp->buf.target_multibyte.
4566
4567 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
4568
4569 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
4570
4571 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 4572 multibyte. Change callers.
aca7a3d2 4573 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
4574 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
4575 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
4576 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
4577 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
4578 (regex_compile): Make the compiled pattern usable both for
4579 multibyte and unibyte targets.
4580 (analyse_first): Make the fastmap usable both for multibyte and
4581 unibyte targets.
1f45f627 4582 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
4583 (re_match_2_internal): Pay attention to the case that the
4584 multibyteness of bufp and target may be different.
4585
73acf815 45862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4587
4588 * xdisp.c (x_produce_glyphs): When a font is not found, make the
4589 empty box occupy at least one column width.
4590
73acf815 45912008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4592
4593 * Makefile.in: Remove redundant HAVE_XFT clause.
4594
73acf815 45952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4596
4597 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
4598
73acf815 45992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4600
4601 * fontset.c (Finternal_char_font): Fix for the case of POSITION
4602 being nil.
4603
73acf815 46042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4605
4606 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
4607
73acf815 46082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4609
4610 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
4611
73acf815 46122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4613
4614 * search.c (simple_search): Fix previous change.
4615
73acf815 46162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4617
4618 * xftfont.c (ftfont_font_format): Extern declaration.
4619
4620 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
4621
4622 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
4623 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
4624
4625 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
4626 (ftfont_font_format): Fix previous change.
4627
4628 * font.h (Ffont_xlfd_name): EXFUN it.
4629
4630 * font.c (font_parse_xlfd): Fix the array size of `f'.
4631 (register_font_driver): Use EQ to compare driver->type.
4632
4633 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
4634 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
4635 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
4636
73acf815 46372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4638
4c4475a8
GM
4639 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
4640 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 4641
73acf815 46422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4643
4644 * xfont.c (xfont_open): Set font->format.
4645
4646 * xftfont.c (xftfont_open): Set font->format.
4647
4648 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
4649 (ftfont_list): Include FC_FONTFORMAT in FcObject.
4650 (ftfont_open): Set font->format.
4651 (ftfont_font_format): New function.
4652
4653 * font.h (struct font): New memeber format.
4654
4655 * font.c (Qopentype): New variable.
4656 (syms_of_font): Defsym it.
4657 (Fquery_font): Change the format of the last element of the return
4658 value.
4659
73acf815 46602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4661
4662 * xfns.c (xic_create_xfontset): Try the default fontset name as a
4663 last resort.
4664
73acf815 46652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4666
4667 * coding.c (detect_coding_charset): Fix detection of multi-byte
4668 charset.
4669
73acf815 46702008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
4671
4672 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
4673
73acf815 46742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4675
4676 * xdisp.c (get_next_display_element): Set it->face_id for the
4677 first component of a composition.
1f45f627 4678 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 4679
73acf815 46802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4681
4682 * fontset.c (Qlatin): New variable.
4683 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 4684 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 4685
73acf815 46862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4687
4688 * font.c (font_unparse_fcname): Pay attention to the case that
4689 some of font property is a null string.
4690
73acf815 46912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4692
4693 * term.c: Include "composite.h".
4694 (encode_terminal_code): Output all components of composition.
4695 Check the size of encode_terminal_src.
424c157f 4696 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
4697 (append_composite_glyph, produce_composite_glyph): New functions.
4698
4699 * xdisp.c (x_produce_glyphs): In handling composition, if a font
4700 is not found, get font_info from the current ascii face.
4701
73acf815 47022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4703
4704 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
4705 buffer-file-name to Qnil before calling insert_from_buffer.
4706
4707 * font.c (font_unparse_fcname): Pay attention to the case that
4708 foundry is a null string.
4709
73acf815 47102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4711
4712 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
4713
4714 * font.c (Qunicode_sip): New variable.
4715 (syms_of_font): Declare it as a Lisp symbol.
4716
4717 * font.h (Qunicode_sip): Extern it.
4718
73acf815 47192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4720
1f45f627 4721 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
4722
4723 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 4724 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
4725 the first elememnt of allocated memory.
4726
1f45f627 4727 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
4728
4729 * xdisp.c (handle_composition_prop): Set it->c to the first
4730 non-TAB component.
1f45f627
GM
4731 (fill_composite_glyph_string): Change argument.
4732 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
4733 (x_produce_glyphs): Fix handling of left/right padding.
4734
73acf815 47352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4736
4737 * coding.c (detect_coding_system): Fix for handling off
4738 inhibit_iso_escape_detection. Fix for the case that no coding
4739 system is defined for a specific coding category.
4740
73acf815 47412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4742
1f45f627 4743 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
4744
4745 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
4746 opening a font.
4747
4748 * fileio.c (Finsert_file_contents): On recovering a file, assume
4749 Unix-like eol.
4750 (choose_write_coding_system): On auto-saving a file, force
4751 Unix-like eol.
4752
4753 * coding.c (setup_coding_system): Fix setting of
4754 coding->common_flags based on eol_type.
4755 (coding_inherit_eol_type): If PARENT is not nil, be sure to
4756 inherit from it.
4757
73acf815 47582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4759
1f45f627 4760 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 4761
73acf815 47622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4763
1f45f627 4764 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
4765 (ftfont_list): Don't check :name property.
4766 (ftfont_match): New function.
4767 (ftfont_pattern_entity): If the pattern doesn't contain
4768 FC_SPACING, don't assuce FC_MONO.
4769
4770 * font.h (struct font_driver): New member `match'.
1f45f627 4771 (font_update_drivers): Adjust prototype.
aca7a3d2 4772
4c4475a8
GM
4773 * font.c (font_parse_fcname, font_parse_name): Don't change :name
4774 property of FONT.
aca7a3d2
MB
4775 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
4776 them unconditionally.
4777 (font_matching_entity): New function.
4778 (font_open_by_name): Try font_matching_entity if exact match is
4779 not found.
4780 (font_update_drivers): Delete the arg FONT. Return a list of
4781 actually used backends. Don't free faces, font caches here.
4782 Don't store data in frame parameters. Don't call x_set_font.
4783 (Ffont_spec): Store :name property as is.
4784 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
4785 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
4786 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
4787 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
4788 Call font->driver->otf_gsub instead of font_otf_gsub.
4789
4790 * frame.c (x_set_font_backend): Do more works that were done in
4791 font_update_drivers before.
4792
4793 * xfont.c (xfont_match): New function.
4794 (xfont_driver): Set xfont_driver.match to xfont_match.
4795 (xfont_draw): Set font in GC if necessary.
4796
4797 * ftxfont.c (ftxfont_match): New function.
4798 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
4799
4800 * xftfont.c (xftfont_match): New function.
4801 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
4802
73acf815 48032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4804
4805 * font.h (struct font): New member scalable.
4806 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 4807 (font_otf_gsub): Adjust prototype.
aca7a3d2 4808
1f45f627
GM
4809 * font.c (font_otf_capability): Fix handling of the default langsys.
4810 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
4811 Check the contents of SPEC.
4812 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
4813 (check_gstring): New function.
4814 (REPLACEMENT_CHARACTER): New macro.
4815 (font_otf_gsub): New arg alternate_subst. Be sure to set all
4816 glyph codes of GSTRING.
4817 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
4818 (font_prepare_composition): Set cmp->glyph_len.
4819 (font_open_entity): Set font->scalable.
4820 (Ffont_get): Handle :otf property.
4821 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
4822 functions.
4823 (Fquery_font): Use font->font.full_name.
4824 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
4825 Sfont_otf_alternates.
4826
4827 * ftfont.c (ftfont_open): Set font->font.full_name and
4828 font->font.name properly. Fix calculation of font->font.height
4829 and font->min_width.
4830
4831 * ftxfont.c (ftxfont_create_gcs): New function.
4832 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
4833 (ftxfont_draw_backgrond): Fix filling region.
4834 (ftxfont_default_fid): New function.
4835 (ftxfont_open): Set xfotn->fid to the return value of
4836 ftxfont_default_fid.
4837 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
4838 (ftxfont_done_face): Free only GCs that are created by
4839 ftxfont_create_gcs.
4840 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
4841
4842 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
4843 Clip to src->width, etc (not src->clip_XXX).
4844
4845 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
4846 FontBackend frame parameter.
4847
73acf815 48482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4849
4850 * font.h (struct font_driver_list): New member `on'.
4851 (Fclear_font_cache): EXFUN it.
4852 (font_update_drivers): Extern it.
4853
4854 * font.c (font_unparse_fcname): Fix typo (swidth->width).
4855 (font_list_entities): Check driver_list->on.
4856 (register_font_driver): Initalize `on' member to 0.
4857 (font_update_drivers): New function.
4858 (Fclear_font_cache): Check driver_list->on.
4859
4860 * frame.h (Qfont_backend): Extern it.
4861 (x_set_font_backend): Extern it.
4862
4863 * frame.c (Qfont_backend): New variable.
4864 (frame_parms): New element for font-backend.
4865 (x_set_font_backend): New function.
4866
4867 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
4868 FontBackend frame parameter.
4869 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
4870 x_set_font_backend.
4871
4872 * xfont.c (xfont_list): Don't try listing by :name property if the
4873 name is not for XLFD.
4874
73acf815 48752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4876
4877 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
4878 (LGLYPH_SET_TO): New macros.
4879 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
4880 element of G is vector or not.
4881 (font_at): Extern it.
4882
4883 * font.c: Include window.h.
4884 (font_lispy_object): New function.
4885 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
4886 end of valid glyph.
4887 (font_close_object): Fix getting (struct font *).
4888 (font_at): New function.
4889 (Ffont_get): If FONT is a font-object, get entity from it.
4890 (Ffont_make_gstring): Initialize elements of glyphs with nil.
4891 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
4892 range check.
4893 (Ffont_at): New function.
4894 (syms_of_font): Defsubr Sfont_at.
4895
4896 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 4897 before the entry for Qcomposition.
1f45f627 4898 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
4899 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
4900 the font in gstring.
4901 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
4902 LGLYPH_FORM (g) to detect the end of valid glyph.
4903 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
4904 we are composing with gstring.
4905
4906 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
4907 Check if adjustment is vector or not.
4908
4909 * Makefile.in (font.o): Make it depends on window.h.
4910
73acf815 49112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4912
4913 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
4914 adjustment is vector or not.
4915
73acf815 49162008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
4917
4918 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
4919
73acf815 49202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4921
4922 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
4923 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
4924 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
4925
1f45f627 4926 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 4927 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
4928 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
4929 LGLYPH format.
aca7a3d2 4930
1f45f627 4931 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
4932 the change of LGLYPH format.
4933
73acf815 49342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4935
4936 * ftfont.c (ftfont_list): Fix typo.
1f45f627 4937 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 4938
880820fe 49392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
4940
4941 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
4942
4943 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
4944 xftface_info is non-NULL.
4945
880820fe 49462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 4947
1f45f627 4948 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 4949
73acf815 49502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4951
4952 * ftfont.c (ftfont_list): Pay attention to the case that
4953 FC_CAPABILITY is not defined.
4954
73acf815 49552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4956
4957 * xftfont.c (xftfont_open): Set charset related members to -1.
4958
1f45f627
GM
4959 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
4960 QCname.
aca7a3d2
MB
4961 (ftfont_open): Set charset related members to -1.
4962
4963 * fontset.c (Votf_script_alist): New variable.
4964 (syms_of_fontset): Initialize it.
4965 (fontset_font): Delete unused variable.
4966
4967 * fontset.h (Votf_script_alist): Extern it.
4968
1f45f627 4969 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
4970
4971 * font.h (font_close_object, font_merge_old_spec): Extern them.
4972
73acf815 49732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4974
4975 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
4976 (syms_of_font): Initialize them.
4977 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
4978 (font_prop_validate_type): Delete.
4979 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
4980 Change caller.
4981 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
4982 (font_prop_validate_extra): Delete.
aca7a3d2
MB
4983 (font_prop_validate_spacing): New function.
4984 (font_property_table): Add elements for all known properties.
1f45f627
GM
4985 (get_font_prop_index): Rename from check_font_prop_name. New
4986 argument FROM. Change caller.
aca7a3d2 4987 (font_prop_validate): Validate all known properties.
1f45f627 4988 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
4989 (font_expand_wildcards): Make it static. Fix the way of shrinking
4990 the possible range.
1f45f627 4991 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 4992 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 4993 Change caller.
aca7a3d2 4994 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
4995 (font_parse_fcname): Delete argument merge. Fix parsing of point
4996 size. Don't validate properties values here. Change caller.
4997 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
4998 (font_open_by_name): Delete unused variable.
4999 (Ffont_spec): Likewise. Validate property values.
5000 (Ffont_match_p): New function.
5001
5002 * font.h (QCscalable): Extern it.
1f45f627 5003 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 5004
1f45f627 5005 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 5006
1f45f627 5007 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
5008 (xfont_list_pattern): New function.
5009 (xfont_list): Use xfont_list_pattern.
5010
73acf815 50112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5012
5013 * font.h (Flist_fonts): EXFUN it.
5014
73acf815 50152008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5016
5017 * w32term.c (w32_initialize): Add back smoothing_type and
5018 smoothing_enabled definitions.
5019
73acf815 50202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5021
5022 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
5023 s->face->font on determining underline position.
5024
73acf815 50252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5026
5027 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
5028 (font_has_char): Accept font-object too.
5029 (font_find_for_lface): Try at first with a size specified in face.
5030
73acf815 50312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5032
5033 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
5034 font_open_by_name.
5035
73acf815 50362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5037
5038 * font.h (QCspacing, QCdpi): Extern them.
5039 (enum font_spacing): New enum.
5040 (FONT_PIXEL_SIZE_QUANTUM): New macro.
5041
5042 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
5043 (QCspacing, QCdpi): New variables.
5044 (syms_of_font): Initialize them.
5045 (font_pixel_size): New function.
5046 (font_put_extra): New function.
5047 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
5048 in FONT_EXTRA.
e9184ccb
JB
5049 (font_parse_fcname): Handle enumenrated values (e.g. bold).
5050 Fix handling font size. Add QCname property that contains only
aca7a3d2 5051 unknown properties.
1f45f627 5052 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 5053 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
5054 (font_sort_entites, font_list_entities, font_find_for_lface)
5055 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 5056 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
5057
5058 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
5059 include weight in listing pattern, instead check weight of each
5060 listed font. Don't include scalable in pattern. Pay attention to
5061 FONT_PIXEL_SIZE_QUANTUM.
5062
73acf815 50632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5064
aca7a3d2 5065 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 5066 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
5067 (font_list_entities): Handle float size correctly.
5068 (font_open_by_name): Prefer `normal' property values if the name
5069 doesn't specify them.
5070
5071 * fontset.c (Finternal_char_font): Use font_get_name, not
5072 Ffont_xlfd_name.
5073
5074 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
5075 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
5076 pattern. Don't force scalable.
5077
5078 * xftfont.c (xftfont_open): For generating a name, start from
5079 96-byte buffer.
5080
880820fe 50812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
5082
5083 * frame.h (x_new_fontset2): Fix prototype.
5084
73acf815 50852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5086
1f45f627 5087 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
5088 (font_match_p, font_get_spec, font_parse_fcname)
5089 (font_unparse_fcname): Extern them.
1f45f627 5090 (font_get_name): Adjust prototype.
aca7a3d2
MB
5091
5092 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
5093 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
5094 (font_expand_wildcards): Fix handling ENCODING field. Avoid
5095 unnecessary checks for weight, slant, and swidth.
5096 (font_parse_fcname): New function.
5097 (font_unparse_fcname): New function.
5098 (font_parse_name): New function.
5099 (font_match_p): New function.
1f45f627 5100 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
5101 (font_get_spec): New function.
5102 (Qunspecified, Qignore_defface): Don't extern them.
5103 (font_find_for_lface): Assume that LFACE is fully specified.
5104 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
5105 object, use it for FACE.
5106 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
5107 driver->parse_name.
5108 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
5109
1f45f627
GM
5110 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
5111 prototype.
aca7a3d2 5112
1f45f627
GM
5113 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
5114 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
5115 make_fontset.
5116
1f45f627 5117 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 5118
1f45f627 5119 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
5120 of x_new_fontset2.
5121
5122 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
5123 (Qsans__serif): New variables.
5124 (ftfont_generic_family_list): New variable.
5125 (syms_of_ftfont): Initialize the above variables.
1f45f627 5126 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
5127 (ftfont_list_generic_family): New function.
5128 (ftfont_parse_name): Delete this function.
1f45f627 5129 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
5130 (ftfont_list_family): Fix args to FcObjectSetBuild.
5131
5132 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
5133 object in attrs[LFACE_FONT_INDEX].
5134 (set_lface_from_font_name): Cancel all changes for font-backend.
5135 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
5136 function.
5137 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
5138 font object in QCfont attribute.
5139 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
5140 (realize_default_face) [USE_FONT_BACKEND]: Call
5141 set_lface_from_font_and_fontset.
5142
5143 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
5144 "fixed", and signal error here if no suitable font was found.
5145
5146 * xfont.c (xfont_parse_name): Delete this function.
5147
5148 * xftfont.c (xftfont_open): Change coding style of error
5149 handling. Generate fontconfig's fontname pattern.
5150
5151 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
5152 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
5153
5154 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
5155 Both args FONTSET and FONT_OBJECT must be existing ones.
5156
73acf815 51572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5158
5159 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
5160
73acf815 51612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5162
5163 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
5164
5165 * font.h (struct font): Fix typo.
5166
5167 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
5168 XLFD_XXX_INDEX.
5169 (enum xlfd_field_mask): New enum.
1f45f627 5170 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
5171 are followed by non-digits, return a symbol.
5172 (font_expand_wildcards): New function.
5173 (font_parse_xlfd): Fix wildcard handling.
5174 (Ffont_spec): If :name is specified, reflect the info in the other
5175 properties.
5176
5177 * ftfont.c (ftfont_pattern_entity): Fix typo.
5178 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
5179 locale.
5180
73acf815 51812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5182
5183 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
5184
1f45f627 5185 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
5186 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
5187 registry doesn't specify encoding part.
5188 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
5189 (font_open_by_name): At first try parsing the name.
5190 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
5191 as Lisp symbols.
5192
5193 * fontset.c (reorder_font_vector): Pay attention to the case that
5194 the 3rd element of font_def is nil.
5195 (fontset_font): For the default fontset, append one more fontset
5196 elements for a script-based font specification. Don't add script
5197 attribute on finding a font.
5198 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
5199 font name.
5200 (fontset_ascii_font): If a font can't be opened, return nil.
5201
1f45f627 5202 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
5203 (ftfont_pattern_entity): New function.
5204 (ftfont_get_cache): Assume that freetype_font_cache is already
5205 initialized.
5206 (ftfont_list): Handle the case that a file is specified in font
5207 name. Use ftfont_pattern_entity to generate entities.
5208 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
5209 (syms_of_ftfont): Initialize freetype_font_cache.
5210
5211 * xftfont.c (xftfont_open): Make the font name fontconfig's
5212 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
5213 (xftfont_close): Free font->font.name if not NULL.
5214
5215 * xfont.c (xfont_list): If script is specified for a font, return
5216 null_vector.
5217 (xfont_list_family): Declare argument type.
5218
5219 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
5220 name, set LFACE_FONT (lface) to nil.
5221
5222 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
5223 return Qnil.
5224
73acf815 52252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5226
1f45f627 5227 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
5228 (standard_args): Add "-enable-font-backend".
5229
73acf815 52302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5231
5232 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
5233 (struct xftdraw_list, xftdraw_list): Delete them.
5234 (register_xftdraw, check_xftdraw): Delete them.
5235 (xftfont_prepare_face): Don't call register_xftdraw.
5236 (xftfont_done_face): Don't call check_xftdraw.
5237 (xftfont_draw): Get backroudn color only when with_background is
5238 nonzero.
5239
5240 * xfont.c (xfont_encode_char): Fix calculation of char2b.
5241
73acf815 52422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5243
5244 These changes are for the new font handling codes.
5245
5246 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
5247 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
5248 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
5249 (FONTSRC, FONTOBJ): New variables.
5250 (obj): Add $(FONTOBJ).
5251 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
5252 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
5253 @LIBOTF_LIBS@.
5254 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 5255 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 5256
1f45f627 5257 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
5258
5259 * character.h (Vscript_representative_chars): Extern it.
5260
5261 * character.c (Vscript_representative_chars): New variable.
5262 (syms_of_character): Declare it as a Lisp variable.
5263
5264 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
5265 enable_font_backend is nonzero, accept the composition method
5266 COMPOSITION_WITH_GLYPH_STRING.
5267
5268 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
5269 enumeration COMPOSITION_WITH_GLYPH_STRING.
5270
aca7a3d2
MB
5271 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
5272 members clip_x, clip_y, clip_width, and clip_height.
5273 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
5274
5275 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
5276 --enable-font-backend. Call syms_of_font.
5277
5278 * fns.c (assoc_no_quit): New function.
5279
5280 * fontset.h (FONT_INFO_FROM_FACE): New macro.
5281 (face_for_font, new_fontset_from_font)
5282 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
5283
5284 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
5285 (fontset_font, fontset_ascii, face_for_char)
5286 (make_fontset_for_ascii_face, Ffont_info)
5287 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
5288 is nonzero, use font-backend mechanism.
5289 (find_font_encoding): Make it non-static.
5290 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
5291 New functions.
5292
5293 * frame.h (struct frame): New members resx and resy.
5294 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
5295 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
5296
5297 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 5298 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
5299
5300 * lisp.h (assoc_no_quit): Extern it.
5301
5302 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
5303 Through out the file, use FONT_INFO_FROM_FACE instead of
5304 FONT_INFO_FROM_ID, use get_per_char_metric instead of
5305 rif->per_char_metric.
5306 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
5307 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
5308 (get_glyph_face_and_encoding, fill_composite_glyph_string)
5309 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
5310 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
5311 nonzero, use font-backend mechanism.
5312 (get_per_char_metric): New function.
5313
5314 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
5315 (set_lface_from_font_name)
5316 (set_font_frame_param, free_realized_face)
5317 (prepare_face_for_display, clear_face_gcs)
5318 (Finternal_set_font_selection_order, realize_x_face)
5319 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
5320 font-backend mechanism.
1f45f627 5321 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
5322 (load_face_font) [USE_FONT_BACKEND]: Abort.
5323 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 5324 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
5325
5326 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
5327 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
5328 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
5329 nonzero, register all available font drivers. Call
5330 x_default_font_parameter for deciding a font.
5331 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
5332
5333 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
5334 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
5335 (x_set_glyph_string_clipping_exactly)
5336 (x_compute_glyph_string_overhangs)
5337 (x_draw_glyph_string_foreground)
5338 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
5339 (x_free_frame_resources) [USE_FONT_BACKEND]: If
5340 enable_font_backend is nonzero, use font-backend mechanism.
5341 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
5342
73acf815 53432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5344
fcb314b2 5345 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
5346 system_eol_type.
5347 (syms_of_coding): Initialize system_eol_type.
5348
fcb314b2
GM
5349 * process.c (Fset_process_coding_system): Inherit system's eol
5350 format if necessary.
aca7a3d2 5351
73acf815 53522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5353
5354 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
5355
73acf815 53562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5357
5358 * coding.c (decode_eol): Pay attention to buffer relocation in
5359 del_range_2.
5360 (decode_coding): Call decode_eol before restoring undo_list.
5361
73acf815 53622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5363
5364 * charset.c (Fdefine_charset_internal): Fix setting of
5365 emacs_mule_bytes.
5366
73acf815 53672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5368
5369 * keyboard.c (read_char): Check if C is a character or not before
5370 looking up Vkeyboard_translate_table.
5371
73acf815 53722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5373
5374 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
5375 condition to terminate the loop.
5376
73acf815 53772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5378
5379 * coding.c (produce_composition): Compare charbuf[i] instead of
5380 args[i] against 0.
5381 (Fterminal_coding_system): Use EQ to compare Lisp objects.
5382
73acf815 53832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5384
5385 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
5386 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
5387 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
5388 detect_coding.
5389 (emacs_mule_char): Handle old style (Emacs 20) component character
5390 of a composition.
4c4475a8
GM
5391 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
5392 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
5393 composition rule.
aca7a3d2
MB
5394 (decode_coding_emacs_mule): Handle invalid bytes correctly.
5395
73acf815 53962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5397
5398 * coding.c (encode_coding_ccl): Allocate destination dynamically
5399 when necessary.
5400
73acf815 54012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5402
5403 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
5404 the loop. When quitted, show a proper error message.
5405
73acf815 54062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5407
aca7a3d2
MB
5408 * xterm.c (x_set_glyph_string_clipping_exactly): Set
5409 src->clip_head and src->clip_tail temporarily instead of src->hl.
5410
5411 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
5412 character sequence.
5413 (Fccl_execute_on_string): Use ASET, not XSET.
5414
73acf815 54152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5416
1f45f627 5417 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 5418
73acf815 54192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5420
5421 * coding.c (decode_coding): Fix the condition of terminating the
5422 decoding loop.
5423
73acf815 54242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5425
5426 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 5427 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 5428
73acf815 54292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5430
5431 * charset.c (map_charset_chars): Fix for ascii-compatible charset
5432 made by a mapping table.
5433
73acf815 54342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5435
5436 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
5437 not.
5438 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
5439 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
5440
5441 * xterm.c (x_draw_composite_glyph_string_foreground): Check
5442 s->face is NULL or not.
5443
73acf815 54442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5445
5446 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
5447 (x_draw_glyph_string): Fix drawing of right_overhang and
5448 left_overhang around/on cursor.
5449
1f45f627 5450 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 5451
73acf815 54522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5453
5454 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
5455
73acf815 54562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5457
4c4475a8
GM
5458 * coding.c (Fdefine_coding_system_internal)
5459 (Fdefine_coding_system_alias): Avoid a duplicated element in
5460 Vcoding_system_alist.
aca7a3d2 5461
73acf815 54622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5463
5464 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
5465
fcb314b2 5466 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
5467 (syms_of_coding): Intern and staticpro it.
5468 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 5469 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
5470
5471 * coding.h (CODING_SYSTEM_P): If ID is not available, call
5472 Fcoding_system_p.
5473 (CHECK_CODING_SYSTEM): If ID is not available, call
5474 Fcheck_coding_system.
4c4475a8
GM
5475 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
5476 Try also Fcheck_coding_system.
aca7a3d2 5477
73acf815 54782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5479
aca7a3d2
MB
5480 * coding.c (code_conversion_restore): GCPRO arg.
5481
73acf815 54822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5483
5484 * character.c (lisp_string_width): Check multibyteness of STRING.
5485
73acf815 54862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5487
5488 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
5489 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
5490 (decode_mac_font_name): Use decode_coding_c_string instead of
5491 decode_coding.
5492 (x_load_font): Initialize fontp->fontset to -1. Set
5493 fontp->encoding_type.
5494
73acf815 54952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5496
5497 * search.c (search_buffer): Give up BM search on case-fold-search
5498 if one of a target character has a case-equivalence of different
5499 byte length even if that target charcter is an ASCII.
1f45f627
GM
5500 (simple_search): Fix calculation of byte length of matched text.
5501 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 5502
73acf815 55032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5504
5505 * coding.c (decode_coding): Fix handling of invalid bytes.
5506
73acf815 55072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5508
5509 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5510 Unicode characters.
5511
73acf815 55122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5513
5514 * coding.c (encode_coding_object): If a pre-write-conversion
5515 function makes a new buffer, kill it.
5516
73acf815 55172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5518
5519 * coding.c (QCascii_compatible_p): New variable.
5520 (syms_of_coding): Initialize it.
4c4475a8
GM
5521 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
5522 calling string_char.
aca7a3d2
MB
5523 (record_conversion_result): Add `default:' case.
5524 (coding_charset_list): Delete unused variable `coding_type'.
5525 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
5526 property in the plist of the coding system.
5527 (Fcoding_system_put): Check QCascii_compatible_p.
5528
73acf815 55292008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
5530
5531 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
5532 removed calculation of frame `f', as it's now used.
5533
73acf815 55342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5535
1f45f627 5536 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
5537 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
5538 (UNIDATA): New variable.
5539 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
5540 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
5541 $(RUN_TEMACS) unconditionally.
5542
73acf815 55432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5544
1f45f627 5545 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
5546 (admindir): New variable.
5547 ($(lispsource)international/charprop.el): New target.
5548
73acf815 55492008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 5550
1f45f627 5551 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
5552 (syms_of_character): Remove its initialization.
5553
73acf815 55542008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
5555
5556 * w32select.c (validate_coding_system)
5557 (setup_windows_coding_system): New functions.
5558 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
5559 setup_windows_coding_system.
5560 (setup_config, Fw32_get_clipboard_data): Use
5561 validate_coding_system.
5562 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 5563 where signals are allowed.
aca7a3d2
MB
5564
5565 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
5566 (Fcheck_coding_system): Add declarations.
5567
73acf815 55682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5569
1f45f627 5570 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 5571
73acf815 55722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5573
5574 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
5575 string as the second argument for x_new_fontset.
5576
73acf815 55772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5578
5579 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
5580 (encode_coding_object): Use safe_call instead of call2.
5581
73acf815 55822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5583
1f45f627 5584 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
5585
5586 * Makefile.in (lisp): Include charprop.el.
5587
73acf815 55882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
5589
5590 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
5591 Not sure if it's unnecessary.
5592
73acf815 55932008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5594
5595 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
5596 some possibly unnecessary fontset checking code that crashed
1f45f627 5597 when creating a new frame.
aca7a3d2 5598
73acf815 55992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5600
5601 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
5602 lookup_face.
5603
5604 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
5605
1f45f627 5606 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 5607
73acf815 56082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5609
73acf815 5610 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
5611 (coding_charset_list): New function.
5612
5613 * coding.h (coding_charset_list): Extern it.
5614
73acf815 56152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5616
5617 * fontset.c (Fset_fontset_font): Call find_font_encoding with
5618 concatenation of family and registry.
5619
73acf815 56202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5621
5622 * character.h (BYTE8_STRING): Fix typo.
5623
5624 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
5625 string to multibyte (sync to HEAD).
5626
5627 * casefiddle.c (casify_region): Handle changes in byte-length
5628 using replace_range_2 (sync to HEAD).
5629
73acf815 56302008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
5631
5632 * chartab.c (map_char_table): GCPRO table and arg.
5633
73acf815 56342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5635
5636 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
5637 already at limit.
5638
73acf815 56392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5640
5641 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
5642 instead of fast_c_string_match_ignore_case.
1f45f627 5643 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 5644 fast_string_match_ignore_case instead of
1f45f627 5645 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 5646
73acf815 56472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5648
5649 * xdisp.c (get_next_display_element): In unibyte case, decide to
5650 display in octal form by checking a chacter by
5651 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
5652
1f45f627 5653 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
5654
5655 * character.c (unibyte_has_multibyte_table): New variable.
5656
5657 * character.h (unibyte_has_multibyte_table): Extern it.
5658 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
5659
73acf815 56602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5661
5662 * coding.c (encode_coding_iso_2022): Fix handling of charset
5663 annotation.
5664
73acf815 56652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5666
5667 * coding.c (setup_coding_system): If coding_system is nil, use
5668 Qundecided.
5669 (Fterminal_coding_system): Return nil if terminal coding system is
5670 `undecided'.
5671 (syms_of_coding): Define coding-system `undecided' here. Setup
5672 terminal_coding as `undecided'.
5673
73acf815 56742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5675
5676 * xdisp.c (message_dolog, set_message_1): Call
5677 unibyte_char_to_multibyte with arg type int.
5678
aca7a3d2
MB
5679 * lread.c (read1): Fix reading of a char-table.
5680
5681 * print.c (print_object): Include sub char-table in cicularities
5682 detection.
5683
73acf815 56842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5685
5686 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 5687 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 5688
73acf815 56892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5690
5691 * fileio.c (report_file_error): Make a unibyte string from
5692 strerror (errorno).
5693 (Fsubstitute_in_file_name): Fix the arg to
5694 unibyte_char_to_multibyte. It is evaluated twice.
5695
73acf815 56962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5697
5698 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
5699
73acf815 57002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5701
5702 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
5703 BOM is not found.
4c4475a8
GM
5704 (detect_coding, detect_coding_system): Optimization for ISO-2022
5705 when no 8-bit data is found.
aca7a3d2 5706
73acf815 57072008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5708
5709 * w32fns.c (x_to_w32_font): Update to use new coding struct.
5710
73acf815 57112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5712
4c4475a8
GM
5713 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
5714 CHARS.
aca7a3d2 5715
73acf815 57162008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
5717
5718 * macterm.c (mac_encode_char): Add charset argument and update
5719 to use encoding_type.
2a2e8de7 5720 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
5721 switch to pure fontset.
5722 (decode_mac_font_name): Temporarily remove decoding.
5723 (x_font_name_to_mac_font_name): Temporarily remove encoding.
5724 (x_load_font): Temporarily remove encoding.
aca7a3d2 5725
73acf815 57262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5727
5728 * xfaces.c (Fface_font): If frame is not on a window system,
5729 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
5730 refer to face->font.
5731 (split_font_name_into_vector, build_font_name_from_vector)
5732 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
5733 whne HAVE_WINDOW_SYSTEM is defined.
5734
73acf815 57352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5736
5737 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
5738 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 5739 cmp->glyph_len is zero.
aca7a3d2 5740
1f45f627 5741 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
5742 (Ffontset_info): Make it backward compatible. New arg ALL.
5743
73acf815 57442008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
5745
5746 * process.c (read_process_output): Grow decoding_buf when needed;
5747 this could cause a crash in allocate_string and compact_small_strings.
5748
73acf815 57492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5750
1f45f627 5751 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 5752
73acf815 57532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5754
5755 * coding.c (setup_coding_system): Set coding->common_flags
5756 correctly for raw-text.
5757 (consume_chars): On encoding unibyte text by raw-text, don't check
5758 multibyte form.
1f45f627 5759 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
5760
5761 * fileio.c (e_write): Short cut for the case of no encoding.
5762
73acf815 57632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5764
4c4475a8
GM
5765 * coding.c (detect_coding, detect_coding_system): Delete unused
5766 variables.
aca7a3d2 5767
73acf815 57682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5769
5770 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
5771 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
5772
73acf815 57732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5774
5775 * coding.c (Ffind_coding_systems_region_internal): Include
5776 raw-text and no-conversion in the result.
5777
73acf815 57782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5779
1f45f627 5780 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
5781 (load_font_get_repertory): Delete unnecessary check of ENCODING of
5782 FONT_DEF.
5783 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 5784 (set_fontset_font): Change argument.
aca7a3d2
MB
5785 (Fset_fontset_font): Fix for the case that TARGET is a script
5786 name and charset name.
5787 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
5788
73acf815 57892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5790
1f45f627
GM
5791 * fontset.c (fontset_font): Rename from fontset_face. Change return
5792 value.
4c4475a8
GM
5793 (face_suitable_for_char_p, face_for_char): Adjust for the change
5794 of fontset_font.
aca7a3d2
MB
5795 (make_fontset_for_ascii_face): Fix setting of the fontset element
5796 for ASCII.
5797 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
5798 to get a font name.
1f45f627 5799 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 5800
fcb314b2 5801 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
5802
5803 * character.h (LEADING_CODE_LATIN_1_MIN)
5804 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
5805
73acf815 58062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5807
fcb314b2 5808 * editfns.c (check_translation): New function.
aca7a3d2
MB
5809 (Ftranslate_region_internal): Handle M:N mapping.
5810
73acf815 58112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5812
5813 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
5814
73acf815 58152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5816
5817 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
5818 goto invalid_code.
5819 (decode_coding_iso_2022): Fix handling of invalid designation.
5820
5821 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
5822 after calling code_conversion_save.
5823
73acf815 58242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5825
5826 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
5827
5828 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
5829
5830 * fontset.c: Include "intervals.h".
5831 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
5832 (free_face_fontset, new_fontset_from_font_name): Fix
5833 Lisp_Object/int mixup.
aca7a3d2
MB
5834
5835 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
5836
5837 * coding.c: Add many prototypes for static functions.
5838 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 5839 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
5840 (Funencodable_char_position, Fcheck_coding_systems_region): Call
5841 get_translation_table with max_lookup NULL.
aca7a3d2 5842
73acf815 58432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5844
5845 * coding.c (get_translation_table): Declare it as Lisp_Object.
5846 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
5847 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
5848 instead of CHAR_TABLE_REF.
aca7a3d2 5849
73acf815 58502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5851
1f45f627 5852 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
5853 annotation data format.
5854 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 5855 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 5856 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 5857 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
5858 (decode_coding_ccl, decode_coding_charset): Pay attention to
5859 coding->charbuf_used.
aca7a3d2
MB
5860 (get_translation): New function.
5861 (produce_chars): New arguments translation_table and last_block.
5862 Translate characters here. Return number of carryover chars.
1f45f627
GM
5863 Change caller.
5864 (produce_composition): New argument pos. Change caller.
5865 Adjust for the change of annotation data format.
aca7a3d2
MB
5866 (produce_charset, produce_annotation): Likewise.
5867 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
5868 (consume_chars): New arg translation_table. Change caller.
5869 (translate_chars): Delete.
5870 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 5871
73acf815 58722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5873
5874 * search.c (simple_search): Fix setting this_pos_byte in backward
5875 search.
5876
5877 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
5878 byte sequence.
5879 (detect_coding_ccl): Fix setting of the variable valids.
5880
73acf815 58812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5882
5883 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
5884
5885 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
5886
1f45f627 5887 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
5888 Ftranslate_region. Accept a char-table in TABLE.
5889 (syms_of_editfns): Defsubr Stranslate_region_internal.
5890
5891 * xfaces.c (set_lface_from_font_name): If a font is specified for
5892 a frame, generate a fontset from the font.
5893 (build_scalable_font_name): If the scalable font is requested for
5894 a specific size, don't change that size.
5895 (try_font_list): Try a scalable font also in the case that a
1f45f627 5896 pattern string is specified.
aca7a3d2 5897
73acf815 58982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5899
5900 * xfaces.c (Fface_font): New optional arg CHARACTER.
5901
73acf815 59022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5903
5904 * charset.h (CHARSET_OFFSET): New macro.
5905
73acf815 59062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5907
5908 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
5909
5910 * fontset.c (fontset_face): Handle the case that repertory is a
5911 char-table.
5912 (find_font_encoding): Return nil for unknown encoding.
5913 (Fset_fontset_font): Ignore a font of unknown encoding.
5914
73acf815 59152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5916
1f45f627 5917 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
5918
5919 * fontset.c (fontset_face): Handle fallback fonts correctly.
5920 (Ffontset_info): Return infomation about fallback fonts.
5921
73acf815 59222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5923
5924 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 5925 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
5926 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
5927 the case that it is nil.
5928 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 5929 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
5930
5931 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
5932 subset or superset.
5933
73acf815 59342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5935
5936 * emacs.c (main): Call init_charset after syms_of_XXX.
5937
1f45f627 5938 * charset.c (Vcharset_map_directory): Delete.
1f204af3 5939 (Vcharset_map_path): New variable.
aca7a3d2
MB
5940 (load_charset_map_from_file): Use Vcharset_map_path instead.
5941 (init_charset): Initialize Vcharset_map_path.
5942 (syms_of_charset): Delete declaration of "charset-map-directory",
5943 add declaration of "charset-map-path".
5944
73acf815 59452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5946
4c4475a8
GM
5947 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
5948 ASCII only string.
aca7a3d2
MB
5949
5950 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
5951
5952 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 5953 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 5954
73acf815 59552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5956
5957 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
5958
5959 * coding.c (QCmnemonic, QCdefalut_char)
5960 (QCdecode_translation_table, QCencode_translation_table)
5961 (QCpost_read_conversion, QCpre_write_conversion): New variables.
5962 (get_translation_table): Return a list of translation tables if
5963 necessary.
5964 (decode_coding): Call get_translation_table with ENCODEP 0.
5965 (char_encodable_p): If translation_table is non-nil, always call
5966 translate_char.
5967 (Fdefine_coding_system_internal): Accept list of translation
5968 tables as :encode-translation-table and :decode-translation-table.
5969 (Fcoding_system_put): New function.
5970 (syms_of_coding): Declare new symbols. Defsubr
5971 Scoding_system_put.
4c4475a8
GM
5972 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
5973 typically JISX0212.
aca7a3d2
MB
5974
5975 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
5976 when the charset is superset type.
5977
5978 * character.c (translate_char): Accept list of translation tables.
5979
73acf815 59802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5981
1f45f627 5982 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
5983 (CODING_ATTR_TRANS_TBL): New macro.
5984
5985 * coding.c (get_translation_table): New function.
5986 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
5987 (decode_coding, encode_coding): Utilize get_translation_table.
5988 (char_encodable_p, Funencodable_char_position): Translate char if
5989 necessary.
5990 (Ffind_coding_systems_region_internal)
5991 (Fcheck_coding_systems_region): Setup translation table for encode
5992 in a coding system attribute vector in advance.
aca7a3d2
MB
5993 (Fdefine_coding_system_internal): Allow a symbol as translation
5994 table. For shift-jis type coding system, allow 4th charset.
5995
73acf815 59962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5997
5998 * coding.c (decode_coding_sjis): Check the first byte rigidly.
5999
6000 * xdisp.c (get_next_display_element): Pass -1 as POS to
6001 FACE_FOR_CHAR if displaying a C-string.
6002
73acf815 60032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6004
6005 * composite.c (get_composition_id): Handle xoff and yoff in a
6006 composition rule.
6007
6008 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
6009 (struct composition): New member lbearing and rbearing.
6010
6011 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
6012 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 6013 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
6014
6015 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
6016 composition glyph.
6017
73acf815 60182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6019
6020 * print.c: Include charset.h.
6021 (Vprint_charset_text_property): New variable.
6022 (Qdefault): Extern it.
6023 (PRINT_STRING_NON_CHARSET_FOUND)
6024 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
6025 (print_check_string_result): New variable.
6026 (print_check_string_charset_prop): New function.
6027 (print_prune_charset_plist): New variable.
6028 (print_prune_string_charset): New function.
6029 (print_object): Call print_prune_string_charset if
6030 Vprint_charset_text_property is not t.
6031 (print_interval): Print nothing if itnerval->plist is nil.
6032 (syms_of_print): Declare Vprint_charset_text_property as a lisp
6033 variable. Init and staticpro print_prune_charset_plist.
6034
73acf815 60352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6036
6037 * fontset.c (new_fontset_from_font_name): Use the specified font
6038 for all characters in the new fontset.
6039
6040 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6041 OBJECT args.
6042
6043 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
6044 OBJECT args for composition too.
6045
6046 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
6047 OBJECT args.
6048
73acf815 60492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6050
6051 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
6052
1f45f627 6053 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 6054 FONT_DEF format.
1f45f627 6055 (fontset_face): New arg id. Change caller.
aca7a3d2 6056 (face_for_char): New args pos and object.
1f204af3 6057 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
6058 (fs_query_fontset): Check NAME by Fassoc too.
6059 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 6060 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 6061
1f45f627 6062 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 6063
4c4475a8
GM
6064 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
6065 (append_space, extend_face_to_end_of_line)
6066 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
6067 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
6068
6069 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
6070 POS and OBJECT args.
6071
6072 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
6073 POS and OBJECT args.
6074
73acf815 60752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6076
6077 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
6078 of GlobalAlloc'ed memory.
6079
73acf815 60802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6081
6082 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
6083
6084 * charset.h (charset_table_used): Delete extern.
6085
6086 * charset.c (charset_table_used): Make it static.
6087 (map_charset_chars): Fix args to c_function with.
6088
6089 * chartab.c (map_sub_char_table_for_charset): Fix args to
6090 c_function with.
6091
6092 * coding.h (enum coding_result_code): Delete
6093 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
6094
6095 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 6096 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
6097 (Vlast_code_conversion_error): New variables.
6098 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
6099 (ONE_MORE_BYTE): Record error if any instead of signaling an
6100 error. If non-ASCII multibyte char is found, return the negative
6101 value of the code. All callers changed to check it.
6102 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
6103 (record_conversion_result): New function. Change all codes setting
6104 coding->result to call this function.
4c4475a8
GM
6105 (detect_coding_utf_8, decode_coding_utf_8)
6106 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
6107 Don't use the local variable incomplete.
aca7a3d2 6108 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
6109 (decode_coding): Fix of flushing out unprocessed data.
6110 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 6111 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
6112
6113 * fontset.c (set_fontset_font): Fix args.
6114
6115 * lisp.h (CHARACTERBITS): Define as 22.
6116
6117 * process.c (send_process): Be sure to set coding->src_multibyte.
6118
6119 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
6120
73acf815 61212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6122
6123 * xdisp.c (handle_auto_composed_prop): Give limit to
6124 Fnext_single_char_property_change.
6125
73acf815 61262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6127
424c157f 6128 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 6129 table weak.
aca7a3d2
MB
6130
6131 * fontset.c (Fset_fontset_font): Fix docstring.
6132
6133 * lisp.h (detect_coding_system): Adjust prototype.
6134
6135 * fileio.c (kill_workbuf_unwind): Delete this function.
6136 (Finsert_file_contents): Adjust the call of detect_coding_system.
6137 Get conversion_buffer by code_conversion_save. Use the macor
6138 CODING_MAY_REQUIRE_DECODING. After decoding, update
6139 coding_system.
6140
6141 * coding.h (make_conversion_work_buffer): Delete extern.
6142 (code_conversion_save): Extern it.
6143
6144 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 6145 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
6146 (decode_coding_utf_8): Don't do eol converion.
6147 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 6148 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
6149 (decode_coding_emacs_mule, decode_coding_iso_2022)
6150 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6151 Don't do eol converion.
aca7a3d2
MB
6152 (adjust_coding_eol_type): Return a new coding system.
6153 (detect_coding): Don't detect eol. Fix for utf-16 detection.
6154 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
6155 each change.
6156 (decode_coding): Pay attention to undo_list. Do eol convesion for
6157 all types of coding-systems (if necessary).
6158 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 6159 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
6160 Vcode_conversion_reused_work_buf.
6161 (Vcode_conversion_workbuf_name): New variable.
6162 (reused_workbuf_in_use): New variable.
6163 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 6164 (code_conversion_restore): Change argument to cons.
1f45f627
GM
6165 (code_conversion_save): Delete the argument BUFFER. Change callers.
6166 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
6167 Fix for utf-16 detection.
6168 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 6169 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
6170 reused_workbuf_in_use.
6171
73acf815 61722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6173
6174 * keymap.c (store_in_keymap): Pay attention to the case that idx
6175 is a cons specifying a character range.
6176
73acf815 61772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6178
6179 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
6180 HANDLED_RECOMPUTE_PROPS.
6181
6182 * coding.c (Fdefine_coding_system_internal): Fix checking of
6183 ascii compatibility.
6184
73acf815 61852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6186
1f45f627 6187 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
6188 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
6189
6190 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
6191 Resync charset_list to Vemacs_mule_charset_list.
6192
6193 * keymap.c (store_in_keymap): Pay attention to the case that idx
6194 is a cons specifying a character range.
6195
73acf815 61962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6197
6198 * composite.c (update_compositions): Bind inhibit-read-only, etc
6199 to t before calling remove-list-of-text-properties.
6200
6201 * print.c (print_object): Always print ASCII chars as is.
6202
73acf815 62032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6204
1f45f627 6205 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 6206
4c4475a8
GM
6207 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
6208 is a char table.
aca7a3d2 6209
73acf815 62102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6211
1f45f627 6212 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 6213
73acf815 62142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6215
6216 * xfaces.c (set_lface_from_font_name): Fix for the case that
6217 FONTNAME is not fontset name.
6218
73acf815 62192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6220
6221 * fns.c (base64_encode_1): Fix previous change.
6222
73acf815 62232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6224
6225 * fontset.c (set_fontset_font): New function.
6226 (Fset_fontset_font): If a font is specified for a charset, use
6227 map_charset_chars to store the font spec in a fontset.
6228
73acf815 62292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6230
1f204af3 6231 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
6232 (make_fontset): Don't create a fallback fontset here.
6233 (free_face_fontset): Free a fallback fontset (if any) too.
6234 (n_auto_fontsets): Delete this variable.
6235 (auto_fontset_alist): New variable.
6236 (new_fontset_from_font_name): Check auto_fontset_alist.
6237 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
6238 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
6239 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
6240 Defsubr Sfontset_list_all.
6241
73acf815 62422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6243
6244 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6245
73acf815 62462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6247
6248 * fontset.c (Fnew_fontset): Check NAME more rigidly.
6249
73acf815 62502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6251
6252 * editfns.c (Fgoto_char): Fix docstring.
6253
73acf815 62542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6255
6256 * insdel.c (insert_from_gap): Adjust intervals correctly.
6257
73acf815 62582008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6259
6260 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
6261 (pfnGetFontUnicodeRanges): New dynamically loaded function.
6262 (w32_initialize): Try to load it.
6263 (x_get_font_repertory): Use it if available.
6264 (w32_encode_char): Add shortcut for unicode output.
6265
6266 * w32fns.c (w32_load_system_font): Default charset to -1.
6267 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 6268 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
6269 or wildcard charsets.
6270 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
6271 (w32_codepage_for_font): Return CP_UNICODE for unicode.
6272 (w32_to_x_font): Match charset to real charset.
6273 (enum_font_cb2): Always list unicode versions.
6274
6275 * makefile.w32-in (temacs): Increase EMHEAP.
6276
73acf815 62772008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6278
6279 * w32term.c (w32_encode_char): New charset parameter.
6280 font_info.encoding becomes encoding_type.
1f45f627 6281 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
6282 (x_new_font): Return quickly if font already set.
6283 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
6284 Use new fs_query_fontset. Try new_fontset_from_font_name.
6285 Use fontset_name for return value.
aca7a3d2
MB
6286
6287 * w32term.h: Declare x_get_font_repertory.
6288
6289 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 6290 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
6291 of encode_coding.
6292 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
6293 decode_coding.
6294
6295 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
6296 of x_new_fontset.
6297 (w32_load_system_font): Initialize charset as unicode.
6298 font_info.encoding becomes encoding_type.
1f45f627
GM
6299 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
6300 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
6301 (syms_of_w32fns): Set get_font_repertory_func.
6302
1f45f627 6303 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 6304 from term.c.
1f45f627 6305 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
6306 encode_coding_object in place of encode_coding.
6307
6308 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
6309 encoding becomes encoding_type.
6310
6311 * term.c (terminal_encode_buffer): Make externally visible.
6312
6313 * makefile.w32-in: Add character.h dependancies.
6314 (character.o, chartab.o): New targets.
6315
73acf815 63162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6317
6318 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 6319 CODING_ID_EOL_TYPE.
aca7a3d2 6320
73acf815 63212008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6322
6323 * coding.c (produce_chars): Revert last change.
6324
73acf815 63252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6326
6327 * charset.h (charset_unicode): Extern it.
6328
6329 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 6330 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 6331 arg MULTIBYTE.
1f45f627 6332 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
6333 change of find_charsets_in_text.
6334 (Fsplit_char): Fix doc. Never return unknown.
6335
6336 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
6337
6338 * coding.c (Fdefine_coding_system_alias): Update
6339 Vcoding_system_list.
6340
6341 * fontset.c (load_font_get_repertory): Pay attention to the case
6342 that ENCODING of a font is specified by a char-table.
6343
6344 * xterm.c (x_get_font_repertory): Handle the case that the
6345 encoding of font is other than Unicode.
6346
73acf815 63472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6348
6349 * term.c (encode_terminal_code): Don't handle glyph-table. Check
6350 if a character is encodable by the terminal coding system. If
6351 not, produces proper number of `?'s. Update
6352 terminal_encode_buffer and terminal_encode_buf_size if necessary.
6353 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
6354
73acf815 63552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6356
6357 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
6358 variables.
1f45f627 6359 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
6360 characters at once. Store the result of encoding in
6361 terminal_encode_buffer.
4c4475a8
GM
6362 (write_glyphs, insert_glyphs): Adjust for the change of
6363 encode_terminal_code.
aca7a3d2
MB
6364 (term_init): Initialize terminal_encode_buffer and
6365 terminal_encode_buf_size.
6366
6367 * coding.c (consume_chars): If coding->src_object is nil, don't
6368 check annotation.
6369
73acf815 63702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6371
6372 * character.c (char_string): Use ASCII_CHAR_P instead of
6373 SINGLE_BYTE_CHAR_P.
6374
73acf815 63752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6376
6377 * xdisp.c (handle_auto_composed_prop): Check if the last
6378 characters of auto-composed region is newly composed with the
6379 following characters.
6380 (handle_composition_prop): Fix checking of point being inside
6381 composition.
6382
73acf815 63832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6384
6385 * fns.c (concat): Don't change multibyteness of the result by
6386 concatenating an 8-bit character.
6387
6388 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
6389 multibyteness of the result when newelt is an 8-bit character.
6390
73acf815 63912008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6392
6393 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
6394 EMACS_INT.
6395
6396 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
6397
6398 * xfaces.c (face_numeric_value): Declare dim size_t.
6399 (Finternal_lisp_face_equal_p): Remove unused f.
6400
6401 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
6402 (MATRIX_ROW): Remove unused vars.
6403 (draw_glyphs, x_insert_glyphs, fast_find_position)
6404 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
6405 byte/char counts.
6406
6407 * regex.c (regex_compile): Remove unused var.
6408
6409 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
6410
6411 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6412 (Faccessible_keymaps, where_is_internal): Remove unused vars.
6413
6414 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
6415
6416 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
6417
6418 * fileio.c (Fwrite_region): Remove unused var.
6419
6420 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
6421 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
6422
6423 * composite.c (Fremove_list_of_text_properties): Declare.
6424
1f45f627
GM
6425 * coding.c (inhibit_pre_post_conversion): Remove (unused).
6426 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
6427 (coding_inherit_eol_type): Remove unused attrs.
6428 (detect_coding): Cast arg of detect_eol.
6429
6430 * charset.c (syms_of_charset): Remove unused var p.
6431 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
6432 byte/char counts.
6433
6434 * casetab.c (set_case_table): Remove unused var.
6435
6436 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 6437 unused vars.
aca7a3d2 6438
73acf815 64392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6440
6441 * xterm.c (x_bitmap_mask): Declare.
6442
73acf815 64432008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6444
6445 * xterm.c (x_term_init): Fix type error.
6446
6447 * lisp.h: Add Funibyte_char_to_multibyte.
6448
6449 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
6450 (Fset_coding_system_priority): Doc fix.
6451
aca7a3d2
MB
6452 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
6453
6454 * indent.c (check_composition): Make start and end EMACS_INT.
6455
6456 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
6457
6458 * xdisp.c (handle_composition_prop, check_point_in_composition):
6459 Make buffer positions EMACS_INT.
6460
6461 * composite.c (find_composition, run_composition_function)
6462 (update_compositions, Ffind_composition_internal): Make buffer
6463 positions EMACS_INT.
6464
6465 * composite.h (find_composition, update_compositions): Make
6466 position args EMACS_INT.
6467
1f45f627 6468 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
6469
6470 * intervals.c (get_property_and_range):
6471 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
6472
6473 * unexalpha.c: Don't include varargs.h.
6474
73acf815 64752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6476
6477 * coding.h (ENCODE_UTF_8): New.
6478
6479 * Makefile.in (gtkutil.o): Depend on coding.h.
6480
6481 * coding.c (Fset_coding_system_priority): Doc fix.
6482
73acf815 64832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6484
6485 * fileio.c (Finsert_file_contents): Call setup_coding_system in
6486 the case of auto saving.
6487
73acf815 64882008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 6489
4c4475a8
GM
6490 * chartab.c (map_char_table, map_char_table_for_charset): Protect
6491 `range' from GC.
aca7a3d2 6492
73acf815 64932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6494
6495 * coding.c (decode_coding_sjis): Check bytes more rigidly.
6496
73acf815 64972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6498
1f45f627 6499 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
6500 (Fwrite_region): Set Vlast_coding_system_used to the return value
6501 of choose_write_coding_system.
6502
73acf815 65032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6504
6505 * charset.c (Fset_charset_priority): Pay attention to duplicated
6506 arguments.
6507
6508 * coding.c (QCcategory): New variable.
6509 (syms_of_coding): Defsym it. Set all elements of
6510 Vcoding_category_table and their symbol values.
6511 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
6512 coding-category-XXX, and coding-category-list.
6513 (Fdefine_coding_system_internal): Add category in the plist.
6514
73acf815 65152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6516
6517 * callproc.c (Fcall_process): Handle carryover correctly.
6518
1f45f627 6519 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
6520 (raw_text_coding_system): Check NILP (coding_system).
6521 (coding_inherit_eol_type): Check NILP (coding_system) and
6522 NILP (parent).
6523 (consume_chars): Fix for the case of raw-text.
6524
6525 * process.c (read_process_output): Handle carryover correctly.
6526
73acf815 65272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6528
6529 * regex.c (re_search_2): Fix last change.
6530
73acf815 65312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6532
6533 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
6534 target_multibyte. Even in a unibyte case, return a converted
6535 multibyte char.
6536 (GET_CHAR_AFTER): New macro.
6537 (PATFETCH): Translate via multibyte char.
6538 (HANDLE_UNIBYTE_RANGE): Delete this macro.
6539 (SETUP_MULTIBYTE_RANGE): New macro.
6540 (regex_compile): Setup compiled code so that its multibyteness
6541 matches that of a target. Fix the handling of "[X-YZ]" using
6542 SETUP_MULTIBYTE_RANGE.
6543 (analyse_first) <charset>: For filling fastmap for all multibyte
6544 characters, don't check by BASE_LEADING_CODE_P.
6545 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
6546 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 6547 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
6548 (TARGET_CHAR_AND_LENGTH): Delete this macro.
6549 (TRANSLATE_VIA_MULTIBYTE): New macro.
6550 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
6551 It is the same as RE_MULTIBYTE_P (bufp) now.
6552 <exactn>: Translate via multibyte.
6553 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
6554 translate it.
6555 <charset, charset_not>: Fetch a character by
6556 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
6557 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
6558 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
6559 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
6560 by GET_CHAR_AFTER.
c5ad7a3d 6561 (bcmp_translate): Likewise.
aca7a3d2
MB
6562
6563 * search.c (compile_pattern): Check the member target_multibyte,
6564 not the member multibyte of buf.
6565
6566 * lread.c (read1): While reading a string, set force_singlebyte
6567 and force_multibyte correctly.
6568
4c4475a8
GM
6569 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
6570 up of unibyte_to_multibyte_table.
aca7a3d2 6571
73acf815 65722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6573
6574 * coding.c (setup_coding_system): If coding has
6575 post-read-conversion or pre-write-conversion, set
6576 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
6577 respectively.
6578 (decode_coding_gap): Run post-read-conversion if any.
6579
6580 * fileio.c (Finsert_file_contents): Even if we read into a
6581 unibyte buffer, check if we must decode the result or not.
6582
73acf815 65832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6584
6585 * coding.c (make_conversion_work_buffer): Change the work buffer
6586 name to the same one as that of Emacs 21.
6587
73acf815 65882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6589
1f45f627 6590 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
6591 (code_conversion_restore): Don't extern it.
6592
6593 * coding.c (detected_mask): Delete unused variable.
6594 (decode_coding_iso_2022): Pay attention to the byte sequence of
6595 CTEXT extended segment, and retain those bytes as is.
6596 (decode_coding_ccl): Delete unused variable `valids'.
6597 (setup_coding_system): Delete unused variable `category'.
6598 (consume_chars): Delete unused variable `category'. Make it work
6599 for non-multibyte case.
1f45f627 6600 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
6601 (saved_coding): Delete unused variable.
6602 (code_conversion_restore): Don't check saved_coding->destination.
6603 (code_conversion_save): New function.
6604 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
6605 instead of record_unwind_protect.
1f45f627 6606 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 6607 (detect_coding_system): Delete unused variable `mask'.
1f45f627 6608 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
6609
6610 * fileio.c (kill_workbuf_unwind): New function.
6611 (Finsert_file_contents): On replacing, call
6612 make_conversion_work_buffer with correct args, and call
6613 record_unwind_protect with the first arg kill_workbuf_unwind.
6614
6615 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
6616
73acf815 66172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6618
1f45f627 6619 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
6620 (fontset_add): Fix for the case that TO is less than TO1.
6621 (Ffontset_info): Don't use fallback fontset on checking the
6622 default fontset.
6623 (dump_fontset): New function for debugging.
6624
6625 * coding.c (Fdefine_coding_system_internal): Fix for the case that
6626 coding_type is Qcharset.
6627
73acf815 66282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6629
6630 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
6631 (map_char_table): Don't inherit the value from the parent on
1f45f627 6632 initializing VAL. Adjust for the above change.
aca7a3d2 6633
73acf815 66342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6635
6636 * coding.c (Qsignature, Qendian): Delete these variables.
6637 (syms_of_coding): Don't initialize them.
6638 (CATEGORY_MASK_UTF_16_AUTO): New macro.
6639 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
6640 detect_info->found.
6641 (decode_coding_utf_16): Don't detect BOM here.
6642 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
6643 is NOT utf_16_without_bom.
6644 (setup_coding_system): For a coding system of type utf-16, check
6645 if the attribute :endian is Qbig or not (not nil or not), and set
6646 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
6647 (detect_coding): If coding type is utf-16 and BOM detection is
6648 required, detect it.
6649 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 6650 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 6651
73acf815 66522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6653
6654 * coding.c (coding_set_source): Fix for the case that the current
6655 buffer is different from coding->src_object.
6656 (decode_coding_object): Don't use the conversion work buffer if
6657 DST_OBJECT is a buffer.
6658
73acf815 66592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6660
6661 * lread.c (read_emacs_mule_char) [len==2]: Index
6662 emacs_mule_charset correctly.
6663
73acf815 66642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6665
6666 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
6667 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 6668 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
6669 treated specially.)
6670 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
6671 (detected_mask): Remove Big5 bits.
6672
73acf815 66732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6674
6675 The following changes are to make the font rescaling facility
6676 compatible with Emacs 21.
6677
1f45f627 6678 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
6679 Vface_resizing_fonts.
6680 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 6681 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
6682 (split_font_name): Set font->rescale_ratio.
6683 (better_font_p): Pay attention to font->rescale_ratio.
6684 (build_scalable_font_name): Likewise. Change RESX, and RESY
6685 fields.
1f45f627 6686 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 6687
73acf815 66882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6689
6690 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
6691 (Qutf_16_le): Remove these variables.
6692 (syms_of_coding): Don't DEFSYM them.
6693 (decode_coding_utf_16): Fix handling of BOM.
6694 (encode_coding_utf_16): Fix handling of BOM.
6695
73acf815 66962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6697
6698 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 6699 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 6700
73acf815 67012008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6702
6703 * coding.c (Fcheck_coding_systems_region): Fix type errors.
6704
73acf815 67052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6706
6707 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6708 and fix C types.
6709
73acf815 67102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6711
6712 * xdisp.c (SKIP_GLYPHS): New macro.
6713 (set_cursor_from_row): Pay attention to string display properties.
6714
6715 * category.c (copy_category_entry): Fix for the case that RANGE
6716 is an integer.
6717
6718 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
6719
1f45f627 6720 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 6721
73acf815 67222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6723
6724 * charset.c (Fcharset_id_internal): New function.
6725 (syms_of_charset): Defsubr it.
6726
6727 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
6728 with the last arg charset_list acquired from coding.
6729 (Fdefine_coding_system_internal): For ccl-based coding system, fix
6730 the attribute coding_attr_ccl_valids.
6731
6732 * coding.h (enum define_coding_ccl_arg_index): Set the first
6733 member coding_arg_ccl_decoder to coding_arg_max.
6734
1f45f627 6735 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
6736
6737 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
6738 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
6739 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
6740 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
6741 last arg Qnil.
aca7a3d2 6742
73acf815 67432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6744
6745 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
6746 call encode_char.
6747
1f45f627 6748 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 6749
73acf815 67502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6751
1f45f627 6752 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 6753
73acf815 67542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6755
6756 * dispextern.h (check_face_attributes, generate_ascii_font_name)
6757 (font_name_registry): Don't extern them.
1f45f627 6758 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
6759
6760 * fontset.h (Qfontset): Don't extern it.
6761 (new_fontset_from_font_name): Extern it.
6762
6763 * fontset.c: Give 8 extra slots to fontset objects.
6764 (Qfontset_info): New variable.
6765 (syms_of_fontset): Defsym it.
6766 (FONTSET_FALLBACK): New macro.
6767 (fontset_face): Try also the default fontset.
1f45f627
GM
6768 (make_fontset): Realize a fallback fontset from the default fontset.
6769 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
6770 using split_font_name_into_vector and build_font_name_from_vector.
6771 (Fset_fontset_font): Access the elements of font_spec by enum
6772 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
6773 name by using split_font_name_into_vector.
6774 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
6775 generate a proper font name from the fontset name. Update
6776 Vfontset_alias_alist.
6777 (n_auto_fontsets): New variable.
6778 (new_fontset_from_font_name): New function.
6779 (Ffont_info): Store the information about fonts generated from the
1f45f627 6780 default fontset in the first extra slot of the returned char-table.
aca7a3d2 6781
1f45f627
GM
6782 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
6783 (font_name_registry): Delete function.
aca7a3d2
MB
6784 (split_font_name_into_vector): New function.
6785 (build_font_name_from_vector): New function.
1f45f627 6786 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
6787 (choose_face_font): If we are choosing an ASCII font, and ATTRS
6788 specifies an explicit font name, return the name as is. Make a
6789 list of registy names.
6790
1f45f627 6791 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
6792 of x_new_fontset.
6793 (Fx_create_frame): Don't call x_new_fontset here. Just use
6794 x_list_fonts to check the existence of fonts.
6795
1f45f627 6796 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
6797
6798 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
6799 string. Use new_fontset_from_font_name to create a fontset from a
6800 font name.
6801
1c8658b9
GM
68022008-02-01 Kenichi Handa <handa@m17n.org>
6803
6804 * syntax.c (Vfind_word_boundary_function_table): New name for
6805 Vnext_word_boundary_function_table.
6806 (find-word-boundary-function-table): New name for
6807 next-word-boundary-function-table.
6808
73acf815 68092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6810
6811 * Makefile.in: Fix some dependencies.
6812
6813 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
6814 set it to nil before returning.
6815
6816 * composite.c (update_compositions): Fix type error.
6817
6818 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
6819
73acf815 68202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6821
6822 * xterm.c (x_new_font): Optimize for the case that the font is
6823 already set for the frame.
6824
73acf815 68252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6826
6827 * chartab.c (char_table_ascii): Check if the char table contents
6828 is sub-char-table or not.
4c4475a8
GM
6829 (char_table_set, char_table_set_range): Fix argument to
6830 char_table_ascii.
aca7a3d2
MB
6831
6832 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
6833 (detect_coding_utf_8, detect_coding_utf_16)
6834 (detect_coding_emacs_mule, detect_coding_iso_2022)
6835 (detect_coding_sjis, detect_coding_big5)
6836 (detect_coding_ccl, detect_coding_charset): Change argument MASK
6837 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 6838 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
6839 (MAX_ANNOTATION_LENGTH): New macro.
6840 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
6841 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
6842 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 6843 (ADD_CHARSET_DATA): New macro.
1f45f627 6844 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
6845 (decode_coding_emacs_mule, decode_coding_iso_2022)
6846 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
6847 Produce charset annotation data in coding->charbuf.
6848 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
6849 to charset annotation data in coding->charbuf.
6850 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
6851 coding->common_flags if the coding system is iso-2022 based and
6852 uses designation.
1f45f627 6853 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
6854 (produce_charset): New function.
6855 (produce_annotation): Handle charset annotation.
6856 (handle_composition_annotation, handle_charset_annotation): New
6857 functions.
6858 (consume_chars): Handle charset annotation. Utilize the above two
6859 functions.
6860 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
6861 buffer, get the deleted text as a string and set
6862 coding->src_object to that string.
6863 (detect_coding, detect_coding_system): Use the new struct
6864 coding_detection_info.
6865
6866 * coding.h (struct coding_detection_info): New structure.
1f45f627 6867 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
6868 (CODING_ANNOTATE_CHARSET_MASK): New macro.
6869
73acf815 68702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6871
6872 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
6873
73acf815 68742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 6875
1f45f627 6876 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
6877 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
6878 to new local and nullify apropos_accumulate before returning.
6879 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
6880
73acf815 68812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6882
6883 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
6884 correctly.
6885
73acf815 68862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6887
6888 * fns.c (Flanginfo): Call synchronize_system_time_locale.
6889
73acf815 68902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6891
6892 The following changes are to make character composition happen
6893 automatically on displaying.
6894
2a2e8de7 6895 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 6896
1f45f627
GM
6897 * composite.h (Qauto_composed, Vauto_composition_function)
6898 (Qauto_composition_function): Extern them.
aca7a3d2 6899
1f45f627
GM
6900 * composite.c (Vcomposition_function_table)
6901 (Qcomposition_function_table): Delete variables.
6902 (Qauto_composed, Vauto_composition_function)
6903 (Qauto_composition_function): New variables.
aca7a3d2
MB
6904 (run_composition_function): Don't call
6905 compose-chars-after-function.
6906 (update_compositions): Clear `auto-composed' text property.
6907 (compose_chars_in_text): Delete this function.
6908 (syms_of_composite): Staticpro Qauto_composed and
6909 Qauto_composition_function. Declare Vauto_composition_function as
6910 a Lisp variable.
6911
6912 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
6913
6914 * xdisp.c (it_props): Add an entry for Qauto_composed.
6915 (handle_auto_composed_prop): New function.
6916
6917 * xselect.c (selection_data_to_lisp_data): Don't call
6918 compose_chars_in_text.
6919
73acf815 69202008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6921
6922 * keyboard.c (read_char): Modify checking around use of
6923 Vkeyboard_translate_table.
6924
6925 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
6926 and fix C types.
6927
73acf815 69282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6929
4c4475a8
GM
6930 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
6931 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6932 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 6933 the case that the last byte is '\r' correctly.
1f45f627
GM
6934 (decode_coding): Flush out the unprocessed data correctly.
6935 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 6936
73acf815 69372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6938
6939 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
6940 XK_ISO... case.
6941 (xaw_scroll_callback): Revert last change.
6942
73acf815 69432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6944
1f45f627 6945 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 6946
73acf815 69472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6948
6949 * xfaces.c (Vface_resizing_fonts): New variable.
6950 (struct font_name): New member `resizing_ratio'.
6951 (font_resizing_ratio): New function.
6952 (split_font_name): Set font->resizing_ratio.
6953 (better_font_p): Pay attention to font->resizing_ratio.
6954 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
6955 RESX, and RESY fields.
6956 (try_alternative_families): Try scalable fonts if
6957 Vscalable_fonts_allowed is not Qt.
6958 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
6959
73acf815 69602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6961
6962 * xterm.c (xaw_scroll_callback): Cast correctly.
6963
73acf815 69642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6965
6966 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
6967 (lispy_kana_keys): Comment out.
6968 (make_lispy_event) [XK_kana_A]: Comment out.
6969
6970 * xterm.c (xaw_scroll_callback): Cast call_data.
6971 (XTread_socket): Deal with ASCII keysyms.
6972 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
6973
73acf815 69742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6975
6976 * xterm.c (Vx_keysym_table): New.
6977 (syms_of_xterm): Initialize it.
6978 (XTread_socket): Use it.
6979 From head: Eliminate incorrect optimization that tried to avoid
6980 decoding the output of X*LookupString.
6981 (x_get_font_repertory): Delete charset declaration.
6982
73acf815 69832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6984
1f45f627
GM
6985 * coding.c (detect_coding_charset): If only ASCII bytes are found,
6986 return 0.
aca7a3d2
MB
6987 (Fdefine_coding_system_internal): Setup
6988 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
6989
73acf815 69902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6991
6992 * coding.c (Fcheck_coding_system): Doc fix.
6993
6994 * editfns.c (Finsert_byte): Return a proper value.
6995
73acf815 69962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6997
6998 * coding.c (decode_coding): Fix args to translate_chars. Pay
6999 attention to Vstandard_translation_table_for_decode.
7000 (encode_coding): Fix args to translate_chars. Pay attention to
7001 Vstandard_translation_table_for_encode.
7002
7003 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
7004 SINGLE_BYTE_CHAR_P.
7005
7006 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
7007 not by SINGLE_BYTE_CHAR_P.
7008
7009 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
7010 SINGLE_BYTE_CHAR_P.
7011
7012 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
7013 SINGLE_BYTE_CHAR_P.
7014
7015 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
7016 by SINGLE_BYTE_CHAR_P.
7017
7018 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
7019 SINGLE_BYTE_CHAR_P.
7020
73acf815 70212008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7022
7023 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
7024
73acf815 70252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7026
7027 * fns.c (Flanginfo): Fix typo.
7028
7029 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
7030
73acf815 70312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7032
4c4475a8
GM
7033 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
7034 (detect_coding_emacs_mule, detect_coding_iso_2022)
7035 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
7036 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 7037 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 7038 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 7039 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 7040
73acf815 70412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7042
1f45f627
GM
7043 * character.c (char_string): Rename from
7044 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
7045 (string_char): Rename from string_char.
aca7a3d2 7046
4c4475a8
GM
7047 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
7048 if C is greater than MAX_3_BYTE_CHAR.
7049 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
7050 string_char instead of string_char_with_unification.
aca7a3d2 7051
73acf815 70522008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7053
7054 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
7055
73acf815 70562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7057
1f45f627 7058 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
7059
7060 * regex.c (re_search_2): Fix for the case of unibyte buffer.
7061
73acf815 70622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7063
7064 * charset.c (define_charset_internal): Rename `supprementary'.
7065
7066 * Makefile.in (lisp, shortlisp): Remove latin-N.
7067
73acf815 70682008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7069
7070 * xfns.c (x_window, x_window): Use use_xim.
7071
7072 * xterm.c (use_xim): Initialize.
7073 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
7074 (x_term_init): Maybe set use_xim.
7075
7076 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
7077
73acf815 70782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7079
7080 * search.c (search_buffer): Fix case-fold-search of multibyte
7081 characters.
7082 (boyer_moore): Rename the last argument to char_high_bits.
7083
73acf815 70842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7085
7086 * xdisp.c (display_string): Fix for the case of zero width glyph.
7087
7088 * xfns.c (x_set_font): Change the error message of the case that
7089 x_new_fontset returns Qt.
7090
7091 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
7092 (Finternal_set_lisp_face_attribute): Use signal_error for the
7093 error of invalid fontset.
7094
7095 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
7096 fontset, return Qt.
7097
73acf815 70982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7099
aca7a3d2
MB
7100 * unexelf.c (unexec): Make .got handling not SGI-specific.
7101
7102 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
7103
7104 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
7105
7106 * keyboard.c (read_key_sequence): Fix type error.
7107
7108 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
7109 type error.
7110
7111 * fontset.c (fontset_add): Return Lisp_Object.
7112
73acf815 71132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7114
7115 * charset.h (charset_ordered_list_tick): Declare extern.
7116
73acf815 71172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7118
73acf815 7119 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
7120 for handling syntax, category, and case conversion for unibyte
7121 characters by converting them to multibyte on the fly. With these
7122 changes, we don't have to setup syntax and case tables for unibyte
7123 characters in each language environment.
7124
7125 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
7126 multibyte if necessary.
7127
7128 * bytecode.c (Fbyte_code): Likewise.
7129
7130 * character.h (LEADING_CODE_LATIN_1_MIN)
7131 (LEADING_CODE_LATIN_1_MAX): New macros.
7132 (unibyte_to_multibyte_table): Extern it.
7133 (unibyte_char_to_multibyte): New macro.
7134 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
7135 (CHAR_LEADING_CODE): New macro.
7136 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
7137
7138 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 7139 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
7140 (multibyte_char_to_unibyte): If C is an eight-bit character,
7141 convert it to the corresponding byte value.
7142
7143 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
7144 not 1, singals an error. Update the elements of
7145 unibyte_to_multibyte_table.
7146 (init_charset_once): Initialize unibyte_to_multibyte_table.
7147 (syms_of_charset): Define the charset `iso-8859-1'.
7148
aca7a3d2
MB
7149 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
7150 as is without converting it to unibyte. In a unibyte buffer,
7151 convert C to multibyte before checking the syntax.
7152
1f45f627 7153 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
7154
7155 * minibuf.c (Fminibuffer_complete_word): Use the macro
7156 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
7157
7158 * regex.h (struct re_pattern_buffer): New member target_multibyte.
7159
7160 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
7161 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
7162 that is zero, convert an eight-bit char to multibyte.
7163 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
7164 non-emacs case.
7165 (PATFETCH): Convert an eight-bit char to multibyte.
7166 (HANDLE_UNIBYTE_RANGE): New macro.
7167 (regex_compile): Setup the compiled pattern for multibyte chars
7168 even if the given regex string is unibyte. Use PATFETCH_RAW
7169 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 7170 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 7171 only for ASCII chars.
1f45f627 7172 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
7173 is multibyte.
7174 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
7175 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 7176 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
7177 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
7178 multibyte always 1.
7179 (re_search_2): In emacs, set the locale variable multibyte to 1,
7180 otherwise to 0. New local variable target_multibyte. Check it
7181 to decide the multibyteness of STR1 and STR2. If
7182 target_multibyte is zero, convert unibyte chars to multibyte
7183 before translating and checking fastmap.
7184 (TARGET_CHAR_AND_LENGTH): New macro.
7185 (re_match_2_internal): In emacs, set the locale variable multibyte
7186 to 1, otherwise to 0. New local variable target_multibyte. Check
7187 it to decide the multibyteness of STR1 and STR2. Use
7188 TARGET_CHAR_AND_LENGTH to fetch a character from D.
7189 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 7190 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
7191 target_multibyte, not with multibyte.
7192 <begline>: Declare the local variable C as `unsigned'.
7193 (bcmp_translate): Change the last arg name to target_multibyte.
7194
7195 * search.c (compile_pattern_1): Don't adjust the multibyteness of
7196 the regexp pattern and the matching target. Set cp->buf.multibyte
7197 to the multibyteness of the regexp pattern. Set
1f45f627 7198 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
7199 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
7200 FETCH_STRING_CHAR_ADVANCE.
7201 (Freplace_match): Convert unibyte chars to multibyte.
7202
4c4475a8
GM
7203 * syntax.c (char_quoted, back_comment, scan_words)
7204 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
7205 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 7206 unibyte chars to multibyte.
1f45f627
GM
7207 (skip_chars): Delete the arg syntaxp, and move the code for
7208 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
7209 Fix the case that the multibyteness of STRING and the current
7210 buffer doesn't match.
7211 (skip_syntaxes): New function.
7212 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
7213 SINGLE_BYTE_CHAR_P.
aca7a3d2 7214
73acf815 72152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7216
7217 * xfaces.c (QCfontset): New variable.
7218 (LFACE_FONTSET): New macro.
7219 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
7220 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
7221 (Finternal_set_lisp_face_attribute)
7222 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
7223 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
7224 check also LFACE_FONTSET_INDEX.
7225 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
7226 attrs[LFACE_FONT_INDEX].
7227 (syms_of_xfaces): Intern and staticpro QCfontset.
7228
7229 * dispextern.h (enum lface_attribute_index): New member
7230 LFACE_FONTSET_INDEX.
7231
7232 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
7233
73acf815 72342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7235
7236 * coding.c (coding_set_destination): Fix coding->destination for
7237 the case converting a region.
7238 (encode_coding_utf_8): Encode eight-bit chars as single byte.
7239 (encode_coding_object): Fix coding->dst_pos and
7240 coding->dst_pos_byte for the case converting a region.
7241
7242 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
7243
7244 * character.h (BYTE8_STRING): New macro.
7245
7246 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
7247
73acf815 72482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7249
7250 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
7251 characters by octal form.
7252
7253 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
7254
1f45f627 7255 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
7256 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
7257 _fetch_multibyte_char_len.
aca7a3d2
MB
7258 (FETCH_CHAR_AS_MULTIBYTE): New macro.
7259
1f45f627 7260 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 7261
1f45f627 7262 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 7263 the case conversion change the byte length.
1f45f627 7264 (casify_region): Likewise.
aca7a3d2 7265
1f45f627 7266 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 7267
1f45f627 7268 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
7269 (syms_of_character): Setup Vprintable_chars.
7270
7271 * editfns.c (Fchar_equal): Fix for the unibyte case.
7272 (Finsert_byte): New function.
7273 (syms_of_editfns): Defsubr it.
7274
7275 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
7276 of direct code 0x3ffff.
7277
7278 * search.c (Freplace_match): Fix for the unibyte case.
7279
73acf815 72802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7281
7282 * lread.c (safe_to_load_p): Fix the logic.
7283
7284 * syntax.c (scan_words): Don't treat characters belonging to
7285 different scripts as constituting a word.
7286
7287 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7288
1f45f627 7289 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
7290
7291 * emacs.c (main): In the case of --unibyte, instead of aborting on
7292 finding non-empty buffer, make it unibyte.
7293
73acf815 72942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7295
7296 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
7297 to create a fontset.
7298
73acf815 72992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7300
7301 * character.c (Funibyte_char_to_multibyte): Doc fix.
7302
7303 * xfns.c [HAVE_STDLIB_H]: Fix last change.
7304
73acf815 73052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7306
7307 * fontset.c (fontset_add): Make the type `int'.
7308 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
7309
4c4475a8
GM
7310 * character.c (unibyte_char_to_multibyte)
7311 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 7312 charset_unibyte, not charset_primary.
aca7a3d2 7313
1f45f627 7314 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 7315
1f45f627
GM
7316 * charset.c (charset_unibyte): Rename from charset_primary.
7317 (Funibyte_charset): Rename from Fprimary_charset.
7318 (Fset_unibyte_charset): Rename from Fset_primary_charset.
7319 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
7320
7321 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7322 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7323 it->multibyte_p is zero.
7324
7325 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 7326 Delete extern.
aca7a3d2 7327
73acf815 73282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7329
7330 * coding.c (Fdefine_coding_system_internal): Fix category setting
7331 for a coding system of type iso-2022.
7332
73acf815 73332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7334
1f45f627 7335 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 7336
73acf815 73372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7338
7339 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
7340 (next-word-boundary-function-table): Declare it as a Lisp variable
7341 in syms_of_syntax.
aca7a3d2
MB
7342 (scan_words): Call functions in Vnext_word_boundary_function_table
7343 if any.
7344
7345 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
7346
7347 * fontset.c (fs_load_font): If fontp->charset is not negative,
7348 return fontp without setting its members.
7349
73acf815 73502008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7351
aca7a3d2
MB
7352 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
7353
7354 * m/sparc.h (HAVE_ALLOCA): Delete.
7355
7356 * s/irix6-5.h: Don't include strings.h.
7357 (bcopy, bzero, bcmp): Don't undef.
7358
7359 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
7360
7361 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
7362 (TIOCSIGSEND): Don't test IRIX6.
7363 (bcopy, bzero, bcmp): Define conditionally.
7364
73acf815 73652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7366
7367 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 7368 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
7369 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
7370
7371 * callproc.c (Fcall_process): Don't call insert_1_both directly if
7372 we are inserting a process output into a multibyte buffer.
7373
7374 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
7375 multibyte_char_to_unibyte.
7376
7377 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
7378 by the primary charset, make it eight-bit char.
7379 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
7380
1f45f627
GM
7381 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
7382 (charset_8_bit__control, charset_8_bit_graphic)
7383 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
7384 (define_charset_internal): New function.
7385 (syms_of_charset): Call define_charset_internal for pre-defined
7386 charsets.
7387
7388 * charset.h (charset_8_bit): Extern it.
7389
1f45f627 7390 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
7391 of Fset_buffer_multibyte.
7392 (encode_coding_raw_text): Increment p0 in the loop.
7393
1f45f627 7394 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 7395
1f45f627 7396 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
7397 for the change of Fset_buffer_multibyte.
7398
7399 * fns.c (Fstring_to_multibyte): New function.
7400 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
7401
73acf815 74022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7403
7404 * xfns.c (x_put_x_image): Declare args.
7405
1f45f627 7406 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
7407 (try_font_list): Declare an arg.
7408
7409 * xdisp.c (message2_nolog, set_message): Declare an arg.
7410
7411 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
7412
7413 * syntax.c (scan_sexps_forward): Declare an arg.
7414
7415 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7416 Declare an arg.
7417
7418 * lisp.h (Fnew_fontset): Declare.
7419
7420 * keymap.c (push_key_description): Call CHARACTERP correctly.
7421
1f45f627 7422 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
7423 (face_for_char): Delete unused vars.
7424 (Fset_fontset_font): Doc fix. Delete unused vars.
7425
7426 * doc.c (Fsubstitute_command_keys): Delete unused vars.
7427
7428 * composite.c (update_compositions): Declare arg.
7429
7430 * cm.c (calccost, cmgoto): Declare args.
7431
7432 * charset.c: Remove `emacs' conditional. Doc fixes.
7433 (map_char_table_for_charset): Declare.
7434
1f45f627 7435 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 7436
1f45f627 7437 * ccl.c: Remove `emacs' conditional.
aca7a3d2 7438
73acf815 74392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7440
7441 The following changes are to allow specifying multiple font
7442 patterns for a character range (specified by script or charset).
7443
7444 * Makefile.in (abbrev.o): Depend on syntax.h.
7445 (xfaces.o): Depend on charset.h.
7446
7447 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
7448 SINGLE_BYTE_CHAR_P.
7449
7450 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
7451
7452 * character.h (Vchar_script_table): Extern it.
7453
1f45f627 7454 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
7455 (Vchar_script_table, Qchar_script_table): New variable.
7456 (syms_of_character): Declare Vchar_script_table as a lisp variable
7457 and initialize it.
7458
1f45f627 7459 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
7460 have property char-table-extra-slots, make no extra slot.
7461
1f45f627 7462 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
7463 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
7464 SINGLE_BYTE_CHAR_P.
1f45f627
GM
7465 (choose_face_font, lookup_non_ascii_face, font_name_registry):
7466 Add prototypes.
7467 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
7468 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7469
7470 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 7471 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
7472 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
7473
7474 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 7475 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
7476 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
7477 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
7478 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
7479 (fontset_ref_and_range, fontset_add, reorder_font_vector)
7480 (load_font_get_repertory): New functions.
1f45f627 7481 (fontset_set): Delete.
aca7a3d2 7482 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 7483 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
7484 (free_face_fontset): Use ASET istead of AREF (X) = Y.
7485 (face_for_char): Don't call lookup_face.
7486 (make_fontset_for_ascii_face): New arg FACE.
7487 (fs_load_font): New arg CHARSET_ID. Don't check
7488 Vfont_encoding_alist here.
7489 (find_font_encoding): New function.
7490 (list_fontsets): Use STRINGP, not ! NILP.
7491 (accumulate_script_ranges): New function.
7492 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
7493 re-written to handle new fontset structure.
7494 (Ffontset_font): Return a copy of element.
7495 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
7496 docstring of font-encoding-alist.
7497
7498 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
7499 (Fset_fotset_font): Fix arguments to 5.
7500
1f45f627 7501 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
7502
7503 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
7504 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 7505 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
7506 lookup_named_face.
7507
7508 * xfaces.c: Include charset.h.
1f45f627
GM
7509 (load_face_font): Delete argument C. Change caller.
7510 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
7511 (font_name_registry): New function.
7512 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 7513 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
7514 Lookup only ascii faces.
7515 (lookup_non_ascii_face): New function.
1f45f627
GM
7516 (lookup_named_face): Delete argument C. Change caller.
7517 (lookup_derived_face): Delete argument C. Change caller.
7518 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 7519 a string, just call font_list with it.
1f45f627
GM
7520 (choose_face_font): Delete arguments FACE and C. New arg
7521 FONT_SPEC. Change caller.
4c4475a8
GM
7522 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
7523 Change caller.
aca7a3d2
MB
7524 (realize_non_ascii_face): New function.
7525 (realize_x_face): Call load_face_font here.
1f45f627 7526 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
7527 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
7528 get a face ID.
7529 (dump_realized_face): Don't print charset of FACE.
7530
7531 * xfns.c (x_set_font): Always call x_new_fontset and
7532 store_frame_parameter.
7533 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 7534 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
7535
7536 * xterm.h (x_get_font_repertory): Extern it.
7537
7538 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
7539 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
7540 it->multibyte_p is zero.
7541 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
7542 (x_new_fontset): If FONTSETNAME doesn't match any existing
7543 fontsets, create a new one.
7544 (x_get_font_repertory): New function.
7545
73acf815 75462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7547
7548 * coding.c (Ffind_coding_systems_region_internal): Detect an
7549 ASCII only string correctly.
7550
7551 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
7552 version is 0.
7553
73acf815 75542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7555
7556 * lread.c: Include "coding.h".
1f45f627
GM
7557 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
7558 (load_each_byte, unread_char): New variables.
7559 (readchar_backlog): Delete.
aca7a3d2
MB
7560 (readchar): Return a character unless load_each_byte is nonzero.
7561 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
7562 cons. If unread_char is not -1, simply return it.
7563 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
7564 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
7565 (read_multibyte): Delete.
aca7a3d2
MB
7566 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
7567 (read_emacs_mule_char): New functions.
7568 (Fload): Even if the file doesn't have the extention ".elc", if
7569 safe_to_load_p returns a positive version number, assume that the
7570 file contains bytecompiled code. If the version is less than 22,
7571 load the file while decoding multibyte sequences by emacs-mule.
7572 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
7573 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
7574 (Fread_from_string): Pay attention to the case that STREAM is a cons.
7575 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
7576 (read1): Set load_each_byte to 1 temporarily while handling
7577 #@NUMBER. Don't call read_multibyte.
7578 (read_vector): Call Fread with a cons. If readcharfun is
7579 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 7580 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
7581 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
7582 and Qload_force_doc_strings.
7583
73acf815 75842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7585
7586 * xdisp.c (face_before_or_after_it_pos): Call
7587 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
7588
73acf815 75892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7590
7591 * character.h (TRAILING_CODE_P): New macro.
1f45f627 7592 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
7593 (string_char_with_unification): Fix prototype.
7594 (Vscript_alist): Extern it.
7595
7596 * character.c (Vscript_alist): New variable.
4c4475a8
GM
7597 (string_char_with_unification, str_as_unibyte)
7598 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
7599 (syms_of_character): Declare script-alist as a Lisp variable.
7600
7601 * charset.h (Vcharset_ordered_list): Extern it.
7602 (charset_ordered_list_tick): Extern it.
7603 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
7604 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
7605 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 7606 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 7607 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
7608
7609 * charset.c (charset_ordered_list_tick): New variable.
7610 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
7611 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
7612 deunify intead of unify a charset.
7613 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
7614 (find_charsets_in_text): Add `const' to arguemnts and local variables.
7615 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
7616 detecting of invalid code.
7617 (Fset_charset_priority): Increment charset_ordered_list_tick.
7618 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
7619 and TO_CODE.
7620
7621 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
7622 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
7623 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
7624 (decode_coding_ccl, consume_chars)
7625 (Ffind_coding_systems_region_internal)
7626 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
7627
7628 * print.c (print_object): Use octal form for printing the
7629 contents of a bool vector.
7630
73acf815 76312008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7632
7633 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
7634 <version == 20>: Refuse to load.
7635
73acf815 76362008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7637
7638 * fns.c: Move coding.h.
7639 (Qcodeset, Qdays, Qmonths): New.
7640 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 7641 (Flocale_codeset): Delete.
aca7a3d2 7642 (Flanginfo): New function.
1f45f627 7643 (syms_of_fns): Change accordingly.
aca7a3d2
MB
7644
7645 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
7646
73acf815 76472008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7648
7649 * casetab.c (init_casetab_once, init_casetab_once): Fix
7650 CHAR_TABLE_SET call.
7651
7652 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
7653
7654 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
7655
7656 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
7657 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
7658 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
7659
7660 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
7661
7662 * coding.c (ENCODE_DESIGNATION, decode_eol)
7663 (make_conversion_work_buffer, code_conversion_restore)
7664 (Fdefine_coding_system_internal): Convert Lisp types.
7665 (code_conversion_restore): Use EQ, not ==.
7666 (Fencode_coding_string): Fix code_convert_string call.
7667
7668 * coding.h (code_convert_region): Fix prototype.
7669
1f45f627 7670 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
7671
7672 * fontset.c (fontset_ref, fontset_set, fs_load_font)
7673 (Ffontset_info): Convert Lisp types.
7674
7675 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
7676
7677 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
7678
7679 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
7680
7681 * chartab.c: Include "...h", not <...h> in some cases.
7682
7683 * callproc.c (Fcall_process): Remove unused variables.
7684
73acf815 76852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7686
7687 * coding.c (Fset_coding_system_priority): Allow null arg list.
7688
73acf815 76892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7690
7691 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
7692 (Fself_insert_and_exit): Use CHARACTERP.
7693
7694 * callproc.c (Fcall_process): Remove unused vars.
7695
7696 * xterm.c (XTread_socket): Add extra dead keysyms.
7697
7698 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
7699
7700 * dispextern.h: Remove prototypes for redraw_frame,
7701 redraw_garbaged_frames.
7702
7703 * cmds.c (Fself_insert_command): Use CHARACTERP.
7704
7705 * chartab.c (make_sub_char_table): Remove unused var.
7706 (Fset_char_table_default, Fmap_char_table): Doc fix.
7707
7708 * keymap.c (access_keymap): Remove generic char code.
7709 (push_key_description): Use CHARACTERP.
7710
73acf815 77112008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7712
7713 * charset.c: Doc fixes.
7714 (Funify_charset): Extra checking.
7715
73acf815 77162008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7717
7718 * lread.c: Remove some unused variables.
7719 (safe_to_load_p): If safe, return the magic number version byte.
7720 (Fload): Maybe use load-with-code-conversion.
7721
73acf815 77222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7723
7724 * category.c (Fmodify_category_entry): Don't modify the contents
7725 of category_set for characters out of the range. Avoid
7726 unnecessary modification.
7727
1f45f627 7728 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
7729 Vchar_unify_table. The default value of the table is now nil.
7730
7731 * character.c (syms_of_character): Setup Vchar_width_table for
7732 eight-bit-control and raw-byte chars.
7733
7734 * charset.h (enum define_charset_arg_index): Delete
7735 charset_arg_parents and add charset_arg_subset and
7736 charset_arg_superset.
7737 (enum charset_attr_index): Delete charset_parents and add
7738 charset_subset and charset_superset.
7739 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
7740 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 7741 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
7742 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
7743 (CHARSET_SUPERSET): New macros.
7744 (charset_work): Extern it.
7745 (ENCODE_CHAR): Use charset_work.
1f45f627 7746 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
7747 (map_charset_chars): Extern it.
7748
7749 * charset.c (load_charset_map): Set the default value of encoder
7750 and deunifier char-tables to nil.
1f45f627 7751 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
7752 map_char_table_for_charset instead of map_char_table.
7753 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 7754 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
7755 `define-charset' (:parents -> :subset or :superset).
7756 (charset_work): New variable.
4c4475a8
GM
7757 (encode_char, syms_of_charset): Adjust for the change of
7758 Fdefine_charset_internal.
aca7a3d2
MB
7759 (Ffind_charset_string): Setup the vector `charsets' correctly.
7760
1f45f627 7761 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 7762 the previous change.
1f45f627 7763 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
7764 (map_sub_char_table_for_charset): New function.
7765 (map_char_table_for_charset): New function.
7766
7767 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 7768 (describe_char_table): Delete.
aca7a3d2 7769
1f45f627 7770 * lisp.h (map_charset_chars): Delete.
aca7a3d2 7771
73acf815 77722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7773
7774 * fns.c (count_combining): Comment out (unused).
7775 (Flocale_codeset): New.
7776 (syms_of_fns): Defsubr it.
7777
7778 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 7779 (size_t): Remove.
aca7a3d2 7780
73acf815 77812008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 7782
6f69e89b 7783 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 7784
73acf815 77852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7786
7787 * character.c (syms_of_character): Set the default value of
7788 Vprintable_chars to Qnil.
7789
73acf815 77902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7791
7792 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
7793
73acf815 77942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7795
7796 * charset.c (load_charset_map): Handle the case that from < to
7797 correctly.
7798
4c4475a8
GM
7799 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
7800 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
7801 Pay attention to raw-8-bit chars.
aca7a3d2 7802
73acf815 78032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7804
4c4475a8
GM
7805 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
7806 It is not bytecompiled now.
aca7a3d2
MB
7807
7808 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
7809 (charset_jisx0208): New variables.
7810 (Fdefine_charset_internal): Setup them if appropriate.
7811 (init_charset_once): Initialize them to -1.
7812
1f45f627
GM
7813 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
7814 (charset_jisx0208): Extern them.
aca7a3d2 7815
1f204af3 7816 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 7817 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
7818 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
7819 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
7820 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
7821 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
7822 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
7823 (encode_coding_iso_2022): Change the 1st arg to
7824 ENCODE_ISO_CHARACTER to a variable.
7825
73acf815 78262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7827
7828 * charset.h (enum define_charset_arg_index): New enums
7829 charset_arg_min_code and charset_arg_max_code.
7830 (struct charset): New member char_index_offset.
7831
4c4475a8
GM
7832 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
7833 Take charset->char_index_offset into account.
aca7a3d2
MB
7834 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
7835 args[charset_arg_max_code]. Setup charset.char_index_offset.
7836 (syms_of_charset): Fix args to Fdefine_charset_internal.
7837
73acf815 78382008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7839
7840 * coding.c (decode_coding_utf_8): Reject overlong sequences.
7841
73acf815 78422008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7843
7844 * coding.c: Doc fixes.
7845 (Fcoding_system_aliases): Fix return value.
7846 (Qmac): Remove (duplicated) definition.
7847
73acf815 78482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7849
7850 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
7851 functions.
7852
7853 * character.c (Fstring): Doc fix.
7854
7855 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
7856
7857 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
7858 ids.
7859 (font-encoding-alist): Doc fix.
7860
73acf815 78612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7862
7863 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 7864 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
7865
7866 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
7867 for K&R.
7868
7869 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
7870
7871 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 7872 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 7873
1f45f627 7874 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
7875
7876 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
7877
73acf815 78782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7879
7880 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
7881
1f45f627 7882 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 7883
2a2e8de7 78842008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
7885
7886 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
7887
1f45f627 7888 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 7889
73acf815 78902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7891
4c4475a8 7892 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 7893 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 7894
73acf815 78952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7896
1f45f627 7897 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
7898 Fdefine_coding_system_internal.
7899 (Fdefine_coding_system_internal): For a coding system of
7900 `charset' type, store a list of charset IDs in
7901 `charset_attr_charset_valids' element of coding attributes.
7902
73acf815 79032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7904
7905 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
7906 (emacs_mule_char): New arg src. Delete arg `composition'. Change
7907 caller. Handle 2-byte and 3-byte charsets correctly.
7908 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
7909 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
7910 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
7911 (DECODE_EMACS_MULE_21_COMPOSITION): Call
7912 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
7913 sequence.
7914 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 7915 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
7916 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
7917 and alt&rule composition.
7918 (decode_coding_iso_2022): Handle composition correctly.
7919 (init_coding_once): Setup emacs_mule_bytes for private charsets.
7920
7921 * charset.c (Fdefine_charset_internal): Fix bug for the case of
7922 re-defining a charset. If the charset has :emacs-mule-id, setup
7923 emacs_mule_bytes.
1f45f627 7924 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 7925
73acf815 79262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7927
4c4475a8
GM
7928 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
7929 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
7930 encoding, produce a character specified by
7931 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 7932
73acf815 79332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7934
7935 * xterm.c (XSetIMValues): Declare.
7936
7937 * process.c: Conditionally include sys/wait.h, pty.h.
7938
1f45f627 7939 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 7940
1f45f627 7941 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
7942
7943 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
7944
7945 * fontset.c (Fclear_face_cache): Declare.
1f45f627 7946 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
7947 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
7948 variables.
7949
7950 * character.h (string_escape_byte8): Declare.
7951
7952 * charset.c (load_charset_map, load_charset_map_from_file): Remove
7953 unused vars.
7954 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
7955 (Fmap_charset_chars): Doc fix.
7956
1f45f627 7957 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
7958 (Fset_coding_system_priority, Fset_coding_system_priority)
7959 (Fdefine_coding_system_internal): Doc fix.
7960
73acf815 79612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
7962
7963 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
7964
73acf815 79652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7966
7967 * character.c (string_escape_byte8): Make multibyte string with
7968 correct size.
7969
7970 * charset.c (Fmake_char): Delete unnecessary code.
7971
73acf815 79722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7973
7974 * xfns.c (x_encode_text): Allocate coding.destination here, and
7975 call encode_coding_object with dst_object Qnil.
7976
7977 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
7978 multibyte form correctly.
7979
7980 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
7981 against Vfont_encoding_alist.
7982
7983 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
7984 handling of charset list.
7985 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
7986 (decode_coding_object): Move point to coding->dst_pos before
7987 calling post-read-conversion function.
7988 (encode_coding_object): Give correct arguments to
7989 pre-write-conversion. Ignore the return value of
7990 pre-write-conversion function. Pay attention to the case that
7991 pre-write-conversion changes the current buffer. If dst_object is
7992 Qt, even if coding->src_bytes is zero, allocate at least one byte
7993 to coding->destination.
7994
7995 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
7996
7997 * charset.c (Fmake_char): Make it more backward compatible.
7998 (Fmap_charset_chars): Fix docstring.
7999
73acf815 80002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8001
8002 * coding.c: Doc fixes.
8003 (Fdefine_coding_system_alias): Use names, not symbols, in
8004 coding-system-alist.
8005
73acf815 80062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8007
8008 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
8009 of calling free_realized_face.
8010
2a2e8de7 80112008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 8012
1f45f627
GM
8013 * charset.c (read_hex): Don't treat SPC as a comment starter.
8014 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
8015 (Fdecode_char): Fix typo.
8016
73acf815 80172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8018
8019 * charset.h (struct charset): New member `code_space_mask'.
8020
1f45f627 8021 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
8022 (encode_coding_charset, Fdefine_coding_system_internal):
8023 Delete the local variable charset.
aca7a3d2
MB
8024 (Fdefine_coding_system_internal): Setup
8025 attrs[coding_attr_charset_valids] correctly.
8026
8027 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
8028 member to check if CODE is valid or not.
8029 (Fdefine_charset_internal): Initialize `code_space_mask' member.
8030 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
8031 is within the range of charset->min_code and carset->max_code.
8032
73acf815 80332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8034
8035 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
8036
8037 * dispextern.h (generate_ascii_font): Fix return type.
8038
8039 * xfaces.c (generate_ascii_font): Fix arg declaration.
8040
8041 * coding.c (coding_inherit_eol_type)
8042 (Fset_terminal_coding_system_internal)
8043 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
8044
73acf815 80452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8046
8047 * coding.c (decode_coding_charset, encode_coding_charset): Handle
8048 multiple charsets correctly.
8049
73acf815 80502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8051
8052 * search.c (boyer_moore): Fix handling of mulitbyte character
8053 translation.
8054
8055 * xdisp.c (display_mode_element): When the variable `elt' is
8056 changed, update `this' and `lisp_string'.
8057
73acf815 80582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8059
8060 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
8061
8062 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 8063 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
8064
8065 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
8066 (load_charset_map): Rename from parse_charset_map. New args
8067 entries and n_entries. Change caller.
8068 (load_charset_map_from_file): Rename from load_charset_map.
8069 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
8070 the tail.
8071 (load_charset_map_from_vector): New function.
8072 (Fdefine_charset_internal): Setup charset.compact_codes_p.
8073 (encode_char): If the charset is compact, change a character index
8074 to a code point.
8075
8076 * coding.c (coding_alloc_by_making_gap): Check the case that the
8077 source and destination are the same correctly.
8078 (decode_coding_raw_text): Set coding->consumed_char and
8079 coding->consumed to 0.
8080 (produce_chars): If coding->chars_at_source is nonzero, update
8081 coding->consumed_char and coding->consumed before calling
8082 alloc_destination.
8083 (Fdefine_coding_system_alias): Register ALIAS in
8084 Vcoding_system_alist.
8085 (syms_of_coding): Define `no-convesion' coding system at the tail.
8086
8087 * fileio.c (Finsert_file_contents): Set coding_system instead of
8088 val. If the current buffer is multibyte, always call
8089 decode_coding_gap.
8090
8091 * xfaces.c (try_font_list): Give higher priority to fontset's
8092 family than face's family.
8093
73acf815 80942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8095
8096 * callproc.c (Fcall_process): Be sure to give the current buffer
8097 to decode_coding_c_string.
8098
8099 * xfaces.c (try_font_list): Give a family specified in a fontset
8100 higher priority than a family specified in a face.
8101
73acf815 81022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8103
8104 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
8105 Fix arguments to insert_from_buffer.
8106
8107 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
8108
73acf815 81092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8110
8111 * coding.c (produce_chars): Set the variable `multibytep' correctly.
8112 (decode_coding_gap): Set coding->dst_multibyte correctly.
8113
73acf815 81142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8115
8116 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 8117 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
8118 (encode_coding_utf_16): Substitute coding->default_char for
8119 non-Unicode characters.
8120 (decode_coding): Don't call record_insert here.
8121 (setup_coding_system): Initialize `surrogate' of
8122 coding->spec.utf_16 to 0.
8123 (EMIT_ONE_BYTE): Fix for multibyte case.
8124
8125 * insdel.c (insert_from_gap): Call record_insert.
8126
73acf815 81272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8128
8129 * casefiddle.c (casify_region): Fix multibyte case.
8130
8131 * character.c (c_string_width): Add return type `int'.
1f45f627 8132 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
8133
8134 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 8135 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
8136 (CHAR_STRING_ADVANCE): Make it do-while statement.
8137
1f45f627 8138 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
8139 DEPTH == 3. Add workaround code for a GCC optimization bug.
8140
8141 * charset.c (parse_charset_map): Remove an unused variable.
8142
8143 * coding.c: Delete unused variables.
8144
8145 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
8146 earlier. If inserted is zero and the coding system doesn't
8147 require flushing, don't call decode_coding_gap.
8148
8149 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
8150
73acf815 81512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8152
8153 The following changes are for using Unicode as an internal
8154 character model, and use UTF-8 format for buffer/string
8155 representation.
8156
1f45f627 8157 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
8158 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
8159
8160 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 8161 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
8162 (*.o): For many files, change dependency on charset.h to
8163 character.h, and add dependency on character.h.
8164 (character.o, chartab.o): New targets.
8165
1f45f627
GM
8166 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
8167 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
8168 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
8169 of "charset.h".
8170
8171 * dired.c, filelock.c: Include "character.h".
8172
8173 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 8174 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8175 (syms_of_alloc): Remove defsubr for Smake_char_table.
8176
8177 * buffer.c: Include "character.h" instead of "charset.h", don't
8178 include "coding.h".
1f45f627 8179 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
8180
8181 * buffer.h: EXFUN Fbuffer_live_p.
8182
8183 * callproc.c: Include "character.h" instead of "charset.h".
8184 (Fcall_process): Big change for the new code-conversion APIs.
8185
8186 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 8187 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
8188 map_char_table spec.
8189 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
8190 accessing the char table structure.
8191
8192 * chartab.c: New file that implements char table.
8193
8194 * category.c: Include "character.h".
8195 (copy_category_entry): New function.
8196 (copy_category_table): Call map_char_table and copy_category_entry.
8197 (Fmake_category_table): Initialize all top-vel slots.
8198 (char_category_set): New function.
1f45f627 8199 (modify_lower_category_set): Delete.
aca7a3d2
MB
8200 (Fmodify_category_entry): Call char_table_ref_and_range.
8201
8202 * category.h (CATEGORY_SET): Just call char_category_set.
8203
8204 * ccl.c: Include "character.h".
8205 (Qccl, Qcclp): New variables.
8206 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
8207 it's less than 256.
1f45f627
GM
8208 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
8209 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 8210 and DST type.
1f45f627
GM
8211 (ccl_driver): Change types of argument, adjust code accordingly.
8212 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
8213 ccl_driver.
8214 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
8215
1f45f627
GM
8216 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
8217 New members src_multibyte, dst_multibyte, consumed, and produced.
8218 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 8219 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 8220 (ccl_driver): Update prototype.
aca7a3d2
MB
8221 (Qccl, Qcclp, Fccl_program_p): Extern them.
8222 (CHECK_CCL_PROGRAM): New macro.
8223
8224 * character.c, character.h, chartab.c: New files.
8225
1f45f627
GM
8226 * charset.c: Mostly re-written. Move character and multibyte sequence
8227 handling codes to character.c.
aca7a3d2 8228
1f45f627
GM
8229 * charset.h: Mostly re-written. Move character and multibyte sequence
8230 handling codes to character.h.
aca7a3d2
MB
8231
8232 * coding.c, coding.h: Mostly re-written.
8233
8234 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8235 (CHAR_WIDTH): Move to character.h.
8236 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 8237
1f45f627
GM
8238 * composite.h (enum composition_method): Change order of enumeration
8239 symbols.
aca7a3d2
MB
8240
8241 * data.c: Include "character.h" instead of "charset.h".
8242 (Faref): Call CHAR_TABLE_REF for a char table.
8243 (Faset): Call CHAR_TABLE_SET for a char table.
8244
1f45f627
GM
8245 * dispextern.h (free_realized_face, check_face_attribytes)
8246 (generate_ascii_font): Extern them.
8247 (free_realized_multibyte_face): Delete extern.
aca7a3d2 8248
1f45f627 8249 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
8250 table structure.
8251
8252 * editfns.c: Include "character.h" instead of "charset.h".
8253 (Fchar_to_string): Always call CHAR_STRING.
8254
8255 * emacs.c (main): Call init_charset_once, init_charset,
8256 syms_of_chartab, and syms_of_character.
8257
8258 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 8259 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 8260 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 8261 (build_annotations_2): Delete.
aca7a3d2
MB
8262 (e_write): Big change for the new code-conversion API.
8263
8264 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 8265 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
8266 (Fcopy_sequence): Call copy_char_table for a char table.
8267 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
8268 (string_char_to_byte, string_byte_to_char): Adjust for the new
8269 multibyte form.
1f45f627
GM
8270 (internal_equal): Adjust for the change of char table structure.
8271 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
8272 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
8273 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
8274 (char_table_translate, optimize_sub_char_table)
8275 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 8276 chartab.c.
1f45f627
GM
8277 (char_table_ref_and_index): Delete.
8278 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 8279 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
8280 Vcoding_category_list. Adjust for the new code-conversion API.
8281 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
8282 chartab.c.
8283
8284 * fontset.c: Mostly re-written.
8285
1f45f627 8286 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 8287 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
8288 (fontset_font_pattern, fs_load_font): Update prototype.
8289 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
8290
8291 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 8292 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
8293
8294 * insdel.c: Include "character.h" instead of "charset.h".
8295 (copy_text): Don't refer to Vnonascii_translation_table.
8296 (insert_from_gap): New function.
8297
8298 * keyboard.c: Include "character.h" instead of "charset.h".
8299 (command_loop_1): Never call direct_output_forward_char before
8300 a non-ASCII character.
8301 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 8302 translate a character.
aca7a3d2
MB
8303
8304 * keymap.c: Include "character.h".
8305 (store_in_keymap): Handle the case that IDX is a cons.
8306 (Fdefine_key): Handle the case that KEY is a cons and the car part
8307 is also a cons (range).
1f45f627 8308 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
8309 (describe_vector): Call describe_char_table for a char table.
8310 (describe_char_table): New function.
8311
8312 * keymap.h (describe_char_table): Extern it.
8313
8314 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
8315 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
8316 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
8317 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
8318 Delete.
8319 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
8320 structure.
8321 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
8322 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
8323 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 8324 (chartab_size): Extern it.
1f45f627 8325 (struct Lisp_Char_Table): Re-design.
aca7a3d2 8326 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
8327 (HASH_KEY, HASH_VALUE): Move from fns.c.
8328 (CHARACTERBITS): Define as 22.
8329 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
8330 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
8331 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
8332 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
8333 (code_convert_string_norecord): Deleted extern.
8334 (init_character_once, syms_of_character, init_charset)
8335 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
8336
8337 * lread.c: Include "character.h".
8338 (read_multibyte): New arg NBYTES.
1f45f627
GM
8339 (read_escape): Change the meaning of returned *BYTEREP.
8340 (to_multibyte): Delete.
8341 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
8342
8343 * print.c: Include "character.h" instead of "charset.h".
8344 (print_string): Convert 8-bit raw bytes to octal form by
8345 string_escape_byte8.
1f45f627 8346 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
8347 raw bytes always in octal form. Handle sub char table correctly.
8348
8349 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
8350 (read_process_output, send_process): Adjust for the new
8351 code-conversion API.
aca7a3d2 8352
1f45f627 8353 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
8354
8355 * regex.c: Include "character.h" instead of "charset.h".
8356 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
8357 (regex_compile): Accept a range whose starting and ending
8358 character have different leading bytes.
1f45f627 8359 (analyse_first): Adjust for the above change.
aca7a3d2
MB
8360
8361 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
8362 (search_buffer, boyer_moore): Adjust for the new multibyte form.
8363 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
8364
8365 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 8366 (syntax_parent_lookup): Delete.
aca7a3d2 8367 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 8368 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
8369 (init_syntax_once): Call char_table_set_range instead of directly
8370 accessing the structure of a char table.
8371
8372 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 8373 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
8374 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
8375 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
8376
8377 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
8378 (encode_terminal_code, write_glyphs): Adjust for the new
8379 code-conversion API.
aca7a3d2
MB
8380 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
8381
1f45f627 8382 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
8383
8384 * xdisp.c: Include "character.h".
1f45f627
GM
8385 (get_next_display_element): Adjust for the new multibyte form.
8386 (disp_char_vector): Adjust for the new char table structure.
8387 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 8388 coding system.
1f45f627 8389 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
8390
8391 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 8392 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
8393 FS_LOAD_FONT.
8394 (generate_ascii_font): New function.
1f45f627
GM
8395 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
8396 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 8397 (free_realized_face): Make it public.
1f45f627 8398 (free_realized_faces_for_fontset): Rename from
aca7a3d2 8399 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 8400 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
8401 fontset_font_pattern and FS_LOAD_FONT.
8402
8403 * xfns.c: Include "character.h".
1f45f627 8404 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
8405
8406 * xselect.c: Don't include "charset.h".
1f45f627 8407 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
8408
8409 * xterm.c: Include "character.h".
1f45f627 8410 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
8411 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
8412 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
8413 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
8414 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
8415 (XTread_socket): Adjust for the new code-conversion API.
8416 (x_new_font): Adjust for the change of FS_LOAD_FONT.
8417 (x_load_font): Adjust for the change of struct font.
aca7a3d2 8418
d6abfc14
SM
84192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
8420
8421 * xfaces.c (face_at_buffer_position): Remove unused vars.
8422
0acdaf8d
KH
84232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8424
4c4475a8
GM
8425 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
8426 Fix overflow checking.
0acdaf8d 8427
6c8a0ebf
GM
84282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8429
8430 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
8431 Cancel previous change.
8432
84332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8434
8435 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
8436 ccl->eight_bit_control. Fix check for buffer overflow.
8437 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
8438 (ccl_driver): Initialize extra_bytes to 0.
8439
a32aad64
KH
84402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
8441
8442 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
8443 return it ORed with ctrl_modifier.
8444
8b329dba
MB
84452008-01-29 Miles Bader <miles@gnu.org>
8446
8447 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
8448
548667aa
JR
84492008-01-28 Jason Rumney <jasonr@gnu.org>
8450
8451 * w32.c (stat): Don't double check for networked drive.
8452
0975aa24
SM
84532008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8454
ef264c42
SM
8455 * window.c (run_window_configuration_change_hook): New function.
8456 Code extracted from set_window_buffer. Set the selected frame.
8457 (set_window_buffer): Use it.
8458 * window.h (run_window_configuration_change_hook): Declare.
8459 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
8460
0975aa24
SM
8461 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
8462
9c28b587
DN
84632008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
8464
8465 * Makefile.in: Remove references to unused macros.
8466
c617afce
EZ
84672008-01-26 Eli Zaretskii <eliz@gnu.org>
8468
8469 * w32.c (g_b_init_get_sid_sub_authority)
8470 (g_b_init_get_sid_sub_authority_count): New static variables.
8471 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
8472 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
8473 (init_user_info): Use them to retrieve uid and gid.
8474 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
8475 (fstat): Use pw_uid and pw_gid from the_passwd structure for
8476 st_uid and st_gid of the file.
c617afce 8477
302d7d54
JR
84782008-01-26 Jason Rumney <jasonr@gnu.org>
8479
8480 * w32.c (logon_network_drive): New function.
8481 (stat): Use it.
8482
3ac7a21e
CY
84832008-01-26 Chong Yidong <cyd@stupidchicken.com>
8484
8485 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
8486 invisible text covered with an ellipsis.
8487
bbb9fc1f
RS
84882008-01-25 Richard Stallman <rms@gnu.org>
8489
8490 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
8491 jump back to beginning. Move some other initializations after that.
8492 (Qwindow_text_change_functions, Vwindow_text_change_functions):
8493 New variables.
8494 (syms_of_xdisp): Init them.
8495
8496 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
8497
0975aa24
SM
8498 * buffer.c (reset_buffer_local_variables):
8499 Implement `permanent-local-hook'.
bbb9fc1f 8500 (Qpermanent_local_hook): New variable.
0975aa24 8501 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 8502
79235cbe
MA
85032008-01-25 Michael Albinus <michael.albinus@gmx.de>
8504
8505 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
8506
ccd8f7fe
TTN
85072008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
8508
8509 * fns.c (Fclrhash): Return TABLE.
8510
dfbe40f2 85112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
8512
8513 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
8514 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
8515 is set even without positional changes.
8516 (x_scroll_bar_clear): Set bar->redraw_needed_p.
8517
8518 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
8519
dfbe40f2 85202008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 8521
d6169680
JR
8522 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
8523
602e142f
JR
8524 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
8525 the unicode range available in MULE by locale-coding-system.
c041e2d1 8526 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
8527 earlier.
8528
dfbe40f2 85292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
8530
8531 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
8532 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 8533 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
8534 when used on child processes.
8535
8c7a4ac5
MA
85362008-01-21 Michael Albinus <michael.albinus@gmx.de>
8537
e0df1b73 8538 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 8539 Fdbus_method_return.
e0df1b73 8540 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 8541 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 8542 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 8543
8abe0f97
MR
85442008-01-20 Martin Rudalics <rudalics@gmx.at>
8545
8546 * undo.c (undo_inhibit_record_point): New variable.
8547 (syms_of_undo): Initialize it.
8548 (record_point): Don't record point when undo_inhibit_record_point
8549 is set.
8550
c3b232e4
SM
85512008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
8552
e69c4cae
SM
8553 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
8554
823e0ebb
SM
8555 * xdisp.c (Qauto_hscroll_mode): New var.
8556 (syms_of_xdisp): Initialize it.
8557 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
8558 window's buffer.
8559 (hscroll_windows): Don't check automatic_hscrolling_p here.
8560
c3b232e4
SM
8561 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
8562 vscroll if we're setting window-buffer to the value it already has.
8563
76ed5e01
DN
85642008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
8565
8566 * m/intel386.h: Remove references to XENIX.
8567
55e6d9b2
AS
85682008-01-17 Andreas Schwab <schwab@suse.de>
8569
8570 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
8571 instead of HAVE_X86_64_LIB64_DIR.
8572 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
8573
b16ed52d
GM
85742008-01-17 Glenn Morris <rgm@gnu.org>
8575
8576 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
8577 to HAVE_X86_64_LIB64_DIR.
8578
6bed5c4a
DN
85792008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
8580
8581 * s/irix3-3.h:
8582 * s/irix4-0.h:
8583 * s/386-ix.h:
8584 * s/domain.h:
8585 * s/hpux9-x11r4.h:
8586 * s/hpux9shxr4.h: Remove files for systems no longer supported.
8587
8588 * sysdep.c: Remove code containing references to symbols defined
8589 by unsupported systems.
8590
fdecf907
GM
85912008-01-16 Glenn Morris <rgm@gnu.org>
8592
8593 * coding.c (select-safe-coding-system-function): Doc fix.
8594
9292328f
GM
85952008-01-15 Glenn Morris <rgm@gnu.org>
8596
8597 * config.in: Revert 2008-01-13 change: this is a generated file.
8598
944df511
MO
85992008-01-13 Tom Tromey <tromey@redhat.com>
8600
8601 * lisp.h: Fix typo.
8602
8111ec05
DN
86032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8604
f40f5dc3
DN
8605 * m/sequent-ptx.h:
8606 * m/sequent.h:
8607 * s/ptx.h:
8608 * s/ptx4-2.h:
8609 * s/ptx4.h: Remove files for systems no longer supported.
8610
ce20b664 8611 * callproc.c (Fcall_process): Fix previous change.
8111ec05 8612
e39a993c
DN
86132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
8614
052e457f 8615 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 8616
290afd83
JB
8617 * m/mips.h:
8618 * m/intel386.h:
e39a993c
DN
8619 * callproc.c:
8620 * config.in:
8621 * ecrt0.c:
8622 * emacs.c:
8623 * fileio.c:
8624 * frame.c:
8625 * getpagesize.h:
8626 * keyboard.c:
8627 * lread.c:
8628 * process.c:
8629 * puresize.h:
8630 * sysdep.c:
8631 * systty.h:
8632 * syswait.h:
8633 * unexec.c:
8634 * xdisp.c:
8635 * alloc.c: Remove code containing references to symbols defined by
8636 unsupported systems.
8637
81cd7687
KH
86382008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
8639
8640 * coding.c (detect_coding_mask): Fix previous change.
8641
218b3b76
KH
86422008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
8643
8644 * coding.c (detect_coding_iso2022): New arg
8645 latin_extra_code_state. Allow Latin extra codes only
8646 when *latin_extra_code_state is nonzero.
8647 (detect_coding_mask): If there is a NULL byte, detect the encoding
8648 as UTF-16 or binary. If Latin extra codes exist, detect the
8649 encoding as ISO-2022 only when there's no other proper encoding is
8650 found.
8651
59ce725a 86522008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 8653
59ce725a
MB
8654 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
8655 #ifdef MAC_OS.
048addec 8656
59ce725a 86572008-01-08 Richard Stallman <rms@gnu.org>
048addec 8658
59ce725a 8659 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 8660
8290574e
NR
86612008-01-06 Nick Roberts <nickrob@snap.net.nz>
8662
a0a3805c 8663 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
8664 menu bar in parentheses.
8665
f3041af1
DN
86662008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
8667
8668 * m/7300.h:
8669 * m/acorn.h:
8670 * m/alliant-2800.h:
8671 * m/alliant.h:
8672 * m/alliant1.h:
8673 * m/alliant4.h:
8674 * m/altos.h:
8675 * m/amdahl.h:
8676 * m/apollo.h:
8677 * m/att3b.h:
8678 * m/aviion-intel.h:
8679 * m/aviion.h:
8680 * m/celerity.h:
8681 * m/clipper.h:
8682 * m/cnvrgnt.h:
8683 * m/convex.h:
8684 * m/cydra5.h:
8685 * m/delta88k.h:
8686 * m/dpx2.h:
8687 * m/dual.h:
8688 * m/elxsi.h:
8689 * m/f301.h:
8690 * m/gould-np1.h:
8691 * m/gould.h:
8692 * m/i860.h:
8693 * m/ibmps2-aix.h:
8694 * m/ibmrt-aix.h:
8695 * m/ibmrt.h:
8696 * m/irist.h:
8697 * m/is386.h:
8698 * m/isi-ov.h:
8699 * m/mega68.h:
8700 * m/mg1.h:
8701 * m/news-r6.h:
8702 * m/news-risc.h:
8703 * m/news.h:
8704 * m/nh3000.h:
8705 * m/nh4000.h:
8706 * m/ns16000.h:
8707 * m/ns32000.h:
8708 * m/nu.h:
8709 * m/orion.h:
8710 * m/orion105.h:
8711 * m/paragon.h:
8712 * m/pfa50.h:
8713 * m/plexus.h:
8714 * m/pyramid.h:
8715 * m/pyrmips.h:
8716 * m/sh3el.h:
8717 * m/sps7.h:
8718 * m/sr2k.h:
8719 * m/stride.h:
8720 * m/sun1.h:
8721 * m/sun2.h:
8722 * m/sun3-68881.h:
8723 * m/sun3-fpa.h:
8724 * m/sun3-soft.h:
8725 * m/sun3.h:
8726 * m/sun386.h:
8727 * m/symmetry.h:
8728 * m/tad68k.h:
8729 * m/tahoe.h:
8730 * m/targon31.h:
8731 * m/tek4300.h:
8732 * m/tekxd88.h:
8733 * m/tower32.h:
8734 * m/tower32v3.h:
8735 * m/ustation.h:
8736 * m/wicat.h:
8737 * m/xps100.h:
8738 * s/cxux.h:
8739 * s/cxux7.h:
8740 * s/dgux.h:
8741 * s/dgux4.h:
8742 * s/dgux5-4-3.h:
8743 * s/dgux5-4r2.h:
8744 * s/esix.h:
8745 * s/esix5r4.h:
8746 * s/hiuxmpp.h:
8747 * s/hiuxwe2.h:
8748 * s/iris3-5.h:
8749 * s/iris3-6.h:
8750 * s/isc2-2.h:
8751 * s/isc3-0.h:
8752 * s/isc4-0.h:
8753 * s/isc4-1.h:
8754 * s/newsos5.h:
8755 * s/newsos6.h:
8756 * s/osf1.h:
8757 * s/osf5-0.h:
8758 * s/riscix1-1.h:
8759 * s/riscix12.h:
8760 * s/sco4.h:
8761 * s/sco5.h:
8762 * s/sunos4-0.h:
8763 * s/sunos4-1.h:
8764 * s/sunos413.h:
8765 * s/sunos4shr.h:
8766 * s/umax.h:
8767 * s/unipl5-2.h:
8768 * s/xenix.h:
8769 * cxux-crt0.s:
8770 * unexapollo.c:
8771 * unexconvex.c:
8772 * unexenix.c:
8773 * unexsni.c: Remove files for systems no longer supported.
8774
8775 * m/intel386.h: Remove references to unsupported systems.
8776
8777 * w32.c (get_emacs_configuration): Remove reference to i860.
8778
8779 * sysdep.c: Remove dead code.
8780
d35e1cd7
DN
87812008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
8782
8783 * s/rtu.h:
a0a3805c 8784 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 8785
abe136ee
MA
87862008-01-04 Michael Albinus <michael.albinus@gmx.de>
8787
8788 * dbusbind.c (Fdbus_method_return): New function.
8789 (xd_read_message): Add the serial number to the event.
8790 (Fdbus_register_method): Activate the function.
8791
87df3c32
SM
87922008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
8793
8794 * keyboard.c (read_key_sequence): Fix typo.
8795
5125905e
MA
87962008-01-03 Michael Albinus <michael.albinus@gmx.de>
8797
8798 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
8799 (xd_signature, xd_append_arg): Handle element type detection for
8800 empty arrays.
8801 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
8802 SDATA () calls; this must be solved more general.
8803 (Fdbus_register_signal): Use SBYTES instead of strlen.
8804
8bba1b5c
MH
88052008-01-03 Magnus Henoch <magnus@zemdatav>
8806
8807 * dbusbind.c (xd_append_arg): Use unsigned char instead of
8808 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 8809 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 8810
a0a3805c 88112007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
8812
8813 * dbusbind.c (xd_read_message): Use non-static input_event struct.
8814
a271e124
MH
88152007-12-31 Magnus Henoch <mange@freemail.hu>
8816
8817 * dbusbind.c (xd_signature): Signature of variant is just "v".
8818
17bc8f94
MA
88192007-12-30 Michael Albinus <michael.albinus@gmx.de>
8820
87df3c32 8821 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 8822 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
8823 (XD_ERROR, XD_DEBUG_MESSAGE)
8824 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
8825 (xd_append_arg): Part for basic D-Bus types rewitten.
8826 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
8827 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
8828 appropriate.
8829 (xd_read_message): Return Qnil. Don't signal an error; it is not
8830 useful during event reading.
8831 (Fdbus_register_signal): Signal an error if the check for
8832 FUNCTIONP fails.
8833 (Fdbus_register_method): New function. The implementation is not
8834 complete, the call of the function signals an error therefore.
8835 (Fdbus_unregister_object): New function, renamed from
8836 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 8837 the object is not well formed.
17bc8f94 8838
dd6f2802
RS
88392007-12-30 Richard Stallman <rms@gnu.org>
8840
8841 * textprop.c (get_char_property_and_overlay):
8842 Signal error if POSITION is out of range in a buffer.
8843
1da8a031
MR
88442007-12-29 Martin Rudalics <rudalics@gmx.at>
8845
8846 * w32fns.c (Fx_create_frame): Make copy of frame parameters
8847 because the original parameters are in pure storage now.
8848
5742be86
YM
88492007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8850
8851 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
8852
b014713c
EZ
88532007-12-22 Eli Zaretskii <eliz@gnu.org>
8854
b17f53ab
MB
8855 * callint.c (syms_of_callint) <command-history>: Add reference to
8856 history-length in the doc string.
048addec 8857
b17f53ab 88582007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 8859
b17f53ab
MB
8860 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
8861 before passing as wParam.
048addec 8862
9af5078b
MA
88632007-12-22 Michael Albinus <michael.albinus@gmx.de>
8864
8865 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
8866 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
8867 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
8868 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
8869 as number.
8870 (Fdbus_call_method): Fix docstring.
8871
87cf1a39
MA
88722007-12-21 Michael Albinus <michael.albinus@gmx.de>
8873
8874 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
8875 New macros.
87df3c32 8876 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
8877 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
8878 Simplify.
87cf1a39
MA
8879 (xd_signature): New function.
8880 (xd_append_arg): Compute also signatures. Major rewrite.
8881 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
8882 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
8883 Check for signatures of arguments.
87cf1a39 8884
54371585
MA
88852007-12-19 Michael Albinus <michael.albinus@gmx.de>
8886
8887 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
8888 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
8889 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
8890 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
8891 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 8892 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
8893 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
8894 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 8895 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
8896 (xd_append_arg): New function.
8897 (Fdbus_call_method, Fdbus_send_signal): Apply it.
8898
f5306ca3
MA
88992007-12-16 Michael Albinus <michael.albinus@gmx.de>
8900
8901 * dbusbind.c (top): Include <stdio.h>.
8902 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
8903 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
8904 (Fdbus_register_signal): Rename unique_name to uname.
8905 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
8906 non-existing unique name. Fix typos in matching rule. Return an
8907 object which is useful in Fdbus_unregister_signal.
8908 (Fdbus_unregister_signal): Reimplementation, in order to remove
8909 only the corresponding entry.
8910 (Vdbus_registered_functions_table): Change the order of entries.
8911 Apply these changes in xd_read_message and Fdbus_register_signal.
8912
77a28bbf
AS
89132007-12-16 Andreas Schwab <schwab@suse.de>
8914
8915 * fileio.c (Finsert_file_contents): Fix overflow check to not
8916 depend on undefined integer overflow.
8917
2e3566d8
JR
89182007-12-14 Jason Rumney <jasonr@gnu.org>
8919
8920 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
8921 for characters above 127.
8922
bf254037
JR
89232007-12-13 Jason Rumney <jasonr@gnu.org>
8924
8925 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
8926 before dereferencing array.
8927 (lookup_vk_code): Remove zero comparison.
8928
eb7c7bf5
MA
89292007-12-14 Michael Albinus <michael.albinus@gmx.de>
8930
8931 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
8932 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
8933 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
8934 (xd_read_message, Fdbus_register_signal): Split expressions into
8935 multiple lines before operators "&&" and "||", according to the
8936 GNU Coding Standards.
8937
34fb0fc9
EZ
89382007-12-14 Eli Zaretskii <eliz@gnu.org>
8939
8940 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
8941
c7d97628
JL
89422007-12-12 Juri Linkov <juri@jurta.org>
8943
8944 * buffer.c (Frename_buffer): In interactive spec replace
8945 `read-buffer' with `read-string' that uses `buffer-name-history'
8946 as history, and the current buffer's name as default.
8947
3709505e
SM
89482007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
8949
8950 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
8951 manipulating the backtrace manually.
8952 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
8953 (struct backtrace, backtrace_list): Remove.
8954 (command_loop_1): Remove dead var `no_direct'.
8955
8956 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
8957 preserve non-built-in buffer-local variables.
8958 (Fkill_all_local_variables): Don't re-create&re-set permanent
8959 buffer-local variables.
8960
e2bec886
JL
89612007-12-09 Juri Linkov <juri@jurta.org>
8962
8963 * buffer.c (Frename_buffer): Change interactive spec from "s" to
8964 Lisp code that uses `read-buffer' with current buffer as default.
8965
a31d47c7
MA
89662007-12-08 Michael Albinus <michael.albinus@gmx.de>
8967
8968 * dbusbind.c (xd_read_message): Generate an event for every
8969 registered handler. There might be several handlers registered
8970 for the same signal.
8971 (Fdbus_register_signal): Don't overwrite a registration for the
8972 same signal. Add a new registration if handlers are different.
8973 (Vdbus_registered_functions_table): Rework doc string.
8974
52da95fa
MA
89752007-12-07 Michael Albinus <michael.albinus@gmx.de>
8976
8977 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
8978 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
8979 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
8980 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
8981 Unify argument lists.
a0a3805c 8982 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
8983 arguments and hash table keys. Use unique name for service.
8984 (Fdbus_unregister_signal): Remove checks.
8985 (Vdbus_registered_functions_table): Fix doc string.
8986
e5e76c04 89872007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
8988
8989 * process.c (make_process): Initialize pty_flag to 0.
8990
e5e76c04 89912007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
8992
8993 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
8994 specified XBMs.
8995
e5e76c04 89962007-12-05 Richard Stallman <rms@gnu.org>
048addec 8997
e5e76c04 8998 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 8999
e5e76c04 90002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9001
e5e76c04
MB
9002 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
9003 New variable.
9004 (mac_try_close_socket) [MAC_OSX]: New function.
9005 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
9006 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 9007
e5e76c04
MB
9008 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
9009 Use mac_try_close_socket.
048addec 9010
e5e76c04 90112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9012
e5e76c04
MB
9013 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
9014 reloc_base.
9015 (copy_dysymtab): Compute relocation base here.
9016 (rebase_reloc_address) [__ppc64__]: New function.
9017 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
9018 changed.
048addec 9019
e5e76c04 90202007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 9021
e5e76c04 9022 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 9023
e5e76c04 90242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 9025
e5e76c04
MB
9026 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
9027 __objc_* sections.
9028 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 9029
96faeb40
MA
90302007-12-05 Michael Albinus <michael.albinus@gmx.de>
9031
9032 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
9033 Move check for Vdbus_registered_functions_table to
9034 xd_read_queued_messages.
9035 (xd_read_queued_messages): Protect xd_read_message calls by
9036 internal_condition_case_1.
9037
39abdd4a
MA
90382007-12-04 Michael Albinus <michael.albinus@gmx.de>
9039
87df3c32 9040 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 9041 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 9042 (Vdbus_intern_symbols): Remove.
39abdd4a 9043 (Vdbus_registered_functions_table): New hash table.
87df3c32 9044 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 9045 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 9046 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
9047 Vdbus_registered_functions_table.
9048
880820fe 90492007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
9050
9051 * xterm.c: Update URL to Window Manager Specification in comment.
9052
033b73e2
MA
90532007-12-02 Michael Albinus <michael.albinus@gmx.de>
9054
9055 * config.in (HAVE_DBUS): Add.
9056
a0a3805c 9057 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
9058 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
9059 (obj): Add $(DBUS_OBJ).
9060 (LIBES): Add $(DBUS_LIBS).
9061 (dbusbind.o): New target.
9062
9063 * dbusbind.c: New file.
9064
9065 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
9066
9067 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 9068 (Qdbus_event): New Lisp symbol.
033b73e2 9069 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 9070 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
9071 (keys_of_keyboard ): Define dbus-event.
9072
9073 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
9074
39d0bf74
RS
90752007-12-01 Richard Stallman <rms@gnu.org>
9076
9077 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
9078
f3157c65
JR
90792007-11-30 Jason Rumney <jasonr@gnu.org>
9080
9081 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
9082 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
9083 (w32_face_attributes): Don't use color indexes that are out of range.
9084 Only reverse the default colors.
f3157c65
JR
9085
9086 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
9087 WINDOWSNT.
9088
9089 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
9090
b510360c
JR
90912007-11-29 Jason Rumney <jasonr@gnu.org>
9092
9093 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
9094 (w32_face_attributes): Use Vtty_defined_color_alist to determine
9095 if the terminal colors are initialized.
9096 (unspecified_fg, unspecified_bg): Remove unused declarations.
9097
4b7ab1c4
AS
90982007-11-29 Andreas Schwab <schwab@suse.de>
9099
9100 * keyboard.c (apply_modifiers): Fix typo.
9101
4bb6c266
RS
91022007-11-29 Richard Stallman <rms@gnu.org>
9103
9104 * keymap.c (Fcurrent_local_map): Doc fix.
9105
aa44cd84
GM
91062007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
9107
9108 * s/gnu-kfreebsd.h: New file.
9109
21ec2c43
SM
91102007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
9111
cc648cef
SM
9112 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
9113 Don't cast redundantly.
9114
21ec2c43
SM
9115 * keyboard.c (KEY_TO_CHAR): New macro.
9116 (parse_modifiers, apply_modifiers): Accept integer arguments.
9117 (read_key_sequence): Use them to unify the "shift->unshift" mapping
9118 for chars and symbol keys.
9119 After doing such remapping, apply function-key-map again.
9120
73e72da4
DN
91212007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
9122
9123 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
9124 compiled anymore.
9125
254693ff
AS
91262007-11-26 Andreas Schwab <schwab@suse.de>
9127
9128 * process.c (list_processes_1): Fix indentation level of the
9129 command column.
9130
ff6e6ac8
AS
91312007-11-23 Andreas Schwab <schwab@suse.de>
9132
9133 * editfns.c (Fformat): Handle %c specially since it requires the
9134 argument to be of type int.
9135
f7cf8b20
SM
91362007-11-23 Markus Triska <markus.triska@gmx.at>
9137
9138 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 9139 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 9140
569c11e3
SM
91412007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9142
8787dd73
SM
9143 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
9144 (find_symbol_value): Use do_symval_forwarding.
9145
569c11e3
SM
9146 * data.c (set_internal): Set the value in the `cons-cell' (for
9147 Buffer_Local_values) not only for frame-local variables.
9148
6af1696d
AS
91492007-11-22 Andreas Schwab <schwab@suse.de>
9150
9151 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
9152 values to sprintf.
9153 * keymap.c (Fsingle_key_description): Likewise.
9154 * print.c (print_object): Likewise.
9155
880820fe 91562007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
9157
9158 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
9159 file for image is nil.
9160
7c401d15
DN
91612007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
9162
9163 * term.c: Include stdarg.h.
569c11e3 9164 (fatal): Implement using varargs.
a0a3805c 9165 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 9166
64e16c3c
SM
91672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9168
9169 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
9170 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
9171 Update call to buffer_slot_type_mismatch.
9172 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
9173 (buffer_slot_type_mismatch): Update.
9174 * buffer.c (buffer_local_types): Remove.
9175 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
9176 (defvar_per_buffer): Set the type in the buffer_objfwd.
9177
d4aa48db 91782007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 9179
64e16c3c
SM
9180 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
9181 CreateFileMapping returns NULL on failure.
5f42a7eb 9182
d4aa48db 91832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 9184
d4aa48db
MB
9185 * search.c (Fset_match_data): Remove the `evaporate' feature.
9186 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 9187
bdae0540
JR
91882007-11-21 Jason Rumney <jasonr@gnu.org>
9189
9190 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
9191
9192 * w32console.c (w32con_write_glyphs): Remove unused variables.
9193
202c09a8
DN
91942007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
9195
b951420f
DN
9196 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
9197
202c09a8
DN
9198 * s/darwin.h (MULTI_KBOARD): Remove.
9199
9200 * macfns.c (x_create_tip_frame, Fx_create_frame)
9201 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
9202
bae72c12
SM
92032007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
9204
e7c10f83
SM
9205 * buffer.c (Fbuffer_local_value): Remove redundant test.
9206 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
9207 than in `current-buffer' to match the comment.
9208 Do the swap using swap_in_global_binding.
9209
136eb6ed
SM
9210 * data.c (store_symval_forwarding, set_internal):
9211 * eval.c (specbind): Remove dead code.
9212
bae72c12
SM
9213 * coding.c (detect_coding, Fupdate_coding_systems_internal):
9214 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
9215 Since we do not want to see internal Lisp_*fwd objects here.
9216
880820fe 92172007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 9218
3d66b985
JD
9219 * sysdep.c (init_system_name): Use getaddrinfo if available.
9220
95fbaefc
JD
9221 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
9222 (x_scroll_bar_note_movement): start, end, with, height in struct
9223 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
9224
6c1d8cb6
DN
92252007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
9226
9227 * puresize.h (BASE_PURESIZE): Increase to 1190000.
9228
30f95089
SM
92292007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9230
66b04bd4
SM
9231 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
9232 This undoes Richard's change of 14-Oct-2002.
9233
6d3f2bb2
SM
9234 * alloc.c (allocate_other_vector):
9235 * lisp.h (allocate_other_vector): Remove.
9236
b05b4e27
SM
9237 * window.c (struct save_window_data): Move non-lisp data to the end
9238 and make it `int' rather than Lisp_Object.
9239 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
9240 Done wrap/unwrap integer values.
9241 (Fset_window_configuration, compare_window_configurations):
9242 Update use of fields to their new types.
9243
056ce195
SM
9244 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
9245 Turn integer fields into `int'. Merge x_window_low and x_window_high.
9246 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
9247 (SET_SCROLL_BAR_X_WINDOW): Remove.
9248 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
9249 Access the new x_window field directly.
9250 * xterm.c (x_scroll_bar_create): Use a pseudovector.
9251 Don't wrap/unwrap integers into Lisp_Objects.
9252 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
9253 (x_scroll_bar_report_motion):
9254 Don't wrap/unwrap integers into Lisp_Objects.
9255 (x_term_init): Use SDATA.
9256 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
9257 (x_scroll_bar_set_handle, x_scroll_bar_remove)
9258 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
9259 (x_scroll_bar_report_motion, x_scroll_bar_clear):
9260 * xfns.c (x_set_background_color):
9261 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
9262 Access the new x_window field directly.
9263
30f95089
SM
9264 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
9265 (allocate_pseudovector): Make non-static.
6d3f2bb2 9266
30f95089
SM
9267 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
9268 (allocate_pseudovector): Declare.
6f69e89b 9269 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 9270
9b6112e8
AS
92712007-11-15 Andreas Schwab <schwab@suse.de>
9272
30f95089
SM
9273 * editfns.c (Fformat): Correctly format EMACS_INT values.
9274 Also take precision into account when formatting an integer.
0f860bd7 9275
9b6112e8
AS
9276 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
9277
262fcd41
SM
92782007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
9279
58da34c7
SM
9280 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
9281 (syms_of_keyboard): Defsubr it.
9282
262fcd41
SM
9283 * data.c (swap_in_global_binding): Fix longstanding bug where
9284 store_symval_forwarding was not called with the right second argument,
9285 thus causing objfwd-ing from being dropped.
9286
d29a9848
JB
92872007-11-14 Juanma Barranquero <lekktu@gmail.com>
9288
9289 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
9290 (Fx_display_pixel_height, Fx_display_planes)
9291 (Fx_display_color_cells, Fx_server_max_request_size)
9292 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9293 (Fx_display_visual_class, Fx_display_save_under):
9294 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
9295 (Fx_display_pixel_height, Fx_display_planes)
9296 (Fx_display_color_cells, Fx_server_max_request_size)
9297 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9298 (Fx_display_mm_height, Fx_display_mm_width)
9299 (Fx_display_backing_store, Fx_display_visual_class)
9300 (Fw32_select_font, Fx_display_save_under):
9301 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
9302 (Fx_display_pixel_height, Fx_display_planes)
9303 (Fx_display_color_cells, Fx_server_max_request_size)
9304 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
9305 (Fx_display_save_under): Fix typos in docstrings.
9306
74084731
JB
93072007-11-14 Juanma Barranquero <lekktu@gmail.com>
9308
9309 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
9310 corresponding to deleted entries; they are an implementation detail.
9311 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
9312 Remove variables.
9313 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
9314 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
9315 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
9316 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
9317 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 9318 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 9319 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
9320 Fix typos in docstrings.
9321 (Fx_server_version): Reflow docstring.
9322 (Fw32_shell_execute): Doc fixes.
74084731 9323
fb053a1f
JB
93242007-11-13 Juanma Barranquero <lekktu@gmail.com>
9325
9326 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
9327 if w32_parse_hot_key returned nil.
9328
a457417e 93292007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 9330
a457417e 9331 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 9332
4b219faa
JR
93332007-11-09 Jason Rumney <jasonr@gnu.org>
9334
9335 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
9336
9337 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
9338
9339 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
9340 Remove W32_SCROLL_BAR_CLICK_EVENT.
9341
9342 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
9343 Add MULTIMEDIA_KEY_EVENT.
9344
9345 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
9346 (lispy_multimedia_keys) [WINDOWSNT]: New array.
9347 (make_lispy_event) [WINDOWSNT]: Use it to translate
9348 MULTIMEDIA_KEY_EVENT.
9349
9350 * w32term.h (WM_APPCOMMAND): Define if not already.
9351 (GET_APPCOMMAND_LPARAM): Likewise.
9352
9353 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
9354 WM_APPCOMMAND.
9355
9356 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
9357 (syms_of_w32fns): Export and initialize it.
9358 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
9359
c12ecb0a 93602007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
9361
9362 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
9363 twice.
9364
9365 * xdisp.c (handle_face_prop): Fix last change.
9366
c12ecb0a 93672007-11-09 Richard Stallman <rms@gnu.org>
048addec 9368
c12ecb0a
MB
9369 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
9370 not just for after-strings and before-strings.
9371 Call face_for_overlay_string and pass the overlay to it.
9372 (handle_display_prop): Determine whether property came from an overlay.
9373 Pass OVERLAY arg to handle_single_display_spec.
9374 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
9375 (load_overlay_strings): Fill in it->string_overlays.
9376 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 9377
c12ecb0a
MB
9378 * xfaces.c (face_for_overlay_string): Function renamed from
9379 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 9380
c12ecb0a
MB
9381 * dispextern.h (struct it): New elt string_overlays.
9382 New elt from_overlay, also in stack.
9383 Rearrange a few elements.
9384 (face_for_overlay_string): Decl renamed from
9385 face_at_buffer_position_no_overlays, and add argument.
15fff01d 9386
c12ecb0a 93872007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 9388
c12ecb0a
MB
9389 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
9390 to get the base face for an overlay string.
0d8466cc 9391
c12ecb0a 9392 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 9393
c12ecb0a 9394 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 9395
c12ecb0a 9396 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 9397
c12ecb0a 93982007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 9399
c12ecb0a
MB
9400 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
9401 Fix conversion from Lisp object to ATSUFontID.
07025a55 9402
c12ecb0a 94032007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 9404
c12ecb0a 9405 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 9406
c12ecb0a 94072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 9408
c12ecb0a
MB
9409 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
9410 Don't assume regions are aligned to page boundary.
9411 (print_load_command_name): Add LC_UUID if defined.
3a232704 9412
c12ecb0a 94132007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 9414
c12ecb0a 9415 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 9416
b8ddfbcc
JR
94172007-11-07 Jason Rumney <jasonr@gnu.org>
9418
9419 * s/windows95.h: Remove.
9420
880820fe 94212007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
9422
9423 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
9424 abort with a message on unhandled store_type values.
9425
880820fe 94262007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
9427
9428 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
9429 Remove HAVE_X11R5 and HAVE_X11R4.
9430
04a697fe
DN
94312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * Makefile.in: Remove references to sunfns.c and sunfns.o.
9434
880820fe 94352007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
9436
9437 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 9438 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
9439 x_set_glyph_string_gc from x_draw_glyph_string.
9440
07e5c0b0
DN
94412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
9442
2a2e8de7 9443 * sunfns.c: Remove file.
07e5c0b0
DN
9444
9445 * m/sun386.h:
9446 * m/sun2.h:
9447 * m/sparc.h: Remove Sun windows code.
9448
1bc973c2
SM
94492007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
9450
9451 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
9452 (init_keyboard): Set current_kboard's window-system to nil.
9453 (tty_read_avail_input): Typo.
9454 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
9455
c22140f6
DN
94562007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
9457
9458 * s/usg5-4.h:
9459 * s/usg5-3.h:
9460 * s/ptx.h:
9461 * m/is386.h:
9462 * m/ibmps2-aix.h:
2a2e8de7 9463 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
9464
9465 * dispnew.c (syms_of_display): Don't mention version 10.
9466
660a8219
JB
94672007-10-28 Juanma Barranquero <lekktu@gmail.com>
9468
9469 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
9470 ($(BLD)/abbrev.$(O)): Remove.
9471
e047f448
SM
94722007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9473
9474 Rewrite abbrev.c in Elisp.
9475 * image.c (Qcount): Don't declare as extern.
9476 (syms_of_image): Initialize and staticpro `Qcount'.
9477 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
9478 * emacs.c (main): Don't call syms_of_abbrev.
9479 * Makefile.in (obj): Remove abbrev.o.
9480 (abbrev.o): Remove.
9481 * abbrev.c: Remove.
9482
67b73e3a
MR
94832007-10-26 Martin Rudalics <rudalics@gmx.at>
9484
9485 * window.c (window_min_size_2): Don't count header-line.
9486
e3d7bd83
DN
94872007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
9488
9489 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 9490 field to take advantage of the available space. Group all the
e3d7bd83
DN
9491 chars together to reduce wasted space due to padding.
9492
a3547743
JB
94932007-10-26 Juanma Barranquero <lekktu@gmail.com>
9494
e298936f
JB
9495 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
9496
d3d47262
JB
9497 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
9498 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
9499 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
9500 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
9501 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
9502 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
9503 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
9504 (last_marked, mark_object_loop_halt): Make static.
9505
a3547743
JB
9506 * frame.c (syms_of_frame) <delete-frame-functions>:
9507 Fix typo in docstring.
9508
14c71d8b
JB
95092007-10-25 Juanma Barranquero <lekktu@gmail.com>
9510
9511 * w32.c (init_environment): Fix tiny memory leak.
66199f74 9512 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 9513
70b8d0a4
SM
95142007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
9515
9516 Make `window-system' into a keyboard-local variable (rather than
9517 frame-local as done originally by multi-tty).
9518
9519 * keyboard.h (struct kboard): Add Vwindow_system.
9520 * keyboard.c (init_kboard): Set a default for Vwindow_system.
9521 (mark_kboards): Mark Vwindow_system.
9522
9523 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
9524 (init_display): Don't set the obsolete `window-system' frame-param.
9525
9526 * xterm.c (x_term_init):
9527 * w32term.c (w32_create_terminal):
9528 * term.c (init_tty): Set Vwindow_system.
9529 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
9530 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
9531
9532 * xfns.c (Fx_create_frame, x_create_tip_frame):
9533 * w32fns.c (Fx_create_frame, x_create_tip_frame):
9534 * macfns.c (Fx_create_frame):
9535 Don't set the obsolete `window-system' frame-param.
9536
9537 * frame.h (Qwindow_system): Remove.
9538 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
9539 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
9540
fdc90613 95412007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 9542
fdc90613
MB
9543 * frame.c (x_figure_window_size): For fullscreen case,
9544 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 9545
fdc90613 9546 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 9547
fdc90613 9548 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 9549
7357cb04
SM
95502007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
9551
98228e72
SM
9552 * process.c (unwind_request_sigio): Only define if __ultrix__.
9553
1baf6db9
SM
9554 * callproc.c (child_setup): Remove spurious *.
9555
4d0ac3d7
SM
9556 * lisp.h (Fget_text_property): Declare.
9557 (have_menus_p): Declare it here rather than in sys-dep header files.
9558 * macterm.h (have_menus_p):
9559 * msdos.h (have_menus_p):
9560 * xterm.h (have_menus_p): Remove.
9561
7357cb04
SM
9562 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9563 (Fmake_variable_frame_local): Just check the variable's const-ness
9564 rather than checking nil or t.
9565
866e6dd6
JR
95662007-10-22 Jason Rumney <jasonr@gnu.org>
9567
b00afeae
JR
9568 * w32fns.c: Include math.h.
9569 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 9570
c8f7c76b
JR
9571 * s/ms-w32.h (HAVE_STDLIB_H): Define.
9572 (abort): Redefinition moved to nt/config.nt.
9573
866e6dd6
JR
9574 * m/windowsnt.h: Remove.
9575
e79beb56
JB
95762007-10-22 Juanma Barranquero <lekktu@gmail.com>
9577
9578 * emacs.c (Fdump_emacs): Fix typo in message.
9579 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
9580 <installation-directory>: Reflow docstring.
9581
fb30dfd2
JL
95822007-10-22 Juri Linkov <juri@jurta.org>
9583
9584 * minibuf.c: Allow minibuffer default to be a list of default values.
9585 With empty input use the first element of this list as returned default.
e79beb56 9586 (string_to_object)
0f7f11b7 9587 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
9588 (read_minibuf): If defalt is cons, set histstring to its car.
9589 (Fread_string): If default_value is cons, set val to its car.
9590 (Fread_buffer): If def is cons, use its car.
9591 (Fcompleting_read): If defalt is cons, set val to its car.
9592
1f163f28
MA
95932007-10-21 Michael Albinus <michael.albinus@gmx.de>
9594
9595 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
9596
db3534c3
JB
95972007-10-20 Juanma Barranquero <lekktu@gmail.com>
9598
9599 * doc.c (Fdocumentation): Check for advice in all cases.
9600
c6f18a07
CY
96012007-10-19 Chong Yidong <cyd@stupidchicken.com>
9602
9603 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
9604
2a1534d3
RS
96052007-10-19 Richard Stallman <rms@gnu.org>
9606
9607 * doc.c (Fdocumentation): Check for and handle an advised function.
9608
7b82c3b6
JB
96092007-10-19 Juanma Barranquero <lekktu@gmail.com>
9610
9611 * process.c (Fset_process_filter): Doc fix.
9612
3278f20e
SM
96132007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
9614
9615 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
9616 which caused key-translation-map to applied repeatedly (thus breaking
9617 double-mode).
9618
99784d63
SM
96192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9620
9621 * xselect.c (x_own_selection, x_handle_selection_clear)
9622 (x_clear_frame_selections):
9623 * w32menu.c (list_of_panes, list_of_items):
9624 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
9625 * textprop.c (validate_plist, interval_has_all_properties)
9626 (interval_has_some_properties, interval_has_some_properties_list)
9627 (add_properties, text_property_list):
9628 * process.c (Fget_buffer_process, list_processes_1, status_notify):
9629 * minibuf.c (Fassoc_string):
9630 * macselect.c (x_own_selection, x_clear_frame_selections)
9631 (Fx_disown_selection_internal):
9632 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
9633 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
9634
44bb704d
CY
96352007-10-17 Chong Yidong <cyd@stupidchicken.com>
9636
9637 * process.c: Link to libs for calling res_init() if available.
9638 (Fmake_network_process): Call res_init() before getaddrinfo or
9639 gethostbyname, if possible.
9640
d314756e
SM
96412007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
9642
2504022a
SM
9643 * lread.c (read1): Set pvectype for char_tables.
9644
19fa82b9
SM
9645 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
9646 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
9647 Add type checks.
9648 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
9649
d314756e
SM
9650 * alloc.c (free_misc): Use XMISCTYPE.
9651 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
9652
94b9aaa2
GM
96532007-10-17 Glenn Morris <rgm@gnu.org>
9654
9655 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
9656 (syms_of_minibuf): Add Qcompletion_ignore_case.
9657 * dired.c (Qcompletion_ignore_case): Change to external.
9658 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
9659 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
9660 (Fread_file_name): Use it rather than intern'ing.
9661
9662 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
9663 (Fread_coding_system): Ignore case of user input.
9664
da6658e8
YM
96652007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9666
9667 * xdisp.c (handle_display_prop): Ignore display specs after
9668 replacing one when string text is being replaced.
9669 (handle_single_display_spec): Pretend as if characters with display
9670 property haven't been consumed only when buffer text is being replaced.
9671
11fb4bdb
SM
96722007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
9673
9beb8baa
SM
9674 * xfns.c (Fx_create_frame, Fx_display_list):
9675 * window.c (window_fixed_size_p, enlarge_window)
9676 (shrink_window_lowest_first):
9677 * macterm.c (init_font_name_table):
9678 * macfns.c (Fx_create_frame, Fx_display_list):
9679 * lread.c (close_load_descs):
9680 * keyboard.c (read_char_x_menu_prompt):
9681 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
9682 * coding.c (code_convert_region_unwind): Test the type of an object
9683 rather than just !NILP before extracting data from it.
9684
d3f41ff5
SM
9685 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
9686
67ee9f6e
SM
9687 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
9688 (XMISCANY): New macro.
9689 (XMISCTYPE): Use it.
9690 (struct Lisp_Misc_Any): New type.
9691 (union Lisp_Misc): Use it.
9692 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
9693 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
9694 (find_symbol_value, set_internal, default_value, Fset_default)
9695 (Fmake_variable_buffer_local, Fmake_local_variable)
9696 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
9697 (Flocal_variable_if_set_p, Fvariable_binding_locus):
9698 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
9699 * alloc.c (allocate_buffer): Set the size and tag.
9700 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
9701 Use XMISCANY.
9702 (die): Follow the GNU convention for error messages.
9703 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
9704 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
9705 tag any more.
9706 (set_buffer_internal_1):
9707 * frame.c (store_frame_param):
9708 * eval.c (specbind):
9709 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
9710
11fb4bdb
SM
9711 * doc.c (Fsnarf_documentation): Simplify.
9712
decb374a
JB
97132007-10-14 Juanma Barranquero <lekktu@gmail.com>
9714
9715 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
9716 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
9717
b5a40ee7
SM
97182007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
9719
9720 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
9721
35277b03
JB
97222007-10-14 Juanma Barranquero <lekktu@gmail.com>
9723
9724 * eval.c (do_autoload): Don't save autoloads.
9725
9726 * data.c (Ffset): Save autoload of the function being set.
9727
35fdaa62
GM
97282007-10-07 John Paul Wallington <jpw@pobox.com>
9729
9730 * xfns.c (x_create_tip_frame): Set the `display-type' frame
9731 parameter before setting up faces.
9732
1ea40aa2
EZ
97332007-10-13 Eli Zaretskii <eliz@gnu.org>
9734
35fdaa62 9735 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
9736 * keyboard.c (append_tool_bar_item): Reformat last change.
9737
1ea40aa2
EZ
9738 * lisp.h (eabs): Rename from `abs'. All callers changed.
9739
35277b03 97402007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
9741
9742 * buffer.c (add_overlay_mod_hooklist):
9743 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
9744 * fontset.c (make_fontset):
9745 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
9746 (append_tool_bar_item):
9747 * macmenu.c (grow_menu_items):
35fdaa62 9748 * w32menu.c (grow_menu_items):
71d00ce4 9749 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 9750
bc82f120
EZ
97512007-10-13 Eli Zaretskii <eliz@gnu.org>
9752
9753 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
9754 selected frame'' on MSDOS).
9755
d57d5a78
MR
97562007-10-12 Martin Rudalics <rudalics@gmx.at>
9757
9758 * frame.c (Qexplicit_name): New variable.
9759 (x_report_frame_params): Report it in parameter alist.
9760 (syms_of_frame): Intern and staticpro it.
9761
35277b03 97622007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
9763
9764 * macfns.c (x_create_tip_frame): Set terminal for frame.
9765
c7a4b95b
SM
97662007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
9767
26f9c7b7
SM
9768 * frame.c (Qenvironment): Remove.
9769 (syms_of_frame) <Qenvironment>: Don't initialize.
9770 (Fdelete_frame): Don't treat the `environment' param specially.
9771 * frame.h (Qenvironment): Don't declare.
9772 * callproc.c (set_initial_environment): Don't set unused frame param.
9773
c7a4b95b
SM
9774 * frame.c (Fframe_with_environment): Remove.
9775 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 9776
c7a4b95b
SM
9777 * lisp.h (Fframe_with_environment): Don't declare.
9778
c86f7377
JB
97792007-10-10 Juanma Barranquero <lekktu@gmail.com>
9780
9781 * indent.c (indent_tabs_mode, last_known_column)
9782 (last_known_column_modified): Make static.
9783 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
9784
d1b3a122
KY
97852007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
9786
9787 * puresize.h (BASE_PURESIZE): Increase to 1170000.
9788
d57d5a78
MR
97892007-10-09 Jason Rumney <jasonr@gnu.org>
9790
9791 * w32term.c (x_set_window_size): Disable code that attempts to tell
9792 Lisp code about a size change before it actually happens.
9793
81d3d428 97942007-10-09 Richard Stallman <rms@gnu.org>
91175673 9795
81d3d428
MB
9796 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
9797 return HANDLED_RETURN.
91175673 9798
1af74d06 97992007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 9800
1af74d06
MB
9801 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
9802 when there's an unread command event.
e0fead5d 9803
c7a4b95b 9804 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
9805 window autoselection act appropriately when leaving selected frame.
9806 (syms_of_frame): Initialize focus_follows_mouse.
9807 * frame.h (focus_follows_mouse): Extern it.
9808 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 9809 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
9810 * msdos.c (dos_rawgetc): Likewise.
9811 * w32term.c (w32_read_socket): Likewise.
9812 * xterm.c (handle_one_xevent): Likewise.
9813 * xdisp.c (syms_of_xdisp): In doc-string of
9814 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 9815
1af74d06 98162007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 9817
1af74d06
MB
9818 * macterm.c (mac_load_query_font): Fix missing return value.
9819 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
9820 Add BLOCK_INPUT.
c186cdb3 9821
1af74d06 98222007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 9823
1af74d06
MB
9824 * xdisp.c (get_window_cursor_type): Implement documented behavior
9825 for cursor-in-non-selected-windows = t.
c186cdb3 9826
1af74d06 98272007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 9828
1af74d06 9829 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 9830
1af74d06 98312007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 9832
1af74d06 9833 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 9834
1af74d06 9835 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 9836
1af74d06 98372007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9838
c7a4b95b 9839 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 9840
1af74d06 98412007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 9842
1af74d06 9843 * buffer.c (Foverlays_at): Doc fix.
036e218d 9844
1af74d06 98452007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 9846
1af74d06 9847 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 9848
1af74d06 98492007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 9850
1af74d06 9851 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 9852
1af74d06 9853 * frame.h (enum): Remove trailing comma.
90647b07 9854
8993ad2e 98552007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 9856
1af74d06 9857 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 9858
1af74d06 98592007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 9860
1af74d06 9861 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 9862
1af74d06
MB
9863 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
9864 last-repeatable-command.
9865 (init_kboard): Initialize Vlast_repeatable_command.
9866 (command_loop_1): Set it to real_this_command unless that was
9867 bound to an input event.
9868 (mark_kboards): Mark it.
9fbc32aa 9869
1af74d06 98702007-10-08 Richard Stallman <rms@gnu.org>
036e218d 9871
1af74d06 9872 * eval.c (condition-case): Doc fix.
9fbc32aa 9873
1af74d06 98742007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 9875
1af74d06
MB
9876 * xfaces.c (tty_supports_face_attributes_p): Fix code
9877 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
9878 was copied and not edited.
9fbc32aa 9879
beb9f745
SM
98802007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
9881
c86f7377 9882 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
9883 escape sequences.
9884 * keyboard.h (struct kboard): Add Vinput_decode_map.
9885 Remove Vlocal_key_translation_map.
9886 * keyboard.c (read_key_sequence): Add support for input-decode-map.
9887 (init_kboard): Init input-decode-map.
9888 Replace local-key-translation-map back with key-translation-map.
9889 (syms_of_keyboard): Declare input-decode-map.
9890 Remove local-key-translation-map. Update docstrings.
9891 (mark_kboards): Mark Vinput_decode_map.
9892 Don't mark Vlocal_key_translation_map.
9893 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
9894 Replace local-key-translation-map back with key-translation-map.
9895 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
9896 Bind in input-decode-map rather than function-key-map.
9897
beb9f745
SM
9898 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
9899 This was made redundant by the previous introduction of XSETPVECTYPE.
9900
65342ae3
RS
99012007-10-09 Richard Stallman <rms@gnu.org>
9902
beb9f745 9903 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
9904
99052007-09-29 Richard Stallman <rms@gnu.org>
9906
9907 * eval.c (internal_condition_case_2, internal_condition_case_1)
9908 (internal_condition_case): Reenable abort if x_catching_errors ()
9909 to see if that really happens and why.
9910
6cff77fd
AS
99112007-10-06 Andreas Schwab <schwab@suse.de>
9912
9913 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
9914
bbe6f2aa
JB
99152007-10-04 Juanma Barranquero <lekktu@gmail.com>
9916
9917 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
9918
a390930c
SM
99192007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
9920
9921 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
9922
d6aa1876
SM
99232007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
9924
d0fdb6da
SM
9925 * window.h (struct window):
9926 * window.c (struct save_window_data, struct saved_window):
9927 * termhooks.h (struct terminal):
9928 * process.h (struct Lisp_Process):
9929 * frame.h (struct frame):
9930 * buffer.h (struct buffer):
9931 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
9932 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
9933 The size field of (pseudo)vectors is now unsigned.
9934 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
9935
878f97ff
SM
9936 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
9937 Turn `count' into an integer.
d0fdb6da 9938
878f97ff
SM
9939 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
9940 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
9941 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
9942 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
9943 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
9944
d2029e5b
SM
9945 * alloc.c (allocate_pseudovector): New fun.
9946 (ALLOCATE_PSEUDOVECTOR): New macro.
9947 (allocate_window, allocate_terminal, allocate_frame)
9948 (allocate_process): Use it.
9949 (mark_vectorlike): New function.
9950 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
9951 (mark_terminals): Use it.
9952 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
9953 (Fmake_byte_code): Use XSETPVECTYPE.
9954
9955 * frame.c (Fframe_parameters): Minor simplification.
9956
9957 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
9958
9959 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
9960
9961 * buffer.c (Fget_buffer_create, init_buffer_once):
9962 * lread.c (defsubr):
9963 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
9964
9965 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
9966 defined differently in the m/*.h files.
9967 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
9968 (XSETPVECTYPE): New macro.
9969 (XSETPSEUDOVECTOR): Use it.
9970
d6aa1876
SM
9971 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
9972 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 9973
d6aa1876
SM
9974 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
9975 * lread.c (defvar_per_buffer):
9976 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
9977
9978 * window.c (candidate_window_p): Only consider as visible frames that
9979 are on the same terminal.
9980
9981 * m/ibms390x.h (MARKBIT): Remove unused macro.
9982
88852d45
JB
99832007-10-01 Juanma Barranquero <lekktu@gmail.com>
9984
9985 * lread.c (Fload): Fix typo in docstring.
9986
880820fe 99872007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
9988
9989 * floatfns.c (Fexpt): Manually check for overflows, so that a power
9990 of a non-zero value can't yield zero.
9991
ed0c79c6
SM
99922007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
9993
b870aa61
SM
9994 * term.c (term_clear_mouse_face, term_mouse_highlight)
9995 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
9996
4c37a414
SM
9997 * print.c (safe_debug_print): Use XHASH.
9998
b9466edb
SM
9999 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
10000 Lisp elements such as tags.
10001 (XHASH): New macro.
10002 (EQ): Use it.
10003 (SREF, SSET, STRING_COPYIN): Use SDATA.
10004 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
10005
9c545a55
SM
10006 * alloc.c (mark_terminal): Remove left-over declaration.
10007 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
10008 (allocate_vectorlike): Remove type argument. Adjust callers.
10009 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
10010 Only handle the one remaining MEM_TYPE_VECTORLIKE.
10011
dafc79fa
SM
10012 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
10013 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
10014 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
10015 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
10016 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
10017 Use them.
10018
ed0c79c6
SM
10019 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
10020 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
10021 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
10022
3c81afd4
DN
100232007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10024
10025 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
10026 loaded by default.
10027
6178ce5e
SM
100282007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
10029
4ce5ab77
SM
10030 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
10031 on this tty.
10032 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
10033
6178ce5e
SM
10034 * term.c (mouse_face_window): Rename from Qmouse_face_window.
10035 Update all users.
10036 (handle_one_term_event): Use Gpm_DrawPointer.
10037 (Fgpm_mouse_start): Rename from Fterm_open_connection.
10038 Signal errors instead of returning nil. Always return nil.
10039 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
10040 Make it a noop if gpm-mouse was not activated.
10041 (syms_of_term): Update names.
10042
bdf5f8ef
SM
100432007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
10044
75a8734b
SM
10045 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
10046 (init_sys_modes): Check that gpm_tty is the current tty.
10047
13559ee0
SM
10048 * alloc.c (allocate_terminal): Set the vector size to only count the
10049 lisp fields. Initialize those to nil.
10050 (mark_object): Don't treat terminals specially.
10051 (mark_terminal): Remove.
10052 (mark_terminals): Use mark_object instead.
10053
ff16b875
SM
10054 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
10055 the GC to the beginning.
10056
83155776
SM
10057 * indent.h:
10058 * indent.c: Use EMACS_INT for ints coming from Elisp data.
10059
bdf5f8ef
SM
10060 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
10061
ec8705b6
JR
100622007-09-25 Jason Rumney <jasonr@gnu.org>
10063
10064 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
10065
10066 * w32console.c (create_w32cons_output): Remove.
10067
10068 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
10069
10070 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
10071 (reset_sys_modes): Use reset_terminal_modes_hook.
10072
7351b242
SM
100732007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
10074
10075 * eval.c (do_autoload): Don't output any message.
10076
16706228
JL
100772007-09-24 Juri Linkov <juri@jurta.org>
10078
10079 * emacs.c (standard_args): Change priority of "--no-splash"
10080 from 40 to 3. Add "--no-desktop" with the same priority.
10081
3ae2e3a3
RS
100822007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
10083
10084 * alloc.c (gc_sweep): Check cons cell mark bits word by word
10085 and optimize the case where they are all 1.
10086
7a58fb43
GM
100872007-09-23 Johannes Weiner <hannes@saeurebad.de>
10088
3ae2e3a3
RS
10089 * lisp.h (abs): Define if not defined.
10090 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
10091 Don't define `abs', since it's defined in lisp.h.
7a58fb43 10092
78048085
EZ
100932007-09-22 Eli Zaretskii <eliz@gnu.org>
10094
c7a4b95b 10095 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
10096 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
10097 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
10098 (init_tty): Use DEV_TTY instead of "/dev/tty".
10099 [WINDOWSNT]: No need to protect from NAME arg being null.
10100
23d4cba5
DN
101012007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10102
10103 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
10104 up the tty state.
10105
71f44e7a
SM
101062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10107
10108 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
10109 (gpm_tty): Change its type.
10110 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
10111 (gpm_tty): Change its type and initialize it.
10112 (Fterm_open_connection): Check the frame is indeed a tty.
10113 Use the new gpm_tty.
10114 (Fterm_close_connection): Use the new gpm_tty.
10115 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
10116 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
10117
def7fa34
JB
101182007-09-21 Juanma Barranquero <lekktu@gmail.com>
10119
10120 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
10121 underline_color, to draw strike-through.
10122
d2bb6598
SM
101232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
10124
273f164c
SM
10125 * lisp.h (allocate_terminal): Declare.
10126
ca2d5566
SM
10127 * window.c (candidate_window_p): Consider frames that are being placed
10128 by the user as somewhere between visible and iconified.
10129 (window_loop): Prefer windows on the current frame.
10130 (Fselect_window): Move the use of select-frame to the beginning so we
10131 can just delegate all the work (it'll call us back anyway).
10132
6168122d
SM
10133 * frame.c (Qdisplay_environment_variable):
10134 * frame.h (Qdisplay_environment_variable): Delete.
10135
c51842ec
SM
10136 * .gdbinit (xbacktrace): Print the arg's address rather than the value
10137 of the first arg, since that value may be a union.
10138
d2bb6598
SM
10139 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
10140 parameter rather than Qdisplay_environment_variable. If all else
10141 fails, look for DISPLAY in initial-environment.
10142
6f022c19
GM
101432007-09-21 Glenn Morris <rgm@gnu.org>
10144
10145 * Makefile.in (emacstool): Remove target.
f466320b 10146 (lisp, shortlisp): Remove termdev.elc.
6f022c19 10147
ea1bf8c7
GM
101482007-09-21 Markus Triska <markus.triska@gmx.at>
10149
d2bb6598 10150 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 10151
d30a25b3
SM
101522007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
10153
db699fc6
SM
10154 * callproc.c (getenv_internal_1): New function.
10155 (getenv_internal): Use it.
10156 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
10157
d2bb6598 10158 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
10159 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
10160 (Fset_terminal_parameter): Work with dead terminals as well.
10161 (Fmodify_terminal_parameters): Remove.
10162
d30a25b3
SM
10163 * terminal.c (get_terminal): Handle terminals.
10164 Make sure the terminal returned is live.
10165 (create_terminal): Use allocate_terminal.
10166 (mark_terminals): Move to alloc.c.
10167 (delete_terminal): Use terminal->name as liveness status.
10168 NULL out fields after freeing their contents.
10169 Don't deallocate the object.
10170 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
10171 rather than an int.
10172 (Fterminal_live_p): Accept non-integer arguments.
10173 (Fterminal_list): Return terminal objects rather than an ints.
10174
10175 * alloc.c (enum mem_type): New member for `terminal' objects.
10176 (allocate_terminal): New function.
d2bb6598
SM
10177 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
10178 Handle terminals.
d30a25b3
SM
10179 (mark_terminal): New fun.
10180 (mark_terminals): Move from terminal.c.
10181
10182 * term.c (get_tty_terminal): Don't treat output_initial specially.
10183 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
10184 (delete_tty): Use terminal->name as liveness status.
10185
10186 * termhooks.h (struct terminal): Make it into a pseudovector.
10187 Remove `deleted' replaced by checking `name's nullness.
10188
10189 * print.c (print_object): Handle terminals.
10190
10191 * lisp.h (enum pvec_type): New `terminal' pseudovector.
10192 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
10193
10194 * frame.c (make_terminal_frame):
10195 * keyboard.c (tty_read_avail_input):
10196 * w32term.c (x_delete_terminal):
10197 * xfns.c (Fx_create_frame, x_create_tip_frame):
10198 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
10199
eba25e7c
GM
102002007-09-20 Glenn Morris <rgm@gnu.org>
10201
10202 * process.c (Fmake_network_process): Doc fix.
10203
2a29c3c1
JR
102042007-09-19 Jason Rumney <jasonr@gnu.org>
10205
10206 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
10207
880820fe 102082007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
10209
10210 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
10211 Fix a C warning regarding variable constness.
10212
10213 * xterm.c (handle_one_xevent): Fix a C warning.
10214
334a1195
JR
102152007-09-18 Jason Rumney <jasonr@gnu.org>
10216
10217 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
10218
880820fe 102192007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
10220
10221 * gtkutil.c (gdpy_def): New variable.
10222 (xg_initialize): Initialize gdpy_def.
10223 (xg_display_close): If no other display exists, set gdpy_def to a
10224 new connection.
10225
880820fe 102262007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
10227
10228 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
10229 when we have no file name for the icon.
10230 (xg_tool_bar_expose_callback): Remove.
10231 (xg_create_tool_bar): Don't connect expose signal to
10232 xg_tool_bar_expose_callback.
10233 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
10234
4d580af2
AS
102352007-09-16 Andreas Schwab <schwab@suse.de>
10236
10237 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
10238 values instead of zapping them.
10239
aca946f3
GM
102402007-09-14 Glenn Morris <rgm@gnu.org>
10241
10242 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
10243 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
10244 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
10245 scope and rename to omfib_buffer for clarity.
10246 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
10247
25c460e5
KH
102482007-09-14 Kenichi Handa <handa@m17n.org>
10249
10250 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
10251
09b69f01
JR
102522007-09-13 Jason Rumney <jasonr@gnu.org>
10253
10254 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
10255
10256 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
10257
10258 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
10259 (mac_term_init): Call here instead, passing rif.
10260
442218db
GM
102612007-09-13 Glenn Morris <rgm@gnu.org>
10262
10263 * s/hpux.h: No longer define `static' as nothing.
10264
880820fe 102652007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
10266
10267 * callint.c (Fcall_interactively): Remove unused var `fun'.
10268
1971a872
RF
102692007-09-12 Romain Francoise <romain@orebokech.com>
10270
10271 * window.c (prefer_window_split_horizontally, display_buffer):
10272 Revert 2007-09-08 change.
10273
2d33f506
GM
102742007-09-12 Glenn Morris <rgm@gnu.org>
10275
585474ae 10276 * alloca.c: Remove file.
ca7af97a
GM
10277 * Makefile.in (alloca): Do not undef.
10278 (allocaobj, alloca.o): Remove.
10279 (otherobj): Remove allocaobj.
10280 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
10281 * regex.c (C_ALLOCA): Remove all references and code that was only
10282 used when this was defined.
10283 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
10284 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
10285 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
10286
2d33f506 10287 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
10288
10289 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
10290 (menu_grab_callback): All uses changed.
10291
10292 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
10293 (x_reply_selection_request): All uses changed.
2d33f506 10294
18a4a65e
SM
102952007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
10296
10297 * lread.c (load_warn_old_style_backquotes): Change message to look
10298 better when it appears in the middle of byte-compiler messages.
10299
47cc8819
DN
103002007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
10301
b7ea0894
DN
10302 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
10303
47cc8819
DN
10304 * xterm.c (x_create_terminal): Add comment.
10305
10306 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
10307
5632bd0f
RS
103082007-09-10 Richard Stallman <rms@gnu.org>
10309
10310 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
10311
880820fe 103122007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 10313
4bca9161
MC
10314 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
10315 (DEFUN): Document `intspec', use it instead of `prompt'.
10316
04724b69
MC
10317 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
10318
8a6d230a
MC
10319 * data.c (Finteractive_form): If the interactive specification starts
10320 with a `(', use it as a Lisp form.
10321
09fbdf6c
MC
10322 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
10323 name and file modes.
10324
ccb5c14f
MC
10325 * callint.c (Fcall_interactively): Comment fixes.
10326
023accd6
SM
103272007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
10330 and compiled functions.
10331
f26b9544
EZ
103322007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
10333
10334 * window.c (prefer_window_split_horizontally): New variable.
10335 (display_buffer): Consider splitting window horizontally depending
10336 on prefer_window_split_horizontally.
10337
4d395425
EZ
103382007-09-08 Eli Zaretskii <eliz@gnu.org>
10339
97ddc760 10340 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 10341
08c1d235
SM
103422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10343
179cef48
SM
10344 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
10345
08c1d235
SM
10346 * frame.c (x_set_frame_parameters): Check number is positive before
10347 using XFASTINT.
10348
10349 * window.c (freeze_window_start): Don't presume selected_window holds
10350 a window object.
92f94a12 10351 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 10352
97ddc760 103532007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
10354
10355 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
10356
90ab5c62
SM
103572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10358
10359 * window.c (Vsplit_window_preferred_function): New var.
10360 (Fdisplay_buffer): Use it.
10361 (syms_of_window): Export, and initialize it.
10362
1ab2cd43
TTN
103632007-09-06 Pixel <pixel@mandriva.com> (tiny change)
10364
10365 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
10366
0b0515bc
GM
103672007-09-06 Glenn Morris <rgm@gnu.org>
10368
57fd5c55 10369 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
10370 * xselect.c (x_reply_selection_request) <cnt>: Move static
10371 variable to file scope.
10372
98594580
SM
103732007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
10376 consistent values of selected_frame and selected_window.
10377
0f4c7aef
JR
103782007-09-04 Jason Rumney <jasonr@gnu.org>
10379
10380 * w32console.c (initialize_w32_display): Zero unused hooks.
10381
e4019195
DN
103822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10383
10384 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
10385 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
10386
bce179b5
JR
103872007-09-04 Jason Rumney <jasonr@gnu.org>
10388
a0236551
JR
10389 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
10390 in w32console.c. Set up input. Remove XXX comments that have been
10391 confirmed as correct.
10392
a4926668
JR
10393 * s/ms-w32.h (MULTI_KBOARD): Define.
10394
953bf0dc
JR
10395 * w32console.c (one_and_only_w32cons): Remove.
10396 (initialize_w32_display): Take terminal argument.
10397
10398 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
10399 initialize_w32_display.
10400 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
10401
bce179b5
JR
10402 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
10403
10404 * keyboard.c (discard_mouse_events): Discard it.
10405 (make_lispy_event): Translate it to a lisp event.
10406 (lispy_wheel_names): Add wheel-left and right events.
10407 (syms_of_keyboard): Enlarge wheel_syms.
10408
10409 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
10410 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
10411
10412 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
10413
10414 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
10415 from WM_MOUSEHWHEEL.
10416 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
10417
10418 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
10419 terminal.
10420
10421 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
10422 keyboard for the terminal.
10423
92cd6a7c
DN
104242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
10425
10426 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
10427 (Vresume_tty_hook): Rename from Vresume_tty_functions.
10428 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
10429 and resume-tty-function to resume-tty-hook.
10430 (Fsuspend_tty, Fresume_tty): Use new names.
10431
880820fe 104322007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
10433
10434 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
10435 if it starts with "n:".
10436
880820fe 104372007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
10438
10439 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
10440
6b8e474c
SM
104412007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10442
92d9c1d4
SM
10443 * frame.h:
10444 * frame.c (Qterm_environment_variable): Remove.
10445 (syms_of_frame): Don't init and staticpro it.
10446
92d9c1d4
SM
10447 * callproc.c (getenv_internal): Remove special case for $TERM.
10448
6b8e474c
SM
10449 * callproc.c (Vinitial_environment): New variable.
10450 (set_initial_environment): Initialize it.
10451 (syms_of_callproc): Declare it.
10452 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
10453 TERM under which a process runs is never related to the TERM in which
10454 Emacs is running.
10455
0f1444e1
DN
104562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
10459 * s/darwin.h: ... do it here.
10460
b8866860
SM
104612007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
10462
10463 * lisp.h (set_initial_environment): Rename from set_global_environment.
10464
10465 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
10466 removed by mistake on the multi-tty branch.
10467
10468 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
10469 (Fmodify_frame_parameters): Return a value.
10470
10471 * image.c (png_load): Comment-out var only used in commented-out code.
10472
10473 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
10474 before passing it to mark_object.
10475
10476 * xfaces.c (internal_resolve_face_name): Return a value.
10477 (internal_resolve_face_name, resolve_face_name_error): Comment out.
10478
10479 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
10480 (x_icon): Comment-out var only used in commented-out code.
10481
0a42be6d
RF
104822007-08-29 Romain Francoise <romain@orebokech.com>
10483
10484 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
10485 QUIT hasn't been provided.
10486
8d9cc0b7
MB
104872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
10488
10489 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 10490 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
10491 (set_initial_environment): Initialise Vprocess_environment.
10492
10493 * config.in: Disable multi-keyboard support on a mac.
10494
10495 * frame.c (Qterm_environment_variable)
10496 (Qdisplay_environment_variable): New variables.
10497 (syms_of_frame): Intern and staticpro them.
10498 (Fmake_terminal_frame): Disable output method test.
10499
10500 * frame.h: Declare them here.
10501
10502 * macfns.c (x_set_mouse_color): Get rif from the frame.
10503 (x_set_tool_bar_lines): Don't use updating_frame.
10504 (mac_window): Add 2 new parameters for consistency with other systems.
10505 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
10506 frame parameters following what is done in X11 and w32. Don't use
10507 FRAME_MAC_DISPLAY_INFO.
10508 (Fx_open_connection, start_hourglass): Remove window-system check.
10509 (x_create_tip_frame): Get the keyboard from the terminal.
10510
10511 * macmenu.c: Reorder includes.
10512 (Fx_popup_menu): Use terminal specific mouse_position_hook.
10513
10514 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
10515 terminal parameter.
10516 (x_clear_frame): Add a frame parameter.
10517 (note_mouse_movement): Get rif from the frame.
10518 (mac_term_init): Initialize the terminal.
10519 (mac_initialize): Make static and move terminal initialization ...
10520 (mac_create_terminal): ... to this new function.
10521
10522 * macterm.h (struct mac_display_info): Add terminal.
7196c970 10523 (mac_initialize): Delete declaration.
8d9cc0b7 10524
381864b2 10525 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
10526
10527 * sysdep.c: Comment out text after #endif.
10528
10529 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
10530 is defined. Better initialize ttys in windows. Use terminal
10531 specific mouse_position_hook.
10532
10533 * termhooks.h (union display_info): Add mac_display_info.
10534
b8866860
SM
10535 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
10536 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
10537 frame parameters following what is done in X11.
10538
10539 * w32term.c (w32_initialize): Make static.
10540
10541 * xselect.c (x_handle_selection_clear): Only access
10542 terminal->kboard when MULTI_KBOARD is defined.
10543
10544 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
10545 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
10546
105472007-08-29 Jason Rumney <jasonr@gnu.org>
10548
10549 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
10550 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
10551
10552 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
10553 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
10554
10555 * keyboard.c (restore_kboard_configuration): Only define when
10556 MULTI_KBOARD defined.
10557
35277b03 10558 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
10559 (OBJ1): Add terminal.$(O)
10560
b8866860
SM
10561 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
10562 Don't define function body.
8d9cc0b7
MB
10563 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
10564
10565 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
10566
10567 * w32.c (request_sigio, unrequest_sigio): Remove.
10568
10569 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
10570 (w32con_clear_frame, w32con_clear_end_of_line)
10571 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
10572 (w32con_delete_glyphs, w32con_set_terminal_window)
10573 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
10574 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
10575 Add terminal arg.
8d9cc0b7
MB
10576 (PICK_FRAME): Remove.
10577 (w32con_write_glyphs): Use frame specific terminal coding.
10578 (one_and_only_w32cons): New global variable.
10579 (initialize_w32_display): Use it for storing hooks.
10580 (create_w32cons_output): New function.
10581
10582 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
10583 arg a frame.
10584
b8866860
SM
10585 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
10586 Set window_system.
8d9cc0b7
MB
10587 (x_set_tool_bar_lines): Don't use updating_frame.
10588 (Fx_create_frame): Set terminal and ref count.
10589 (Fx_open_connection): Remove window-system check.
10590
10591 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
10592
10593 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
10594 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
10595 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
10596 Add frame arg.
10597 (x_delete_terminal, w32_create_terminal): New functions.
10598 (w32_term_init): Create a terminal.
10599 (w32_initialize): Move terminal specific initialization to
10600 w32_create_terminal.
10601
b8866860 10602 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
10603 (w32_clear_rect, w32_clear_area): Use background from frame.
10604 (w32_display_info): Add terminal.
10605 (w32_sys_ring_bell, x_delete_display): Declare here.
10606
10607 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
10608
10609 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
10610
106112007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
10612
10613 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
10614 Fix get_named_tty calls for the controlling tty.
10615
106162007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
10617
10618 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
10619
106202007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
10621
10622 * term.c (tty_insert_glyphs): Add missing first parameter.
10623
880820fe 106242007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 10625
b8866860
SM
10626 * buffer.c (Fbuffer_list, Fbury_buffer):
10627 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
10628
10629 * cm.c (current_tty): New variable, for cmputc().
10630 (cmputc): Use it.
10631 (cmcheckmagic): Add tty parameter, look up terminal streams there.
10632 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
10633 (cmgoto): Add tty parameter. Pass it on to calccost().
10634 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
10635
10636 * cm.h (emacs_tputs): New macro to set current_tty, and then call
10637 tputs().
10638 (current_tty): New variable, for cmputc().
10639 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
10640
10641 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
10642 (internal_condition_case, internal_condition_case_1)
10643 (internal_condition_case_2): Don't abort when x_catching_errors.
10644
10645 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
10646 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
10647 prevent crashes caused by bogus longjmps in read_char.
10648
10649 * keymap.h (Fset_keymap_parent): Add EXFUN.
10650
10651 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
10652 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10653 Remove redundant definition.
10654
b8866860
SM
10655 * macfns.c (x_set_mouse_color, x_make_gc):
10656 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 10657
b8866860
SM
10658 * w32term.c (x_free_frame_resources):
10659 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10660 (w32_initialize): Use the accessor macros for terminal characteristics.
10661
10662 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
10663 Use the accessor macros for terminal characteristics.
10664 * msdos.c (internal_terminal_init): Use the accessor macros for
10665 terminal characteristics.
b8866860
SM
10666 (ScreenVisualBell, internal_terminal_init):
10667 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10668
10669 * termopts.h (no_redraw_on_reenter): Declare.
10670
10671 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 10672 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 10673 (Fgarbage_collect): Call them.
03f06e5c 10674 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
10675
10676 * prefix-args.c: Include stdlib.h for exit.
10677
10678 * syssignal.h: Add comment.
10679
10680 * indent.c: Include stdio.h.
10681
10682 * window.h (Vinitial_window_system): Declare.
10683 (Vwindow_system): Delete declaration.
10684
10685 * fontset.c (Finternal_char_font): Use FRAME_RIF.
10686
10687 * image.c (lookup_image): Don't initialize `c' until the xasserts
10688 have been run.
10689
10690 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
10691 FRAME_FOREGROUND_PIXEL.
10692
10693 * print.c (print_preprocess): Don't lose print_depth levels while
10694 iterating.
10695
b8866860
SM
10696 * widget.c (update_from_various_frame_slots):
10697 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10698
10699 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
10700 frames.
10701 (window_internal_height): Remove bogus make_number call.
b8866860 10702 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
10703
10704 * fileio.c (Fread_file_name): Update comment.
10705
b8866860
SM
10706 * callint.c (Fcall_interactively):
10707 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
10708 Make sure it is correctly unwound.
10709
10710 * xsmfns.c (x_session_close): New function.
10711
03f06e5c 10712 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
10713 Delete declarations.
10714
10715 * xterm.h: Remove declaration for x_fully_uncatch_errors.
10716 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 10717 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 10718 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
10719
10720 * lread.c: Include setjmp.h. Update declaration of `read_char'.
10721 (read_filtered_event): Call `read_char' with a local
10722 `wrong_kboard_jmpbuf'.
10723
b8866860
SM
10724 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
10725 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
10726
10727 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
10728 systems.
10729
b8866860 10730 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 10731 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 10732 (Fset_quit_char): EXFUN.
03f06e5c 10733 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
10734 (init_sys_modes, reset_sys_modes): Update prototypes.
10735 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
10736
b8866860
SM
10737 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
10738 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 10739 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 10740 Delete declarations.
03f06e5c
JB
10741 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
10742 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
10743 New declarations.
10744
10745 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
10746 already does that during init_display(). Call syms_of_keymap
b8866860
SM
10747 before syms_of_keyboard. Call `syms_of_terminal'.
10748 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
10749 (shut_down_emacs): Call reset_all_sys_modes() instead of
10750 reset_sys_modes().
10751
10752 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
10753 (internal_resolve_face_name, resolve_face_name_error): New functions.
10754 (resolve_face_name): Protect against loops and errors thrown by Fget.
10755 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
10756 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
10757
10758 * scroll.c: Replace CURTTY() with local variables throughout the
10759 file (where applicable).
10760 (calculate_scrolling, calculate_direct_scrolling)
10761 (scrolling_1, scroll_cost): Use the accessor macros for terminal
10762 characteristics.
10763
10764 * keymap.c (Vfunction_key_map): Remove.
b8866860 10765 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
10766 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
10767 (Vkey_translation_map): Remove.
10768 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 10769 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
10770 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
10771 Update for terminal-local key-translation-map.
10772
10773 * Makefile.in (callproc.o): Update dependencies.
10774 (lisp, shortlisp): Add termdev.elc.
10775 (obj): Add terminal.o.
10776 (terminal.o): Add dependencies.
10777 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
10778 (data.o, fns.o): Add termhooks.h dependency.
10779 (SOME_MACHINE_LISP): Add dnd.elc.
10780 (minibuf.o): Fix typo.
10781 Update dependencies.
10782
10783 * data.c (do_symval_forwarding, store_symval_forwarding)
10784 (find_symbol_value): Use the selected frame's keyboard, not
10785 current_kboard.
10786
10787 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
10788 Vwindow_system.
10789
10790 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
10791 Fmenu_bar_open.
10792 (syms_of_xmenu): Update defsubr.
10793 (mouse_position_for_popup, Fx_popup_menu)
10794 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
10795 (set_frame_menubar, free_frame_menubar)
10796 (create_and_show_popup_menu, xmenu_show, )
10797 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
10798 an X frame.
10799
10800 * xselect.c (x_own_selection): Abort if not an X frame.
10801 (some_frame_on_display): Check if it is an X frame.
10802 (x_handle_selection_clear): Deal with MULTI_KBOARD.
10803
10804 * coding.c: Include frame.h and termhooks.h.
03f06e5c 10805 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
10806 (Fset_terminal_coding_system_internal)
10807 (Fset_keyboard_coding_system_internal)
10808 (Fkeyboard_coding_system)
03f06e5c
JB
10809 (Fterminal_coding_system): Add a terminal parameter.
10810 Get terminal_coding from the terminal.
8d9cc0b7
MB
10811 (init_coding_once): Don't call setup_coding_system here.
10812
10813 * dispextern.h (set_scroll_region, turn_off_insert)
10814 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
10815 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 10816 (delete_tty, updating_frame)
8d9cc0b7
MB
10817 (produce_special_glyphs, produce_glyphs, write_glyphs)
10818 (insert_glyphs): Remove.
10819 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 10820 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 10821 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
10822
10823 * frame.h (enum output_method): Add output_initial.
10824 (struct x_output): Delete.
b8866860
SM
10825 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
10826 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
10827 (tty_display): Delete.
10828 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 10829 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
10830 (union output_data): Add tty.
10831 (FRAME_KBOARD): Get the kboard from the terminal.
10832 (FRAME_INITIAL_P): New macro.
10833 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
10834 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
10835 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
10836 New declarations.
8d9cc0b7
MB
10837
10838 * termchar.h (tty_output, tty_display_info): New structures.
10839 (tty_list): Declare.
10840 (FRAME_TTY, CURTTY): New macros.
10841 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
10842 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
10843 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
10844 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
10845
10846 * callproc.c: Include frame.h and termhooks.h, for terminal
10847 parameters.
10848 (add_env): New function.
10849 (child_setup): Use it.
b8866860 10850 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
10851 (getenv_internal): Fix get_terminal_param call.
10852 (Fgetenv_internal, egetenv): Update doc.
10853 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 10854 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
10855 strings.
10856 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
10857 (getenv_internal): Add terminal parameter.
10858 Handle Vlocal_environment_variables.
8d9cc0b7
MB
10859 (Fgetenv_internal): Add terminal parameter.
10860 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 10861 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
10862 (set_initial_environment): Rename from set_global_environment.
10863 Store Emacs environment in initial frame parameter.
10864
10865 * xdisp.c (redisplay_internal): Update references to
10866 `previous_terminal_frame'.
10867 (display_mode_line, Fformat_mode_line): Replace calls to
10868 `push_frame_kboard' with `push_kboard'.
10869 (get_glyph_string_clip_rects): Add extra parentheses and
10870 braces to prevent compiler warnings.
10871 (calc_pixel_width_or_height): Add xassert to check that the
10872 frame is alive. Don't call `lookup_image' on a termcap frame.
10873 (message2_nolog, message3_nolog, redisplay_internal)
10874 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
10875 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
10876 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
10877 (Fx_display_pixel_width, Fx_display_pixel_height)
10878 (Fx_display_planes, Fx_display_color_cells)
10879 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
10880 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
10881 (Fx_display_backing_store, Fx_display_visual_class)
10882 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 10883 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
10884
10885 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
10886 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
10887 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
10888 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
10889 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
10890 terminal that is being deleted.
10891 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 10892 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
10893 (Fx_close_connection, Fx_synchronize): Unify argument names with
10894 the rest of the DEFUNs.
10895
10896 * dispnew.c (Fsend_string_to_terminal): Update call to
10897 `get_tty_terminal'.
10898 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 10899 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
10900 FRAME_TERMCAP_P and FRAME_TTY.
10901 (window_change_signal): Don't believe width/height values that are
10902 impossibly small.
10903 (Vinitial_window_system): Rename from Vwindow_system.
10904 (termscript, Wcm, rif): Delete.
10905
10906 * termhooks.h (struct terminal): New struct containing the
10907 previously global text display hooks and new members NAME,
10908 DELETED and PARAM_ALIST.
10909 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
10910 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
10911 (FRAME_RIF): New macros.
10912 (get_terminal_param, get_device): New declarations.
10913 (termscript): Delete declaration.
10914
10915 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
10916 (XTflash, x_free_frame_resources, x_scroll_bar_create)
10917 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
10918 FRAME_FOREGROUND_PIXEL.
10919 (x_fully_uncatch_errors): Disable definition.
10920 (x_scroll_bar_expose): Fix reference to foreground pixel.
10921 (XTread_socket): Disable loop on all X displays.
10922 (x_delete_terminal): Don't set terminal->deleted and let
10923 delete_terminal delete the frames on the terminal.
10924 (x_delete_display): Doc update to reflect changes in
10925 delete_terminal.
10926 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
10927 (deleting_tty): Remove old variable.
10928 (Fsuspend_tty): Call clear_tty_hooks.
10929 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
10930 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
10931 errors on X frames.
10932 (x_catch_errors_unwind): Abort if x_error_message is NULL.
10933 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 10934 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
10935 (XTset_terminal_modes, XTreset_terminal_modes)
10936 (XTread_socket, x_connection_closed, x_term_init)
10937 (x_term_init, x_delete_display): Add terminal parameter.
10938 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
10939 X connections.
10940
bf380f53
GM
10941 * frame.c: Include termchar.h.
10942 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
10943 (Qwindow_system, Qenvironment, Qterm_environment_variable)
10944 (Qdisplay_environment_variable): New vars.
10945 (Fframep): Deal with output_initial.
10946 (Fframe-live-p): Doc fix.
10947 (Fwindow-system): New function.
8d9cc0b7
MB
10948 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
10949 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 10950 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 10951 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
10952 (Fmake_terminal_frame): Handle NULL tty names correctly.
10953 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
10954 (Fdelete_frame): Remove unused variable `count'. Don't allow other
10955 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 10956 (Fframe_with_environment): New function.
b8866860 10957 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
10958 (get_future_frame_param): New function.
10959 (Fmake_terminal_frame): Use it.
2d33f506 10960 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
10961
10962 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
10963 * sysdep.c (reset_sys_modes): Update for renames.
10964
10965 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 10966 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
10967 (syms_of_keyboard): Defsubr them.
10968 (Fset_input_meta_mode, Fset_quit_char): New functions.
10969 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
10970 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
10971 parameter. Use it in call to `read_char'.
b8866860
SM
10972 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
10973 Set wrong_kboard_jmpbuf correctly in recursive calls.
10974 Use current_kboard to access Vkeyboard_translate_table.
10975 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
10976 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
10977 Update longjmp invocations. Remember the original current_kboard,
10978 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
10979 changes it. Comment out unnecessary calls to
10980 `record_single_kboard_state' and `any_kboard_state'.
10981 Update recursive calls.
8d9cc0b7
MB
10982 (wrong_kboard_jmpbuf): Remove global variable.
10983 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
10984 Handle deleted interrupted_kboards correctly; that is a legal
10985 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 10986 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
10987 (any_kboard_state, single_kboard_state)
10988 (push_frame_kboard): Remove function.
10989 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
10990 been deleted. Remove unused variable. Help debugging by not
10991 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
10992 kboard of the selected frame when the stored kboard object has
10993 been deleted before pop_kboard.
10994 (temporarily_switch_to_single_kboard): Change first parameter to a
10995 frame pointer. Throw an error when caller wants to change kboards
10996 while in single_kboard mode. Don't push_kboard if we weren't in
10997 single kboard state. Don't pop_kboard if we popped into any
10998 kboard state.
10999 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 11000 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
11001 up single_kboard mode.
11002 (Frecursive_edit): Switch to single_kboard mode only in nested
11003 command loops.
b8866860
SM
11004 (cmd_error, command_loop, command_loop_1, timer_check):
11005 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
11006 `record_single_kboard_state'.
11007 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 11008 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
11009 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
11010 `fatal_error_signal'.
11011 (record_single_kboard_state): Don't push_kboard if we weren't in
11012 single kboard state. Don't pop_kboard if we popped into any
11013 kboard state.
11014 (push_frame_kboard): Rename to push_kboard.
11015 (kbd_buffer_get_event): Use FRAME_TERMINAL.
11016 (read_avail_input): Read input from all terminals.
11017 (mark_kboards): Also mark Vkeyboard_translate_table.
11018 (kbd_buffer_store_event_hold): Simplify condition.
11019 (read_key_sequence): Reinitialize fkey and keytran at each replay.
11020 (Vkeyboard_translate_table): Move to struct kboard.
11021 (init_kboard): Initialize Vkeyboard_translate_table.
11022 (syms_of_keyboard): Use DEFVAR_KBOARD to define
11023 Vkeyboard_translate_table. Update doc strings. Update docs of
11024 local-function-key-map and function-key-map.
11025
11026 * terminal.c: New file.
11027
11028 * term.c: Include errno.h.
11029 (Vring_bell_function, device_list, initial_device)
11030 (next_device_id, ring_bell, update_begin, update_end)
11031 (set_terminal_window, cursor_to, raw_cursor_to)
11032 (clear_to_end, clear_frame, clear_end_of_line)
11033 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
11034 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
11035 (syms_of_term): Move their initialization to terminal.c.
11036 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
11037 (Ftty_display_color_cells)
11038 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 11039 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
11040 (init_tty, maybe_fatal): New functions.
11041 (Ftty_type): Return nil if terminal is not on a tty instead of
11042 throwing an error. Doc update.
11043 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 11044 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
11045 (delete_tty): Use terminal->deleted.
11046 (tty_set_terminal_modes): Rename from set_terminal_modes.
11047 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
11048 (set_scroll_region): Rename to `tty_set_scroll_region'.
11049 (turn_on_insert): Rename to `tty_turn_on_insert'.
11050 (turn_off_insert): Rename to `tty_turn_off_insert'.
11051 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
11052 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
11053 (toggle_highligh): Rename to `tty_toggle_highlight'.
11054 (background_highlight): Rename to `tty_background_highlight'.
11055 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
11056 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
11057 (tty_set_scroll_region, tty_background_highlight)
11058 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
11059 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
11060 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
11061 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
11062 Add static modifier.
11063 (tty_reset_terminal_modes, tty_set_terminal_window)
11064 (tty_set_scroll_region, tty_background_highlight)
11065 (tty_highlight_if_desired, tty_cursor_to)
11066 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
11067 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
11068 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
11069 renames.
11070
880820fe 110712007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
11072
11073 * keyboard.c: Qrtl is new.
11074 (parse_tool_bar_item): Handle :rtl keyword.
11075 (syms_of_keyboard): Intern :rtl keyword.
11076
11077 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
11078
11079 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
11080 so no Lisp code is executed.
11081 (file_for_image, find_rtl_image): New functions.
1f204af3 11082 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
11083 (update_frame_tool_bar): If direction is RTL, use RTL image if
11084 defined. Use Gtk stock images if defined.
11085
83cc8d35
YM
110862007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11087
11088 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
11089 for nonexistent or zero-width glyph in composition glyph.
11090
e60c4e15
SM
110912007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
11092
d7e2a28f
SM
11093 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
11094
e60c4e15
SM
11095 * xdisp.c (Finvisible_p): New function.
11096 (syms_of_xdisp): defsubr it.
11097
ee163e6d
JB
110982007-08-24 Juanma Barranquero <lekktu@gmail.com>
11099
11100 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
11101 Doc fixes.
11102
90fa408d
YM
111032007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11104
35277b03 11105 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 11106
cac4219c
MR
111072007-08-24 Martin Rudalics <rudalics@gmx.at>
11108
11109 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
11110 whether decoding has modified buffer contents.
11111
5fc9fdeb
JR
111122007-08-24 Jason Rumney <jasonr@gnu.org>
11113
11114 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
11115 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
11116 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
11117 (init_svg_functions) [HAVE_NTGUI]: New function.
11118 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
11119 (svg_load_image): Use them.
11120 (svg_load_image) [HAVE_NTGUI]: Implement background.
11121
93b23406
YM
111222007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11123
11124 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
11125 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
11126 (LIBX): Remove @RSVG_LIBS@.
11127 (LIBES): Add $(RSVG_LIBS).
11128
11129 * image.c (svg_load_image): Blend with specified background if exists.
11130 Use IMAGE_BACKGROUND. Add Mac OS Support.
11131
11132 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
11133 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
11134 Remove macros.
11135 [MAC_OSX] (socket_callback): Do nothing.
11136 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
11137 ReceiveNextEvent.
11138 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
11139 socket_callback.
11140 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
11141
2467875c
GM
111422007-08-22 Glenn Morris <rgm@gnu.org>
11143
ff8da443 11144 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 11145
4ab27a43
GM
111462007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
11147
11148 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 11149
666e0eda
GM
11150 * image.c: Add support for SVG images. Some additional comments
11151 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
11152 (svg_image_p): New function to test for SVG image.
11153 (svg_load): New function to load SVG image.
11154 (svg_load_image): New function, helper for svg_load.
11155 (Qsvg): New Lisp_object.
11156 (svg_keyword_index): New enum.
11157 (svg_format): New static `image_keyword' struct.
11158 (svg_type): New static `image_type' struct.
11159 (librsvg/rsvg.h): Include it.
4ab27a43 11160
b636b4c1
SM
111612007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
11162
11163 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
11164
9ecb827b
SM
111652007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
11166
1d064697
SM
11167 * lread.c (Qold_style_backquotes): New var.
11168 (syms_of_lread): Init and staticpro it.
11169 (load_warn_old_style_backquotes): New fun.
11170 (Fload): Use them to warn about old style backquotes.
11171 (end_of_file_error, Fload): Remove unused vars.
11172
5772ed4b
SM
11173 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
11174
9ecb827b 11175 * lread.c (Vold_style_backquotes): New var.
5aa273b0 11176 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
11177 (read1): Set it when we find an old-style (back)quote.
11178
32e1c7b1
JR
111792007-08-22 Jason Rumney <jasonr@gnu.org>
11180
11181 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
11182
b8fa755b
KY
111832007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
11184
11185 * puresize.h (BASE_PURESIZE): Increase to 1140000.
11186
1283140e
RS
111872007-08-19 Richard Stallman <rms@gnu.org>
11188
11189 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
11190
2c4685ee
AS
111912007-08-19 Andreas Schwab <schwab@suse.de>
11192
11193 * alloc.c (pure): Round PURESIZE up.
11194
880820fe 111952007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
11196
11197 * xterm.c (handle_one_xevent): Remove check that mouse click is in
11198 active frame.
11199
6e33efc4
RS
112002007-08-16 Richard Stallman <rms@gnu.org>
11201
11202 * eval.c (Fcommandp): Add parens to clarify.
11203
11204 * minibuf.c (Fall_completions): Use enum for type of table.
11205
11206 * emacs.c (USAGE2): Improve text.
11207
fcf8ff2e
GM
112082007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
11209
5205ee62
GM
11210 * term.c (tty_default_color_capabilities): Declare static
11211 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 11212
880820fe 112132007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
11214
11215 * gtkutil.c (update_frame_tool_bar): Use -1 as index
11216 to gtk_toolbar_insert.
11217
4a181359
SM
112182007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
11219
1bc99c9c
SM
11220 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
11221
4a181359
SM
11222 * insdel.c (reset_var_on_error): New fun.
11223 (signal_before_change, signal_after_change):
11224 Use it to reset (after|before)-change-functions to nil in case of error.
11225 Bind inhibit-modification-hooks to t.
11226 Don't bind (after|before)-change-functions to nil while they run.
11227
6c28435c
YM
112282007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11229
11230 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
11231 filling pixmap with stippled background.
11232
ad3b3e02
YM
112332007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11234
11235 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
11236 Don't use invisible frame as parent window for repositioning.
11237
a22dec27
SM
112382007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
11239
11240 * print.c (new_backquote_output): Rename from old_backquote_output.
11241 (print): Inverse its logic (according to its name) so as to match the
11242 behavior of new_backquote_flag in lread.c.
11243
7b7d07bb
YM
112442007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11245
11246 * gmalloc.c (posix_memalign): New function.
11247
11248 * macterm.c (frame_highlight, frame_unhighlight): Don't call
11249 ActivateControl/DeactivateControl here.
11250 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
11251 frame-notice-user-settings is non-nil.
11252 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
11253 for kEventParamFMFontStyle.
11254 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
11255 mac_pass_command_to_system and mac_pass_control_to_system here.
11256 (XTread_socket): Call ActivateControl/DeactivateControl here.
11257 (XTread_socket) [TARGET_API_MAC_CARBON]:
11258 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
11259 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
11260 for window repositioning.
7b7d07bb 11261
22e9fe24
GM
112622007-08-08 Glenn Morris <rgm@gnu.org>
11263
11264 * Replace `iff' in doc-strings and comments.
11265
ae494350
CY
112662007-08-07 Chong Yidong <cyd@stupidchicken.com>
11267
11268 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
11269
6f2528d8
MR
112702007-08-07 Martin Rudalics <rudalics@gmx.at>
11271
11272 * fileio.c (Finsert_file_contents): Run format-decode and
11273 after_insert_file_functions on entire buffer when REPLACE is
11274 non-nil and inhibit modification_hooks and point_motion_hooks.
11275 For consistency, run after_insert_file_functions iff something
11276 got inserted. Move signal_after_change and update_compositions
11277 after code running after_insert_file_functions. Make sure that
6b8e474c 11278 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 11279
3ceeb306
YM
112802007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11281
11282 * emacs.c (main)
11283 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
11284 Call malloc_enable_thread on interactive startup.
11285
11286 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
11287 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
11288 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
11289 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11290 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
11291 New functions.
11292
ca5e6fd5
CY
112932007-08-06 Chong Yidong <cyd@stupidchicken.com>
11294
32bfce5d
CY
11295 * xdisp.c (redisplay_window): When restoring original buffer
11296 position, make sure it is still valid.
11297
ca5e6fd5
CY
11298 * image.c (png_load): Ignore png-supplied background color.
11299
a5b11587
YM
113002007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11301
11302 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
11303 Use kCFAbsoluteTimeIntervalSince1970.
11304
11305 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
11306 New variable.
11307 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
11308 event loop should be quit.
11309 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
11310 Quit dialog event loop if quit_dialog_event_loop is set.
11311
11312 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
11313 (Selection): New typedef. Use instead of ScrapRef.
11314 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
11315 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
11316 (mac_clear_selection): Rename from clear_scrap.
11317 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 11318 scrap_has_target_type. All uses changed.
a5b11587
YM
11319 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11320 (mac_selection_has_target_p): New functions.
11321 (mac_put_selection_value): Rename from put_scrap_string.
11322 (mac_get_selection_value): Rename from get_scrap_string.
11323 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
11324 (put_scrap_private_timestamp, scrap_has_target_type)
11325 (get_scrap_private_timestamp): Remove functions.
11326 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
11327 (x_own_selection, x_get_local_selection):
11328 Use mac_valid_selection_value_p.
11329 (x_own_selection): Don't use put_scrap_private_timestamp.
11330 Record OWNERSHIP-INFO into Vselection_alist instead.
11331 (x_get_local_selection): Don't check type if request is local.
11332 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
11333 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
11334
880820fe 113352007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
11336
11337 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
11338 add comment explaining why.
11339
73ff9d42
RS
113402007-08-03 Richard Stallman <rms@gnu.org>
11341
11342 * fileio.c (Fvisited_file_modtime): Use make_time.
11343
54ed9a2d 113442007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
11345
11346 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
11347 build.
11348
65a9c8e2
SM
113492007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
11350
11351 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
11352
c5925799
KY
113532007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
11354
11355 * puresize.h (BASE_PURESIZE): Increase to 1130000.
11356
adef3de7
RS
113572007-07-30 Richard Stallman <rms@gnu.org>
11358
11359 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
11360
880820fe 113612007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
11362
11363 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
11364
a10421a1
NR
113652007-07-28 Nick Roberts <nickrob@snap.net.nz>
11366
11367 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
11368 remote default-directory.
11369
11370 * buffer.c (mode-line-format): Update doc string.
11371
0cb1ae20
YM
113722007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11373
11374 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
11375 scroll bar gap.
11376 (x_scroll_bar_create): Set bar->fringe_extended_p.
11377 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
11378 on frame edge. Check fringe background extension. Don't clear
11379 extended fringe background area.
11380
11381 * w32term.h (struct scroll_bar): New member fringe_extended_p.
11382 (w32_fill_area): Enclose multiple statements with do ... while (0).
11383
11384 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
11385 Extend fringe background to scroll bar gap.
11386 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
11387 Set bar->fringe_extended_p.
11388 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11389 Put leftmost/rightmost scroll bars on frame edge. Check fringe
11390 background extension. Don't clear extended fringe background area.
11391
11392 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
11393 New member fringe_extended_p.
11394
cacc7b51
GM
113952007-07-25 Glenn Morris <rgm@gnu.org>
11396
11397 * Relicense all FSF files to GPLv3 or later.
11398
11399 * COPYING: Switch to GPLv3.
11400
89835619
SM
114012007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
11402
c4f46926
SM
11403 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
11404
11405 * data.c (Finteractive_form): Check for the presence of an
11406 `interactive-form' symbol property more thoroughly.
11407
11408 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
11409 present, analogous to the function-documentation property.
11410
ee04257d
JR
114112007-07-24 Jason Rumney <jasonr@gnu.org>
11412
11413 * w32fns.c (x_real_positions): Get real position from OS instead of
11414 calculating it.
11415
50624218
JR
114162007-07-23 Jason Rumney <jasonr@gnu.org>
11417
11418 * filelock.c (current_lock_owner): Allow for @ sign in username.
11419
3650f60e
NR
114202007-07-22 Nick Roberts <nickrob@snap.net.nz>
11421
11422 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
11423 remote default-directory.
11424
11425 * buffer.c (mode-line-format): Describe above case in doc string.
11426
1e899515 114272007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 11428
75be5258
EZ
11429 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
11430 Define if not defined.
11431
2b6e2f4d
JR
114322007-07-18 Jason Rumney <jasonr@gnu.org>
11433
11434 * w32proc.c (w32_executable_type): Handle 64 bit executables.
11435
23dacf80
JB
114362007-07-18 Richard Stallman <rms@gnu.org>
11437
11438 * data.c (Fsetq_default): Doc fix.
11439
11440 * eval.c (Fsetq): Doc fix.
11441
114422007-07-18 Juanma Barranquero <lekktu@gmail.com>
11443
11444 * coding.c (Ffind_operation_coding_system):
11445 * eval.c (For, Fand): Doc fixes.
880820fe 11446 Reported by Johan Bockgård.
23dacf80 11447
880820fe 114482007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 11449
23dacf80 11450 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 11451
23dacf80 11452 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
11453
11454 * xterm.c (x_ewmh_activate_frame): New function.
11455 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
11456
71ec17e6
MR
114572007-07-17 Martin Rudalics <rudalics@gmx.at>
11458
11459 * window.c (Fdisplay_buffer): If largest or LRU window is the
11460 only window, split it even if it is not eligible for splitting.
11461 This restores the original behavior broken by the 2007-07-15
11462 change.
11463
e9818042
GM
114642007-07-17 Glenn Morris <rgm@gnu.org>
11465
11466 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
11467 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11468 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
11469 constituents. Doc fix.
11470
e6fca843
SM
114712007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11472
11473 * process.c (Fstart_process, Fmake_network_process)
11474 (read_process_output): Fix up last changes.
11475
b5d2b4ab
EZ
114762007-07-16 Eli Zaretskii <eliz@gnu.org>
11477
11478 * makefile.w32-in (clean): Don't delete *~.
11479
413a79ad
AS
114802007-07-16 Andreas Schwab <schwab@suse.de>
11481
11482 * window.c (Fdisplay_buffer): Use NILP.
11483 (Fset_window_scroll_bars): Likewise.
11484
f1de8c77
MR
114852007-07-15 Martin Rudalics <rudalics@gmx.at>
11486
11487 * window.c (window_min_size_2): New function.
11488 (window_min_size_1, size_window, Fdisplay_buffer)
11489 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
11490 windows without mode- or header-lines when window-min-height is
11491 too small.
11492 (size_window): Reset nodelete_p after testing it, following an
11493 earlier note by Kim F. Storm.
11494 (display_buffer): Do not set split_height_threshold to twice the
11495 value of window_min_height to avoid changing the value of a
11496 customizable variable. Rather explicitly check whether the
11497 height of the window that shall be splitted is at least as large
11498 as split_height_threshold.
1af74d06
MB
11499 (Fwindow_full_width_p): New defun.
11500 (syms_of_window): Defsubr it.
d31053f9 11501
1af74d06 11502 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 11503
5e1ab613
JR
115042007-07-14 Jason Rumney <jasonr@gnu.org>
11505
11506 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
11507
f01cbfdd
RS
115082007-07-14 Richard Stallman <rms@gnu.org>
11509
11510 * eval.c (maybe_call_debugger): New function.
11511 (find_handler_clause): Use maybe_call_debugger.
11512 Call it when the handler says `debug'.
11513 Eliminate DEBUGGER_VALUE_PTR.
11514 (Fsignal): Eliminate debugger_value.
11515 (Qdebug): New variable.
11516 (syms_of_eval): Initialize it.
11517
1bab435a
JB
115182007-07-14 Juanma Barranquero <lekktu@gmail.com>
11519
11520 * eval.c (Fprogn):
11521 * keyboard.c (Ftrack_mouse):
11522 * print.c (Fwith_output_to_temp_buffer):
11523 * window.c (Fsave_window_excursion): Doc fix.
11524
be436d23
SM
115252007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
11526
11527 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
11528
60f0fb11
SM
115292007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
11530
11531 * process.h (struct Lisp_Process): Turn slots infd, outfd,
11532 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
11533 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
11534 read_output_delay, and read_output_skip from Lisp_Objects to ints.
11535 Remove unused encoding_carryover.
11536 * process.c: Adjust all functions accordingly.
11537
d8b18043
RS
115382007-07-12 Richard Stallman <rms@gnu.org>
11539
11540 * term.c: Include unistd.h only if HAVE_UNISTD_H.
11541
d5781bb6
JR
115422007-07-11 Jason Rumney <jasonr@gnu.org>
11543
11544 * makefile.w32-in (LIBS): Include OLE32.
11545
11546 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
11547 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
11548
5bb7dfee
SM
115492007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
11550
11551 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
11552 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
11553 from a Lisp_Object into a bare pointer.
11554 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11555 Adjust the code correspondingly.
11556
11557 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
11558
11559 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
11560 (term_show_mouse_face): Remove unused var `j'.
11561 (handle_one_term_event): Remove unused vars `i' and `j'.
11562 Don't cast return value of ttyname since it's not necessary.
11563
a1be1ce8
SM
115642007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
11565
5045e68e
SM
11566 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
11567 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
11568
8071c00f
SM
11569 * fns.c (map_char_table): Use an array of int for `indices' rather than
11570 an array of Lisp_Objects (which are only ever integers anyway).
11571 (Fmap_char_table): Update caller.
11572 * lisp.h: Update prototype.
11573 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
11574 * fontset.c (Ffontset_info):
11575 * casetab.c (set_case_table): Update callers.
11576
11577 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
11578
fab84e3c
SM
11579 * keymap.c (struct accessible_keymaps_data)
11580 (struct where_is_internal_data): New structures.
11581 (accessible_keymaps_1, where_is_internal_1): Use them to change
11582 interface to adhere to the one used by map_keymap.
11583 (Faccessible_keymaps, where_is_internal): Use map_keymap.
11584 (accessible_keymaps_char_table, where_is_internal_2): Remove.
11585
a1be1ce8
SM
11586 * keymap.h (map_keymap_function_t): More informative prototype.
11587
ef887810
RS
115882007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
11589
11590 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
11591 (looking_at_1): Don't change search_regs and last_thing_searched
11592 if `inhibit-changing-match-data' is non-nil.
11593 (string_match_1, search_buffer, set_search_regs): Likewise.
11594 (syms_of_search): Add Lisp level definition for
11595 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
11596 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
11597 start and end of the match, instead of using values in search_regs.
ef887810 11598
4d02fc25
SM
115992007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
11600
11601 * minibuf.c (Fcompleting_read): New value `confirm-only'
11602 for `require-match'.
11603
fe45b81f
SM
116042007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
11605
11606 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
11607 part of the 2007-06-27 change to syms_of_fileio.
11608
a56dd283
YM
116092007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11610
11611 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
11612 Check WINDOWP before using XWINDOW. Consolidate return statements.
11613
0cf9f5b5
RS
116142007-06-27 Richard Stallman <rms@gnu.org>
11615
11616 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11617
a66f285a
JB
116182007-06-27 Juanma Barranquero <lekktu@gmail.com>
11619
11620 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
11621
8d0d84d2
YM
116222007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11623
11624 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
11625 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
11626 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
11627 (_free_internal, memalign): Use them.
11628 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
11629 Initialize to PTHREAD_MUTEX_INITIALIZER.
11630 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
11631 (morecore_nolock): Rename from morecore. All uses changed.
11632 Use only nolock versions of internal allocation functions.
11633 (_malloc_internal_nolock, _realloc_internal_nolock)
11634 (_free_internal_nolock): New functions created from
11635 _malloc_internal, _realloc_internal, and _free_internal.
11636 (_malloc_internal, _realloc_internal, _free_internal): Use them.
11637 Copy hook value to automatic variable before its use.
11638 (memalign): Copy hook value to automatic variable before its use.
11639
5a0bbd9a
KH
116402007-06-26 Kenichi Handa <handa@m17n.org>
11641
11642 * coding.c (Ffind_operation_coding_system): Docstring improved.
11643 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
11644
9a51747b
DK
116452007-06-25 David Kastrup <dak@gnu.org>
11646
11647 * keymap.c (Fcurrent_active_maps): Add `position' argument.
11648 (Fwhere_is_internal): Adjust call to `current-active-maps' to
11649 cater for additional parameter.
11650
11651 * keymap.h: Adjust number of parameters to `current-active-maps'.
11652
11653 * doc.c (Fsubstitute_command_keys): Adjust call of
11654 `current-active-maps'.
11655
e4305426
DK
116562007-06-25 David Kastrup <dak@gnu.org>
11657
11658 * callint.c (Fcall_interactively): Make the parsing of interactive
11659 specs somewhat more readable.
11660
511a18d9
YM
116612007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11662
11663 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
11664 to scroll bar gap also when bitmap fills fringe. Draw only foreground
11665 if extended background has already been filled.
11666
512eb161
YM
116672007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11668
11669 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
11670 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
11671
11672 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
11673 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
11674 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
11675 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
11676 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
11677 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
11678 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
11679 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
11680 Run timers during dialog popup.
11681 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
11682
2386b1f1
JR
116832007-06-21 Jason Rumney <jasonr@gnu.org>
11684
11685 * image.c (convert_mono_to_color_image): Swap fore and background.
11686
fab8b787
JR
116872007-06-20 Jason Rumney <jasonr@gnu.org>
11688
11689 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
11690 (w32_free_bdf_font): Unmap memory not handle.
11691
15bdd7a0 116922007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
11693
11694 * gmalloc.c (__morecore): Fix the declaration to comply with the
11695 definition.
11696
1bb8a291
JB
116972007-06-20 Juanma Barranquero <lekktu@gmail.com>
11698
11699 * w32term.c (w32_delete_display): Remove leftover declaration.
11700 (w32_define_cursor, w32_initialize): Make static.
11701
11702 * w32.c (_wsa_errlist): Fix typo in error message.
11703 (init_environment): Ignore any environment variable from the
11704 registry having a null value.
11705
92648dea
GM
117062007-06-20 Glenn Morris <rgm@gnu.org>
11707
11708 * Makefile.in (LIBGIF): Default to -lgif.
11709
ff25d115
JR
117102007-06-17 Jason Rumney <jasonr@gnu.org>
11711
11712 * w32menu.c (add_menu_item): Don't use multibyte string functions on
11713 unicode strings.
11714
a1a578a5
JB
117152007-06-16 Juanma Barranquero <lekktu@gmail.com>
11716
11717 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
11718 Fix typo in docstring.
11719
af41f8a8
EZ
117202007-06-16 Eli Zaretskii <eliz@gnu.org>
11721
11722 * w32menu.c (add_menu_item): Escape `&' characters in menu items
11723 and their keybindings.
11724
8b29cab9
CY
117252007-06-15 Chong Yidong <cyd@stupidchicken.com>
11726
11727 * composite.c (update_compositions): Fix last fix.
11728
c433c134
JR
117292007-06-14 Jason Rumney <jasonr@gnu.org>
11730
11731 * w32.c (get_process_times_fn): New function pointer.
11732 (globals_of_w32): Intialize it if present in kernel32.dll.
11733 (w32_get_internal_run_time): New function.
11734
11735 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
11736
553d3164
KH
117372007-06-14 Kenichi Handa <handa@etlken.m17n.org>
11738
11739 * composite.c (update_compositions): Check the validness of
11740 compositions.
11741
446ba96f
YM
117422007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11743
11744 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
11745 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
11746
11747 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
11748 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
11749
11750 * macgui.h (USE_MAC_TOOLBAR): New define.
11751
11752 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11753 Return immediately unless popup is activated.
11754
11755 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
11756 background to scroll bar gap.
11757 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
11758 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
11759 scroll bars on frame edge. Check fringe background extension.
11760 Don't clear extended fringe background area.
11761 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
11762 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
11763 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
11764 [USE_MAC_TOOLBAR]: New macros.
11765 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
11766 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
11767 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
11768 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
11769 [USE_MAC_TOOLBAR]: New functions.
11770 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
11771 manually if previous repositioning has failed.
11772 (mac_handle_keyboard_event): Use precomputed event kind.
11773 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
11774 as tool bar item click. Handle mouse movement over tool bar items.
11775
11776 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
11777 toolbar_win_gravity.
11778 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
11779 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
11780 Add externs.
11781
11782 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
11783 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
11784
9720173f
CY
117852007-06-14 Chong Yidong <cyd@stupidchicken.com>
11786
11787 * image.c (search_image_cache): Remove unused variable.
11788
1217dd00
CY
117892007-06-13 Chong Yidong <cyd@stupidchicken.com>
11790
11791 * xfns.c, xmenu.c: Link to xaw3d if available.
11792
c5b8e0ea
YM
117932007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11794
11795 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
11796 frame_foreground and frame_background.
11797
11798 * image.c (lookup_image): Save frame foreground and background colors.
11799 (search_image_cache): Check if saved and current frame colors match.
11800
c69b0314
SM
118012007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11802
11803 * regex.c (regex_compile): Remove the `regnum' counter.
11804 Use bufp->re_nsub instead. Add support for \(?N:RE\).
11805
c9612b8e
SM
118062007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11807
11808 * term.c: Include intervals.h to declare Fget_text_property.
11809
843d2458
JR
118102007-06-10 Jason Rumney <jasonr@gnu.org>
11811
11812 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
11813
1e0d2d60 118142007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
11815
11816 * callint.c (Fcall_interactively):
11817 * editfns.c (Fdelete_and_extract_region):
11818 * fileio.c (Fread_file_name):
11819 * fns.c (Fmapconcat):
11820 * keyboard.c (cmd_error_internal):
11821 * keymap.c (Fkey_description):
11822 * lread.c (openp):
11823 * minibuf.c (read_minibuf):
11824 * search.c (wordify):
11825 * sunfns.c (sel_read):
11826 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
11827 * xfns.c (x_default_scroll_bar_color_parameter):
11828 * xmenu.c (menu_help_callback):
11829 * xselect.c (Fx_get_atom_name):
11830 * xterm.c (x_term_init): Use empty_unibyte_string.
11831
15bdd7a0 118322007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
11833
11834 * alloc.c (init_strings): Initialize canonical empty strings.
11835 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
11836 canonical empty string when the requested size is 0.
11837
11838 * emacs.c (empty_unibyte_string): Rename from empty_string.
11839 (empty_multibyte_string): New canonical empty string.
11840 (syms_of_emacs): Don't initialize empty_string.
11841
11842 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
11843 string, if appropriate.
11844 (empty_unibyte_string, empty_multibyte_string): New externs.
11845 (empty_string): Remove extern.
11846
11847 * lread.c (syms_of_lread): Use empty_unibyte_string.
11848
42c4c67a
JR
118492007-06-07 Jason Rumney <jasonr@gnu.org>
11850
11851 * s/ms-w32.h: Don't define HAVE_TZNAME.
11852
11853 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
11854
aa8280d3
YM
118552007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11856
11857 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
11858
11859 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
11860 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
11861
11862 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
11863 Don't call next handler.
11864 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
11865 Remove argument. Install handler to application.
11866 (set_frame_menubar): Don't change deep_p.
1e0d2d60 11867 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
11868 FRAME_OUTER_TO_INNER_DIFF_Y.
11869 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11870 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11871 [HAVE_DIALOGS]: New macros.
11872 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
11873 Use them.
11874 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
11875
11876 * macselect.c [MAC_OSX] (install_service_handler): Rename from
11877 init_service_handler. All callers changed. Return OSStatus value.
11878
11879 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
11880 All callers changed so as not to call SetPortWindowPort.
11881 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
11882 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
11883 mac_draw_string_common.
11884 (mac_draw_image_string_qd): Likewise.
11885 (mac_draw_string_common): Use them. Add INLINE.
11886 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
11887 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
11888 GetGlobalMouse.
11889 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
11890 and FRAME_OUTER_TO_INNER_DIFF_Y.
11891 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
11892 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
11893 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
11894 repositioning window to mac_handle_window_event.
11895 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
11896 saving window location to mac_handle_window_event
11897 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
11898 (install_menu_target_item_handler): Remove argument in extern.
11899 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
11900 Also accept command events.
11901 (do_keystroke): New function created from XTread_socket.
11902 (init_command_handler): Remove functions.
11903 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
11904 and save window location by kEventWindowShowing and kEventWindowHiding
11905 handlers here. Don't call next handler for window state change and
11906 focus events.
11907 (mac_handle_application_event, mac_handle_keyboard_event)
11908 [TARGET_API_MAC_CARBON]: New functions.
11909 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
11910 kEventWindowShowing and kEventWindowHiding events. Move installation
11911 of mouse, font, text input and menu target item handlers to
11912 install_application_handler.
11913 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
11914 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11915 New function.
11916 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11917 Register it.
c9612b8e
SM
11918 (XTread_socket) [TARGET_API_MAC_CARBON]:
11919 Consolidate SendEventToEventTarget calls.
11920 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
11921 Move application activation handler to mac_handle_application_event.
11922 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
11923 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
11924 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11925 init_command_handler. Call install_application_handler.
11926
11927 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
11928 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
11929
6926c954
GM
119302007-06-07 Glenn Morris <rgm@gnu.org>
11931
11932 * emacs.c (main): Use `emacs-copyright' in --version output.
11933
6fe04c89
CY
119342007-06-06 Chong Yidong <cyd@stupidchicken.com>
11935
c9612b8e 11936 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 11937
7eb0d727
YM
119382007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11939
11940 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
11941
11942 * macgui.h: Replace WindowPtr with WindowRef.
11943
11944 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11945 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11946 Replace ControlHandle with ControlRef.
11947 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
11948
11949 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
11950 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
11951 Replace ControlHandle with ControlRef.
11952 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
11953 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
11954
11955 * macterm.h (struct scroll_bar): Rename member control_handle_low
11956 and control_handle_high to control_ref_low and control_ref_high.
11957 All uses changed.
11958 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
11959 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
11960 respectively. All uses changed.
11961 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
11962 (install_window_handler, remove_window_handler): Replace WindowPtr
11963 with WindowRef in externs.
11964
65fddb74
JB
119652007-06-05 Juanma Barranquero <lekktu@gmail.com>
11966
11967 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
11968
db1213a9
NR
119692007-06-03 Nick Roberts <nickrob@snap.net.nz>
11970
11971 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
11972
65fddb74 11973 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
11974 Condition on HAVE_GPM too.
11975
11976 * term.c (term_mouse_highlight): Remove unused variables.
11977 (Fterm_open_connection): Set gpm_zerobased to 1.
11978 (term_mouse_movement, term_mouse_click, handle_one_term_event):
11979 Use zero based co-ordinates.
11980 (handle_one_term_event): Report a drag as mouse movement too.
11981
11982 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
11983
d94df25b
CY
119842007-06-03 Chong Yidong <cyd@stupidchicken.com>
11985
11986 * image.c (search_image_cache): New function. Require background
11987 color match if background color is unspecified in the image spec.
11988 (uncache_image, lookup_image): Use it.
11989
4797b6d9
JB
119902007-06-01 Juanma Barranquero <lekktu@gmail.com>
11991
11992 * window.c (Fshrink_window): Reflow docstring.
11993
1ffe7343
NR
119942007-06-02 Chong Yidong <cyd@stupidchicken.com>
11995
11996 * Version 22.1 released.
11997
119982007-06-01 Richard Stallman <rms@gnu.org>
11999
12000 * xfns.c (x_encode_text): Add GCPRO.
12001
120022007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12003
12004 * xfns.c (x_set_name_internal): Save encoded name before
12005 x_encode_text in case string data is relocated.
12006
120072007-05-31 Richard Stallman <rms@gnu.org>
12008
12009 * buffer.c (syms_of_buffer): Doc fix.
12010
120112007-05-30 Nick Roberts <nickrob@snap.net.nz>
12012
12013 * sysdep.c (init_sys_modes): Add rather than replace with
12014 O_NONBLOCK.
12015
12016 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
12017 term_mouse_moveto.
12018
12019 * termhooks.h (term_mouse_moveto): New extern.
12020
12021 * term.c (mouse_face_window): Rename...
12022 (Qmouse_face_window): ...to this.
12023 (term_show_mouse_face, term_clear_mouse_face)
12024 (term_mouse_highlight): Use Qmouse_face_window.
12025 (term_mouse_moveto): New function.
12026 (term_mouse_position): Make it work.
12027 (syms_of_term): Uncomment assignment to mouse_position_hook.
12028 Staticpro Qmouse_face_window.
12029
120302007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12031
12032 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
12033 around current_column call.
12034
120352007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
12036
12037 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
12038 * xdisp.c (next_element_from_buffer):
12039 * window.c (delete_window):
12040 * term.c (term_mouse_highlight):
12041 * msdos.c (getdefdir):
12042 * macterm.c (mac_create_bitmap_from_bitmap_data)
12043 (init_font_name_table):
12044 * fns.c (Fsxhash):
12045 * data.c (Fmake_local_variable):
12046 * ccl.c (ccl_driver): Likewise.
12047
120482007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12049
12050 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
12051 Call mac_wakeup_from_rne on window size change.
12052
120532007-05-25 Chong Yidong <cyd@stupidchicken.com>
12054
12055 * image.c (uncache_image): Fix typo.
12056
120572007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
12058
12059 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
12060
120612007-05-22 Richard Stallman <rms@gnu.org>
12062
12063 * xterm.c (x_connection_closed): Remove NO_RETURN.
12064
120652007-05-22 Martin Rudalics <rudalics@gmx.at>
12066
12067 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
12068
120692007-05-21 Chong Yidong <cyd@stupidchicken.com>
12070
12071 * image.c (uncache_image): New function.
12072 (Fimage_refresh): New function.
12073
880820fe 120742007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12075
12076 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
12077
120782007-05-20 Nick Roberts <nickrob@snap.net.nz>
12079
12080 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
12081 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
12082
120832007-05-20 Nick Roberts <nickrob@snap.net.nz>
12084
12085 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
12086 conditional on [HAVE_GPM_H].
12087
120882007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12089
12090 * syntax.c (skip_chars): Update syntax-table only after we checked that
12091 the new location is valid.
12092
120932007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12094
12095 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
12096 mac_get_window_bounds.
12097
120982007-05-20 Nick Roberts <nickrob@snap.net.nz>
12099
12100 * Makefile.in (LIBGPM): Allow it to be set from configure.
12101 If set then link Emacs with it.
12102
12103 * config.in: Regenerate.
12104
12105 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
12106 New externs.
12107
12108 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
12109 Include gpm.h.
12110 (handle_one_term_event, term_gpm): New externs.
12111
12112 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
12113 and allow it to be interrupted by SIGIO.
12114
12115 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
12116 (wait_reading_process_output): Wait on gpm_fd too.
12117 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
12118 (add_gpm_wait_descriptor_called_flag): New variable.
12119 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
12120
12121 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
12122 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
12123 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
12124 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
12125 (make_lispy_event): Add case GPM_CLICK_EVENT.
12126 (read_avail_input): Handle mouse input.
12127
12128 * term.c (write_glyphs_with_face): New function.
12129 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
12130 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
12131 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
12132 (mouse_face_face_id, term_gpm, pos_x, pos_y)
12133 (last_mouse_x, last_mouse_y): New variables.
12134 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
12135 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
12136 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
12137 (Fterm_close_connection): New functions.
12138 (term_init): Initialise mouse_face_window.
12139
121402007-05-19 Chong Yidong <cyd@stupidchicken.com>
12141
12142 * xdisp.c (redisplay_window): If first window line is a
12143 continuation line, recompute the new window start instead of
12144 recentering.
12145
121462007-05-18 Glenn Morris <rgm@gnu.org>
12147
12148 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
12149 Suggested by Alfred M. Szmidt <ams@gnu.org>.
12150
121512007-05-17 Glenn Morris <rgm@gnu.org>
12152
12153 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
12154
121552007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12156
12157 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
12158 dead key repeat and up events.
12159
121602007-05-14 Chong Yidong <cyd@stupidchicken.com>
12161
12162 * image.c (pbm_load): Check image size for monochrome pbm.
12163
121642007-05-13 Chong Yidong <cyd@stupidchicken.com>
12165
12166 * xterm.c (XTread_socket): Revert last change.
12167
121682007-05-12 Chong Yidong <cyd@stupidchicken.com>
12169
12170 * image.c (pbm_load): Correctly check image size for greyscale pbm.
12171
12172 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
12173
121742007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12175
12176 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
12177 mixup (YAILOM).
12178
121792007-05-07 Andreas Schwab <schwab@suse.de>
12180
12181 * keymap.c (Flookup_key): Fix typo in last change.
12182
121832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
12184
12185 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
12186 mapping for unibyte strings.
12187
121882007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12189
12190 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
12191 (Fx_popup_dialog) [MAC_OSX]: Likewise.
12192
121932007-04-29 Richard Stallman <rms@gnu.org>
12194
12195 * insdel.c (replace_range): For undo, record insertion first.
12196
121972007-04-29 Andreas Schwab <schwab@suse.de>
12198
12199 * lisp.h (VECSIZE): Use OFFSETOF.
12200
122012007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12202
12203 * xdisp.c (try_window_reusing_current_matrix): Fix number of
12204 disabled lines.
12205
122062007-04-28 Richard Stallman <rms@gnu.org>
12207
12208 * lread.c (read_escape): In a string, \s is always space.
12209
880820fe 122102007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
12211
12212 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
12213
12214 * gtkutil.c (xg_update_menubar, create_menus): Create empty
12215 submenu for menu bar items.
12216
382c648d 12217See ChangeLog.10 for earlier changes.
6922b018
KH
12218
12219;; Local Variables:
880820fe 12220;; coding: utf-8
33462dfa 12221;; add-log-time-zone-rule: t
6922b018 12222;; End:
2a34a036 12223
59ce725a 12224 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
12225
12226 This file is part of GNU Emacs.
12227
5a1dde61 12228 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 12229 it under the terms of the GNU General Public License as published by
5a1dde61
GM
12230 the Free Software Foundation, either version 3 of the License, or
12231 (at your option) any later version.
7f6d64f8
GM
12232
12233 GNU Emacs is distributed in the hope that it will be useful,
12234 but WITHOUT ANY WARRANTY; without even the implied warranty of
12235 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12236 GNU General Public License for more details.
12237
12238 You should have received a copy of the GNU General Public License
5a1dde61 12239 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 12240
28f60c3d 12241;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40