ChangeLog 412 KB
Newer Older
Kenichi Handa's avatar
Kenichi Handa committed
1 2
2008-05-22  Kenichi Handa  <handa@m17n.org>

3 4 5
	* font.c (font_prop_validate_style): Adjusted for the format
	change of font_style_table.

Kenichi Handa's avatar
Kenichi Handa committed
6 7 8 9 10 11
	* 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.

12 13 14 15 16 17
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.

18 19
2008-05-22  Kenichi Handa  <handa@m17n.org>

20
	* ftfont.c (ftfont_resolve_generic_family): Rename from
21 22 23
	ftfont_list_generic_family.  Return a single family for each
	generic family.
	(ftfont_spec_pattern): Add FC_FAMILY to pattern.
24
	(ftfont_list): Adjust for the change of
25 26 27 28 29 30
	ftfont_resolve_generic_family.  Call font_add_log.
	(ftfont_match): Call font_add_log.

	* font.h (Ffont_xlfd_name): EXFUN adjusted.
	(FONT_DEBUG): Define it.
	(font_add_log): Extern it.
31
	(font_assert): Rename from xassert.
32 33 34 35

	* xfont.c (xfont_get_pcm): Change xassert to font_assert.
	(xfont_list_family): Call font_add_log.
	(xfont_match): Likewise.
36
	(memq_no_quit): Delete.
37 38 39 40 41

	* 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)
42
	(swidth_table): Move to font.c.
43 44

	* font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
45
	xassert are changed to font_assert.  Delete many unused variables.
46 47
	(Vfont_weight_table, Vfont_slant_table, Vfont_width_table): New
	variables.
48 49
	(struct table_entry): Move from xfaces.c and modified.
	(weight_table, slant_table, width_table): Move from xfaces.c and
50
	contents adjusted for the change of struct table_entry.
51 52
	(font_style_to_value, font_style_symbolic): Adjusted for the
	format change of font_style_table.
