bpt/emacs.git
16 years agoSwitch to recommended form of GPLv3 permissions notice.
Glenn Morris [Wed, 14 May 2008 07:50:26 +0000 (07:50 +0000)]
Switch to recommended form of GPLv3 permissions notice.

16 years agoUpdate for font-backend changes.
Glenn Morris [Wed, 14 May 2008 07:40:46 +0000 (07:40 +0000)]
Update for font-backend changes.

16 years agoRegenerate.
Glenn Morris [Wed, 14 May 2008 07:40:12 +0000 (07:40 +0000)]
Regenerate.

16 years agoMark as part of the GNU C Library rather than of Emacs.
Glenn Morris [Wed, 14 May 2008 07:39:01 +0000 (07:39 +0000)]
Mark as part of the GNU C Library rather than of Emacs.
Re-fill permissions.

16 years agoMerge from emacs--rel--22
Miles Bader [Wed, 14 May 2008 04:28:51 +0000 (04:28 +0000)]
Merge from emacs--rel--22

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1159

16 years ago(custom-face-attributes): Add "thin" for :weight.
Kenichi Handa [Wed, 14 May 2008 01:58:43 +0000 (01:58 +0000)]
(custom-face-attributes): Add "thin" for :weight.

16 years ago(font-weight-table, font-slant-table)
Kenichi Handa [Wed, 14 May 2008 01:56:27 +0000 (01:56 +0000)]
(font-weight-table, font-slant-table)
(font-swidth-table): Declare them by defconst.  Change the format
of elements.  Call internal-set-font-style-table after their
declaration.
(face-valid-attribute-values): Call font-family-list.  Get values
for width, weight, and slant from font-xxx-table.

16 years ago(compose-chars-after): Assume that WINDOW is always non-nil.
Kenichi Handa [Wed, 14 May 2008 01:56:07 +0000 (01:56 +0000)]
(compose-chars-after): Assume that WINDOW is always non-nil.

16 years ago(setup-default-fontset): For kana, han,
Kenichi Handa [Wed, 14 May 2008 01:55:46 +0000 (01:55 +0000)]
(setup-default-fontset): For kana, han,
hangul, and cjk-misc, move an entry with font-spec at the end.
(generate-fontset-menu): Exclue fontset-auto* from the list.

16 years ago(set-language-environment): Set current-iso639-language
Kenichi Handa [Wed, 14 May 2008 01:55:06 +0000 (01:55 +0000)]
(set-language-environment): Set current-iso639-language

16 years ago("Chinese-GB", "Chinese-BIG5")
Kenichi Handa [Wed, 14 May 2008 01:54:39 +0000 (01:54 +0000)]
("Chinese-GB", "Chinese-BIG5")
("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK")
("Chinese-GB18030"): Set `iso639-language' property to `zh'.

16 years ago("Japanese"): Set `iso639-language' property to `ja'.
Kenichi Handa [Wed, 14 May 2008 01:54:09 +0000 (01:54 +0000)]
("Japanese"): Set `iso639-language' property to `ja'.

16 years ago("Korean"): Set `iso639-language' property to `ko'.
Kenichi Handa [Wed, 14 May 2008 01:53:38 +0000 (01:53 +0000)]
("Korean"): Set `iso639-language' property to `ko'.

16 years agoRegenerate.
Kenichi Handa [Wed, 14 May 2008 01:52:47 +0000 (01:52 +0000)]
Regenerate.

16 years agoDon't handle --disable-font-backend. Don't print
Kenichi Handa [Wed, 14 May 2008 01:49:04 +0000 (01:49 +0000)]
Don't handle --disable-font-backend.  Don't print
a message about a font backend.

16 years ago(fonts_changed_p): Comment improved.
Kenichi Handa [Wed, 14 May 2008 01:47:59 +0000 (01:47 +0000)]
(fonts_changed_p): Comment improved.

16 years ago(detect_coding_iso_2022): Ignore a coding category that
Kenichi Handa [Wed, 14 May 2008 01:46:15 +0000 (01:46 +0000)]
(detect_coding_iso_2022): Ignore a coding category that
has no corresponding coding system.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:44:51 +0000 (01:44 +0000)]
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'.

16 years ago(x_load_resources): Don't setup a fontset resource.
Kenichi Handa [Wed, 14 May 2008 01:43:24 +0000 (01:43 +0000)]
(x_load_resources): Don't setup a fontset resource.

