1. 21 Nov, 2009 2 commits
  2. 20 Nov, 2009 3 commits
  3. 19 Nov, 2009 3 commits
  4. 17 Nov, 2009 9 commits
    • Andreas Schwab's avatar
      * lisp.h: Remove declaration of Ffont_get_system_font. · 1b9ac145
      Andreas Schwab authored
      * xfns.c: Move include of "xsettings.h".
      * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
      1b9ac145
    • 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
      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.
      dfb3c4c6
    • Andreas Schwab's avatar
      25fe851a
    • 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.
      21050de1
    • 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.
      a6eb20d8
    • 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
      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.
      637fa988
    • 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.
      5a942932
    • 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.
      b7c7a4d1
  5. 16 Nov, 2009 1 commit
  6. 14 Nov, 2009 3 commits
  7. 13 Nov, 2009 4 commits
  8. 12 Nov, 2009 3 commits
  9. 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.
      (ifflag_table):
      * 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.
      91433552
    • 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
      build_string.
      * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
      f4265f6c
    • Dan Nicolaescu's avatar
      * s/freebsd.h: · 04420943
      Dan Nicolaescu authored
      * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
      04420943
    • 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.
      0a5d24ae
    • 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
      build_string.
      * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
      a4ada374
  10. 10 Nov, 2009 4 commits
  11. 09 Nov, 2009 3 commits
    • Juanma Barranquero's avatar
      Fix typos. · 362654a6
      Juanma Barranquero authored
      362654a6
    • Juanma Barranquero's avatar
      04e452cb
    • 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).
      ef7417fd