1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-28 07:50:48 -08:00
Commit graph

28483 commits

Author SHA1 Message Date
Kenichi Handa
a63dba4250 (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
in 8-bit encoding.
2009-12-14 01:20:29 +00:00
Jan Djärv
36acb2a706 Set the extended window manager hint for tooltip windows.
* xfns.c (x_create_tip_frame): Set the extended window manager hint for
tooltip windows.

* xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
Xatom_net_window_type.

* xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
Xatom_net_window_type.
2009-12-13 15:39:28 +00:00
Jan Djärv
b8f0067758 Work around warning about g_set_prgname() called multiple times.
* xterm.c (my_log_handler): New function.
(x_term_init): Set my_log_handler as log handler during gtk_init
so we can filter out buggy messages. (bug #5120).
2009-12-13 14:24:22 +00:00
Jan Djärv
e5f0bc9ada Bug 5177: Scroll bar thumb did not move when scrolling with mouse wheel.
* xterm.c (xg_scroll_callback): Parameter list changed,
use parameter GtkScrollType to determine scroll/line/page.
Only allow dragging if a button < 4 is grabbed (bug #5177).
(xg_end_scroll_callback): New function.
(x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
xg_create_scroll_bar.

* gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
(scroll_end_callback): Remove.
(xg_create_scroll_bar): Add parameter end_callback, bind it to
button-release-event.  Replace value-changed event with change-value,
bug #5177,
(xg_event_is_for_scrollbar): Only return true if button is less than 4,
bug #5177.

* gtkutil.h (XG_LAST_SB_DATA): Remove.
(xg_create_scroll_bar): Add GCallback end_callback.
2009-12-13 13:31:35 +00:00
Jan Djärv
223e5fc656 xftfont.c: Parse symbolic names for constants also.
(QClcdfilter): New variable.
(xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
(syms_of_xftfont): Initialize QClcdfilter.
2009-12-13 13:16:17 +00:00
Jan Djärv
ba68c0b0c4 Fix typo. 2009-12-12 17:11:41 +00:00
Jan Djärv
3c055b77ae DPI might get set to 0 if we saw some Xsettings, but not DPI.
xsettings.c (struct xsettings): Add member seen.
(parse_xft_settings): Update member seen with what we have read.
Return 0 if Xft-settings have been parsed, 0 otherwise.
(apply_xft_settings): Only update Xft settings with what member seen
indicates as new.
2009-12-12 16:12:59 +00:00
Eli Zaretskii
05fe33ff4c (struct text_pos): Use EMACS_INT;
(struct glyph): Use EMACS_INT for charpos.
(struct it): Use EMACS_INT for stop_charpos, end_charpos, region_beg_charpos,
region_end_charpos, redisplay_end_trigger_charpos, and also for
iterator_stack_entry.end_charpos and iterator_stack_entry.stop_charpos.
2009-12-12 13:41:21 +00:00
Jan Djärv
e8d7886a67 gtkutil.c: Scroll bar thumb not updated properly (bug #5177).
(scroll_end_callback): New function (bug #5177)
(xg_create_scroll_bar): Call scroll_end_callback on button release
event (bug #5177).
(xg_event_is_for_scrollbar): != replaced with ==.
2009-12-12 12:29:15 +00:00
Kenichi Handa
d0db2ec8c0 (struct ftfont_info): New member matrix.
(ftfont_open): Setup xftfont_info->matrix.
(MFLTFontFT): New member matrix.
(FLOOR, CEIL, ROUND): New macros.
(ftfont_get_metrics): Handle matrix transformation.
(ftfont_shape_by_flt): New arg matrix.  Callers changed.
2009-12-12 02:14:16 +00:00
Kenichi Handa
91ce241591 (struct xftfont_info): New member matrix.
(xftfont_open): Setup xftfont_info->matrix.
2009-12-12 02:11:29 +00:00
Andreas Schwab
b87dd91373 * xsettings.c: Include "keyboard.h". 2009-12-09 14:30:37 +00:00
Andreas Schwab
eba5eb94c7 (xg_tool_bar_proxy_help_callback): Fix missing return. 2009-12-09 14:26:26 +00:00
Andreas Schwab
2cc7b62f11 * cmds.c: Include "frame.h".
* frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
* frame.h: Move declaration of delete_frame outside of
HAVE_WINDOW_SYSTEM.
2009-12-09 14:20:49 +00:00
Chong Yidong
a4ef73c887 * configure.in: Allow compiling Emacs with GTK on Cygwin.
* src/s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.

* src/emacs.c (main): Set the G_SLICE environment variable for Cygwin
GTK builds.
2009-12-09 01:06:32 +00:00
Andreas Schwab
944a300c0f (unexec): Don't search for .data twice. 2009-12-07 20:27:40 +00:00
Chong Yidong
426ac9499e * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
if push failed.
(handle_line_prefix): Set avoid_cursor_p here.  Check return value
of push_display_prop (Bug#5000).
2009-12-05 22:49:00 +00:00
Chong Yidong
b84ce3c5f6 Minor doc fix. 2009-12-05 20:38:05 +00:00
Chong Yidong
022eef6211 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
value of font_list_entities (Bug#5085).
2009-12-05 20:16:42 +00:00
Chong Yidong
ce75f06e91 Fix a comment and delete trailing whitespace. 2009-12-05 20:09:49 +00:00
Eli Zaretskii
bfadeadd32 (next_element_from_ellipsis): Fix a typo in the commentary. 2009-12-05 13:32:18 +00:00
Eli Zaretskii
6147a9bb21 (next_element_from_display_vector): Fix a typo in the commentary. 2009-12-05 13:21:49 +00:00
Juanma Barranquero
be95bee9b8 Fix `string-to-number' to deal consistently with integers and floats.
* lread.c (isfloat_string): New argument ignore_trailing to accept all
  trailing characters, not just whitespace.
  (read1): Pass new arg 0 to keep old behavior.
* data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
  trailing chars, as it is already done for integers.  Doc fixes.
* lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2009-12-04 16:16:26 +00:00
Eli Zaretskii
24c2d7ce87 (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete unused enumeration value. 2009-12-04 10:51:37 +00:00
Eli Zaretskii
7e6947958e (lisp, shortlisp): Replace indian.el with indian.elc. 2009-12-03 20:03:55 +00:00
Stefan Monnier
84b318269c (Fmake_network_process): Fix up the tests for
"connectionless socket", so they DTRT for seqpacket sockets as well.
2009-12-03 19:01:36 +00:00
Stefan Monnier
f00c449ba1 (Qseqpacket): New symbol.
(HAVE_SEQPACKET): New macro.
(Fmake_network_process): Accept new :type `seqpacket'.
(init_process): Add `seqpacket' feature when applicable.
(syms_of_process): Initialize Qseqpacket.
2009-12-03 18:51:32 +00:00
Miles Bader
964f5b2b79 Add arch tagline 2009-12-01 09:28:22 +00:00
YAMAMOTO Mitsuharu
8096a0ff8c (font_load_for_lface, font_open_by_name): Don't store name
if entity is Qnil.
2009-12-01 09:07:36 +00:00
Stefan Monnier
3e0de07fa8 (print_preprocess): Preprocess the key_and_value table of
hashtables, even tho they're "hidden" (bug#5082).
2009-11-30 21:08:25 +00:00
Jan Djärv
abeafb2a06 frame.c (frame_make_pointer_invisible)
(frame_make_pointer_visible): Declare f before statements.
2009-11-29 09:48:50 +00:00
Eli Zaretskii
b55fa3c00f (skip_invisible): Fix a typo in a comment. 2009-11-28 10:50:31 +00:00
Eli Zaretskii
4bf4719537 [!AUTO_DEPEND]: Remove outdated comment about omitted dependencies on lisp.h. 2009-11-28 10:24:51 +00:00
Jan Djärv
ece2d4ed18 Don't crash if an X terminal is deleted with force == t.
* xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
is NULL.

* xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.

* frame.c (frame_make_pointer_invisible)
(frame_make_pointer_visible): Just return if there isn't any selected
frame.
2009-11-27 17:27:04 +00:00
Jan Djärv
c525b3f2d2 serach.c (simple_search): Remove warning by making *p const. 2009-11-27 15:44:30 +00:00
Dan Nicolaescu
2f00e2992c (power_letter): Remove duplicate const. 2009-11-26 03:24:41 +00:00
Jan Djärv
a1fadc6fdf (delete_tty): Remove check for last terminal (bug#4970). 2009-11-25 17:53:54 +00:00
Jan Djärv
084b049b75 xsettings.c: Revert changes from 2009-11-23. Just use Xft defaults (bug #5025). 2009-11-25 16:19:51 +00:00
Stefan Monnier
28259cac70 (adjust_markers_for_delete): Move it in the right direction! (bug#4803) 2009-11-24 21:33:23 +00:00
YAMAMOTO Mitsuharu
e8e1416698 (x_new_font): Update f->scroll_bar_actual_width. 2009-11-24 08:37:56 +00:00
YAMAMOTO Mitsuharu
66f5ced096 (font_open_entity): Don't use ASET if font_object is Qnil. 2009-11-24 08:37:32 +00:00
Glenn Morris
86677b58d0 (focus-follows-mouse): Mention mouse-autoselect-window. 2009-11-24 02:40:03 +00:00
Jan Djärv
cfc86c7a86 Must create deps for ecrt0.o in its rule. 2009-11-23 14:48:59 +00:00
Jan Djärv
581e51e891 Set Xft defaults if no XSETTING is found, better default for Gtk+ font dialog.
* xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
because that is what Gtk+ font dialog understands.

* font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
of Fcopy_sequence.
(font_open_by_name): Put name given into QCname for font-object returned.

* frame.c (x_set_font): Save original font name as frame parameter
font-parameter.

* xsettings.c (set_default_xft_settings): New function.
(init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
is found.
2009-11-23 08:55:08 +00:00
Andreas Schwab
8b264ecb46 (simple_search): Avoid CHAR_TO_BYTE in inner loop when
searching backwards through multibyte buffer.
2009-11-22 12:11:00 +00:00
Jan Djärv
872870b29a Use a select wrapper around the GLib event loop, thus taking into account GLib
timeouts and event sources.  This simplifies Gtk+-code a lot, and is needed
for handling GConf death/restart.

* xterm.c: #include xgselect.h.
(x_initialize): Call xgselect_initialize.

* xsettings.c (something_changedCB): C++ comments => C comments.
(init_gconf): Do not deal with any GLib file descriptors, xg_select
does that now.

* gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
(xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
(scroll_bar_button_cb): Remove.
(create_menus): C++ comments => C comments. Don't bind grab-notify
event.
(xg_create_scroll_bar): Don't bind button-press-event and
button-release-event.

* process.c: Include xgselect.h if defined (USE_GTK) ||
defined (HAVE_GCONF).
(wait_reading_process_output): Call xg_select for the same condition.

* xgselect.c (xg_select): New function to better integrate with
GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.

* xgselect.h: New file, declare xg_select, xgselect_initialize.

* Makefile.in (XOBJ): Add xgselect.o.
2009-11-21 15:28:59 +00:00
Andreas Schwab
62a6e103dd * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
ignored second argument.  All callers changed.
* regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
(RE_STRING_CHAR_AND_LENGTH): Likewise.
* xdisp.c (string_char_and_length): Likewise.
2009-11-21 11:52:23 +00:00
Chong Yidong
eb7fdcd950 Fix last change. 2009-11-21 04:50:36 +00:00
Dan Nicolaescu
b0ca0f33f7 * xterm.c (x_new_font):
* print.c (print_object):
* cmds.c (Fself_insert_command): Move declarations before statements.
2009-11-21 02:33:45 +00:00
Chong Yidong
dd5a6279bc * s/cygwin.h: Remove unneeded linker flags. 2009-11-20 21:44:58 +00:00