Glenn Morris [Sat, 17 May 2008 20:20:55 +0000 (20:20 +0000)]
(ezimage-use-images): Drop support for Emacs < 21 and simplify initial value.
(defezimage): Drop support for Emacs without defimage, use a featurep
test rather than fboundp when defining, drop with-no-warnings.
(ezimage-insert-over-text): Move featurep test inside add-text-properties.
Eli Zaretskii [Fri, 16 May 2008 11:10:16 +0000 (11:10 +0000)]
frame.c (Fdelete_frame): Don't call font_update_drviers if
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.
Jonathan Yavner [Thu, 15 May 2008 19:24:57 +0000 (19:24 +0000)]
* ses.el (ses-goto-print): Use move-to-column rather than
forward-char.
(ses-print-cell): Use string-width, truncate-string-to-width,
delete-region rather than length, substring, delete-char.
(ses-setup): Set inhibit-point-motion-hooks to t. Calculate
position by actually moving point rather than just using unibyte
character length.
(ses-mode): Set indent-tabs-mode to nil.
(ses-center): Use string-width rather than length.
(ibuffer-assert-ibuffer-mode): New defsubst.
(ibuffer-mark-interactive, ibuffer-set-mark)
(ibuffer-insert-buffer-line, ibuffer-redisplay-current)
(ibuffer-map-lines, ibuffer-switch-format)
(ibuffer-update-title-and-summary)
(ibuffer-redisplay-engine): Use it.
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.
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.
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'.
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.
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.