16 years ago(xftfont_list): Adjusted for the change of `list'
Kenichi Handa [Wed, 14 May 2008 01:43:03 +0000 (01:43 +0000)]
(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.

16 years agoInclude <stdlib.h> and "ccl.h".
Kenichi Handa [Wed, 14 May 2008 01:42:33 +0000 (01:42 +0000)]
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.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:42:09 +0000 (01:42 +0000)]
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.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:41:52 +0000 (01:41 +0000)]
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.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:40:23 +0000 (01:40 +0000)]
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.

16 years agoInclude font.h.
Kenichi Handa [Wed, 14 May 2008 01:39:58 +0000 (01:39 +0000)]
Include font.h.
(print_object): Handle font-related objects.

16 years ago(enum pvec_type): New member PREV_FONT.
Kenichi Handa [Wed, 14 May 2008 01:39:27 +0000 (01:39 +0000)]
(enum pvec_type): New member PREV_FONT.
(Fassoc_string): EXFUN it.

16 years ago(image_ascent): Don't include "charset.h". Include
Kenichi Handa [Wed, 14 May 2008 01:39:03 +0000 (01:39 +0000)]
(image_ascent): Don't include "charset.h".  Include
"character.h" and "font.h".

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:34:57 +0000 (01:34 +0000)]
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.

16 years ago(ftxfont_list): Return a list, not vector.
Kenichi Handa [Wed, 14 May 2008 01:34:02 +0000 (01:34 +0000)]
(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.

16 years ago(ftfont_pattern_entity): Argument FRAME removed. Make
Kenichi Handa [Wed, 14 May 2008 01:28:01 +0000 (01:28 +0000)]
(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.

16 years agoDelete USE_FONT_BACKEND conditional.
Kenichi Handa [Wed, 14 May 2008 01:27:45 +0000 (01:27 +0000)]
Delete USE_FONT_BACKEND conditional.

16 years ago(internal_equal): Handle PREV_FONT.
Kenichi Handa [Wed, 14 May 2008 01:27:09 +0000 (01:27 +0000)]
(internal_equal): Handle PREV_FONT.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:26:46 +0000 (01:26 +0000)]
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.

16 years ago(struct font_info): Delete it. Most memnbers go to
Kenichi Handa [Wed, 14 May 2008 01:26:25 +0000 (01:26 +0000)]
(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.

16 years agoInclude <strings.h>.
Kenichi Handa [Wed, 14 May 2008 01:25:55 +0000 (01:25 +0000)]
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.

16 years ago(Qfont_spec, Qfont_entity, Qfont_object): Extern them.
Kenichi Handa [Wed, 14 May 2008 01:25:20 +0000 (01:25 +0000)]
(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.

16 years ago(enable_font_backend): Delete extern.
Kenichi Handa [Wed, 14 May 2008 01:24:12 +0000 (01:24 +0000)]
(enable_font_backend): Delete extern.
(main): Don't set enable_font_backend.  Don't check the command
line argument "-disable-font-backend".

16 years ago(struct glyph_string): Change type of `font' to
Kenichi Handa [Wed, 14 May 2008 01:23:32 +0000 (01:23 +0000)]
(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.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:23:13 +0000 (01:23 +0000)]
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.

16 years ago(Vcharset_non_preferred_head): New variable.
Kenichi Handa [Wed, 14 May 2008 01:22:48 +0000 (01:22 +0000)]
(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.

16 years ago(Vcharset_non_preferred_head)
Kenichi Handa [Wed, 14 May 2008 01:22:19 +0000 (01:22 +0000)]
(Vcharset_non_preferred_head)
(Vcurrent_iso639_language): Extern them.

16 years ago(WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
Kenichi Handa [Wed, 14 May 2008 01:09:44 +0000 (01:09 +0000)]
(WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).

16 years agoDelete USE_FONT_BACKEND conditionals.
Kenichi Handa [Wed, 14 May 2008 01:09:06 +0000 (01:09 +0000)]
Delete USE_FONT_BACKEND conditionals.
(frame.o, image.o, print.o): Depend on $(FONTSRC).

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:04:51 +0000 (01:04 +0000)]
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.

16 years ago(struct w32font_info): New member.
Kenichi Handa [Wed, 14 May 2008 01:04:21 +0000 (01:04 +0000)]
(struct w32font_info): New member.
(FONT_COMPAT): New macro.
(w32font_open_internal): Prototype adjusted.

16 years ago(XGCValues): Surround `XFontStruct *font' by "if
Kenichi Handa [Wed, 14 May 2008 01:03:39 +0000 (01:03 +0000)]
(XGCValues): Surround `XFontStruct *font' by "if
OLD_FONT" and "endif".

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:02:08 +0000 (01:02 +0000)]
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.

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

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 01:00:37 +0000 (01:00 +0000)]
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.

