1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-28 10:51:29 -08:00
Commit graph

28014 commits

Author SHA1 Message Date
Glenn Morris
68852c13c3 Mark tiny change. 2009-06-11 05:09:52 +00:00
Kenichi Handa
5753e4da2b (x_get_glyph_overhangs): Fix calculation of right
overhang for the static composition case.
2009-06-11 02:34:57 +00:00
Kenichi Handa
a431c5f4a2 (x_get_glyph_overhangs): Fix calculation of right
overhang for the automatic composition case.
2009-06-11 02:32:30 +00:00
Kenichi Handa
3561b6717a (x_compute_glyph_string_overhangs): Handle the automatic
composition case.
2009-06-11 01:25:40 +00:00
Chong Yidong
852bbd410b * xdisp.c (get_next_display_element): When handling wrap-prefix
and line-prefix, treat \n as a control character (bug#3502).
2009-06-10 14:15:41 +00:00
Adrian Robert
e7777236c6 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu. 2009-06-10 07:40:31 +00:00
Kenichi Handa
9903d1e69c (font_parse_family_registry): Fix for one-char foundry.
(font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2009-06-10 01:27:10 +00:00
Chong Yidong
0bcbaaaaa8 * process.c (status_message): Fix handling of multibyte signal
string (Bug#3499).
2009-06-09 18:26:36 +00:00
Chong Yidong
1f80c7e2bf Fix last changelog entry. 2009-06-09 17:56:48 +00:00
Jim Meyering
40aa3f13c6 x-load-color-file: avoid array bounds error
x-load-color-file expects each line of input to be of the form
"R G B name".  But if "name" is missing, it would read name[-1],
and if that value is '\n', zero it.
* xfaces.c (Fx_load_color_file): Handle missing color name.
2009-06-09 05:57:35 +00:00
Kenichi Handa
72d5128574 (Fmap_charset_chars): In docstring, state clear that
FROM-CODE and TO-CODE are codepoints of CHARSET.
2009-06-09 02:53:21 +00:00
Adrian Robert
5acf9d90c9 keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu. 2009-06-08 08:28:09 +00:00
Adrian Robert
c7eb9816c8 nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring. 2009-06-08 04:40:17 +00:00
Adrian Robert
c1d04d8457 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
* nsterm.m (ns_use_system_highlight_color): Drop, unused.

2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>

	Changes to support :script/:lang/:otf in NS font driver.
	* nsfont.m (nsfont_escape_name, nsfont_unescape_name)
	(nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
	indicate not part of font driver interface, and change callers.
	(ns_get_family): Remove pointless null check.
	(nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
	ns_spec_to_descriptor, ns_descriptor_to_entity.
	(nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
	(ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
	(ns_spec_to_descriptor, ns_descriptor_to_entity)
	(ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
	(ns_get_req_script, ns_accumulate_script_ranges)
	(ns_script_to_charset, ns_get_covering_families, ns_findfonts):
	New functions.
	(nsfont_list, nsfont_match): Use ns_findfonts.
	(nsfont_open): Use font descriptor instead of traits.
	(nsfont_draw): Handle "automatic" (lookup-table) compositions.
	(dump_glyphstring): Rename to ns_dump_glyphstring.

	* nsfns.m (Fns_popup_font_panel): Use shared font manager.

	* fontset.c (fontset_from_font): Remove NS-specific code.

2009-06-08  Peter Jones <pjones@pmade.com>  (tiny change)

	* nsterm.m (ns_draw_window_cursor): Respect cursor_type for
	nonactive windows.

2009-06-08 Felix Mueller  <felix@enqueue.eu>  (tiny change)

	* nsterm.m (ns_init_paths): Append path separator to INFOPATH
	variable.
2009-06-08 04:34:54 +00:00
Adrian Robert
8840261a51 Changes to support :script/:lang/:otf in NS font driver.
* nsfont.m (nsfont_escape_name, nsfont_unescape_name)
	(nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
	indicate not part of font driver interface, and change callers.
	(ns_get_family): Remove pointless null check.
	(nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
	ns_spec_to_descriptor, ns_descriptor_to_entity.
	(nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
	(ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
	(ns_spec_to_descriptor, ns_descriptor_to_entity)
	(ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
	(ns_get_req_script, ns_accumulate_script_ranges)
	(ns_script_to_charset, ns_get_covering_families, ns_findfonts):
	New functions.
	(nsfont_list, nsfont_match): Use ns_findfonts.
	(nsfont_open): Use font descriptor instead of traits.
	(nsfont_draw): Handle "automatic" (lookup-table) compositions.
	(dump_glyphstring): Rename to ns_dump_glyphstring.
2009-06-08 04:33:56 +00:00
Adrian Robert
8f1362ef39 fontset.c (fontset_from_font): Remove NS-specific code. 2009-06-08 04:33:40 +00:00
Adrian Robert
320e80c0c0 nsfns.m (Fns_popup_font_panel): Use shared font manager. 2009-06-08 04:33:25 +00:00
Adrian Robert
8b3ce9a947 nsterm.m (ns_draw_window_cursor): Respect cursor_type for nonactive windows. (ns_init_paths): Append path separator to INFOPATH variable. (ns_use_system_highlight_color): Drop, unused. 2009-06-08 04:32:42 +00:00
Chong Yidong
6756cd1d7c * xdisp.c (move_it_in_display_line_to): On text-only terminals,
account for the overflowing of newlines into the last glyph on the
display line (Bug#3482).
2009-06-07 21:37:10 +00:00
David Reitter
28bf482a7d nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p,
Fx_selection_owner_p): rename from Fns_own_selection_internal,
Fns_selection_exists_p, Fns_selection_owner_p.
2009-06-05 14:08:16 +00:00
Kenichi Handa
05129fbeb4 *** empty log message *** 2009-06-04 02:45:14 +00:00
Chong Yidong
4bed590990 * coding.c (get_translation_table): Check Venable_character_translation. 2009-06-04 01:06:04 +00:00
Jason Rumney
fdb5537695 (x_create_tip_frame): Use the uniscribe font backend if
available.  (Bug#3379)
2009-06-03 23:04:51 +00:00
David Reitter
15891144c8 Ensure NS frames remain hidden when invisible
* nsterm.m (ns_raise_frame): only raise frame if visible.
(x_make_frame_visible): move frame to front rather than calling
ns_raise_frame().
(keyDown:) do not swallow events that aren't re-sent if frame
isn't key window.
(drawRect:) do not set visibility/iconified flags because
drawRect may be called by NSView even if the frame is hidden.

* nsfns.m (Fx_create_frame): follow other ports in
determining visibility; default to t. Ensure async_visible is set.
2009-05-26 18:14:14 +00:00
Eli Zaretskii
21f73755fe (Ffile_attributes): Doc fix. 2009-05-23 09:10:42 +00:00
Chong Yidong
34001e4188 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685). 2009-05-22 18:47:02 +00:00
Stefan Monnier
46306a1728 (xfont_list_pattern): Don't initialize xfont_scripts_cache
and xfont_scratch_props.
(syms_of_xfont): Do it here instead.
(xfont_find_ccl_program): Delete, unused.
(xfont_open): Delete unused var `i'.
2009-05-21 16:36:29 +00:00
Kenichi Handa
ef6e069495 (Qlatin): Don't make it static. 2009-05-21 11:24:19 +00:00
Kenichi Handa
5a189ffa3f (xfont_chars_supported, xfont_supported_scripts): New
functions.
(xfont_scripts_cache, xfont_scratch_props): New variables.
(Qlatin, Vscalable_fonts_allowed): Extern it.
(xfont_list_pattern): Argument changed.  Callers changed.  Check
Vscalable_fonts_allowed.  Check the support of a script.
(xfont_list): Don't reject a font spec with :script property.
(xfont_has_char): Fix setting of encoding.
(syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
xfont_scratch_props.
2009-05-21 11:23:41 +00:00
Stefan Monnier
ac71ced75b (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
(delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2009-05-19 03:30:36 +00:00
Kenichi Handa
2645d15bb1 (font_sort_entities): Renamed from font_sort_entites.
Callers changed.
2009-05-19 02:05:52 +00:00
YAMAMOTO Mitsuharu
1c6d1051f1 (x_delete_display): Don't call XrmDestroyDatabase here.
(x_delete_terminal): Dissociate resource database from display and
then call XrmDestroyDatabase before closing display.
2009-05-19 00:27:03 +00:00
Kenichi Handa
227f12fabb (font_find_for_lface): Copy SPEC's FONT_TYPE too. 2009-05-18 12:14:14 +00:00
Adrian Robert
2d087c0685 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning. 2009-05-18 08:02:06 +00:00
Adrian Robert
06302656f3 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check whether selected frame is viable before raising it (based on patch by David Reitter), and improve commentary. 2009-05-18 08:01:51 +00:00
Adrian Robert
1564e6499e * nsterm.m (ns_read_socket): Remove unused variable. * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check whether selected frame is viable before raising it (based on patch by David Reitter), and improve commentary. * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning. 2009-05-18 08:01:20 +00:00
Adrian Robert
9b9b779c56 * nsterm.m (ns_read_socket): Remove unused variable. 2009-05-18 01:56:12 +00:00
Kenichi Handa
cccd42d52f (Ffont_spec): Check arguments. 2009-05-15 02:49:46 +00:00
Chong Yidong
337fbd1718 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
weight when testing attributes (Bug#3282).
2009-05-14 21:37:02 +00:00
YAMAMOTO Mitsuharu
9cb363dbda (xftfont_open): Make sure that Xrender extension is added
before Xft one (Bug#1696).
2009-05-11 09:30:34 +00:00
Jan Djärv
47a6002f34 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
what we expect to get in the next ConfigureNotify event.
2009-05-11 06:42:45 +00:00
Chong Yidong
b912660955 * nsfns.m (Fx_display_planes): Compute bitplanes using
NSBitsPerPixelFromDepth (Bug#3207).
2009-05-10 22:21:17 +00:00
Chong Yidong
27a69fd9b3 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248). 2009-05-10 21:48:11 +00:00
Thien-Thi Nguyen
00f37552b8 Make GCPROs and UNGCPRO no-ops also on SuperH.
* s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2009-05-10 14:18:47 +00:00
Kenichi Handa
398dbf2661 Cancel previous changes. 2009-05-08 06:22:40 +00:00
Kenichi Handa
777c6e6a7b *** empty log message *** 2009-05-08 06:22:07 +00:00
Kenichi Handa
92f1928093 (xfont_check_char_support)
(xfont_check_registry_char_support): New functions.
(xfont_list_pattern): Delete unused arg FRAME, add arg CHARS.
Callers adjusted.
(xfont_list): Handle :script property.
2009-05-08 06:05:38 +00:00
David Reitter
85bd26158c ns_dumpglyphs_stretch, ns_dumpglyphs_image: respect mouse face background. 2009-05-07 13:46:56 +00:00
David Reitter
2d82a920da *** empty log message *** 2009-05-07 13:46:31 +00:00
David Reitter
4077e59253 mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update_end. 2009-05-07 03:22:09 +00:00