1. 08 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const char* instead of char*. · 675e2c69
      Dan Nicolaescu authored
      * src/xterm.c (x_create_toolkit_scroll_bar):
      * src/xfont.c (xfont_list_pattern):
      * src/xfns.c (x_default_scroll_bar_color_parameter)
      (xic_create_fontsetname, x_default_font_parameter)
      (x_screen_planes):
      * src/xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
      (store_mode_line_string, decode_mode_spec, display_string):
      * src/menu.c (digest_single_submenu):
      * src/keymap.h (initial_define_key, initial_define_lispy_key):
      * src/keymap.c (initial_define_key, initial_define_lispy_key):
      * src/image.c (image_error, image_keyword):
      * src/gtkutil.h (xg_create_widget, xg_create_scroll_bar):
      * src/gtkutil.c (xg_create_widget, xg_create_scroll_bar):
      * src/ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
      (ftfont_list, ftfont_match):
      * src/frame.c (frame_parm_table):
      * src/font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
      (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
      (font_add_log, font_deferred_log):
      * src/emacs.c (argmatch):
      * src/dispextern.h (struct it):
      * src/coding.c (ENCODE_DESIGNATION):
      * src/charset.c (define_charset_internal): Use const.
      675e2c69
  2. 05 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Add declarations to header files. · 99f3388e
      Dan Nicolaescu authored
      * src/keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
      declarations, menu.h has them.
      (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
      (Vinput_method_function, Qinput_method_function)
      (Qevent_symbol_element_mask, last_event_timestamp):
      * src/dispextern.h (Voverflow_newline_into_fringe):
      * src/font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
      (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
      (syms_of_w32font, syms_of_nsfont):
      * src/fontset.h (find_font_encoding, Qlatin):
      * src/frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
      (Vtool_bar_mode, set_frame_menubar):
      * src/ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
      * src/xterm.h (Qx_gtk_map_stock):
      * src/keymap.h (meta_prefix_char): Add declarations.
      
      * src/lisp.h: Remove HAVE_SHM code, unused.
      (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
      (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
      (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
      (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
      (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
      (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
      (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
      (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
      (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
      (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
      (Qwindow_scroll_functions, Vafter_load_alist)
      (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
      (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
      (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
      (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
      (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
      (Vwindow_system_version, Vx_no_window_manager, initial_argc)
      (initial_argv, last_nonmenu_event, load_in_progress)
      (noninteractive_need_newline, scroll_margin): Add declarations.
      99f3388e
  3. 08 Jul, 2010 1 commit
  4. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove P_ and __P macros. · 383e0970
      Jan D authored
      * lwlib/lwlib-Xaw.h: Remove P_ and __P macros.
      * lwlib/lwlib-Xlw.h:
      * lwlib/lwlib-Xm.h:
      * lwlib/lwlib-int.h:
      * lwlib/lwlib-utils.h:
      * lwlib/lwlib.h: Likewise.
      
      * src/buffer.h: Remove P_ and __P macros.
      * src/category.h:
      * src/ccl.h:
      * src/character.h:
      * src/charset.h:
      * src/cm.h:
      * src/coding.h:
      * src/composite.h:
      * src/dispextern.h:
      * src/disptab.h:
      * src/font.h:
      * src/fontset.h:
      * src/frame.h:
      * src/gtkutil.h:
      * src/indent.h:
      * src/intervals.h:
      * src/keyboard.h:
      * src/keymap.h:
      * src/lisp.h:
      * src/macros.h:
      * src/md5.h:
      * src/menu.h:
      * src/msdos.h:
      * src/nsterm.h:
      * src/puresize.h:
      * src/region-cache.h:
      * src/syntax.h:
      * src/syssignal.h:
      * src/systime.h:
      * src/termhooks.h:
      * src/w32term.h:
      * src/widget.h:
      * src/window.h:
      * src/xgselect.h:
      * src/xsettings.h:
      * src/xterm.h: Likewise.
      383e0970
  5. 13 Jan, 2010 1 commit
  6. 06 Jan, 2010 1 commit
    • Jan Djärv's avatar
      Fix slowdown and wrong font choosed by XSETTINGS changes. bug #5157. · d0cf45b7
      Jan Djärv authored
      * font.c (font_open_entity): Enable chache and call cached_font_ok
      for the driver if defined.
      (QCuser_spec): New symbol.
      (font_spec_from_name): Save name as user-spec.
      (font_load_for_lface): Keep user-spec instead of name.
      (font_open_by_name): Save name as user-spec.
      (syms_of_font): Initialize QCuser_spec.
      
      * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
      (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
      (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
      
      * font.h (struct font_driver): Add cached_font_ok.
      
      * font-setting.el (font-setting-change-default-font): Use user-spec
        instead of name.
      d0cf45b7
  7. 17 Nov, 2009 1 commit
    • 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
  8. 23 Jun, 2009 1 commit
  9. 17 Apr, 2009 1 commit
  10. 11 Mar, 2009 1 commit
  11. 24 Feb, 2009 3 commits
  12. 18 Feb, 2009 2 commits
  13. 27 Jan, 2009 1 commit
  14. 08 Jan, 2009 1 commit
  15. 30 Dec, 2008 1 commit
  16. 31 Aug, 2008 1 commit
    • Stefan Monnier's avatar
      * font.h (font_range): · c7c7a80c
      Stefan Monnier authored
      * fileio.c (report_file_error):
      * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
      c7c7a80c
  17. 29 Aug, 2008 1 commit
  18. 19 Aug, 2008 1 commit
  19. 27 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      Remove support for Mac Carbon. · 9e2a2647
      Dan Nicolaescu authored
      * mactoolbox.c:
      * macterm.h:
      * macterm.c:
      * macselect.c:
      * macmenu.c:
      * macgui.h:
      * macfns.c:
      * mac.c: Remove file.
      * s/darwin.h:
      * m/intel386.h:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * tparam.c:
      * termhooks.h:
      * termcap.c:
      * term.c:
      * syssignal.h:
      * sysselect.h:
      * sysdep.c:
      * process.c:
      * lread.c:
      * lisp.h:
      * keyboard.c:
      * image.c:
      * fringe.c:
      * frame.h:
      * frame.c:
      * fontset.c:
      * font.h:
      * font.c:
      * fns.c:
      * fileio.c:
      * emacs.c:
      * dispnew.c:
      * dispextern.h:
      * config.in:
      * atimer.c:
      * Makefile.in: Remove code for Carbon
      
      * erc.el: Remove code for Carbon.
      
      Remove support for Mac Carbon.
      * term/mac-win.el: Remove file
      * international/mule-cmds.el:
      * version.el:
      * startup.el:
      * simple.el:
      * mwheel.el:
      * mouse.el:
      * loadup.el:
      * isearch.el:
      * info.el:
      * frame.el:
      * faces.el:
      * disp-table.el:
      * cus-start.el:
      * cus-face.el:
      * cus-edit.el:
      * Makefile.in: Remove code for Carbon.
      
      Remove support for Mac Carbon.
      * makefile.w32-in:
      * emacsclient.c: Remove code for Carbon.
      
      * PROBLEMS:
      * MACHINES: Remove mentions of Mac Carbon.
      
      * ns-emacs.texi:
      * faq.texi: Remove mentions of Mac Carbon.
      
      * os.texi:
      * frames.texi:
      * display.texi: Remove mentions of Mac Carbon.
      
      * xresources.texi: Remove mentions of Mac Carbon.
      
      * make-tarball.txt:
      * admin.el:
      * FOR-RELEASE:
      * CPP-DEFINES: Remove mentions of Mac Carbon.
      
      Remove support for Mac Carbon.
      * mac: Remove directory.
      * make-dist:
      * configure.in:
      * README:
      * Makefile.in:
      * INSTALL:  Remove code for Carbon.
      * configure: Regenerate.
      9e2a2647
  20. 15 Jul, 2008 1 commit
  21. 09 Jul, 2008 1 commit
  22. 24 Jun, 2008 1 commit
  23. 16 Jun, 2008 1 commit
  24. 15 Jun, 2008 1 commit
  25. 13 Jun, 2008 1 commit
    • Jason Rumney's avatar
      * w32fns.c (Fw32_select_font): Removed old font API function. · 6fe9826d
      Jason Rumney authored
      * w32font.c (logfont_to_fcname): New function.
      (Fx_select_font): New font dialog function compatible with
      GTK/fontconfig version.
      
      * font.c (font_style_symbolic_from_value): New function.
      (font_style_symbolic): Use it.
      
      * font.h (font_style_symbolic_from_value): Declare new function.
      6fe9826d
  26. 10 Jun, 2008 1 commit
  27. 09 Jun, 2008 1 commit
  28. 22 May, 2008 1 commit
  29. 20 May, 2008 1 commit
  30. 19 May, 2008 1 commit
  31. 15 May, 2008 1 commit
  32. 14 May, 2008 1 commit
    • Kenichi Handa's avatar
      (Qfont_spec, Qfont_entity, Qfont_object): Extern them. · 875003e5
      Kenichi Handa authored
      (enum font_property_index): New members FONT_DPI_INDEX,
      FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
      FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
      FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
      (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
      (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
      (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
      (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
      (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
      (struct font_spec, struct font_entity): New structs.
      (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
      (struct font): Many members from old "struct font_info" moved to
      here.  Members font and entity deleted.
      (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
      the new font-related objects.
      (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
      (CHECK_FONT_GET_OBJECT): Likewise.
      (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
      (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
      (struct font_driver): New members case_sensitive anc check.  Type
      of the member list and open changed.
      (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
      (font_symbolic_width, font_find_object, font_get_spec)
      (font_set_lface_from_name): Delete extern.
      (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New
      EXFUNs.
      875003e5
  33. 03 Apr, 2008 1 commit
  34. 13 Feb, 2008 1 commit
  35. 06 Feb, 2008 2 commits
  36. 28 Jan, 2008 1 commit