Commit Graph

7736 Commits

Author SHA1 Message Date
YAMAMOTO Mitsuharu
0e727afa9d (Ffind_coding_systems_region_internal): Cache checked characters. 2009-06-19 08:39:44 +00:00
Kenichi Handa
cf299835b1 (decode_coding_iso_2022): Check MSB of bytes more rigidly. 2009-06-18 10:29:51 +00:00
Andreas Schwab
90f20d9422 (redisplay_internal): Check that the frame is still
live after redisplay of its windows.
(redisplay_windows): Check that the window is still live.
2009-06-18 09:49:05 +00:00
Kenichi Handa
7f1faf1cc2 (detect_coding_utf_16): Fix previous change. 2009-06-17 00:42:17 +00:00
Kenichi Handa
cc13543e84 (detect_coding_utf_16): Fix previous change. 2009-06-16 02:04:25 +00:00
Andreas Schwab
977b85f4d9 (detect_coding_utf_16): Fix typo counting odd bytes. 2009-06-15 21:36:44 +00:00
Kenichi Handa
66bd43d1d3 (status_message): Fix previous change. Be sure to
decode a localized string.
2009-06-15 13:21:14 +00:00
YAMAMOTO Mitsuharu
cb5ca9c543 (x_delete_terminal): Put previous change in #if 0 and
add comment explaining why.
2009-06-15 10:50:09 +00:00
Adrian Robert
e41820ee6c (ns_get_covering_families): Retain scriptToFamilies. 2009-06-15 04:34:50 +00:00
David Reitter
5ee6f6296a nsmenu.m (EmacsTooltip: setText): set height of tooltip. 2009-06-14 22:29:15 +00:00
Adrian Robert
4b7f335c11 * nsfont.m (ns_attribute_value): Remove.
(ns_attribute_fvalue): Incorporate code from ns_attribute_value.
	(ns_has_attribute): Shrink the normal range.
	(ns_findfonts): Don't worry about requested spec in determining
	need for synthItal.
2009-06-14 18:58:38 +00:00
Seiji Zenitani
73b26103c8 Remove USE_MAC_TOOLBAR (for Mac Carbon [22.x]) 2009-06-14 06:12:34 +00:00
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
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
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
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
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
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
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
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
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
2d82a920da *** empty log message *** 2009-05-07 13:46:31 +00:00
David Reitter
46b0d52db3 *** empty log message *** 2009-05-07 03:21:37 +00:00
Stefan Monnier
5996e1b74c (ns_get_screen): Rewrite.
Don't presume selected-frame is of type `ns'.
2009-05-06 03:09:11 +00:00
Stefan Monnier
ba98e3a0ff (font_update_drivers): Sanity fallback to avoid disabling all drivers. 2009-05-06 02:57:47 +00:00