1. 17 Nov, 2009 8 commits
    • Jan Djärv's avatar
      xsettings.c didn't check font-use-system-font, fix that. · dfb3c4c6
      Jan Djärv authored
      * xsettings.c (something_changedCB, Ffont_get_system_font): Check
      (syms_of_xsettings): DEFVAR font-use-system-font.
      * font-setting.el (font-use-system-font): Moved ...
      * cus-start.el (all): ... to here.
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
    • Jan Djärv's avatar
      * xftfont.c (xftfont_fix_match): Older versions of fontconfig does · 21050de1
      Jan Djärv authored
      not have FC_LCD_*.  #define them if not there.
    • Jan Djärv's avatar
      #ifdef on FC_LCD_FILTER. · a6eb20d8
      Jan Djärv authored
      * 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.
    • Jan Djärv's avatar
      Handle system default font and changing font parameters. · 637fa988
      Jan Djärv authored
      * 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
      (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
      * 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.
    • Kenichi Handa's avatar
      (x_produce_glyphs): Consider face-remapping when falling · 5a942932
      Kenichi Handa authored
      back to the default font in case that no suitable font is found.
    • Stefan Monnier's avatar
      (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge. · b7c7a4d1
      Stefan Monnier authored
      Suggested by Chad Brown <yandros@mit.edu>.
      (push_menu_item): Use MENU_ITEMS_ITEM_* names.
  2. 16 Nov, 2009 1 commit
  3. 14 Nov, 2009 3 commits
  4. 13 Nov, 2009 4 commits
  5. 12 Nov, 2009 3 commits
  6. 11 Nov, 2009 5 commits
    • Dan Nicolaescu's avatar
      * process.c (ifflag_def): Make flag_sym constant. · 91433552
      Dan Nicolaescu authored
      (Fnetwork_interface_info): Use a constant pointer.
      * xfns.c (cursor_bits):
      * xdisp.c (power_letter):
      * termcap.c (speeds, esctab):
      * sysdep.c (baud_convert):
      * keyboard.c (lispy_accent_codes, modifier_names):
      * image.c (xbm_format, xpm_format, pbm_format, png_format)
      (jpeg_format, tiff_format, gif_format, svg_format)
      (interlace_start, interlace_increment, gs_format):
      * gtkutil.c (separator_names):
      * fringe.c (swap_nibble):
      * fns.c (base64_value_to_char, base64_char_to_value):
      * fileio.c (make_temp_name_tbl):
      * coding.c (suffixes): Make constant.
    • Dan Nicolaescu's avatar
      * frame.c (make_initial_frame): · f4265f6c
      Dan Nicolaescu authored
      * buffer.c (init_buffer_once): Use make_pure_c_string instead of
      * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
    • Dan Nicolaescu's avatar
      * s/freebsd.h: · 04420943
      Dan Nicolaescu authored
      * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
    • Dan Nicolaescu's avatar
      Add dependencies to lisp.h. Remove dependencies · 0a5d24ae
      Dan Nicolaescu authored
      for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
    • Dan Nicolaescu's avatar
      * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string. · a4ada374
      Dan Nicolaescu authored
      * xterm.c (syms_of_xterm):
      * xfaces.c (syms_of_xfaces):
      * xdisp.c (syms_of_xdisp):
      * lread.c (syms_of_lread):
      * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
      * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
  7. 10 Nov, 2009 4 commits
  8. 09 Nov, 2009 3 commits
    • Juanma Barranquero's avatar
      Fix typos. · 362654a6
      Juanma Barranquero authored
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c, · ef7417fd
      Stefan Monnier authored
      w32menu.c, and nsmenu.m.
      Simplify the obsolete case where position is nil.
      (cleanup_popup_menu): New function, moved from nsmenu.m.
      (struct skp): Remove slot `notreal'.
      (single_keymap_panes, keymap_panes): Remove arg `notreal' and adjust callers.
      (single_menu_item): Adjust call to parse_menu_item.
      (syms_of_menu): Defsubr x-popup-menu.
      * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
      (keymap_panes): Don't export any more.
      (mouse_position_for_popup, w32_menu_show, ns_menu_show, xmenu_show): Declare.
      * keyboard.c (parse_menu_item): Remove arg `notreal'.
      (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
      * keyboard.h (parse_menu_item): Update declaration.
      * xmenu.c (Fx_popup_menu): Remove.
      (syms_of_xmenu): Don't defsubr x-popup-menu.
      * w32menu.c (Fx_popup_menu): Remove.
      (syms_of_w32menu): Don't defsubr x-popup-menu.
      * nsmenu.m (cleanup_popup_menu): Remove.
      (ns_menu_show): Rename from ns_popup_menu and remove all the code
      moved to menu.c's Fx_popup_menu.
      (Fx_popup_menu): Remove.
      (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
      menu_items (it's done in menu.c already).
  9. 08 Nov, 2009 2 commits
  10. 07 Nov, 2009 1 commit
  11. 06 Nov, 2009 6 commits
    • Stefan Monnier's avatar
      Let integers use up 2 tags to give them one extra bit and double their range. · 2de9f71c
      Stefan Monnier authored
      * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
      (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P): New macros.
      (enum Lisp_Type): Use them.  Give explicit values.
      (Lisp_Type_Limit): Remove.
      (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
      Pay attention to USE_2_TAGS_FOR_INTS.
      * fns.c (internal_equal): Simplify the default case.
      (sxhash): Use case_Lisp_Int.
      * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit any more.
      (Ftype_of): Use case_Lisp_Int.
      (store_symval_forwarding): Take into account the fact that Ints can
      now have more than one tag.
      * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
      * xfaces.c (face_attr_equal_p):
      * print.c (print_object):
      * alloc.c (mark_maybe_object, mark_object, survives_gc_p): Use case_Lisp_Int.
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
    • Jan Djärv's avatar
      Fix bug #4870, issues 3 and 4. · e511451f
      Jan Djärv authored
      * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
      * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
      * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
      ButtonPressRelease and MotionNotify (bug#4870).
    • Dan Nicolaescu's avatar
    • Dan Nicolaescu's avatar
      * xterm.c (syms_of_xterm): · d67b4f80
      Dan Nicolaescu authored
      * xselect.c (syms_of_xselect):
      * xmenu.c (syms_of_xmenu):
      * xfns.c (syms_of_xfns):
      * xfaces.c (syms_of_xfaces):
      * xdisp.c (syms_of_xdisp):
      * window.c (syms_of_window):
      * w32fns.c (syms_of_w32fns):
      * undo.c (syms_of_undo):
      * textprop.c (syms_of_textprop):
      * terminal.c (syms_of_terminal):
      * syntax.c (syms_of_syntax):
      * sound.c (syms_of_sound):
      * search.c (syms_of_search):
      * print.c (syms_of_print):
      * minibuf.c (syms_of_minibuf):
      * macros.c (syms_of_macros):
      * keymap.c (syms_of_keymap, initial_define_key)
      * keyboard.c (syms_of_keyboard):
      * insdel.c (syms_of_insdel):
      * image.c (syms_of_image):
      * fringe.c (syms_of_fringe):
      * frame.c (syms_of_frame):
      * fontset.c (syms_of_fontset):
      * fns.c (syms_of_fns):
      * fns.c (syms_of_fns):
      * fileio.c (syms_of_fileio):
      * fileio.c (syms_of_fileio):
      * eval.c (syms_of_eval):
      * doc.c (syms_of_doc):
      * dispnew.c (syms_of_display):
      * dired.c (syms_of_dired):
      * dbusbind.c (syms_of_dbusbind):
      * data.c (syms_of_data):
      * composite.c (syms_of_composite):
      * coding.c (syms_of_coding):
      * cmds.c (syms_of_cmds):
      * charset.c (define_charset_internal, syms_of_character):
      * ccl.c (syms_of_ccl):
      * category.c (syms_of_category, init_category_once):
      * casetab.c (syms_of_casetab):
      * casefiddle.c (syms_of_casefiddle):
      * callint.c (syms_of_callint):
      * bytecode.c (syms_of_bytecode):
      * buffer.c (keys_of_buffer, syms_of_buffer):
      * alloc.c (syms_of_alloc):
      * process.c (syms_of_process, init_process):
      * lread.c (syms_of_lread, init_obarray):
      * font.c (build_style_table):
      * emacs.c (syms_of_emacs, main): Replace calls to intern with
      intern_c_string, calls to make_pure_string with
      make_pure_c_string.  Use pure_cons instead of Fcons.
      * process.c (socket_options): Make it const.
      (set_socket_option, init_process): Use a const pointer.
      * lread.c (intern_c_string): New function.
      (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
      (defvar_int): Uset it.  Make the name const char*.
      * font.c (struct table_entry): Remove unused member.  Make NAMES
      (weight_table, slant_table, width_table): Make constant.
      * emacs.c (struct standard_args): Make name and longname constant.