ChangeLog 439 KB
Newer Older
1 2 3 4 5
2008-06-13  Juanma Barranquero  <lekktu@gmail.com>

	* font.c (syms_of_font) <font-weight-table, font-slant-table>:
	<font-width-table>: Fix typos in docstrings.

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
2008-06-13  Daniel Engeler  <engeler@gmail.com>

	These changes add serial port access.
	* process.c: Add HAVE_SERIAL.
	(Fdelete_process, Fprocess_status, Fset_process_buffer)
	(Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
	(list_processes_1, select_wrapper, Fstop_process)
	(Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
	(status_notify): Modify to handle serial processes.
	[HAVE_SERIAL] (Fserial_process_configure)
	[HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
	New functions.
	* process.h (struct Lisp_Process): Add `type'.
	* sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
	New functions.
	* w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
	serial ports.
	(serial_open, serial_configure) New functions.
	* w32.h: Add FILE_SERIAL.
	(struct _child_process): Add ovl_read, ovl_write.

27 28 29 30 31 32
2008-06-13  Kenichi Handa  <handa@m17n.org>

	* dispextern.h (enum lface_attribute_index): New member
	LFACE_FOUNDRY_INDEX.

	* font.c (font_score): Delete arg alternate_families.  Check only
Juanma Barranquero's avatar
Juanma Barranquero committed
33
	weight, slant, width, and size.  Ignore the difference of alias
34
	style symbols.
Juanma Barranquero's avatar
Juanma Barranquero committed
35
	(font_sort_entites): Adjust for the above change.  Reflect the
36 37 38 39 40 41 42
	order of font-driver to scores.
	(font_list_entities): Don't check alternate_familes here.
	(font_clear_prop): Handle foundry.
	(font_update_lface): Don't parse "foundry-family" form here.
	Handle FONT_FOUNDRY_INDEX.
	(font_find_for_lface): Likewise.  Handle alternate families here.
	(font_open_for_lface): Pay attention to size in ENTITY.
Juanma Barranquero's avatar
Juanma Barranquero committed
43
	(font_open_by_name): Simplify by calling font_load_for_lface.
44 45 46 47 48 49 50 51
	(free_font_driver_list): Delete it.
	(font_update_drivers): Preserve the order of backends.
	(syms_of_font): Setting of sort_shift_bits adjusted for the change
	of font_score and font_sort_entites.
	(font_update_sort_order): Likewise.

	* xfaces.c (LFACE_FOUNDRY): New macro.
	(check_lface_attrs): Check foundry.
Juanma Barranquero's avatar
Juanma Barranquero committed
52
	(set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
	(merge_face_vectors): Check foundry.
	(merge_face_ref): Likewise.
	(Finternal_set_lisp_face_attribute): Likewise.
	(x_update_menu_appearance): Likewise.
	(Finternal_get_lisp_face_attribute): Likewise.
	(lface_hash): Likewise.
	(lface_same_font_attributes_p): Likewise.
	(x_supports_face_attributes_p): Likewise.
	(tty_supports_face_attributes_p): Likewise.
	(Finternal_set_alternative_font_family_alist): Intern strings.
	(Finternal_set_alternative_font_registry_alist): Downcase strings.
	(realize_default_face): Set LFACE_FOUNDRY (lface).

	* xfns.c (Fx_create_frame, x_create_tip_frame): Register X
	font-driver at first.

	* ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".

Juanma Barranquero's avatar
Juanma Barranquero committed
71
2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
72 73 74

	* lread.c (Fload): Use xfree, not free on saved_doc_string.

75 76
2008-06-12  Jim Meyering  <meyering@redhat.com>

Juanma Barranquero's avatar
Juanma Barranquero committed
77
	Make unexec_free handle NULL the same way free does.
78 79
	* unexmacosx.c (unexec_free): Ignore a NULL argument.

80 81 82 83 84 85 86 87 88
2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* character.h (CHAR_TO_BYTE_SAFE): New macro.
	* character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
	* regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
	(WEAK_ALIAS): Simplify.
	* syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
	when searching a unibyte buffer.

89 90 91 92
2008-06-12  Chong Yidong  <cyd@stupidchicken.com>

	* xfns.c (Fx_select_font): Rename from x-font-dialog.

Juanma Barranquero's avatar
Juanma Barranquero committed
93 94 95 96
2008-06-12  Juanma Barranquero  <lekktu@gmail.com>

	* w32font.c: Include ctype.h.

97 98
2008-06-11  Jason Rumney  <jasonr@gnu.org>

99 100 101 102
	* w32font.c (w32font_encode_char): Detect missing glyphs that are
	misreported as space.
	(add_font_entity_to_list): Support unicode-bmp and unicode-sip
	as aliases for registry iso10646-1.
103

104 105 106 107
2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* buffer.c (clone_per_buffer_values): Skip `name'.

108 109 110 111 112
2008-06-11  Chong Yidong  <cyd@stupidchicken.com>

	* font.c (font_parse_fcname): Fix last change; accept decimal
	points in font size.

113 114
2008-06-10  Jason Rumney  <jasonr@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
115 116
	* w32uniscribe.c (add_opentype_font_name_to_list):
	Skip non unicode fonts.
117

118 119 120 121
2008-06-10  Chong Yidong  <cyd@stupidchicken.com>

	* xfns.c (Fx_font_dialog): New function.

Juanma Barranquero's avatar
Juanma Barranquero committed
122
	* gtkutil.c (xg_dialog_response_cb): Rename from
123 124 125 126 127
	xg_file_response_callback.
	(pop_down_dialog): Rename from pop_down_file_dialog.
	(xg_get_file_name): Callers changed.
	(xg_get_font_name): New function.

Juanma Barranquero's avatar
Juanma Barranquero committed
128
	* gtkutil.h (xg_get_font_name): Insert prototype.
129

130 131 132 133 134 135 136 137 138 139 140
2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (underline_minimum_offset): Rename from xterm.c's
	x_underline_minimum_display_offset.
	(syms_of_xdisp): Declare it here rather than in xterm.c.
	* dispextern.h (underline_minimum_offset): Declare it.
	* w32term.c (x_draw_glyph_string): Use it.
	* xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
	(syms_of_xterm): Don't declare it any more.
	(x_draw_glyph_string): Adjust to the new name.

141 142 143 144 145 146
2008-06-10  David De La Harpe Golden  <david@harpegolden.net>  (tiny change)

	* xterm.c (x_underline_minimum_display_offset): New var.
	(x_draw_glyph_string): Use it.
	(syms_of_xterm): Declare it.

147 148 149 150
2008-06-10  Chong Yidong  <cyd@stupidchicken.com>

	* font.c (font_parse_fcname): Accept GTK-style font names too.

151 152
2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>

153 154 155 156
	* dired.c (file_name_completion): Don't return t if the match is exact
	but with different capitalization.
	* minibuf.c (Ftry_completion): Simplify.

157 158 159 160
	* window.c (Vwindow_point_insertion_type): New var.
	(set_window_buffer): Use it.
	(syms_of_window): Init and export it to Lisp.

Kenichi Handa's avatar
Kenichi Handa committed
161 162 163 164 165
2008-06-10  Kenichi Handa  <handa@m17n.org>

	* font.h (font_intern_prop): Prototype adjusted.

	* font.c (font_intern_prop): New arg force_symbol.
166 167
	(font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
	Adjust for the change of font_intern_prop.
Kenichi Handa's avatar
Kenichi Handa committed
168

169 170 171 172
	* ftfont.c (ftfont_pattern_entity):
	* w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
	(w32_registry):
	* w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
Kenichi Handa's avatar
Kenichi Handa committed
173 174
	the change of font_intern_prop.

Juanma Barranquero's avatar
Juanma Barranquero committed
175 176 177 178
2008-06-09  Juanma Barranquero  <lekktu@gmail.com>

	* w32menu.c (digest_single_submenu): Declare extern.

179 180
2008-06-09  Jason Rumney  <jasonr@gnu.org>

181
	* w32term.c (x_make_frame_visible): Use alternate restore flags.
182

183 184 185 186 187 188 189
	* w32menu.c (Fx_popup_menu): Unwind protect while building menu.
	(parse_single_submenu): Remove.
	(digest_single_submenu): Remove.
	(syms_of_w32menu): Don't initialise variables that have moved
	to menu.c.
	(set_frame_menubar): Sync with version in xmenu.c.
	(w32_menu_show): Sync with xmenu_show in xmenu.c.
190

Juanma Barranquero's avatar
Juanma Barranquero committed
191 192
	* menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
	Make static again.
193

194 195
2008-06-09  Jason Rumney  <jasonr@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
196 197 198 199 200 201 202 203
	Changes to w32 files related to the move of common menu code
	to menu.c on 2008-06-08 by Chong Yidong.

	* menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
	defs to w32gui.h.
	(single_keymap_panes, push_menu_item, push_menu_pane):
	Make globally visible.

Juanma Barranquero's avatar
Juanma Barranquero committed
204 205 206 207 208
	* w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
	(local_free, malloc_widget_value, free_widget_value)
	(MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
	(MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
	(MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
Juanma Barranquero's avatar
Juanma Barranquero committed
209
	(MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
Juanma Barranquero's avatar
Juanma Barranquero committed
210
	(menu_items, menu_items_allocated, menu_items_used)
Juanma Barranquero's avatar
Juanma Barranquero committed
211 212 213 214 215
	(menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
	(init_menu_items, finish_menu_items, discard_menu_items)
	(grow_menu_items, push_submenu_start, push_submenu_end)
	(push_left_right_boundary, push_menu_pane, push_menu_item)
	(keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
Juanma Barranquero's avatar
Juanma Barranquero committed
216
	(free_menubar_widget_tree_value, parse_single_submenu)
Juanma Barranquero's avatar
Juanma Barranquero committed
217 218 219 220 221 222 223 224 225
	(update_submenu_strings): Remove functions.
	(xmalloc_widget_value): Remove and declare extern.

	* makefile.w32-in ($(SRC)/menu.$(O)): New target.
	(OBJ1): Build it.

	* w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
	(local_heap, local_alloc, local_free, malloc_widget_value)
	(free_widget_value): Define here.
226

Kenichi Handa's avatar
Kenichi Handa committed
227 228
2008-06-09  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
229 230
	* font.h (Qascii_0): Extern it.

Kenichi Handa's avatar
Kenichi Handa committed
231 232 233 234 235 236 237
	* font.c (Qascii_0): New variable.
	(syms_of_font): DEFSYM it.
	(font_open_by_name): If the registry "iso8859-1" fails, try also
	"ascii-0".

	* ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.

Kenichi Handa's avatar
Kenichi Handa committed
238 239
2008-06-08  Kenichi Handa  <handa@m17n.org>

Eli Zaretskii's avatar
Eli Zaretskii committed
240
	* .gdbinit (xfont): New command.
Kenichi Handa's avatar
Kenichi Handa committed
241

242 243
2008-06-08  Andreas Schwab  <schwab@suse.de>

244 245 246
	* menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
	* Makefile.in (menu.o): Update dependencies.

Juanma Barranquero's avatar
Juanma Barranquero committed
247
	* Makefile.in (obj): Always add menu.o.
248 249 250
	* emacs.c (main): Always call syms_of_menu.
	* keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.

Chong Yidong's avatar
Chong Yidong committed
251 252 253 254 255 256 257 258 259 260 261 262
2008-06-08  Chong Yidong  <cyd@stupidchicken.com>

	* Makefile.in: Compile menu.c.

	* lisp.h: Declare syms_of_menu.

	* emacs.c (main): Call syms_of_menu.

	* keyboard.h: Relocate platform-independent menu definitions from
	xmenu.c.

	* menu.c: New file.  Relocate platform-independent menu
Chong Yidong's avatar
Chong Yidong committed
263
	definitions from xmenu.c.  Suggested by Adrian Robert.
Chong Yidong's avatar
Chong Yidong committed
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278

	* xmenu.c: Remove platform-independent menu definitions.
	(menu_items menu_items_inuse, menu_items_allocated)
	(menu_items_used, menu_items_n_panes)
	(menu_items_submenu_depth): Move to keyboard.h.
	(init_menu_items, finish_menu_items, unuse_menu_items)
	(discard_menu_items, restore_menu_items, save_menu_items)
	(grow_menu_items, push_submenu_start, push_submenu_end)
	(push_left_right_boundary, push_menu_pane, push_menu_item)
	(keymap_panes, single_keymap_panes, single_menu_item)
	(list_of_panes, list_of_items, find_and_call_menu_selection)
	(xmalloc_widget_value, free_menubar_widget_value_tree)
	(parse_single_submenu, digest_single_submenu)
	(update_submenu_strings): Move to menu.c.

279 280 281 282
2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>

	* dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.

283 284 285 286 287
2008-06-06  Miles Bader  <miles@gnu.org>

	* xdisp.c (x_produce_glyphs): Calculate tab width based on current
	face, not frame default.

288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
2008-06-05  Martin Rudalics  <rudalics@gmx.at>

	* window.c (pop_up_windows, pop_up_frames)
	(display_buffer_reuse_frames, Vpop_up_frame_function)
	(Vdisplay_buffer_function, Veven_window_heights)
	(Vspecial_display_buffer_names, Vspecial_display_regexps)
	(Vspecial_display_function, Vsame_window_buffer_names)
	(Vsame_window_regexps, split_height_threshold)
	(Vsplit_window_preferred_function): Move those vars to window.el.
	(display_buffer_1, Fspecial_display_p, Fsame_window_p)
	(Fdisplay_buffer): Move those functions to window.el.
	(syms_of_window): Remove corresponding declarations.
	(display_buffer): New function.
	(temp_output_buffer_show, Fother_window_for_scrolling): Use it.
	* dispnew.c (Flast_nonminibuf_frame): New function.
	* buffer.c (Fpop_to_buffer): Move to window.el.

305 306 307 308
2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.

Kenichi Handa's avatar
Kenichi Handa committed
309 310 311 312 313
2008-06-05  Kenichi Handa  <handa@m17n.org>

	* coding.c (detect_coding): Fix previous change.
	(detect_coding_system): Likewise.

314 315
2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>

316 317
	* character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.

318 319 320 321 322 323
	* keymap.c (Vminibuffer_local_filename_must_match_map):
	Rename from Vminibuffer_local_must_match_filename_map.
	(syms_of_keymap):
	* minibuf.c (Fcompleting_read): Adjust accordingly.
	* commands.h: Rename declaration as well.

324 325
2008-06-05  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
326 327 328 329 330 331 332
	* font.c (Ffont_spec): Don't use font_parse_family_registry for
	family name.
	(Ffont_put): Likewise.

	* fontset.c (fontset_find_font): Call font_open_for_lface with the
	current font-spec.

333 334 335 336
	* xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
	is unspecified.

	* xfaces.c (realize_x_face): If the font-related face attributes
Kenichi Handa's avatar
Kenichi Handa committed
337 338
	are the same as those of default face, realize a new fontset from
	default->fontset.
339
	(Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
340

341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (move_it_in_display_line_to): Improve the type of its args.
	(move_it_in_display_line): New wrapper.

	* window.c (window_scroll_pixel_based_preserve_x)
	(window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
	(window_scroll_pixel_based, window_scroll_line_based):
	Use them to preserve column positions.
	(syms_of_window): Initialize them.

	* indent.c (Fvertical_motion): Extend first arg to allow passing an
	(HPOS . VPOS) pair.

	* dispextern.h (move_it_in_display_line): Declare.

357 358 359 360 361 362
2008-06-05  Juanma Barranquero  <lekktu@gmail.com>

	* window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
	(Fwindow_parameters): Return copy of parameter alist.  Doc fix.
	(Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.

363 364 365 366 367
2008-06-04  Juanma Barranquero  <lekktu@gmail.com>

	* window.c (Fset_window_parameter): Doc fix.
	(Fwindow_parameters, Fwindow_parameter): Remove redundant check.

368 369 370 371 372 373 374 375 376
2008-06-04  Joakim Verona  <joakim@verona.se>

	* window.h (struct window): Add new member window_parameters.

	* window.c (Fwindow_parameters, Fwindow_parameter)
	(Fset_window_parameter): New defuns.
	(syms_of_window): Defsubr the new defuns.
	(make_window): Initialize window_parameters to nil.

John Paul Wallington's avatar
John Paul Wallington committed
377 378 379 380
2008-06-04  John Paul Wallington  <jpw@pobox.com>

	* eval.c (Fdefmacro): Doc fix.

381 382 383
2008-06-04  Kenichi Handa  <handa@m17n.org>

	* coding.c (detect_coding): Fix handling of coding->head_ascii.
384
	Be sure to call setup_coding_system when we find a proper coding system.
385 386
	(detect_coding_system): Fix handling of coding->head_ascii.

387 388 389 390
2008-06-03  Andreas Schwab  <schwab@suse.de>

	* font.c (font_prop_validate_spacing): Fix last change.

391 392
2008-06-03  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
393 394 395 396 397
	* font.c (font_prop_validate_spacing): Handle uppercase symbols.
	(font_parse_fcname): Fix handling of unknown key.

	* xfont.c (xfont_list): Try an alias.

398 399 400
	* charset.c (char_charset): Return NULL if the arg charset_list is
	specified and C doesn't belong to any of them.

Juanma Barranquero's avatar
Juanma Barranquero committed
401
2008-06-02  Chip Coldwell  <coldwell@redhat.com>
402 403 404

	* font.c (font_pixel_size): Don't take cdr of an integer.

405 406
2008-06-02  Jim Meyering  <meyering@redhat.com>

407 408 409 410 411
	Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
	* alloc.c (xfree): Return right away for a NULL arg.
	* lread.c (nosuffix): Remove now-useless if-before-xfree tests.
	* gtkutil.c (xg_gtk_scroll_destroy): Likewise.
	* mac.c (create_apple_event_from_event_ref): Likewise.
Juanma Barranquero's avatar
Juanma Barranquero committed
412 413
	(create_apple_event_from_drag_ref, cfstring_create_normalized):
	Likewise.
414 415 416
	* doprnt.c (doprnt1): Likewise.
	* frame.c (frame): Likewise.
	* keyboard.c (wipe_kboard): Likewise.
Juanma Barranquero's avatar
Juanma Barranquero committed
417
	* macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
418 419 420 421 422 423 424 425 426 427 428 429 430 431
	(init_font_name_table, mac_unload_font, x_delete_display): Likewise.
	* term.c (tty_default_color_capabilities, maybe_fatal)
	(delete_tty): Likewise.
	* w16select.c (string): Likewise.
	* w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
	* w32bdf.c (w32_free_bdf_font): Likewise.
	* w32fns.c (w32_unload_font): Likewise.
	* w32font.c (w32font_close): Likewise.
	* window.c (size_window): Likewise.
	* xselect.c (receive_incremental_selection): Likewise.
	* xterm.c (x_free_frame_resources, x_delete_display): Likewise.
	* mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
	* w32.c (stat): Likewise.

Juanma Barranquero's avatar
Juanma Barranquero committed
432
	Remove useless if-before-free tests.
433 434 435 436 437 438 439
	* editfns.c (Fset_time_zone_rule): Likewise.
	* lread.c (nosuffix): Likewise.
	* ralloc.c (get_bloc): Likewise.
	* regex.c (reg_free): Likewise.
	* xftfont.c (xftfont_open, xftfont_close): Likewise.
	* xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
	* xsmfns.c (smc_save_yourself_CB): Likewise.
440

441 442
2008-06-02  Kenichi Handa  <handa@m17n.org>

443 444 445
	* font.c (font_find_for_lface): Handle float font size.
	(font_open_for_lface): Likewise.

446 447 448
	* xfaces.c (x_supports_face_attributes_p): Check face->font before
	comparing the properties.

449 450
2008-06-01  Jason Rumney  <jasonr@gnu.org>

451 452 453 454 455
	* w32font.c (w32_enumfont_pattern_entity): Use requested registry.
	Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
	Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
	Don't add empty script list.
	(w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
456

457 458
2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>

459
	* Makefile.in (dot, dotdot): Remove, update users.
460 461 462
	".." has been used elsewhere in the file for a long time.
	(LIBXT_STATIC): Remove conditional based on unused variable.

463 464 465 466 467 468 469 470
2008-06-01  Miles Bader  <miles@gnu.org>

	* xfaces.c (Vface_remapping_alist): New variable.
	(syms_of_xfaces): Initialize it.
	(enum named_merge_point_kind): New type.
	(struct named_merge_point): Add `named_merge_point_kind' field.
	(push_named_merge_point): Make cycle detection respect different
	named-merge-point kinds.
471
	(lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
472 473 474
	Remove face-name alias resolution.
	(lface_from_face_name): New definition using
	`lface_from_face_name_no_resolve'.
475
	(get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
	Call lface_from_face_name_no_resolve instead of lface_from_face_name.
	(get_lface_attributes): New definition that layers face-remapping on
	top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
	(lookup_basic_face): New function.
	(lookup_derived_face): Pass new last arg to `get_lface_attributes'.
	(realize_named_face): Call `get_lface_attributes_no_remap' instead of
	`get_lface_attributes'.
	(face_at_buffer_position): Use `lookup_basic_face' to lookup
	DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
	return default_face's face-id instead of the constant DEFAULT_FACE_ID.

	* xdisp.c (init_iterator): Pass base_face_id through
	`lookup_basic_face' when we actually use it as a face-id.
	(handle_single_display_prop): Use `lookup_basic_face' to lookup
	DEFAULT_FACE_ID.

	* fontset.c (Finternal_char_font): Use `lookup_basic_face' to
	lookup the initial face-id.

	* dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.

497 498 499 500 501
2008-06-01  Juanma Barranquero  <lekktu@gmail.com>

	* textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
	(Fremove_text_properties): Fix typos in docstrings.

502 503
2008-05-31  Kenichi Handa  <handa@m17n.org>

504 505 506
	* font.c (font_list_entities): Fix the car part of data to be
	stored in the cache.

507 508
	* ftfont.c (ftfont_font_format): Don't use strcasestr.

509 510 511 512 513 514 515 516 517
2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* chartab.c (Foptimize_char_table, optimize_sub_char_table):
	Add a `test' argument so another predicate than `equal' can be used.
	(map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
	(map_char_table): Remove unused vars `c' and `i'.
	* lisp.h (Foptimize_char_table): Adjust declaration.
	* charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.

518 519
2008-05-30  Kenichi Handa  <handa@m17n.org>

520
	* font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
521 522 523
	(syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
	defined.

524 525 526 527 528 529
2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* data.c (Fmake_variable_buffer_local, Fmake_local_variable)
	(Fmake_variable_frame_local): Disallow mixing buffer-local and
	frame-local settings for the same variable.

Kenichi Handa's avatar
Kenichi Handa committed
530 531
2008-05-30  Kenichi Handa  <handa@m17n.org>

532
	* fontset.c (Ffont_info): Move to font.c.
Kenichi Handa's avatar
Kenichi Handa committed
533 534 535 536 537 538
	(syms_of_fontset): Delete defsubr of Sfont_info.

	* font.c (font_style_to_value, font_score): Delete casting of the
	args to xstcasecmp.
	(register_font_driver): Increment num_font_drivers only when
	registering the driver globally.
539
	(Ffont_info): Move from fontset.c.  Handle a font object too.
Kenichi Handa's avatar
Kenichi Handa committed
540 541
	(syms_of_font): Defsubr Sfont_info.

542 543 544 545 546
2008-05-29  Kenichi Handa  <handa@m17n.org>

	* coding.h (enum define_coding_utf8_arg_index): New enum.
	(enum coding_attr_index): Change coding_attr_utf_16_bom to
	coding_attr_utf_bom.
547 548
	(enum utf_bom_type): Rename from utf_16_bom_type.
	(struct utf_16_spec): Adjust for the above change.
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
	(struct coding_system): Add utf_8_bom in `spec' union.

	* coding.c (CODING_UTF_8_BOM): New macro.
	(enum coding_category): Delete coding_category_utf_8, add
	coding_category_utf_8_auto, coding_category_utf_8_nosig, and
	coding_category_utf_8_sig.
	(CATEGORY_MASK_UTF_8): Delete it.
	(CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
	(CATEGORY_MASK_UTF_8_SIG): New macros.
	(CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
	CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
	CATEGORY_MASK_UTF_8_SIG.
	(CATEGORY_MASK_UTF_8): New macro.
	(UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
	(detect_coding_utf_8): Check BOM.
	(decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
565
	(decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
566 567 568 569 570 571
	(encode_coding_utf_16): Likewise.
	(setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
	(detect_coding, detect_coding_system): Handle utf-8-auto.
	(Fdefine_coding_system_internal): Handle `bom' property for utf-8.
	(syms_of_coding): Fix setting up of Vcoding_category_table.

572 573 574 575 576 577 578
2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>

	* process.c (Faccept_process_output): If `millisec' is non-nil,
	`seconds' default to 0.
	(wait_reading_process_output): Also return non-nil if we read output
	from a non-running process.

579 580
2008-05-29  Jason Rumney  <jasonr@gnu.org>

581 582 583 584 585
	* w32font.c (w32font_open_internal): Prefer truetype fonts unless
	`raster' specified.
	(add_font_entity_to_list): Allow non-opentype truetype fonts back
	in the uniscribe backend, but disallow any font that has no
	unicode subrange support.
586

587 588 589 590 591
2008-05-29  Juanma Barranquero  <lekktu@gmail.com>

	* xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
	Fix typos in docstrings.

592 593 594
2008-05-29  Kenichi Handa  <handa@m17n.org>

	* xfaces.c (Fx_list_fonts): Make it return a list of font names.
Kenichi Handa's avatar
Kenichi Handa committed
595
	(Fx_family_fonts): Set frame correctly.
596

597 598
2008-05-28  Jason Rumney  <jasonr@gnu.org>

599
	* w32term.c (x_draw_glyph_string): Use clipmask if specified.
600

601 602 603 604 605
2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
	calling build_annotations.

Juanma Barranquero's avatar
Juanma Barranquero committed
606 607 608 609 610 611 612 613 614
2008-05-28  Juanma Barranquero  <lekktu@gmail.com>

	* coding.c (Fdecode_coding_region, Fencode_coding_region)
	(Fencode_coding_string):
	(syms_of_coding) <coding-system-for-read, coding-system-for-write>:
	<latin-extra-code-table>: Fix typos in docstrings.
	(syms_of_coding) <coding-system-alist>: Doc fix.
	(syms_of_coding) <translation-table-for-input>: Reflow docstring.

Kenichi Handa's avatar
Kenichi Handa committed
615 616
2008-05-28  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
617 618 619 620 621 622 623 624
	* fontset.c (Ffont_info): Don't call font_close_object.

	* font.c (font_parse_family_registry): Use Ffont_put to validate
	foundry and family.
	(font_delete_unmatched): Don't check spacing.
	(font_list_entities): Add spacing to the spec to list fonts.

	* ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
625
	(ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
Kenichi Handa's avatar
Kenichi Handa committed
626

Kenichi Handa's avatar
Kenichi Handa committed
627 628 629 630
	* coding.c (encode_coding_raw_text): Fix previous change.
	(encode_coding_object): When the dst_object is a buffer and is
	different from src_object, move gap to PT.

631 632
2008-05-27  Chong Yidong  <cyd@stupidchicken.com>

Juanma Barranquero's avatar
Juanma Barranquero committed
633
	* xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
634

635 636
2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>

637 638 639
	* coding.c (encode_coding_raw_text): Set coding->produced_char for
	all branches.  Compute it differently.

640 641
	* xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.

642 643 644 645 646
2008-05-27  Juanma Barranquero  <lekktu@gmail.com>

	* w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
	into "else if () ... else ...".

647 648
2008-05-27  Jason Rumney  <jasonr@gnu.org>

649 650
	* w32font.c (w32font_open_internal): Determine if glyph indices
	are likely to work here.
651

652 653 654 655 656
2008-05-27  Chong Yidong  <cyd@stupidchicken.com>

	* xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
	draw overlap glyphs with appropriate highlighting.

657 658 659 660
2008-05-27  Kenichi Handa  <handa@m17n.org>

	* xfont.c (xfont_open): Fix calculation of font->average_width.

661 662 663 664 665
2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>

	* casefiddle.c (casify_object): Try to guess better whether the
	argument is a byte or a char.

666 667
2008-05-26  Andreas Schwab  <schwab@suse.de>

668 669
	* xselect.c (x_reply_selection_request): Properly handle format == 32.
	Always send multiples of format size.
670

671 672
	* xterm.c (x_set_frame_alpha): Fix type mismatch.

673 674
2008-05-26  Jason Rumney  <jasonr@gnu.org>

675 676 677 678 679
	* w32font.c (w32font_text_extents): Zero whole metrics struct first.
	(compute_metrics): Don't set failure if we just cleared the cache.
	(w32_weight_table): Remove unused variable.
	(w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
	backwards compatibility.
680

681 682
2008-05-25  Kenichi Handa  <handa@m17n.org>

683 684
	* w32term.c (x_draw_glyph_string):
	* xterm.c (x_draw_glyph_string): Fix calculation of underline position.
685 686 687 688 689

	* xfaces.c: Delete unused function prototypes.
	(xstrlwr, font_frame): Delete them.
	(clear_face_cache): Delete unused variable.

690 691
	* xftfont.c (xftfont_open): Delete unused variable.
	If underline_thickness is not 1, adjust underline_position.
692 693 694 695 696 697 698 699 700 701

	* ftxfont.c (ftxfont_open): Delete unused variable.

	* fontset.c (face_for_char): Optimize for the case of no charset
	property.

	* font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
	(check_gstring, check_otf_features, otf_list, otf_tag_symbol)
	(otf_open, font_otf_capability, generate_otf_features)
	(font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
702
	Comment out by surrounding "#if 0" and "#endif" for the moment.
703 704 705
	(Ffont_drive_otf, Ffont_otf_alternates): Likewise.
	(syms_of_font): Codes for accessing above commented out.

Eli Zaretskii's avatar
Eli Zaretskii committed
706 707 708 709 710 711
2008-05-24  Eli Zaretskii  <eliz@gnu.org>

	* w32proc.c: Include dispextern.h.

	* w32.c: Include dispextern.h.

Juanma Barranquero's avatar
Juanma Barranquero committed
712 713 714 715 716 717
2008-05-23  Juanma Barranquero  <lekktu@gmail.com>

	* charset.c (Fencode_char, Fsplit_char): Doc fixes.
	(Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
	Fix typos in docstrings.

718 719
2008-05-23  Jason Rumney  <jasonr@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
720
	* xsmfns.c: Remove includes that are already included by config.h.
721

722 723
2008-05-23  Kenichi Handa  <handa@m17n.org>

724 725 726 727
	* charset.c (Qemacs, charset_emacs): New variables.
	(char_charset): Fix for non-Unicode characters.
	(syms_of_charset): Define charset_emacs.

Kenichi Handa's avatar
Kenichi Handa committed
728
	* w32term.c (x_draw_glyph_string): Be sure to update
Kenichi Handa's avatar
Kenichi Handa committed
729 730
	s->underline_thickness and s->underline_position.  Be sure to draw
	underline within the current line area.
Kenichi Handa's avatar
Kenichi Handa committed
731 732

	* xterm.c (x_draw_glyph_string): Be sure to update
Kenichi Handa's avatar
Kenichi Handa committed
733
	s->underline_thickness and s->underline_position.  Be sure to draw
734
	underline within the current line area.
Kenichi Handa's avatar
Kenichi Handa committed
735

736 737 738 739 740 741 742
	* fontset.c: Delete unused variables and add casting for char *
	throughout the file.
	(fontset_font): Try the fallback fonts of the current fontset
	before consulting the default fontset.

	* ftfont.c (ftfont_spec_pattern): Free charset if necessary.

743
	* xfont.c (xfont_list_pattern): Free names returned from XListFonts.
744

745 746
2008-05-22  Jason Rumney  <jasonr@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
747
	* font.c: Don't include strings.h.
Jason Rumney's avatar
Jason Rumney committed
748

749
	* dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
750

Juanma Barranquero's avatar
Juanma Barranquero committed
751 752
	* dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
	* macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
Eli Zaretskii's avatar
Eli Zaretskii committed
753 754
	* xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
	to call xstrcasecmp.
755

Eli Zaretskii's avatar
Eli Zaretskii committed
756
	* xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
757

Eli Zaretskii's avatar
Eli Zaretskii committed
758
	* fontset.c (fs_query_fontset): Use xstrcasecmp.
759

Eli Zaretskii's avatar
Eli Zaretskii committed
760
	* font.c (font_style_to_value, font_score): Use xstrcasecmp.
761

Eli Zaretskii's avatar
Eli Zaretskii committed
762
	* dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
763

Kenichi Handa's avatar
Kenichi Handa committed
764 765
2008-05-22  Kenichi Handa  <handa@m17n.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
766
	* puresize.h (BASE_PURESIZE): Increase to 1220000.
767

Juanma Barranquero's avatar
Juanma Barranquero committed
768
	* font.c (font_prop_validate_style): Adjust for the format
769 770
	change of font_style_table.

Kenichi Handa's avatar
Kenichi Handa committed
771 772 773 774 775 776
	* w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
	two args.

	* xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
	two args.

777 778 779 780 781 782
2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (keys_of_minibuf): Delete.
	* lisp.h (keys_of_minibuf): Delete.
	* emacs.c (main): Don't call keys_of_minibuf.

783 784
2008-05-22  Kenichi Handa  <handa@m17n.org>

785
	* ftfont.c (ftfont_resolve_generic_family): Rename from
786 787 788
	ftfont_list_generic_family.  Return a single family for each
	generic family.
	(ftfont_spec_pattern): Add FC_FAMILY to pattern.
Juanma Barranquero's avatar
Juanma Barranquero committed
789 790
	(ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
	Call font_add_log.
791 792 793 794 795
	(ftfont_match): Call font_add_log.

	* font.h (Ffont_xlfd_name): EXFUN adjusted.
	(FONT_DEBUG): Define it.
	(font_add_log): Extern it.
796
	(font_assert): Rename from xassert.
797 798 799 800

	* xfont.c (xfont_get_pcm): Change xassert to font_assert.
	(xfont_list_family): Call font_add_log.
	(xfont_match): Likewise.
801
	(memq_no_quit): Delete.
802 803 804 805 806

	* fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
	call of Ffont_xlfd_name.

	* xfaces.c (struct table_entry, slant_table, weight_table)
807
	(swidth_table): Move to font.c.
808 809

	* font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
810
	xassert are changed to font_assert.  Delete many unused variables.
Juanma Barranquero's avatar
Juanma Barranquero committed
811 812
	(Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
	New variables.
813 814
	(struct table_entry): Move from xfaces.c and modified.
	(weight_table, slant_table, width_table): Move from xfaces.c and
815
	contents adjusted for the change of struct table_entry.
Juanma Barranquero's avatar
Juanma Barranquero committed
816
	(font_style_to_value, font_style_symbolic): Adjust for the
817
	format change of font_style_table.
818 819 820 821 822 823
	(font_parse_family_registry): Don't overwrite existing foundry and
	family of font_spec.
	(font_score): Fix calculation of diff for sizes.
	(font_sort_entites): Call font_add_log.
	(font_delete_unmatched): Return a newly created list.
	(font_list_entities): Fix previous change.  Call font_add_log.
Juanma Barranquero's avatar
Juanma Barranquero committed
824 825
	(font_matching_entity, font_open_entity, font_close_entity):
	Call font_add_log.
826
	(Ffont_xlfd_name): New arg FOLD-WILDCARDS.
827
	(Finternal_set_font_style_table): Delete.
828 829 830 831 832 833 834 835
	(BUILD_STYLE_TABLE): New macro.
	(build_style_table): New function.
	(Vfont_log, font_log_env_checked): New variables.
	(font_add_log): New function.
	(syms_of_font): Delete defsubr Sinternal_set_font_style_table.
	Declare Lisp variables "font-weight-table", "font-slant-table",
	"font-width-table", and "font-log".  Initialize font_style_table.

836 837
2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>

Juanma Barranquero's avatar
Juanma Barranquero committed
838
	* xterm.c (x_set_frame_alpha): Move declarations before statements.
839

Glenn Morris's avatar
Glenn Morris committed
840 841
2008-05-21  Seiji Zenitani  <zenitani@mac.com>
	    Ryo Yoshitake  <ryo@shiftmode.net>
842

Glenn Morris's avatar
Glenn Morris committed
843
	* frame.c (Qalpha): Add a new frame parameter `alpha'.
Juanma Barranquero's avatar
Juanma Barranquero committed
844
	(Vframe_alpha_lower_limit): New variable.
Glenn Morris's avatar
Glenn Morris committed
845
	(x_set_alpha): New function.
846

Glenn Morris's avatar
Glenn Morris committed
847
	* frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
848

Glenn Morris's avatar
Glenn Morris committed
849 850
	* xfns.c (x-create-frame, Qalpha):
	Initialize the frame parameter `alpha'.
Glenn Morris's avatar
Glenn Morris committed
851 852 853
	* xterm.c (OPAQUE, OPACITY): New.
	(x_set_frame_alpha): New function.
	(frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
854

Glenn Morris's avatar
Glenn Morris committed
855 856
	* macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
	* w32fns.c (w32_frame_parm_handlers): Likewise.
857

858 859
2008-05-20  Jason Rumney  <jasonr@gnu.org>

Juanma Barranquero's avatar
Juanma Barranquero committed
860 861
	* w32font.c (add_font_entity_to_list): Don't add non-opentype
	truetype fonts to opentype list.
862

Juanma Barranquero's avatar
Juanma Barranquero committed
863 864 865 866 867 868 869 870 871 872 873
2008-05-20  Juanma Barranquero  <lekktu@gmail.com>

	* fontset.c (Ffontset_info): Doc fix.
	(syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
	<ignore-relative-composition>: Fix typos in docstrings.

	* font.c (syms-of-font) <font-encoding-alist>:
	(Ffontp, Ffont_make_gstring): Fix typos in docstrings.
	(Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
	(Ffont_otf_alternates): Doc fixes.

874 875 876 877
2008-05-20  Kenichi Handa  <handa@m17n.org>

	* Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
	font.h through out the file.
878
	(FONT_DRIVERS): Rename from FONTOBJ.
Kenichi Handa's avatar
Kenichi Handa committed
879
	(obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
880 881 882 883 884 885
	(SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).

	* emacs.c (main): Call syms_of_font unconditionally.

	* font.h (find_font_encoding): Extern it.

886
	* font.c (Vfont_encoding_alist, find_font_encoding): Move from
887 888 889 890 891 892 893 894
	fontset.c.
	(font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
	(font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
	FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
	only when HAVE_WINDOW_SYSTEM is defined.
	(font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
	when HAVE_WINDOW_SYSTEM is defined.

895 896
	* fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
	(syms_of_fontset): Move declaration of font-encoding-alist to font.c.
897 898 899 900 901

	* xfaces.c: Include font.h unconditionally.
	(merge_face_ref, merge_face_vectors)
	(Finternal_set_lisp_face_attribute): Cancel the previous change.

902 903 904 905 906 907 908
2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>

	* xdisp.c (select_frame_for_redisplay): Adjust for last change to
	indirect_variable.
	* eval.c (lisp_indirect_variable): New fun.
	(Fuser_variable_p): Use it.

909 910
2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
911 912 913 914 915 916 917
	* lisp.h (indirect_variable):
	* data.c (indirect_variable, let_shadows_buffer_binding_p):
	Use Lisp_Symbol pointers rather than Lisp_Object.
	Adjust callers.
	* buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
	To this end, change calling-convention.

918 919 920
	* minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
	if some non-hidden buffers are selected by string&pred.

Stefan Monnier's avatar
Stefan Monnier committed
921 922 923 924 925
2008-05-19  Chong Yidong  <cyd@stupidchicken.com>

	* process.c (wait_reading_process_output): Always check status
	when in batch mode.

Kenichi Handa's avatar
Kenichi Handa committed
926 927 928 929 930
2008-05-19  Kenichi Handa  <handa@m17n.org>

	* font.c (font_list_entities): Fix handling of cache.
	(font_matching_entity): Likewise.

931
	* ftfont.c (cs_iso8859_1): Delete.
Kenichi Handa's avatar
Kenichi Handa committed
932
	(ft_face_cache): New variable.
Juanma Barranquero's avatar
Juanma Barranquero committed
933
	(struct ftfont_info): New member fc_charset_idx.
934
	(ftfont_build_basic_charsets): Delete.
Kenichi Handa's avatar
Kenichi Handa committed
935 936 937 938
	(fc_charset_table): New variable.
	(ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
	. FC_CHARSET_IDX) as :font-entity property in the font entity.
	Callers changed.
Juanma Barranquero's avatar
Juanma Barranquero committed
939
	(ftfont_lookup_cache, ftfont_get_charset): New functions.
940 941
	(ftfont_spec_pattern): New argument fc_charset_idx.
	Check registry more rigidly.  Change callers.
942
	(ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
Kenichi Handa's avatar
Kenichi Handa committed
943 944
	change of :font-entity property of the font.

945
	* xftfont.c (xftfont_open): Adjust for the change of :font-entity
Kenichi Handa's avatar
Kenichi Handa committed
946 947
	property of the font.

948 949 950 951 952 953 954 955 956
2008-05-18  Juanma Barranquero  <lekktu@gmail.com>

	* coding.c (Fcoding_system_p): Rename argument to match docstring.
	(Funencodable_char_position, Fcheck_coding_systems_region)
	(Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
	(Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
	(Ffind_operation_coding_system, Fset_coding_system_priority)
	(Fcoding_system_eol_type): Doc fixes.

957 958 959 960
2008-05-17  Glenn Morris  <rgm@gnu.org>

	* sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.

961 962 963 964 965
2008-05-16  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
	and st_gid.

Juanma Barranquero's avatar
Juanma Barranquero committed
966
	* frame.c (Fdelete_frame): Don't call font_update_drivers if
967 968 969 970 971 972 973
	HAVE_WINDOW_SYSTEM is not defined.

	* xfaces.c (merge_face_ref, merge_face_vectors)
	(Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
	HAVE_WINDOW_SYSTEM is defined.
	(Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.

974 975 976 977
2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keyboard.c (parse_menu_item): Do not cache key shortcut any more.

978 979
2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

980
	* macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
981

982 983 984 985 986
2008-05-15  Kenichi Handa  <handa@m17n.org>

	* font.c (font_find_for_lface): Reflect LFACE_FONT in the font
	preference.

987 988 989 990
2008-05-15  Glenn Morris  <rgm@gnu.org>

	* emacs.c (USAGE1, standard_args): Remove -disable-font-backend.

991 992 993 994 995 996 997
2008-05-15  Chong Yidong  <cyd@stupidchicken.com>

	* fns.c (init_fns): Don't initialize weak_hash_tables here.
	(init_weak_hash_tables): New fun.  Initialize weak_hash_tables.

	* alloc.c (init_alloc_once): Call init_weak_hash_tables.

998 999
2008-05-15  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
1000 1001 1002 1003 1004 1005
	* ftfont.c (ftfont_list): Downcase family name to check generic
	families.

	* xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
	font-spec for QCfont value.

1006 1007 1008
	* fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
	buffer.  Check the return value of it.

1009 1010 1011 1012 1013
2008-05-14  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_get_glyph_overhangs): Remove.
	(w32_redisplay_interface): Use x_get_glyph_overhangs instead.

1014 1015 1016
2008-05-14  Kenichi Handa  <handa@m17n.org>

	* font.c (font_prop_validate): Make nil a valid value.
1017 1018
	(font_clear_cache): Check if the cached vector of entities is nil
	or not.
1019

Miles Bader's avatar
Miles Bader committed
1020
2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1021 1022 1023 1024 1025 1026 1027 1028 1029

	* emacs.c (main_thread): Conditionalize on
	FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
	(main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.

	* syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
	(main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
	FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.

1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122
2008-05-14  Kenichi Handa  <handa@m17n.org>

	* coding.c (detect_coding_iso_2022): Ignore a coding category that
	has no corresponding coding system.

2008-05-14  Jason Rumney  <jasonr@gnu.org>

	* font.h (struct font) [WINDOWSNT]: Remove codepage member.

	* w32font.h (w32font_open_internal): Update declaration.

	* w32font.c (w32font_open_internal): Change last argument from
	w32font_info struct to font object.  Fill in font object from
	font_entity.  Get Outline metrics if possible.  Use them to
	calculate underline position and thickness.  Use xlfd name as name
	property.  Don't set codepage.
	(w32font_open): Pass font_object to w32font_open_internal.  Don't
	update dpyinfo->smallest_font_height and
	dpyinfo->smallest_char_width.
	(w32font_draw): Use s->font.
	(clear_cached_metrics): Don't clear non-existent blocks.

	* w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
	font was not found.
	(x_draw_glyph_string): Use underline position and thickness from
	font.

	* w32uniscribe.c (uniscribe_open): Pass font_object to
	w32font_open_internal.

2008-05-14  Kenichi Handa  <handa@m17n.org>

	These changes are to delete all legacy font-handling codes, and
	make Emacs use only font-backends.

	* Makefile.in: Delete USE_FONT_BACKEND conditionals.
	(frame.o, image.o, print.o): Depend on $(FONTSRC).

	* makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).

	* charset.h (Vcharset_non_preferred_head)
	(Vcurrent_iso639_language): Extern them.

	* charset.c (Vcharset_non_preferred_head): New variable.
	(Vcurrent_iso639_language): New variable.
	(syms_of_charset): Declare it as a Lisp variable.
	(char_charset): Don't check non preferred charsets.  As a last
	resort, return charset_unicode.
	(Fset_charset_priority): Update Vcharset_non_preferred_head.

	* composite.c: Throughout the file, delete all USE_FONT_BACKEND
	conditionals.  Don't check enable_font_backend.  Delete all codes
	used only when USE_FONT_BACKEND is not defined.

	* dispextern.h (struct glyph_string): Change type of `font' to
	`struct font *'.
	(struct glyph_string): New member underline_position and
	underline_thickness.
	(enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
	(struct face): Change type of `font' to `struct font *'.  Remove
	members `font_name', `font_info_id'.
	(per_char_metric, encode_char): Delete externs.
	(calc_pixel_width_or_height): Adjust the prototype.

	* emacs.c (enable_font_backend): Delete extern.
	(main): Don't set enable_font_backend.  Don't check the command
	line argument "-disable-font-backend".

	* font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
	(enum font_property_index): New members FONT_DPI_INDEX,
	FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
	FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
	FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
	(FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
	(FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
	(FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
	(FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
	(FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
	(struct font_spec, struct font_entity): New structs.
	(FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
	(struct font): Many members from old "struct font_info" moved to
	here.  Members font and entity deleted.
	(FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
	the new font-related objects.
	(CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
	(CHECK_FONT_GET_OBJECT): Likewise.
	(XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
	(PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
	(struct font_driver): New members case_sensitive anc check.  Type
	of the member list and open changed.
	(enable_font_backend, font_symbolic_weight, font_symbolic_slant)
	(font_symbolic_width, font_find_object, font_get_spec)
	(font_set_lface_from_name): Delete extern.
Juanma Barranquero's avatar
Juanma Barranquero committed
1123
	(Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134

	* font.c: Include <strings.h>.
	(enable_font_backend): Delete it.
	(Qfont_spec, Qfont_entity, Qfont_object): New variables.
	(CHECK_VALIDATE_FONT_SPEC): Delete it.
	(PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
	(null_string): Delete it.
	(null_vector): Make it static.
	(font_family_alist): Delete it.
	(Qnormal): Extern it.
	(QCextra, QClanguage): Delete it.
Juanma Barranquero's avatar
Juanma Barranquero committed
1135
	(QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148
	(font_make_spec, font_make_entity, font_make_object)
	(font_intern_prop): Renamed from intern_downcase.  Don't downcase
	the string.  Callers changed.
	(font_pixel_size): Adjusted for the format change of font-related
	objects.
	(prop_name_to_numeric, prop_numeric_to_name): Delete them.
	(font_style_to_value, font_style_symbolic): New function.
	(build_font_family_alist): Delete it.
	(font_registry_charsets): Use Fassoc_string instead of
	assq_no_quit.
	(font_prop_validate_symbol): Don't return null_string.
	(font_prop_validate_style): Adjusted for the change of
	style-related values in a font vector.
Juanma Barranquero's avatar
Juanma Barranquero committed
1149
	(font_property_table): Delete entries for QClanguage and
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167
	QCantialias, add entries for QCavgwidth.
	(get_font_prop_index): Delete the 2nd argument FROM.
	(font_prop_validate): Arguments changed.
	(font_put_extra): Adjusted for the change of font-related objects.
	(font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
	(font_parse_fcname, font_unparse_fcname)
	(font_prepare_composition): Likewise.
	(font_parse_family_registry): Renamed from font_merge_old_spec.
	(otf_open): Delete the 1st arg entity.
	(font_otf_capability): Adjusted for the above change.
	(font_score): New arg alternate_families.  Adjusted for the change
	of font-related objects.
	(font_sort_entites): New arg best_only.
	(font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
	Delete them.
	(font_match_p): Check alternate families.
	(font_find_object): Delete it.
	(font_check_object): New function.
Juanma Barranquero's avatar
Juanma Barranquero committed
1168
	(font_clear_cache): Adjusted for the change of font-related objects.
1169 1170 1171 1172
	(font_delete_unmatched): New arg.
	(font_list_entities): Call font_driver->list with a spec that
	doesn't specify style-related properties.
	(font_matching_entity): Arguments changed.  Caller changed.
Juanma Barranquero's avatar
Juanma Barranquero committed
1173
	(font_open_entity): Adjusted for the change of font-related objects.
1174 1175
	(font_close_object, font_has_char, font_encode_char)
	(font_get_name, font_get_spec): Likewise.
Juanma Barranquero's avatar
Juanma Barranquero committed
1176 1177 1178
	(font_spec_from_name, font_clear_prop, font_update_lface):
	New functions.
	(font_find_for_lface, font_open_for_lface, font_load_for_lface)
1179 1180 1181 1182
	(font_prepare_for_face, font_done_for_face, font_open_by_name)
	(font_at): Adjusted for the change of font-related objects.
	(font_range): New function.
	(Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
Juanma Barranquero's avatar
Juanma Barranquero committed
1183
	(Ffont_xlfd_name): Adjusted for the change of font-related objects.
1184 1185 1186 1187 1188 1189
	(Fcopy_font_spec, Fmerge_font_spec): New function.
	(Ffont_family_list): Renamed from list-families.
	(Finternal_set_font_style_table): Arguments changed.
	(Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
	(Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
	change of font-related objects.
Juanma Barranquero's avatar
Juanma Barranquero committed
1190
	(syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342