16 years ago: Throughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 00:40:04 +0000 (00:40 +0000)]
: 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".

16 years agoDelete USE_FONT_BACKEND conditional.
Kenichi Handa [Wed, 14 May 2008 00:39:27 +0000 (00:39 +0000)]
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.

16 years agoThroughout the file, delete all USE_FONT_BACKEND
Kenichi Handa [Wed, 14 May 2008 00:38:39 +0000 (00:38 +0000)]
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 *'.

16 years ago(update_frame_1): Check if tty output is still valid before flushing
Chong Yidong [Tue, 13 May 2008 21:19:03 +0000 (21:19 +0000)]
(update_frame_1): Check if tty output is still valid before flushing
it.

16 years ago* dispnew.c (update_frame_1): Check if tty output is still valid
Chong Yidong [Tue, 13 May 2008 21:18:42 +0000 (21:18 +0000)]
* dispnew.c (update_frame_1): Check if tty output is still valid
before flushing it.

16 years ago(define-ibuffer-filter filename): Use `ibuffer-buffer-file-name'.
John Paul Wallington [Tue, 13 May 2008 21:09:20 +0000 (21:09 +0000)]
(define-ibuffer-filter filename): Use `ibuffer-buffer-file-name'.

16 years ago(ibuffer-buffer-file-name): New function.
John Paul Wallington [Tue, 13 May 2008 21:07:21 +0000 (21:07 +0000)]
(ibuffer-buffer-file-name): New function.
(define-ibuffer-column filename): Use it.

16 years ago(talk): Simplify. Pass display arg to talk-add-display as a string.
Chong Yidong [Tue, 13 May 2008 20:50:32 +0000 (20:50 +0000)]
(talk): Simplify.  Pass display arg to talk-add-display as a string.
(talk-add-display): Simplify.  Accept only string args.

16 years ago* talk.el (talk): Simplify. Pass display arg to talk-add-display
Chong Yidong [Tue, 13 May 2008 20:50:01 +0000 (20:50 +0000)]
* talk.el (talk): Simplify.  Pass display arg to talk-add-display
as a string.
(talk-add-display): Simplify.  Accept only string args.

16 years ago(calc-mode-map): Remove old keybinding for `calc-yank'.
Jay Belanger [Tue, 13 May 2008 19:12:56 +0000 (19:12 +0000)]
(calc-mode-map): Remove old keybinding for `calc-yank'.

16 years ago(bootstrap-prepare): Don't chmod files.
Stefan Monnier [Tue, 13 May 2008 18:35:13 +0000 (18:35 +0000)]
(bootstrap-prepare): Don't chmod files.
(autoloads): Do it here instead, where it's actually needed.

16 years ago(tool-bar-make-keymap): Additional minor fix.
Chong Yidong [Tue, 13 May 2008 18:02:44 +0000 (18:02 +0000)]
(tool-bar-make-keymap): Additional minor fix.

16 years ago* tool-bar.el (tool-bar-make-keymap): Account for the optional
Chong Yidong [Tue, 13 May 2008 17:53:04 +0000 (17:53 +0000)]
* tool-bar.el (tool-bar-make-keymap): Account for the optional
KEY-BINDING-DATA field in menu-item list.

16 years ago(tool-bar-make-keymap): Account for the optional KEY-BINDING-DATA
Chong Yidong [Tue, 13 May 2008 17:52:31 +0000 (17:52 +0000)]
(tool-bar-make-keymap): Account for the optional KEY-BINDING-DATA
field in menu-item list.

16 years ago(Lisp Atoms): Rephrase "in addition" to avoid confusion with addition
Chong Yidong [Tue, 13 May 2008 16:41:32 +0000 (16:41 +0000)]
(Lisp Atoms): Rephrase "in addition" to avoid confusion with addition
operation discussed in previous paragraph.

16 years ago* emacs-lisp-intro.texi (Lisp Atoms): Rephrase "in addition" to
Chong Yidong [Tue, 13 May 2008 16:41:17 +0000 (16:41 +0000)]
* emacs-lisp-intro.texi (Lisp Atoms): Rephrase "in addition" to
avoid confusion with addition operation discussed in previous
paragraph.

