1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00
Commit graph

28469 commits

Author SHA1 Message Date
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
Jan Djärv
0d1d0d26a9 Always suggest system font because .emacs may not have been read yet.
* xfns.c (x_default_font_parameter): Call xsettings_get_system_font.

* xsettings.h: Declare xsettings_get_system_font.

* xsettings.c (xsettings_get_system_font): New function.
(init_gconf): No use initiating gconf unless we have Xft also.
(syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
HAVE_GCONF.
2009-11-20 09:44:42 +00:00
Jan Djärv
4a8e097d4e gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
add a blank entry so it doesn't collapse into nothing.
2009-11-20 08:54:18 +00:00
Stefan Monnier
8ab1650ee3 (Funintern): Comment out last change. 2009-11-19 22:10:40 +00:00
Richard M. Stallman
82c602f0fe * lread.c (Funintern): Error if symbol is t or nil. 2009-11-19 16:13:22 +00:00
Stefan Monnier
87e32266f0 (make_gap_larger): Don't make as many assumptions about the
representation of Lisp integers.
Reported by MJ Chan <mjchan.inbox@gmail.com>.
2009-11-19 01:40:22 +00:00
Andreas Schwab
1b9ac1453d * lisp.h: Remove declaration of Ffont_get_system_font.
* xfns.c: Move include of "xsettings.h".
* xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2009-11-17 21:57:48 +00:00
Jan Djärv
dfb3c4c640 xsettings.c didn't check font-use-system-font, fix that.
* xsettings.c (something_changedCB, Ffont_get_system_font): Check
use_system_font.
(syms_of_xsettings): DEFVAR font-use-system-font.

* font-setting.el (font-use-system-font): Moved ...

* cus-start.el (all): ... to here.
2009-11-17 20:17:46 +00:00
Andreas Schwab
25fe851a7c (x_default_font_parameter): Remove dead assignment. 2009-11-17 19:13:14 +00:00
Andreas Schwab
9370c1d8eb (Fbyteorder, init_font, Ffont_get_system_font): Declare. 2009-11-17 19:11:53 +00:00
Jan Djärv
21050de1b8 * xftfont.c (xftfont_fix_match): Older versions of fontconfig does
not have FC_LCD_*.  #define them if not there.
2009-11-17 13:47:29 +00:00
Jan Djärv
a6eb20d8fe #ifdef on FC_LCD_FILTER.
* xftfont.c (xftfont_fix_match): Older versions of fontconfig does
not have FC_LCD_FILTER.  #ifdef it.

* xsettings.c (parse_xft_settings, apply_xft_settings): Ditto

* xftfont.c (xftfont_fix_match): New function.
(xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
Call xftfont_fix_match after XftFontMatch.
2009-11-17 09:53:45 +00:00
Jan Djärv
749cebc32f Add font-setting.el to DOC. 2009-11-17 09:13:36 +00:00
Jan Djärv
637fa98808 Handle system default font and changing font parameters.
* xterm.h (struct x_display_info): Add atoms and Window for xsettings.

* xterm.c (handle_one_xevent): Call xft_settings_event for
ClientMessage, PropertyNotify and DestroyNotify.
(x_term_init): If we have XFT, get DPI from Xft.dpi.
Call xsettings_initialize.

* xftfont.c (xftfont_fix_match): New function.
(xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
Call xftfont_fix_match after XftFontMatch.

* xfont.c (xfont_driver): Initialize all members.

* xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
Do not get font from x_default_parameter if we got one from
Ffont_get_system_font.
(Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).

* w32font.c (w32font_driver): Initialize all members.

* termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.

* lisp.h: Declare syms_of_xsettings.

* keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
CONFIG_CHANGED_EVENT.

* ftfont.c (ftfont_filter_properties): New function.

* frame.c (x_set_font): Remove unused variable lval.

* font.h (struct font_driver): filter_properties is new.

* font.c (font_put_extra): Don't return if val is nil, it means
boolean option is off.
(font_parse_fcname): Collect all extra properties in extra_props
and call filter_properties for all drivers with extra_props and
font as parameter.
(font_open_entity): Do not use cache, it does not pick up new fontconfig
settings like hinting.
(font_load_for_lface): If spec had a name in it, store it in entity.

* emacs.c (main): Call syms_of_xsettings

* config.in: HAVE_GCONF is new.

* Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
xsettings.o is new.

* menu-bar.el: Put "Use system font" in Option-menu.

* loadup.el: If feature system-font-setting or font-render-setting is
there, load font-setting.

* Makefile.in (ELCFILES): font-settings.el is new.
* font-setting.el: New file.

* NEWS: Mention dynamic font changes (font-use-system-font).

* configure.in: New option: --with(out)-gconf.
Set HAVE_GCONF if we find gconf.
2009-11-17 08:21:23 +00:00
Kenichi Handa
5a94293248 (x_produce_glyphs): Consider face-remapping when falling
back to the default font in case that no suitable font is found.
2009-11-17 04:17:19 +00:00