1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00
Commit graph

28047 commits

Author SHA1 Message Date
Chong Yidong
57ebc3fdd2 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671). 2009-06-24 14:27:47 +00:00
Kenichi Handa
f084f94244 (fontset_get_font_group): Return 0 if no font-group is
set for C.
(fontset_font): Record the availability of a font for C both in
the realized fontset of the current one and the default one.
2009-06-24 04:24:18 +00:00
Chong Yidong
632c203070 Reformat 2009-06-23 ChangeLog entry. 2009-06-23 14:14:13 +00:00
Dan Nicolaescu
2f686c8743 (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
conditional, it is always defined on AIX.
2009-06-23 07:09:58 +00:00
Miles Bader
666e158e38 Add the recenter-redisplay' variable, and make recenter' use it.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1604
2009-06-23 07:07:45 +00:00
Jim Meyering
c6da7cd2b6 Don't dereference NULL upon failed malloc and realloc.
* src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
and xrealloc (not malloc and realloc), so subsequent heap pointer
dereferences are guaranteed to be valid.
2009-06-23 06:49:20 +00:00
Kenichi Handa
74d7542405 (main): Call init_font (). 2009-06-23 05:53:56 +00:00
Kenichi Handa
59314cafbe (Vfont_log): Extern it.
(FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2009-06-23 05:53:28 +00:00
Kenichi Handa
652b9560dc (font_sort_entities, font_list_entities)
(font_matching_entity, font_open_entity)
(font_close_object): Change font_add_log to FONT_ADD_LOG.
(Vfont_log): Delete static.
(font_log_env_checked): Delete this variable.
(font_add_log): Don't check font_log_env_checked.
(font_deferred_log): Check Vfont_log.
(init_font): New function.
2009-06-23 05:52:59 +00:00
Kenichi Handa
678dca3ddb Change font_add_log to FONT_ADD_LOG. 2009-06-23 05:51:00 +00:00
Kenichi Handa
b23bf85abc (fontset_font): Call FONT_DEFERRED_LOG.
(face_for_char): Don't call font_deferred_log here.
(font_for_char): Likewise.
2009-06-23 05:47:46 +00:00
Chong Yidong
ec7c992608 * xterm.c (xg_default_icon_file): New variable.
(syms_of_xterm): Initialize it to the Emacs SVG icon file.
(x_bitmap_icon): Under GTK, use xg_default_icon_file.
2009-06-22 04:09:14 +00:00
Chong Yidong
9a01ee3357 * w32term.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).

* xterm.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).
2009-06-22 02:01:56 +00:00
Chong Yidong
8a668709c2 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
(load_overlay_strings): Remove externs.
(fast_find_position): Function deleted.
(mouse_face_from_buffer_pos): New function, based on
fast_find_position.  Correctly handle before-strings,
display-strings, and after-strings (Bug#1220).
(note_mouse_highlight): Use mouse_face_from_buffer_pos.
2009-06-22 01:53:11 +00:00
Chong Yidong
7024347875 Add "Branch for 23.1" ChangeLog entry. 2009-06-21 14:35:26 +00:00
Chong Yidong
4d4c02d802 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
!HAVE_WINDOW_SYSTEM.
(move_it_in_display_line_to, move_it_in_display_line_to)
(display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2009-06-21 14:28:27 +00:00
Jason Rumney
46534e1efb (w32_initialize): Add necessary casts to last change. 2009-06-21 13:16:21 +00:00
Jason Rumney
13087e5925 (keyboard_codepage): New static variable.
(w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
(w32_read_socket) [WM_CHAR]: Use it to decode character
input (bug#3237).
(w32_initialize): Initialize it.
(codepage_for_locale): New function.
2009-06-21 03:34:19 +00:00
Ken Raeburn
4735b74e57 (status_message): Pass Faset index argument as a lisp object, so as to work
with USE_LISP_UNION_TYPE.
2009-06-20 23:23:55 +00:00
Juanma Barranquero
ec7709ba14 Fix typos. 2009-06-19 13:45:19 +00:00
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
Kenichi Handa
9c6d2887cd (detect_coding_utf_16): Fix the logic of rejecting
UTF-16 by checking the dispersion of Eth and Oth bytes.
2009-06-16 01:17:10 +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
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