16 years ago(dired-read-dir-and-switches): Move things about to use less
Stefan Monnier [Tue, 13 May 2008 16:18:17 +0000 (16:18 +0000)]
(dired-read-dir-and-switches): Move things about to use less
recursion during macroexpansion.

16 years ago* dired.el (dired-read-dir-and-switches): Use read-file-name.
Stefan Monnier [Tue, 13 May 2008 08:39:54 +0000 (08:39 +0000)]
* dired.el (dired-read-dir-and-switches): Use read-file-name.

16 years ago(handle_one_xevent): Don't pass buttons higher than 3
Jan Djärv [Tue, 13 May 2008 08:13:24 +0000 (08:13 +0000)]
(handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.

16 years ago(handle_one_xevent): Don't pass buttons higher than 3
Jan Djärv [Tue, 13 May 2008 08:08:25 +0000 (08:08 +0000)]
(handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.

16 years ago(file_name_completion): Tweak the code so as to always do it
Stefan Monnier [Tue, 13 May 2008 05:16:43 +0000 (05:16 +0000)]
(file_name_completion): Tweak the code so as to always do it
in a single pass.  Tighten the scope of some variables.

16 years ago(dired-read-dir-and-switches): Ignore ., .., and
Stefan Monnier [Tue, 13 May 2008 05:15:57 +0000 (05:15 +0000)]
(dired-read-dir-and-switches): Ignore ., .., and
completion-ignored-extension directories if there's something else.
(dired-mark-if, dired-map-over-marks, dired-readin, dired-revert)
(dired-remember-marks, dired-undo, dired-build-subdir-alist)
(dired-internal-do-deletions, dired-mark-files-in-region, dired-mark)
(dired-toggle-marks, dired-change-marks, dired-unmark-all-files):
buffer-read-only -> inhibit-read-only.

16 years ago(Qdefault_directory): New var.
Stefan Monnier [Tue, 13 May 2008 04:39:32 +0000 (04:39 +0000)]
(Qdefault_directory): New var.
(file_name_completion): Use it instead of Fexpand_file_name.
(syms_of_dired): Initialize it.

16 years ago*** empty log message ***
Juanma Barranquero [Mon, 12 May 2008 21:43:04 +0000 (21:43 +0000)]
*** empty log message ***

16 years agoMention CVE name: CVE-2008-2142.
Romain Francoise [Mon, 12 May 2008 20:07:57 +0000 (20:07 +0000)]
Mention CVE name: CVE-2008-2142.

16 years agoTell (vc-expand-dirs) not to throw out explicitly specified files.
Eric S. Raymond [Mon, 12 May 2008 18:49:07 +0000 (18:49 +0000)]
Tell (vc-expand-dirs) not to throw out explicitly specified files.

16 years ago(double_dollars): Remove dead code.
Stefan Monnier [Mon, 12 May 2008 18:31:26 +0000 (18:31 +0000)]
(double_dollars): Remove dead code.

16 years ago(smerge-apply-resolution-patch): Don't pass nil to `insert'.
Stefan Monnier [Mon, 12 May 2008 18:21:24 +0000 (18:21 +0000)]
(smerge-apply-resolution-patch): Don't pass nil to `insert'.

16 years ago(fast-lock-cache-directories): Remove "." from its
Stefan Monnier [Mon, 12 May 2008 17:30:29 +0000 (17:30 +0000)]
(fast-lock-cache-directories): Remove "." from its
default value and give it the risky-local-variable property.

16 years agoRe-add Todo item about merging.
Dan Nicolaescu [Mon, 12 May 2008 17:19:41 +0000 (17:19 +0000)]
Re-add Todo item about merging.

16 years ago(with-vc-file, edit-vc-file): Remove unused macros.
Dan Nicolaescu [Mon, 12 May 2008 16:37:30 +0000 (16:37 +0000)]
(with-vc-file, edit-vc-file): Remove unused macros.

16 years ago(vc-annotate-show-diff-revision-at-line): Remove incorrect
Dan Nicolaescu [Mon, 12 May 2008 16:22:42 +0000 (16:22 +0000)]
(vc-annotate-show-diff-revision-at-line): Remove incorrect
cons.  Use vc-annotate-backend.

16 years agoAdd autoload for
Teodor Zlatanov [Mon, 12 May 2008 12:40:12 +0000 (12:40 +0000)]
Add autoload for
`auth-source-user-or-password'.
(smtpmail-try-auth-methods): Use it.

16 years agoAdd autoload cookie for
Teodor Zlatanov [Mon, 12 May 2008 12:39:46 +0000 (12:39 +0000)]
Add autoload cookie for
`auth-source-user-or-password'.
(url-basic-auth, url-digest-auth): Use it with any realm,
overriding the user name and password before the prompt.

16 years ago(FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
YAMAMOTO Mitsuharu [Mon, 12 May 2008 08:30:56 +0000 (08:30 +0000)]
(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.

16 years ago(main_thread): Conditionalize on
YAMAMOTO Mitsuharu [Mon, 12 May 2008 08:30:13 +0000 (08:30 +0000)]
(main_thread): Conditionalize on
FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
(main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.

16 years agoComment.
Stefan Monnier [Mon, 12 May 2008 01:46:27 +0000 (01:46 +0000)]
Comment.

16 years ago(cl-set-nthcdr): Make it a defsubst so that
Stefan Monnier [Mon, 12 May 2008 01:45:41 +0000 (01:45 +0000)]
(cl-set-nthcdr): Make it a defsubst so that
(setf (nthcdr ..) ..) doesn't require CL at runtime.

16 years ago* org/org.el (org-modules): Repair problems with loading
Carsten Dominik [Sun, 11 May 2008 22:54:56 +0000 (22:54 +0000)]
* org/org.el (org-modules): Repair problems with loading
org-jsinfo.org.

16 years ago*** empty log message ***
Carsten Dominik [Sun, 11 May 2008 22:54:08 +0000 (22:54 +0000)]
*** empty log message ***

16 years ago(vc-bzr-sha1, vc-bzr-command-discarding-stderr)
Stefan Monnier [Sun, 11 May 2008 21:59:45 +0000 (21:59 +0000)]
(vc-bzr-sha1, vc-bzr-command-discarding-stderr)
(vc-bzr-revision-completion-table): Use process-file.
(vc-bzr-working-revision): Pass relative file names.

16 years ago(diff-hunk-header-re): Refine the regexp.
Stefan Monnier [Sun, 11 May 2008 21:57:27 +0000 (21:57 +0000)]
(diff-hunk-header-re): Refine the regexp.

16 years ago(Info-next-preorder): Let-bind `Info-history' to nil
Juri Linkov [Sun, 11 May 2008 20:32:33 +0000 (20:32 +0000)]
(Info-next-preorder): Let-bind `Info-history' to nil
before recursive call to `Info-next-preorder' to not add
intermediate nodes to the history.

16 years agoPut isearch-scroll property on cua-scroll-up and cua-scroll-down.
Juri Linkov [Sun, 11 May 2008 20:31:18 +0000 (20:31 +0000)]
Put isearch-scroll property on cua-scroll-up and cua-scroll-down.

16 years agoPut isearch-scroll property on recenter-top-bottom.
Juri Linkov [Sun, 11 May 2008 20:30:26 +0000 (20:30 +0000)]
Put isearch-scroll property on recenter-top-bottom.

16 years ago(widget-image-directory): Change default image data
Juri Linkov [Sun, 11 May 2008 20:29:41 +0000 (20:29 +0000)]
(widget-image-directory): Change default image data
subdirectory from "custom" to "images/custom".

16 years ago*** empty log message ***
Juri Linkov [Sun, 11 May 2008 20:29:07 +0000 (20:29 +0000)]
*** empty log message ***

16 years ago(smerge-start-session): Revert unintended change in 2008-05-10T13:06:33Z!Reiner.Steib...
Reiner Steib [Sun, 11 May 2008 20:26:00 +0000 (20:26 +0000)]
(smerge-start-session): Revert unintended change in 2008-05-10T13:06:33Z!Reiner.Steib@gmx.de.

16 years agoInitial revision.
Juri Linkov [Sun, 11 May 2008 20:25:15 +0000 (20:25 +0000)]
Initial revision.

16 years agoRe-fill copyright years.
Glenn Morris [Sun, 11 May 2008 19:00:41 +0000 (19:00 +0000)]
Re-fill copyright years.
Re-fix permissions notice.

16 years agoReorganize to-do list.
Eric S. Raymond [Sun, 11 May 2008 18:30:35 +0000 (18:30 +0000)]
Reorganize to-do list.

16 years agoRemove dead code.
Eric S. Raymond [Sun, 11 May 2008 18:15:59 +0000 (18:15 +0000)]
Remove dead code.