1. 15 Jan, 2011 1 commit
  2. 02 Jan, 2011 1 commit
  3. 27 Dec, 2010 1 commit
    • Andreas Schwab's avatar
      Remove unused declarations · 2f7c71a1
      Andreas Schwab authored
      * src/buffer.c: Remove unused declarations.
      * src/buffer.h: Likewise.
      * src/charset.h: Likewise.
      * src/composite.h: Likewise.
      * src/dispextern.h: Likewise.
      * src/dispnew.c: Likewise.
      * src/font.h: Likewise.
      * src/fontset.c: Likewise.
      * src/fontset.h: Likewise.
      * src/intervals.h: Likewise.
      * src/keymap.h: Likewise.
      * src/lisp.h: Likewise.
      * src/syntax.c: Likewise.
      * src/syntax.h: Likewise.
      * src/termhooks.h: Likewise.
      * src/window.h: Likewise.
      * src/xsettings.h: Likewise.
      * src/xterm.c: Likewise.
      * src/xterm.h: Likewise.
      
      * src/chartab.c (sub_char_table_ref): Make static.
      * src/dispnew.c (line_hash_code, required_matrix_height)
      (required_matrix_width): Likewise.
      * src/eval.c (interactive_p, apply_lambda): Likewise.
      * src/fns.c (string_make_multibyte, copy_hash_table, hash_clear):
      Likewise.
      * src/font.c (QCadstyle, QCregistry, font_make_spec)
      (font_parse_fcname, font_encode_char, font_at): Likewise.
      * src/frame.c (x_frame_get_arg): Likewise.
      * src/keymap.c (get_keyelt): Likewise.
      * src/lread.c (read_filtered_event): Likewise.
      * src/print.c (write_string_1): Likewise.
      * src/window.c (delete_window, window_height, window_width)
      (foreach_window): Likewise.
      * src/xrdb.c (x_get_customization_string, x_get_resource): Likewise.
      * src/xterm.c (x_scroll_bar_clear, xembed_set_info)
      (xembed_send_message): Likewise.
      
      * src/eval.c (run_hook_list_with_args): Delete.
      * src/font.c (font_unparse_gtkname, font_update_lface): Likewise.
      * src/terminal.c (get_terminal_param): Likewise.
      * src/xterm.c (x_alloc_lighter_color_for_widget): Likewise.
      2f7c71a1
  4. 10 Nov, 2010 1 commit
    • YAMAMOTO Mitsuharu's avatar
      Add const to array elements of font filter properties. · 3106121c
      YAMAMOTO Mitsuharu authored
      * font.c (font_filter_properties): Add const to array elements of properties args.
      * font.h (font_filter_properties): Likewise.
      * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array elements.
      * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
      3106121c
  5. 13 Oct, 2010 1 commit
    • Damyan Pepper's avatar
      Fix handling of font properties on Windows (bug#6303). · 9fa82824
      Damyan Pepper authored
      * src/font.c (font_filter_properties): New function, refactored from
        ftfont_filter_properties.
      * src/font.h (font_filter_properties): Declare.
      * src/ftfont.c (ftfont_filter_properties): Use font_filter_properties.
      * src/w32font.c (w32font_booleans, w32font_non_booleans): New variables.
        (w32font_filter_properties): New function.
        (w32font_driver): Add w32font_filter_properties.
      9fa82824
  6. 12 Oct, 2010 1 commit
  7. 11 Aug, 2010 1 commit
    • Jan D's avatar
      Fix -Wwrite_strings in general and for Gtk+ specific code. · 42ca4633
      Jan D authored
      * callproc.c (synch_process_death): Make const.
      (Fcall_process): Make signame const.
      
      * emacs.c (main): Pass char[] to putenv instead of literal.
      
      * floatfns.c (matherr): Use a const char* variable for x->name.
      
      * font.c (font_open_by_name): Make name const.
      
      * font.h (font_open_by_name): Make name const.
      
      * gtkutil.c (get_utf8_string): Always return an allocated string.
      Parameter is const.
      (create_dialog, xg_create_one_menuitem, create_menus)
      (xg_item_label_same_p, xg_update_menu_item): Free result from
      get_utf8_string.
      (xg_separator_p, xg_item_label_same_p): label is const.
      
      * gtkutil.h: Replace widget_value with struct _widget_value.
      (enum button_type, struct _widget_value): Remove and use the one from
      keyboard.h.
      
      * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
      with unsigned char and XtPointer with void *.
      
      * menu.c (Fx_popup_menu): error_name is const.
      
      * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
      is const char **.
      
      * w32menu.c (w32_menu_show):
      * nsmenu.m (ns_menu_show): error parameter is const char **.
      
      * process.h (synch_process_death): Is const char*.
      
      * xmenu.c (Fx_popup_dialog): error_name is const char*.
      (xmenu_show): error parameter is const char **. pane_string is const
      char *.
      (button_names): Is const char *.
      (xdialog_show): error_name and pane_string is const.
      
      * xrdb.c (get_system_app): Make path const and use char *p for non-const
      char.
      
      * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
      
      * xsmfns.c (NOSPLASH_OPT): Change to char[].
      (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
      props.  Free them at the end.
      
      * xterm.c (emacs_class): New char[] for EMACS_CLASS.
      (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
      (x_term_init): Use char[] display_opt and name_opt instead of
      string literal. file is const char*.
      42ca4633
  8. 09 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove incorrect const use. · 09d93395
      Dan Nicolaescu authored
      * src/font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
      (font_parse_name): font_open_by_name):
      * src/font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
      (font_parse_name): font_open_by_name): Remove const.
      09d93395
  9. 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
  10. 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
  11. 08 Jul, 2010 1 commit
  12. 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
  13. 13 Jan, 2010 1 commit
  14. 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
  15. 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
  16. 23 Jun, 2009 1 commit
  17. 17 Apr, 2009 1 commit
  18. 11 Mar, 2009 1 commit
  19. 24 Feb, 2009 3 commits
  20. 18 Feb, 2009 2 commits
  21. 27 Jan, 2009 1 commit
  22. 08 Jan, 2009 1 commit
  23. 30 Dec, 2008 1 commit
  24. 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
  25. 29 Aug, 2008 1 commit
  26. 19 Aug, 2008 1 commit
  27. 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
  28. 15 Jul, 2008 1 commit
  29. 09 Jul, 2008 1 commit
  30. 24 Jun, 2008 1 commit
  31. 16 Jun, 2008 1 commit
  32. 15 Jun, 2008 1 commit
  33. 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
  34. 10 Jun, 2008 1 commit
  35. 09 Jun, 2008 1 commit
  36. 22 May, 2008 1 commit
  37. 20 May, 2008 1 commit