53 54 55 56 57 58
	(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.
59 60
	(font_matching_entity, font_open_entity, font_close_entity): Call
	font_add_log.
61
	(Ffont_xlfd_name): New arg FOLD-WILDCARDS.
62
	(Finternal_set_font_style_table): Delete.
63 64 65 66 67 68 69 70
	(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.

71 72
2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>

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

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

Glenn Morris's avatar
Glenn Morris committed
78
	* frame.c (Qalpha): Add a new frame parameter `alpha'.
Juanma Barranquero's avatar
Juanma Barranquero committed
79
	(Vframe_alpha_lower_limit): New variable.
Glenn Morris's avatar
Glenn Morris committed
80
	(x_set_alpha): New function.
81

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

Glenn Morris's avatar
Glenn Morris committed
84 85
	* xfns.c (x-create-frame, Qalpha):
	Initialize the frame parameter `alpha'.
Glenn Morris's avatar
Glenn Morris committed
86 87 88
	* xterm.c (OPAQUE, OPACITY): New.
	(x_set_frame_alpha): New function.
	(frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
89

Glenn Morris's avatar
Glenn Morris committed
90 91
	* macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
	* w32fns.c (w32_frame_parm_handlers): Likewise.
92

93 94 95 96 97
2008-05-20  Jason Rumney  <jasonr@gnu.org>

        * w32font.c (add_font_entity_to_list): Don't add non-opentype
        truetype fonts to opentype list.

Juanma Barranquero's avatar
Juanma Barranquero committed
98 99 100 101 102 103 104 105 106 107 108
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.

109 110 111 112 113
2008-05-20  Kenichi Handa  <handa@m17n.org>

	* Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
	font.h through out the file.
	(FONT_DRIVERS): Renamed from FONTOBJ.
Kenichi Handa's avatar
Kenichi Handa committed
114
	(obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
	(SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).

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

	* font.h (find_font_encoding): Extern it.

	* font.c (Vfont_encoding_alist, find_font_encoding): Moved from
	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.

	* fontset.c (Vfont_encoding_alist, find_font_encoding): Moved to
	font.c.
	(syms_of_fontset): Declaration of font-encoding-alist moved to
	font.c.

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

139 140 141 142 143 144 145
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.

146 147
2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>

Stefan Monnier's avatar
Stefan Monnier committed
148 149 150 151 152 153 154
	* 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.

155 156 157
	* 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
158 159 160 161 162
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
163 164 165 166 167
2008-05-19  Kenichi Handa  <handa@m17n.org>

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

168
	* ftfont.c (cs_iso8859_1): Delete.
Kenichi Handa's avatar
Kenichi Handa committed
169 170
	(ft_face_cache): New variable.
	(struct ftfont_info): New member fc_charset_idx;
171
	(ftfont_build_basic_charsets): Delete.
Kenichi Handa's avatar
Kenichi Handa committed
172 173 174 175
	(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
176
	(ftfont_lookup_cache, ftfont_get_charset): New functions.
177 178
	(ftfont_spec_pattern): New argument fc_charset_idx.
	Check registry more rigidly.  Change callers.
179
	(ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
Kenichi Handa's avatar
Kenichi Handa committed
180 181
	change of :font-entity property of the font.

182
	* xftfont.c (xftfont_open): Adjust for the change of :font-entity
Kenichi Handa's avatar
Kenichi Handa committed
183 184
	property of the font.

185 186 187 188 189 190 191 192 193
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.

194 195 196 197
2008-05-17  Glenn Morris  <rgm@gnu.org>

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

198 199 200 201 202
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
203
	* frame.c (Fdelete_frame): Don't call font_update_drivers if
204 205 206 207 208 209 210
	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.

211 212 213 214
2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>

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

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

217
	* macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
218

219 220 221 222 223
2008-05-15  Kenichi Handa  <handa@m17n.org>

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

224 225 226 227
2008-05-15  Glenn Morris  <rgm@gnu.org>

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

228 229 230 231 232 233 234
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.

235 236
2008-05-15  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
237 238 239 240 241 242
	* 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.

243 244 245
	* fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
	buffer.  Check the return value of it.

246 247 248 249 250
2008-05-14  Jason Rumney  <jasonr@gnu.org>

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

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

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

Miles Bader's avatar
Miles Bader committed
257
2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
258 259 260 261 262 263 264 265 266

	* 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.

267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753
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.
	(Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New
	EXFUNs.

	* 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.
	(QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New
	variables.
	(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.
	(font_property_table): Delete entries for QClangauge and
	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.
	(font_clear_cache): Adjusted for the change of font-related
	objects.
	(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.
	(font_open_entity): Adjusted for the change of font-related
	objects.
	(font_close_object, font_has_char, font_encode_char)
	(font_get_name, font_get_spec): Likewise.
	(font_spec_from_name, font_clear_prop, font_update_lface): New
	functions.
	(font_find_for_lface, font_open_for_lface, font_load_for_lface):
	(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)
	(Ffont_xlfd_name): Adjusted for the change of font-related
	objects.
	(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.
	(syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new
	symboles.

	* fontset.h (struct font_info): Delete it.  Most memnbers go to
	struct font.
	(FONT_ENCODING_NOT_DECIDED): Moved to font.h.
	(enum FONT_SPEC_INDEX): Delete it.
	(font_info, list_fonts_func, load_font_func, query_font_func)
	(set_frame_fontset_func, find_ccl_program_func)
	(get_font_repertory_func, new_fontset_from_font_name): Delete
	externs.
	(fontset_from_font_name): Extern it.
	(FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
	(FONT_INFO_FROM_FACE): Deleted.
	(face_for_font): Adjust prototype.

	* fontset.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.
	(get_font_info_func, list_font_func, load_font_func)
	(query_font_func, set_frame_fontset_func, find_ccl_program_func)
	(get_font_repertory_func): Delete them.
	(FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
	(FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
	(RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
	(RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
	(RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
	(fontset_compare_rfontdef): New function.
	(reorder_font_vector): Remove the argument CHARSET-ID.  Sort
	ront-defs by qsort.  Adjusted for the change of font-group vector.
	(load_font_get_repertory): Deleted.
	(fontset_find_font): Use new macros to ref/set elements of
	font-def and rfont-def.
	(fontset_font): Fix the timing of remembering that no font for C.
	(free_face_fontset): Do nothing if the face has no fontset.
	(face_suitable_for_char_p): Use new macros to ref/set elements of
	rfont-def.
	(face_for_char): Likewise.  Call face_for_char with font_object.
	(fs_load_font): Delete.  Delete #pragma surrounding it.
	(fs_query_fontset): Use strcasecmp instead of strcmp.
	(generate_ascii_font_name): Adjusted for the format change of
	font-spec.
	(Fset_fontset_font): Likewise.  Use new macros to set elements of
	font-def.
	(Fnew_fontset): Use font_unparse_xlfd to generate
	FONTSET_ASCII (fontset).
	(new_fontset_from_font_name): Deleted.
	(fontset_from_font): Renamed from new_fontset_from_font.  Check if
	a fontset is already created for the font.  FIx updating of
	Vfontset_alias_alist.
	(fontset_ascii_font): Deleted.
	(Ffont_info): Adjusted for the format change of font-spec.
	(Finternal_char_font): Likewise.
	(Ffontset_info): Likewise.
	(syms_of_fontset): Don't check load_font_func.

	* fns.c (internal_equal): Handle PREV_FONT.

	* frame.h: Delete USE_FONT_BACKEND conditional.

	* frame.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.
	(x_set_font): Call x_new_font, not x_new_fontset2.
	(x_set_font_backend): Use FRAME_FONT macro to check if a font is
	already set for the frame.

	* ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
	a font-entity by font_make_entity.  Use font_intern_prop instead
	of intern_downcase.  Use FONT_SET_STYLE to set a style-related
	font property.  If a font is scalable, set avgwidth property to 0.
	Set font-entity property by font_put_extra.
	(ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
	(ffont_driver): Adjusted for the change of struct font_driver.
	(ftfont_spec_pattern): New function.
	(ftfont_list): Return a list, not vector.
	(ftfont_match): Use ftfont_spec_pattern to get a pattern.
	(ftfont_list_family): Don't downcase names.
	(ftfont_free_entity): Deleted.
	(ftfont_open): Return a font-ojbect.  Adjusted for the change of
	struct font.  Get underline_thickness and underline_position from
	font property.  Don't update dpyinfo->smallest_font_height and
	dpyinfo->smallest_char_width.
	(ftfont_close): Don't free `struct font'.
	(ftfont_has_char): Adjusted for the format change of font-entity.
	(ftfont_encode_char, ftfont_text_extents): Likewise.

	* ftxfont.c (ftxfont_list): Return a list, not vector.
	(ftxfont_open): Return a font-ojbect.  Adjusted for the change of
	struct font.  Get underline_thickness and underline_position from
	font property.  Don't update dpyinfo->smallest_font_height and
	dpyinfo->smallest_char_width.
	(ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
	(ftxfont_draw): Adjusted for the change of struct font.

	* image.c (image_ascent): Don't include "charset.h".  Include
	"character.h" and "font.h".

	* lisp.h (enum pvec_type): New member PREV_FONT.
	(Fassoc_string): EXFUN it.

	* print.c: Include font.h.
	(print_object): Handle font-related objects.

	* xdisp.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.
	(handle_auto_composed_prop): Do nothing if it->f is not on a
	window system.  Check how many following characters can be
	displayed by the same font.
	(calc_pixel_width_or_height): Type of the 4th arg is changed to
	'struct font *'.
	(get_char_face_and_encoding): Assign the whole encoding task to
	the `encode-char' method of a font driver.
	(fill_composite_glyph_string): Adjusted for the change of `struct
	face' and `struct glyph_string'.
	(fill_glyph_string): Likewise.
	(get_per_char_metric): Arguments changed.
	(x_get_glyph_overhangs): Adjusted for the change of `struct face'
	and `struct glyph_string'.
	(produce_stretch_glyph, calc_line_height_property)
	(x_produce_glyphs): Likewise.

	* xfaces.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.  Use
	FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
	(QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
	(Qp): Extern them.
	(clear_font_table, load_face_font, xlfd_lookup_field_contents):
	Deleted.
	(struct font_name): Deleted.
	(xlfd_numeric_value, xlfd_symbolic_value): Deleted.
	(compare_fonts_by_sort_order): New function.
	(xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
	(xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
	Deleted.
	(Fx_family_fonts): Use font_list_entities, and sort fonts by
	compare_fonts_by_sort_order.
	(Fx_font_family_list): Call Ffont_family_list.
	(face_numeric_value, face_numeric_weight, face_numeric_slant)
	(face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
	(face_symbolic_slant, face_symbolic_swidth)
	(split_font_name_into_vector, build_font_name_from_vector)
	(xlfd_fixed_p, xlfd_point_size, pixel_point_size)
	(font_rescale_ratio, split_font_name, build_font_name)
	(free_font_names, sort_fonts, x_face_list_fonts)
	(face_font_available_p, sorted_font_list, cmp_font_names)
	(font_list_1, concat_font_list, font_list, remove_duplicates):
	Deleted.
	(Fx_list_fonts): Use Ffont_list.
	(LFACE_AVGWIDTH): Deleted.
	(check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
	by FONTP.
	(lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
	(set_lface_from_font_name): Delete it.
	(set_lface_from_font): Renamed from
	set_lface_from_font_and_fontset.  Caller changed.  Don't set
	LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
	for face.
	(merge_face_vectors): Copy font-spec if necessary.  Clear
	properties of the font-spec if necessary.
	(merge_face_ref): Clear properties of the font-spec if necessary.
	(Finternal_set_lisp_face_attribute): Likewise.
	(set_font_frame_param): Use font_load_for_lface to load a
	font-object, and call Fmodify_frame_parameters with it.
	(x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
	font name by Ffont_xlfd_name.
	(Finternal_lisp_face_attribute_values): Don't check QCweight,
	QCslant, and QCwidth.
	(Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
	(lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
	Compare fonts by EQ.
	(lookup_non_ascii_face): Deleted.
	(face_for_font): The 2nd argument changed.
	(x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.  Check
	atomic font properties by case insensitive.
	(realize_non_ascii_face): Set face->overstrike correctly.
	(realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
	(dump_realized_face): Get font name from
	font->props[FONT_NAME_INDEX].  Don't print font_info_id.

	* xfns.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.
	(xic_create_xfontset): Original code deleted and renamed from
	xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
	(x_make_gc): Don't set GCFont in GCs.
	(Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
	opened by "fixed".
	(syms_of_xfns): Don't set get_font_info_func, load_font_func,
	find_ccl_program_func, query_font_func, set_frame_fontset_func,
	get_font_repertory_func.

	* xfont.c: Include <stdlib.h> and "ccl.h".
	(struct xfont_info): New structure.
	(xfont_query_font): Deleted.
	(xfont_find_ccl_program): Renamed from x_find_ccl_program and
	moved from xterm.c.
	(xfont_driver): Adjusted for the change of struct font_driver.
	(compare_font_names): New function.
	(xfont_list_pattern): Sort font names case insensitively.  Make
	font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
	(xfont_list): Return a list, not vector.
	(xfont_match): If the font doesn't have QCname property, generate
	a name from the other font properties.
	(xfont_open): Return a font-ojbect.  Adjusted for the change of
	struct font.  Get underline_thickness and underline_position from
	font property.  Don't update dpyinfo->smallest_font_height and
	dpyinfo->smallest_char_width.
	(xfont_close): Don't free struct font.
	(xfont_prepare_face): Adjusted for the change of struct font.
	(xfont_done_face): Deleted.
	(xfont_has_char): Adjusted for the change of struct font.
	(xfont_encode_char, xfont_draw): Likewise.
	(xfont_check): New function.

	* xftfont.c (xftfont_list): Adjusted for the change of `list'
	callback function.
	(xftfont_match): Adjusted for the fontmat change of font-entity.
	(xftfont_open): Adjusted for the format change of font-entity and
	font-object.  Adjusted for the change of struct font.  Return a
	font-object.  Don't update dpyinfo->smallest_font_height and
	dpyinfo->smallest_char_width.
	(xftfont_close): Block input while calling XftFontClose.
	(xftfont_prepare_face): Don't block input while calling
	xftfont_get_colors.  Adjusted for the change of struct font.
	(xftfont_shape): Return value of error case fixed.

	* xrdb.c (x_load_resources): Don't setup a fontset resource.

	* xterm.h: Throughout the file, delete all USE_FONT_BACKEND
	conditionals.
	(FONT_WIDTH): Return (f)->max_width.
	(struct x_display_info): Delete member `font'.
	(x_list_fonts, x_get_font_info, x_load_font, x_query_font)
	(x_find_ccl_program, x_get_font_repertory): Delete externs.
	(struct x_output): Change type of `font' to `struct font *'.

	* xterm.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.  Don't include
	ccl.h.
	(x_per_char_metric, x_encode_char): Deleted.
	(x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
	(x_compute_glyph_string_overhangs): Adjusted for the change of
	`struct face'
	(x_draw_glyph_string_foreground)
	(x_draw_composite_glyph_string_foreground): Likewise.
	(x_draw_glyph_string): Likewise.  Use font->underline_position and
	font->underline_thickness.
	(x_new_font): Renamed from x_new_fontset2.
	(x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
	(x_check_font): Call `check' method of a font driver.
	(x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
	(x_query_font, x_get_font_repertory): Deleted.
	(x_find_ccl_program): Renamed and moved to xfont.c.
	(x_redisplay_interface): Adjusted for the change of `struct
	redisplay_interface'.

	* w32fns.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.  Surround non-used
	code by "#ifdef OLD_FONT" and "endif".
	(Fw32_select_font): Use FONT_COMPAT to get old font structure.

	* w32font.h (struct w32font_info): New member.
	(FONT_COMPAT): New macro.
	(w32font_open_internal): Prototype adjusted.

	* w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
	OLD_FONT" and "endif".

	* w32font.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.
	(w32font_open): Return a font-object.  Make a font-object by
	font_make_object.  Adjusted for the change of struct w32font_info.
	(w32font_close): Don't free struct font.  Adjusted for the change
	of struct w32font_info.
	(w32font_encode_char, w32font_text_extents, w32font_draw):
	Adjusted for the change of struct w32font_info.
	(w32font_draw): Likewise.
	(w32font_list_internal): Return a list, not vector.
	(w32font_open_internal): Change the 4th arg to font-object.
	Adjusted for the change of struct w32font_info and font-object
	format.
	(add_font_name_to_list): Don't downcase names.
	(w32_enumfont_pattern_entity): Make a font-entity by
	font_make_entity.  Adjusted for the format change of font-entity.
	Use FONT_SET_STYLE to set a style-related font property.  If a
	font is scalable, set avgwidth property to 0.  Set font-entity
	property by font_put_extra.
	(font_matches_spec): Adjusted for the format change of
	font-entity.
	(w32_weight_table, w32_decode_weight): New variables.
	(w32_encode_weight): New function.
	(fill_in_logfont): Adjusted for the format change of font-spec.
	(w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
	weight value.
	(w32font_driver): Adjusted for the change of struct font_driver.

	* w32term.h: Throughout the file, delete all USE_FONT_BACKEND
	conditionals.  Don't check enable_font_backend. Surround non-used
	code by "#ifdef OLD_FONT" and "endif".
	(FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
	(FONT_AVG_WIDTH): Adjusted for the change of struct font.

	* w32term.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.  Surround non-used
	code by "#ifdef OLD_FONT" and "endif".

	* w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
	(uniscribe_open): Return value changed to font-object.  Adjusted
	for the format change of font-object.
	(uniscribe_otf_capability): Adjusted for the change of struct
	font.
	(add_opentype_font_name_to_list): Don't downcase names.
	(uniscribe_font_driver): Adjusted for the change of struct
	font_driver.

754 755 756 757 758
2008-05-13  Chong Yidong  <cyd@stupidchicken.com>

	* dispnew.c (update_frame_1): Check if tty output is still valid
	before flushing it.

759 760 761 762 763
2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>

	* xterm.c (handle_one_xevent): Don't pass buttons higher than 3
	to Gtk+ menus.

764 765
2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>

766 767 768
	* dired.c (file_name_completion): Tweak the code so as to always do it
	in a single pass.  Tighten the scope of some variables.

769 770 771 772
	* dired.c (Qdefault_directory): New var.
	(file_name_completion): Use it instead of Fexpand_file_name.
	(syms_of_dired): Initialize it.

773 774 775 776
2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (double_dollars): Remove dead code.

777 778
2008-05-10  Eli Zaretskii  <eliz@gnu.org>

779 780 781
	* dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
	Mention w32-get-true-file-attributes in doc string.

782 783
	* w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.

784 785 786 787 788
2008-05-09  Glenn Morris  <rgm@gnu.org>

	* fileio.c (Fread_file_name): Remove reference to insdef, deleted
	2008-04-23.

Eli Zaretskii's avatar
Eli Zaretskii committed
789 790
2008-05-09  Eli Zaretskii  <eliz@gnu.org>

791 792 793 794 795
	Support for reporting owner and group of each file on MS-Windows:
	* dired.c (stat_uname, stat_gname): New functions, with special
	implementation for w32.
	(Ffile_attributes): Use them instead of getpwuid and getgrgid.

Eli Zaretskii's avatar
Eli Zaretskii committed
796 797
	* w32.c: Rename the_passwd_* to dflt_passwd_*.
	(dflt_group_name): New static variable.
798
	(dflt_group): Rename from the_group.
Eli Zaretskii's avatar
Eli Zaretskii committed
799 800
	(init_user_info): Init dflt_group fields.  Get user's group name
	from LookupAccountSid.
801 802 803 804 805 806 807 808 809 810 811 812 813 814 815
	(g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
	(g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
	New initialization states.
	(globals_of_w32): Initialize them to zero.  Initialize the default
	group name to "None".
	(GetFileSecurity_Name): New global var, the name of the function
	to call for GetFileSecurity.
	(GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
	(GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
	(get_file_security, get_security_descriptor_owner)
	(get_security_descriptor_group, is_valid_sid)
	(get_file_security_desc, get_rid, get_name_and_id)
	(get_file_owner_and_group): New functions.
	(stat): Use get_file_security_desc and get_file_owner_and_group to
	report the owner and primary group of each file.  Don't ignore the
816 817
	high 32 bits of file's size, now that st_size is 64-bit wide.
	Fix test when to get true file attributes.
818 819
	(init_user_info): Use get_rid instead of equivalent inline code.
	(fstat): Don't ignore the high 32 bits of file's size.
Eli Zaretskii's avatar
Eli Zaretskii committed
820

821 822 823 824 825
2008-05-09  Chong Yidong  <cyd@stupidchicken.com>

	* image.c (png_load): Use correct bit-depth for setting background
	color.

826 827 828 829 830
2008-05-08  Eli Zaretskii  <eliz@gnu.org>

	* Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
	epa-hook.elc.

831 832 833 834
2008-05-08  Juanma Barranquero  <lekktu@gmail.com>

	* font.c (Ffont_match_p): Don't use `iff' in docstring.

835 836 837 838 839 840
2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>

	* macfns.c (Fx_create_frame): Make a copy of frame parameters
	because the original parameters are in pure storage now.
	(mac_window): Remove unused params.  Update callers.

841 842
2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>

843 844 845 846
	* lread.c (substitute_object_recurse): Use lower-level primitives.
	Don't signal errors when traversing sub-char-tables.
	Don't loop over all the possible characters when traversing char-tables.

847 848 849
	* print.c (print_preprocess): Add sub-char-tables to the print-table,
	just like we do in print.c.

850 851 852 853 854
2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>

	* minibuf.c (Ftry_completion): Remove code left over from when we used
	scmp instead of Fcompare_strings.

855 856 857 858
2008-05-04  Juanma Barranquero  <lekktu@gmail.com>

	* w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.

859 860 861 862 863
2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
	Create bitmap context in native byte order.

Miles Bader's avatar
Miles Bader committed
864 865 866
	* macterm.c (XDrawLine)
	(XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
	context in native byte order.
867

Miles Bader's avatar
Miles Bader committed
868
2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907

	* config.in: Regenerate.

	* image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
	New definitions for Image I/O support.
	(XGetImage, XPutPixel, XGetPixel, XDestroyImage)
	(mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
	[USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
	(mac_data_provider_release_data, image_load_image_io)
	[USE_MAC_IMAGE_IO]: New functions.
	(CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
	(MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
	(init_image_func_pointer) [MAC_OSX]: Remove function.
	(image_load_quartz2d) [MAC_OSX]: Check availability of
	CGImageCreateWithPNGDataProvider at compile time.
	Use lowercase `false' for boolean constant.
	(png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
	Use image_load_image_io.
	(png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
	Don't check MyCGImageCreateWithPNGDataProvider.
	(init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
	Don't call init_image_func_pointer.

	* macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.

	* macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
	Make variable non-static.
	(XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
	[USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.

	* macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
	(RED_FROM_ULONG): Mask off higher bits.
	(mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.

	* s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
	Include AvailabilityMacros.h.
	(USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
	(LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.

908 909 910 911 912
2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>

	* chartab.c (Fset_char_table_range): If range is t, really set all
	chars to that value.

913 914 915 916 917
2008-05-03  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (Ffile_attributes): Don't allow the device number become
	negative.

Daiki Ueno's avatar
Daiki Ueno committed
918 919
2008-05-02  Daiki Ueno  <ueno@unixuser.org>

920
	* Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
Daiki Ueno's avatar
Daiki Ueno committed
921

922 923 924
2008-05-02  Juri Linkov  <juri@jurta.org>

	* minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
925 926
	(Fread_variable, Fread_buffer, Fcompleting_read): Document the
	DEFAULT argument as a list of default values in docstrings.
927

928 929 930 931
2008-05-01  Chong Yidong  <cyd@stupidchicken.com>

	* puresize.h (BASE_PURESIZE): Increase to 1210000.

932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949
2008-05-01  Martin Rudalics  <rudalics@gmx.at>

	* dispnew.c (change_frame_size_1): Preserve small windows when
	shrinking frames by calling set_window_height|width with third
	arg 2.

	* window.h (struct window): Replace field too_small_ok by field
	resize_proportionally.

	* window.c (make_window): Initialize resize_proportionally.
	(enlarge_window): Temporarily set resize_proportionally to make
	sure that shrink_windows does scale the window proportionally.
	(shrink_windows): When window has resize_proportionally set try
	to shrink it proportionally by stealing from other windows.
	(struct saved_window, Fset_window_configuration)
	(compare_window_configurations): Handle resize_proportionally.
	(WINDOW_TOTAL_SIZE): New macro.
	(window_min_size, shrink_windows, size_window): Use it.
950
	(check_min_window_sizes): Remove.  Invalid values of
951 952 953 954
	window-min-height|width are handled by window_min_size_2 now.
	(size_window, Fsplit_window, enlarge_window)
	(adjust_window_trailing_edge, grow_mini_window): Don't call
	check_min_window_sizes.
955 956
	(window_min_size_2, window_min_size_1, window_min_size):
	New argument safe_p for retrieving "safe" minimum sizes.
957
	(Fdisplay_buffer, Fsplit_window, enlarge_window):
958 959
	(adjust_window_trailing_edge, grow_mini_window):
	Adjust arguments of window_min_size... functions.
960 961 962 963 964 965 966 967 968 969 970 971 972 973
	(shrink_windows): Argument min_size removed.  New argument
	safe_p allows shrinking windows to their safe minimum sizes.
	Calculate minimum size and decide whether a window shall be
	deleted for each window individually.
	(size_window): When nodelete_p equals 2, tell shrink_windows to
	delete windows only if their new minimum size is no more safe.
	(shrink_window_lowest_first): Call window_min_size_1 to make
	sure to preserve modeline of bottom-most window when resizing
	the minibuffer.
	(Fset_window_configuration, Fcurrent_window_configuration)
	(compare_window_configurations): Do not handle
	window-min-height|width any more.
	(syms_of_window): Clarify window-min-height|width doc-strings.

974 975 976 977 978 979 980
2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>

	* dired.c (file_name_completion): Fix up the encoding/decoding issue
	some more.  Copy some of the code from Ftry_completions.
	Remove special case code that dates back to initial revision when the
	slash was only added when necessary and that can't trigger nowadays.

Kenichi Handa's avatar
Kenichi Handa committed
981 982 983 984
2008-04-27  Kenichi Handa  <handa@m17n.org>

	* font.c (font_prop_validate): Signal `error' instead of `font'.

985 986 987 988 989
2008-04-29  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fw32_battery_status): New defun.
	(syms_of_w32fns): Defsubr it.

990 991 992 993 994
2008-04-28  Andreas Schwab  <schwab@suse.de>

	* dired.c (file_name_completion): Fix another mixing of encoded
	and decoded names.

995 996 997 998
2008-04-28  Juanma Barranquero  <lekktu@gmail.com>

	* w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.

Juanma Barranquero's avatar
Juanma Barranquero committed
999 1000 1001 1002
2008-04-27  Juanma Barranquero  <lekktu@gmail.com>

	* fringe.c (Fdefine_fringe_bitmap): Doc fix.

1003 1004
2008-04-27  Andreas Schwab  <schwab@suse.de>

1005 1006 1007
	* dired.c (file_name_completion): Fix inappropriate mixing of
	encoded and decoded names.

1008 1009
	* xterm.c (XTread_socket): Fix use of uninitialized variable.

1010 1011
	* puresize.h (BASE_PURESIZE): Increase to 1200000.

1012 1013 1014 1015 1016 1017 1018
2008-04-26  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
	2008-03-31, it's not needed anymore with `struct stat' definition
	on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
	for the same reasons.

1019
2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
1020 1021 1022

	* m/sparc.h: Additional redefinitions for GNU/Linux.

1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051
2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>

	* macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
	(syms_of_macterm) [USE_MAC_TSM]: Defvar it.
	(Qmouse_drag_overlay) [MAC_OSX]: New variable.
	(syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
	(mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
	(mac_ax_selected_text_range) [MAC_OSX]: New functions.
	(mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Likewise.

	* mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
	(fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range):
	(mac_ax_number_of_characters): Add externs.
	(mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
	[USE_MAC_TSM]: Likewise.
	(mac_handle_text_input_event) [MAC_OSX]:
	Handle kEventTextInputOffsetToPos for no active input area case.
	Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
	(mac_handle_document_access_event)
	[MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
	(install_application_handler) [MAC_OSX]: Register handlers for
	kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
	(install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
	Register mac_handle_document_access_event.

	* xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
	Make functions non-static.

1052 1053 1054 1055 1056 1057 1058
2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Vread_file_name_function, Vread_file_name_predicate)
	(read_file_name_completion_ignore_case, insert_default_directory)
	(Qdefault_directory): Move to minibuffer.el.
	(Fread_file_name): Call the new `read-file-name' instead.

Glenn Morris's avatar
Glenn Morris committed
1059
2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
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

	* mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
	Make function non-static.
	(create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
	Remove function.
	(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
	Move to mactoolbox.c.
	(mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.

	* macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
	(mac_rect_make): New macro.

	* macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
	instead of float.
	(mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
	(init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
	(XSetBackground) [USE_CG_DRAWING]: Likewise.
	(mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
	CGRectMake.
	(mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
	(mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
	(mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
	(XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
	instead of WindowRef in argument type.
	(XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
	(mac_invert_rectangle): Use CGContextSetBlendMode if available.
	(mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
	instead of DISPLAY.  All uses changed.
	(mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
	(x_calc_absolute_position): Simplify so as not to use
	FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.

	* macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
	instead of WindowRef in argument type.
	(create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
	[TARGET_API_MAC_CARBON]: Remove externs.
	(create_apple_event, mac_event_parameters_to_lisp)
	[TARGET_API_MAC_CARBON]: Add externs.

Juanma Barranquero's avatar
Juanma Barranquero committed
1099
	* mactoolbox.c (Vmac_ts_script_language_on_focus)
1100 1101 1102 1103 1104 1105 1106
	(saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
	(XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
	is clicked.
	(x_activate_menubar): Remove extern for saved_menu_event_location.
	(create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
	Move from mac.c.

Glenn Morris's avatar
Glenn Morris committed
1107
2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1108 1109 1110 1111

	* alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
	[HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.

Glenn Morris's avatar
Glenn Morris committed
1112
2008-04-23  Jason Rumney  <jasonr@gnu.org>
Jason Rumney's avatar
Jason Rumney committed
1113 1114 1115 1116 1117

	* w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
	attributes only for local files.

	* w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
1118
	default to Qlocal.
Jason Rumney's avatar
Jason Rumney committed
1119

1120 1121 1122 1123 1124
2008-04-22  Juri Linkov  <juri@jurta.org>

	* buffer.c (Fswitch_to_buffer): Change interactive spec to call
	read-buffer-to-switch instead of using the letter "B".

1125 1126 1127 1128 1129
2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Qdefault_directory): New variable.
	(Fread_file_name): Use it to pass `dir' to the completion functions.

1130 1131
2008-04-20  Chong Yidong  <cyd@stupidchicken.com>

Juanma Barranquero's avatar
Juanma Barranquero committed
1132
	* xdisp.c (pos_visible_p): Check if iterator stops on a display string.
1133

1134 1135
2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>

1136 1137 1138
	* keyboard.c (Vpre_help_message): Remove.
	(show_help_echo): Remove default C code.

1139 1140 1141
	* dired.c (directory_files_internal, file_name_completion):
	Only call ENCODE_FILE if the string is indeed decoded.

1142 1143 1144 1145 1146
2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>

	* Makefile.in (TOOLKIT_DEFINES): Remove.
	(LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.

Juanma Barranquero's avatar
Juanma Barranquero committed
1147
2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
YAMAMOTO Mitsuharu's avatar
YAMAMOTO Mitsuharu committed
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 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

	* Makefile.in (MAC_OBJ): Add mactoolbox.o.
	(mactoolbox.o): New target.

	* mac.c [MAC_OSX] (select_and_poll_event, sys_select):
	Use mac_run_loop_run_once instead of CFRunLoopRunInMode.

	* macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
	Use mac_set_frame_window_background instead of XSetWindowBackground.
	(x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
	Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
	(x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
	instead of SetWindowTitleWithCFString.
	(mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
	Move function to mactoolbox.c.
	(mac_update_title_bar) [TARGET_API_MAC_CARBON]:
	Use mac_set_window_modified instead of SetWindowModified.
	Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
	(mac_window, x_create_tip_frame): Use mac_create_frame_window.
	(Fx_focus_frame): Use mac_front_non_floating_window instead of
	FrontNonFloatingWindow.  Use mac_activate_window instead of
	ActivateWindow.  Use mac_active_non_floating_window instead of
	ActiveNonFloatingWindow.
	(show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
	Use mac_show_hourglass and mac_hide_hourglass.
	(compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
	instead of GetGlobalMouse.
	(Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
	instead of MoveWindow/SizeWindow/ShowWindow, respectively.
	Use mac_bring_window_to_front instead of BringToFront.
	(Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
	mactoolbox.c.
	(Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
	mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
	(mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
	mactoolbox.c.

	* macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
	(XtPointer): Move typedef from macmenu.c.
	(enum button_type): Move enum from macmenu.c.
	(widget_value): Move typedef from macmenu.c.
	(M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
	(DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
	(DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
	(DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
	(DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
	(DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
	(DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
	(DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
	(Selection): Move typedef from macselect.c.
	(RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
	macterm.c.
	(mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
	(mac_is_window_collapsed, mac_bring_window_to_front)
	(mac_send_window_behind, mac_hide_window, mac_show_window)
	(mac_collapse_window, mac_front_non_floating_window)
	(mac_active_non_floating_window, mac_activate_window)
	(mac_move_window_structure, mac_move_window, mac_size_window)
	(mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.

	* macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
	(enum mac_menu_kind): Move enum to mactoolbox.c.
	(min_menu_id): Move variable to mactoolbox.c.
	(quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
	(DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
	(DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
	(DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
	[TARGET_API_MAC_CARBON]: Likewise.
	(XtPointer): Move typedef to macgui.h.
	(enum button_type): Move enum to macgui.h.
Miles Bader's avatar
Miles Bader committed
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
	(widget_value): Move typedef to macgui.h.
	(DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
	(DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
	(DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
	(DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
	(DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
	(DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
	(DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
	(popup_activated_flag): Make variable non-static.
	(x_activate_menubar, install_menu_quit_handler, pop_down_menu)
	(add_menu_item, fill_menu, dispose_menus):
	Move functions to mactoolbox.c.
	(restore_show_help_function, menu_target_item_handler)
	(install_menu_target_item_handler, mac_handle_dialog_event)
	(install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
	[TARGET_API_MAC_CARBON]: Likewise.
	(menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
	(mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
	(find_and_call_menu_selection, name_is_separator): Make function
	non-static.
	(Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
	to mactoolbox.c.
	(set_frame_menubar): Don't call install_menu_quit_handler.
	(menu_item_selection): New variable.
	(mac_menu_show): Use create_and_show_popup_menu.
	(create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
	selection but set variable menu_item_selection.  All uses changed.
	(mac_fill_menubar): Rename from fill_menubar.  All uses changed.
	Call install_menu_quit_handler.  Move to mactoolbox.c.
1247

Miles Bader's avatar
Miles Bader committed
1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269
	* macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
	(Selection): Move typedef to macgui.h.
	(Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
	(Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
	Make variables non-static.
	(Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
	(mac_handle_apple_event, cleanup_all_suspended_apple_events):
	Make functions non-static.
	(Vmac_service_selection) [MAC_OSX]: Likewise.
	(mac_get_selection_from_symbol, get_flavor_type_from_symbol)
	(mac_valid_selection_target_p, mac_clear_selection)
	(mac_get_selection_ownership_info, mac_valid_selection_value_p)
	(mac_put_selection_value, mac_selection_has_target_p)
	(mac_get_selection_value, mac_get_selection_target_list)
	(init_apple_event_handler, install_drag_handler, remove_drag_handler):
	Move functions to mactoolbox.c.
	(mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
	Likewise.
	(copy_scrap_flavor_data, mac_handle_service_event)
	(install_service_handler) [MAC_OSX]: Likewise.
	(syms_of_macselect) <Vmac_dnd_known_types>:
	Use mac_dnd_default_known_types.
Dave Love's avatar
Dave Love committed
1270

Miles Bader's avatar
Miles Bader committed
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
	* macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
	Move to mactoolbox.c.
	(HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
	(Fx_selection_owner_p): Add EXFUN.
	(install_window_handler, remove_window_handler, XSetWindowBackground):
	Remove externs.
	(do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
	(mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
	(x_raise_frame, x_lower_frame, mac_alert_sound_play)
	(install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
	(mac_convert_frame_point_to_global, mac_set_frame_window_background)
	(mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
	(mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
	(mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
	(mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
	(create_and_show_popup_menu, mac_get_selection_from_symbol)
	(mac_valid_selection_target_p, mac_clear_selection)
	(mac_get_selection_ownership_info, mac_valid_selection_value_p)
	(mac_put_selection_value, mac_selection_has_target_p)
	(mac_get_selection_value, mac_get_selection_target_list): Add externs.
	(mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
	(mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
	(mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
	(mac_run_loop_run_once) [MAC_OSX]: Likewise.
	(mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
	(mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
	(x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
	(x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
Dave Love's avatar
Dave Love committed
1299

Miles Bader's avatar
Miles Bader committed
1300
	* mactoolbox.c: New file.
1301

Juanma Barranquero's avatar
Juanma Barranquero committed
1302
2008-04-18  Jason Rumney  <jasonr@gnu.org>
1303

Miles Bader's avatar
Miles Bader committed
1304
	* dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
1305

1306 1307
2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>

1308 1309
	* character.c (Fmultibyte_char_to_unibyte):
	Return latin1 chars unchanged.
1310

1311 1312 1313
	* fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
	relocated if it points to `name'.

1314 1315 1316 1317 1318 1319 1320
2008-04-17  Kenichi Handa  <handa@m17n.org>

	* data.c (Faset): Allow setting a multibyte character in an
	ASCII-only unibyte string.

	* lisp.h (STRING_SET_MULTIBYTE): New macro.

1321 1322 1323 1324 1325
2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>

	* Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
	done in config.h.

1326 1327 1328 1329 1330
2008-04-16  Juanma Barranquero  <lekktu@gmail.com>

	* character.c (Fchar_bytes, Fchar_width, Fstring_width)
	(Fchar_direction): Add usage in the docstring.

1331 1332 1333 1334
2008-04-15  Chong Yidong  <cyd@stupidchicken.com>

	* keyboard.c (read_key_sequence): Remove always-true checks.

1335 1336 1337 1338 1339
2008-04-14  Jason Rumney  <jasonr@gnu.org>

	* w32font.c (w32font_open_internal): Set max_bounds.descent in
	compatibility struct, for better underline positioning.

Michael Albinus's avatar
Michael Albinus committed
1340
2008-04-13  David Hansen  <david.hansen@gmx.net>
1341 1342 1343 1344

	* dbusbind.c (dbus-get-unique-name): Remove extra copying of name
	string.

Dan Nicolaescu's avatar
Dan Nicolaescu committed
1345 1346 1347 1348
2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>

	* m/hp800.h (XUINT, XSET): Remove.

1349 1350 1351 1352 1353
2008-04-12  Juanma Barranquero  <lekktu@gmail.com>

	* fileio.c (Fexpand_file_name): Add declaration for `p' missing in
	previous change.

1354 1355 1356 1357 1358
2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
	Relocate `nm' after calling DECODE_FILE, in case the GC was run.

1359 1360 1361 1362 1363
2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.h (map_keymap_canonical): Declare.
	* xmenu.c (single_keymap_panes): Use it.

1364 1365 1366 1367 1368
2008-04-11  Glenn Morris  <rgm@gnu.org>

	* eval.c (Fdefvaralias): If the alias is bound and the target is not,
	set the target's value to that of the alias.

1369 1370 1371 1372
2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>

	* term.c (set_tty_color_mode): Left over typo.

1373 1374 1375
2008-04-10  Michael Albinus  <michael.albinus@gmx.de>

	* fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
1376
	only after check for file name handler functions.  Signal, when
1377 1378 1379
	native functionality is not supported.
	(syms_of_fileio): Declare it unconditionally.

1380 1381
2008-04-10  Jason Rumney  <jasonr@gnu.org>

1382 1383 1384
	* w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
	(Fx_popup_dialog): Handle simple yes/no questions as dialogs.

1385 1386 1387
	* w32.c (logon_network_drive): Also logon to remote drives that
	are mapped to drive letters.

1388 1389 1390 1391
2008-04-10  Glenn Morris  <rgm@gnu.org>

	* xdisp.c (truncate-partial-width-windows): Doc fix.

1392 1393 1394 1395 1396 1397
2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>

	* fileio.c (read_file_name_cleanup, Fread_file_name_internal):
	Move functions to minibuffer.el.
	(syms_of_fileio): Don't declare them.

1398 1399
2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>

1400 1401 1402
	* minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
	(syms_of_minibuf): Remove its initialization.

1403 1404
	* minibuf.c (temp_echo_area_glyphs): Remove unused function.

1405 1406 1407 1408
2008-04-09  Juanma Barranquero  <lekktu@gmail.com>

	* editfns.c (Ffield_string_no_properties): Fix typo in docstring.

1409 1410
2008-04-09  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
1411 1412 1413
	* makefile.w32-in (distclean): Delete makefile too.
	(maintainer-clean): New target.

1414 1415
	* xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.

1416 1417 1418
	* w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
	for new font backend and composite cases.

1419 1420 1421 1422 1423 1424 1425
2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>

	* atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
	Most of the code moved to run_timers.
	(do_pending_atimers): Call run_timers.
	(run_timers): New function.

1426 1427
	* sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
	run atimers.
1428 1429 1430

	* process.c (wait_reading_process_output): The same as above.

1431 1432
2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>

1433 1434 1435 1436 1437 1438
	* minibuf.c (last_exact_completion): Remove variable.
	(Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
	(complete_and_exit_1, complete_and_exit_2)
	(Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
	(Fdisplay_completion_list, display_completion_list_1)
	(Fminibuffer_completion_help, Fself_insert_and_exit)
1439 1440
	(Fexit_minibuffer, Fminibuffer_message): Move functions to
	minibuffer.el.
1441 1442
	(syms_of_minibuf): Remove corresponding initializations.

Stefan Monnier's avatar
Stefan Monnier committed
1443 1444 1445 1446
	* keyboard.c (Qdeactivate_mark): New var.
	(command_loop_1): Use it to call `deactivate-mark'.
	(syms_of_keyboard): Initialize it.

1447 1448 1449 1450 1451 1452 1453 1454 1455 1456
	* xdisp.c (redisplay_internal): Reset tty's color_mode when switching
	to another frame.
	* frame.c (do_switch_frame): Refine the top_frame/async_visible code.
	Don't call set_tty_color_mode.
	(store_frame_param): Reset previous_frame rather than call
	set_tty_color_mode.
	* term.c (set_tty_color_mode): Rewrite.
	* dispextern.h (set_tty_color_mode): New type.
	* termchar.h (struct tty_display_info): Add `previous_color_mode'.

1457 1458 1459 1460 1461
2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>

	* keymap.c (access_keymap): Remove the value 2 for t_ok which was used
	for generic chars, which do not exist any more in emacs-unicode.

1462 1463 1464 1465 1466
2008-04-08  Michael Albinus  <michael.albinus@gmx.de>

	* coding.c (detect_coding_emacs_mule)
	(Ffind_operation_coding_system): Fix typo.

Jason Rumney's avatar
Jason Rumney committed
1467 1468
2008-04-08  Jason Rumney  <jasonr@gnu.org>

1469 1470
	* w32uniscribe.c (SNAME): Extract only symbol name.

1471 1472 1473 1474
	* w32font.h (struct w32_metric_cache): New struct.
	(w32font_info): Use it.
	(W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
	(CACHE_BLOCKSIZE): New constants.
1475

Jason Rumney's avatar
Jason Rumney committed
1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
	* w32font.c (Qja, Qko, Qzh): New symbols.
	(syms_of_w32font): Initialise them.
	(font_matches_spec): Use them to filter by language.
	(recompute_cached_metrics): Remove function.
	(compute_metrics, clear_cached_metrics): New functions.
	(w32font_encode_char): Use them to manage metric cache.
	(w32font_text_extents): Cache metrics for all glyphs on demand.
	Delay converting glyph indices to WORD until needed.
	(w32font_open_internal): Initialize metric cache to empty.
	(registry_to_w32_charset): Charset should always be a symbol.
	(fill_in_logfont, list_all_matching_fonts): Family should
	always be a symbol.

1489 1490 1491 1492 1493 1494 1495
2008-04-06  Jason Rumney  <jasonr@gnu.org>

	* w32uniscribe.c (uniscribe_shape): Increase items buffer size.
	Give up if glyph indices not supported.  Use uniscribe obtained
	ABC widths for individual metrics.  Map glyph clusters back to
	characters using fClusterStart flag.  Return number of glyphs
	produced, not chars processed.
1496
	(uniscribe_shape): Map char at FROM to current glyph.
1497

Miles Bader's avatar
Miles Bader committed
1498
2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1499

Juanma Barranquero's avatar
Juanma Barranquero committed
1500 1501
	* macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
	Use SetMenuItemHierarchicalMenu.
1502

Miles Bader's avatar
Miles Bader committed
1503
2008-04-05  Jason Rumney  <jasonr@gnu.org>
1504

Miles Bader's avatar
Miles Bader committed
1505 1506 1507 1508
	* image.c (pbm_load): Allow color values up to 65535.
	Throw an error if max_color_idx is outside the supported range.
	Report an error when image size is invalid.
	Read two bytes at a time when raw images have max_color_idx above 255.
Kenichi Handa's avatar
Kenichi Handa committed
1509

Miles Bader's avatar
Miles Bader committed
1510
2008-04-05  Eli Zaretskii  <eliz@gnu.org>
Stefan Monnier's avatar
Stefan Monnier committed
1511

Miles Bader's avatar
Miles Bader committed
1512 1513 1514
	* w32.c (readdir): If FindFirstFile/FindNextFile return in
	cFileName a file name that includes `?' characters, use the 8+3
	alias in cAlternateFileName instead.
Stefan Monnier's avatar
Stefan Monnier committed
1515

Miles Bader's avatar
Miles Bader committed
1516
2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
1517

Miles Bader's avatar
Miles Bader committed
1518 1519 1520
	* ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
	append "CCL: Quitted" when the CCL program is quitted.
	(setup_ccl_program): Initialize ccl->quit_silently to zero.
1521

Miles Bader's avatar
Miles Bader committed
1522
	* ccl.h (struct ccl_program): New member quit_silently.
1523

1524 1525
2008-04-05  Chong Yidong  <cyd@stupidchicken.com>

1526 1527 1528
	* search.c (compile_pattern_1): Treat non-nil and non-string of
	search-spaces-regexp as nil.

1529 1530
	* minibuf.c (Fassoc_string): Tweak docstring.

Eli Zaretskii's avatar
Eli Zaretskii committed
1531 1532 1533 1534 1535 1536 1537 1538 1539
2008-04-05  Eli Zaretskii  <eliz@gnu.org>

	* dired.c (Ffile_attributes): Support inode numbers wider than 32
	bits.  Remove ugly WINDOWSNT-specific kludge introduced on
	2008-03-14 to force inode be positive.

	* w32.c (sys_chown, stat, fstat): Use S_* constants instead of
	_S_* ones, since we now use our own sys/stat.h.
	(stat, fstat): Don't mangle the inode number.
1540
	(init_user_info): Don't restrict UID and GID to 0-60000 range.
Eli Zaretskii's avatar
Eli Zaretskii committed
1541

1542 1543
2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>

1544 1545 1546
	* frame.h (struct frame): Give one more bit to `visible' since we use
	values larger than 1 to indicate obscured frames on ttys.

1547 1548 1549 1550
	* keymap.c (Qkeymap_canonicalize): New var.
	(Fmap_keymap_internal): New fun.
	(describe_map): Use keymap-canonicalize.

1551 1552 1553 1554 1555 1556
	* undo.c (last_boundary_buffer, last_boundary_position): New vars.
	(Fundo_boundary): Set them.
	(syms_of_undo): Initialize them.
	(record_point): Use them instead of last_point_position*.
	(last_undo_buffer): Change type.

1557 1558
2008-04-04  Jason Rumney  <jasonr@gnu.org>