Kenichi Handa [Fri, 29 Aug 2008 07:58:08 +0000 (07:58 +0000)]
Include font.h.
(it_props): Delete the entry for Qauto_composed.
(init_iterator): Initialize it->cmp_it.id to -1.
(compute_stop_pos): Call composition_compute_stop_pos.
(face_before_or_after_it_pos): Adjusted for the change of struct
it.
(handle_auto_composed_prop): Delete it.
(handle_composition_prop): Handle only static composition.
(next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
from xassert. Initialize it->cmp_it.stop_pos.
(push_it): Adjusted for the change of struct it.
(pop_it): Likewise.
(get_next_element): Delete next_element_from_composition.
(CHAR_COMPOSED_P): New macro.
(get_next_display_element): For automatic composition, get a face
from the font in the glyph-string.
(set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION
case.
(next_element_from_string): Check if the character at the current
position is composed by CHAR_COMPOSED_P.
(next_element_from_buffer): Likewise.
(next_element_from_composition): Adjusted for the change of struct
it. Update it->cmp_it.
(dump_glyph): Adjusted for the change of struct glyph.
(fill_composite_glyph_string): Adjusted for the change of struct
it and struct glyph. Don't handle automatic composition here.
(fill_gstring_glyph_string): New function.
(x_get_glyph_overhangs): Handle automatic composition.
(BUILD_COMPOSITE_GLYPH_STRING): Adjusted for the change of struct
glyph.
(BUILD_GSTRING_GLYPH_STRING): New macro.
(BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
automatic composition.
(append_composite_glyph): Adjusted for the change of struct it and
struct glyph.
(x_produce_glyphs): Adjusted for the change of struct it.
Kenichi Handa [Fri, 29 Aug 2008 07:57:13 +0000 (07:57 +0000)]
(encode_terminal_code): Adjusted for the change of struct
glyph.
(append_composite_glyph): Adjusted for the change of struct it and
struct glyph.
(produce_composite_glyph): Likewise.
Kenichi Handa [Fri, 29 Aug 2008 07:56:25 +0000 (07:56 +0000)]
Include composite.h and dispextern.h.
(check_composition): Delete this function..
(scan_for_column): Handle composition by
composition_compute_stop_pos, composition_reseat_it, and
composition_update_it.
(compute_motion): Likewise.
(Fvertical_motion): Fix checking of composition.
Kenichi Handa [Fri, 29 Aug 2008 07:55:02 +0000 (07:55 +0000)]
* font.h (enum lgstring_indices): Delete it.
(LGSTRING_XXX, LGLYPH_XXX): These macros moved to composite.h.
(enum lglyph_indices): Likewise.
(font_range): Extern adjusted.
(font_fill_lglyph_metrics): Extern it.
Kenichi Handa [Fri, 29 Aug 2008 07:54:44 +0000 (07:54 +0000)]
(QCf): New variable.
(check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
(font_prepare_composition): Delete this function.
(font_range): Type and arguments changed.
(Ffont_make_gstring, Ffont_fill_gstring): Delete them.
(font_fill_lglyph_metrics): New function.
(Ffont_shape_text): Renamed to Ffont_shape_gstring and arguments
changed.
(syms_of_font): DEFSYM QCf. Delete defsubr for
Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text. Defsubr
Sfont_shape_gstring.
Kenichi Handa [Fri, 29 Aug 2008 07:54:09 +0000 (07:54 +0000)]
* dispextern.h (struct glyph): New union u.cmp. Delete the member
cmp_id.
(struct glyph_string): Delete the member gidx. New members
cmp_id, cmp_from, and cmp_to.
(enum it_method): Delete GET_FROM_COMPOSITION.
(struct composition_it): New struct.
(struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
Delete c, len, cmp_id, cmp_len in u.comp.
Eli Zaretskii [Wed, 27 Aug 2008 19:09:36 +0000 (19:09 +0000)]
(Fmsdos_remember_default_colors): Don't reverse frame colors under -rv.
(IT_set_frame_parameters): Don't swap foreground and background colors
if `(reverse . t)' is present in the frame properties.
Chong Yidong [Wed, 27 Aug 2008 17:23:29 +0000 (17:23 +0000)]
(artist-mode-init): Added comment on the setting up of the
`artist-replacement-table' array.
(artist-get-replacement-char): New defsubst.
(artist-get-char-at-xy-conv, artist-replace-char)
(artist-replace-chars, artist-replace-string): Use it instead of
accessing `artist-replacement-table' directly.
Reported by Rubén Berenguel <ruben@maia.ub.es>.
(artist-mt): Fixed structures for cut and copy operations.
Chong Yidong [Wed, 27 Aug 2008 17:23:05 +0000 (17:23 +0000)]
* textmodes/artist.el (artist-mode-init): Added comment on the
setting up of the `artist-replacement-table' array.
(artist-get-replacement-char): New defsubst.
(artist-get-char-at-xy-conv, artist-replace-char)
(artist-replace-chars, artist-replace-string): Use it instead of
accessing `artist-replacement-table' directly.
Reported by Rubén Berenguel <ruben@maia.ub.es>.
(artist-mt): Fixed structures for cut and copy operations.
Glenn Morris [Wed, 27 Aug 2008 02:35:57 +0000 (02:35 +0000)]
(Advanced Calendar/Diary Usage): Tweak some menu descriptions.
(Calendar Customizing): Tweak layout description.
Move calenday-today-marker and calendar-today face to the other
markers. Condense calendar-star-date and calendar-mark-today description.
(Holiday Customizing): Add oriental and solar holidays.
Add index entries for Baha'i, Christian, Hebrew and Islamic holidays.
Fix holiday-float description. Use zerop in examples. Be less verbose.
(Date Display Format): Change ISO format. Be less verbose.
(Diary Customizing): Mention day and month abbrev arrays.
Mention the date-form variables by name. Update European example.
(Non-Gregorian Diary): Change node name. Mention Baha'i functions.
Condense examples. Mention diary-entry-symbols by name.
Condense table for insertion commands.
(Fancy Diary Display): Mention diary-include-string and
diary-sexp-entry-symbol. Condense example. Add Chinese, Coptic,
Ethiopic, Persian date functions. Condense descriptions.
Chong Yidong [Tue, 26 Aug 2008 20:50:01 +0000 (20:50 +0000)]
(linum): Inherit remaining face attributes from default face.
(linum-delay): Disable - it should no longer be necessary, and can
lead to longer delays.
(linum-update-window): Renumber if margin width has changed.
Chong Yidong [Tue, 26 Aug 2008 20:49:52 +0000 (20:49 +0000)]
* linum.el (linum): Inherit remaining face attributes from default face.
(linum-delay): Disable - it should no longer be necessary, and can
lead to longer delays.
(linum-update-window): Renumber if margin width has changed.