1. 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
  2. 06 Nov, 2009 2 commits
    • 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)
      (initial_define_lispy_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
      constant.
      (weight_table, slant_table, width_table): Make constant.
      
      * emacs.c (struct standard_args): Make name and longname constant.
      d67b4f80
    • Dan Nicolaescu's avatar
      * process.c (socket_options): Make it const. · 5e2327cf
      Dan Nicolaescu authored
      (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*.
      
      * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
      (defvar_int): Update prototypes.
      (DEFUN, EXFUN): Support for prototypes is now required.
      (intern_c_string): New prototype.
      (struct Lisp_Subr): Make symbol_name constant.
      
      * font.c (struct table_entry): Remove unused member.  Make NAMES
      constant.
      (weight_table, slant_table, width_table): Make constant.
      
      * emacs.c (struct standard_args): Make name and longname constant.
      
      * character.h (DEFSYM): Use intern_c_string.
      5e2327cf
  3. 23 Oct, 2009 1 commit
  4. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * alloc.c: Do not define struct catchtag. · d7306fe6
      Dan Nicolaescu authored
      * eval.c: Move struct catchtag definition ...
      * lisp.h: ... here.
      
      * image.c: Move png.h #include earlier to avoid warnings.
      
      * xterm.c:
      * xsmfns.c:
      * xselect.c:
      * xrdb.c:
      * xmenu.c:
      * xftfont.c:
      * xfont.c:
      * xfns.c:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * widget.c:
      * w32xfns.c:
      * w32uniscribe.c:
      * w32term.c:
      * w32select.c:
      * w32reg.c:
      * w32proc.c:
      * w32menu.c:
      * w32inevt.c:
      * w32heap.c:
      * w32font.c:
      * w32fns.c:
      * w32console.c:
      * w32.c:
      * w16select.c:
      * vm-limit.c:
      * unexsol.c:
      * unexec.c:
      * unexcw.c:
      * unexaix.c:
      * undo.c:
      * tparam.c:
      * textprop.c:
      * terminfo.c:
      * terminal.c:
      * termcap.c:
      * term.c:
      * syntax.c:
      * sound.c:
      * sheap.c:
      * search.c:
      * scroll.c:
      * region-cache.c:
      * regex.c:
      * ralloc.c:
      * process.c:
      * print.c:
      * msdos.c:
      * minibuf.c:
      * menu.c:
      * marker.c:
      * macros.c:
      * keymap.c:
      * keyboard.c:
      * intervals.c:
      * insdel.c:
      * indent.c:
      * gtkutil.c:
      * ftxfont.c:
      * ftfont.c:
      * fringe.c:
      * frame.c:
      * fontset.c:
      * font.c:
      * fns.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c:
      * editfns.c:
      * dosfns.c:
      * doprnt.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * dbusbind.c:
      * data.c:
      * composite.c:
      * coding.c:
      * cmds.c:
      * cm.c:
      * chartab.c:
      * charset.c:
      * character.c:
      * ccl.c:
      * category.c:
      * casetab.c:
      * casefiddle.c:
      * callproc.c:
      * callint.c:
      * bytecode.c:
      * buffer.c:
      * atimer.c: Include setjmp.h.  (Bug#4643)
      
      * xlwmenu.c:
      * lwlib.c:
      * lwlib-utils.c:
      * lwlib-Xm.c:
      * lwlib-Xlw.c:
      * lwlib-Xaw.c: Include setjmp.h.
      d7306fe6
  5. 18 Sep, 2009 2 commits
  6. 17 Sep, 2009 1 commit
    • Juanma Barranquero's avatar
      The --quick command line option now ignores X resources and Registry settings. · 8686ac71
      Juanma Barranquero authored
      * etc/NEWS: Mention new behavior of -Q and new variable `inhibit-x-resources'.
      
      * lisp/startup.el (emacs-quick-startup): Remove variable and all uses.
        (command-line): Set `inhibit-x-resources' instead.
        (command-line-1): Use `inhibit-x-resources' instead.
      
      * src/emacs.c (inhibit_x_resources): New variable.
        (main) [HAVE_NS]: Don't process --quick command line option.
        (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
      
      * src/lisp.h (inhibit_x_resources): Declare it extern.
      
      * src/w32reg.c (x_get_string_resource):
      * src/xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
      8686ac71
  7. 29 Aug, 2009 1 commit
    • Stefan Monnier's avatar
      * NEWS: Declare unibyte sessions obsolete. · 82e98df4
      Stefan Monnier authored
      * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
      (main): Use enable-multibyte-characters rather than
      default-enable-multibyte-characters.  Output a warning message when
      running a unibyte session.
      * mule.texi (Enabling Multibyte):
      * cmdargs.texi (General Variables): Remove EMACS_UNIBYTE.
      (Initial Options): Remove --(no-)multibyte, --(no-)unibyte.
      82e98df4
  8. 26 Aug, 2009 1 commit
  9. 20 Aug, 2009 1 commit
  10. 17 Aug, 2009 1 commit
  11. 01 Jul, 2009 1 commit
    • Jan Djärv's avatar
      * emacs.c (USAGE3, standard_args): Add -mm and --maximized. · 3f1c6666
      Jan Djärv authored
      * frame.c: Qmaximized is new.
      (x_set_frame_parameters): Do not handle fullscreen specially.
      Only set width and height if explicitly set.
      (x_set_fullscreen): Handle Qmaximized.
      (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
      (syms_of_frame): Initialize Qmaximized.
      
      * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.  Declare
      Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
      
      * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
      for Expose event. Add call to x_check_fullscreen for MapNotify event.
      Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
      set gravity to NorthWestGravity when USE_GTK.
      (set_wm_state): New function.
      (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
      (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
      (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
      or the case when no window manager is running. That means remove calls
      to x_real_positions and x_fullscreen_adjust.
      
      * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
      (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
      flush_and_sync.
      (xg_height_changed): New function.
      (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
      and gtk_window_set_policy.  Set frame gravity after parsing the geometry
      string.
      (xg_update_frame_menubar, free_frame_menubar)
      (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
      (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
      Remove calls to xg_frame_set_char_size.
      
      * startup.el (command-line-x-option-alist): Add -mm and --maximized.
      
      * NEWS: Mention maximized.
      
      * frames.texi (Size Parameters): Mention maximized for fullscreen.
      
      * xresources.texi (Table of Resources): Mention maximized for
      fullscreen.
      
      * cmdargs.texi (Window Size X): -mm/--maximized is new.
      3f1c6666
  12. 23 Jun, 2009 1 commit
  13. 01 Mar, 2009 1 commit
  14. 23 Jan, 2009 3 commits
  15. 08 Jan, 2009 1 commit
  16. 18 Dec, 2008 1 commit
  17. 08 Dec, 2008 1 commit
  18. 02 Nov, 2008 1 commit
  19. 29 Oct, 2008 1 commit
  20. 28 Oct, 2008 2 commits
    • Dan Nicolaescu's avatar
      * emacs.c (daemon_pipe): Make non-static. · ff808935
      Dan Nicolaescu authored
      (IS_DAEMON): Move definition ...
      * lisp.h (IS_DAEMON): ... here.
      (daemon_pipe): Declare.
      (is_daemon): Remove.
      * dispnew.c (init_display): Use IS_DAEMON.
      ff808935
    • Stefan Monnier's avatar
      * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog) · fc012771
      Stefan Monnier authored
      (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
      
      * emacs.c (is_daemon): Remove.
      (main): Don't set is_daemon.
      (IS_DAEMON): New macro.
      (Fdaemonp, Fdaemon_initialized): Use it.
      (Fdaemon_initialized): Wrtie a char into the pipe to make sure the
      parent exits.
      (syms_of_emacs): Explicitly initialize daemon_pipe[1].
      fc012771
  21. 27 Oct, 2008 1 commit
    • Dan Nicolaescu's avatar
      * emacs.c (daemon_name): New variable. · 4ff029f6
      Dan Nicolaescu authored
      (main): Deal with --daemon=SERVER_NAME.
      (Fdaemonp): Return a name if one was passed to --daemon.
      
      * startup.el (server-name): Pacify byte compiler.
      (command-line): If --daemon=SERVER_NAME was used, set server-name
      before calling server-start.
      
      * cmdargs.texi (Initial Options): Document -daemon=SERVER_NAME.
      4ff029f6
  22. 26 Oct, 2008 1 commit
    • Dan Nicolaescu's avatar
      * startup.el (command-line): Call daemon-initialized after · 5790ef40
      Dan Nicolaescu authored
      starting the server.
      * emacs.c (daemon_pipe): New variable
      (main): Create a pipe before forking, make the parent exit only after
      the child has closed its end of the pipe.  Move closing the
      descriptors ...
      (Fdaemon_initialized): ... here.  New function.
      5790ef40
  23. 21 Oct, 2008 1 commit
  24. 06 Oct, 2008 1 commit
  25. 03 Oct, 2008 1 commit
  26. 22 Sep, 2008 2 commits
  27. 21 Sep, 2008 1 commit
    • Dan Nicolaescu's avatar
      * emacs.c (standard_args): Add --daemon. · eab2ee89
      Dan Nicolaescu authored
      (main): Disconnect from the terminal when --daemon is passed.
      (is_daemon): New variable.
      (Fdaemonp): New function.
      (syms_of_emacs): Defsubr it.
      
      * startup.el (command-line): Start the server when in daemon mode.
      
      * cmdargs.texi (Initial Options): Document --daemon.
      eab2ee89
  28. 23 Aug, 2008 1 commit
  29. 05 Aug, 2008 2 commits
  30. 04 Aug, 2008 1 commit
  31. 31 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * bitmaps/README: · 7c2fb837
      Dan Nicolaescu authored
      * xfns.c:
      * termcap.c:
      * term.c:
      * syswait.h:
      * systty.h:
      * systime.h:
      * syssignal.h:
      * sysdep.c:
      * process.h:
      * process.c:
      * print.c:
      * ndir.h:
      * lread.c:
      * keyboard.c:
      * getpagesize.h:
      * floatfns.c:
      * fileio.c:
      * emacs.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * data.c:
      * callproc.c:
      * buffer.c:
      * README:
      * Makefile.in:
      * s/template.h:
      * s/msdos.h:
      * m/vax.h: Remove VMS support.
      * s/vms.h:
      * vlimit.h:
      * uaf.h:
      * temacs.opt:
      * param.h:
      * ioctl.h: Remove file.
      
      * descrip.mms:
      * compile.com: Remove file.
      * Create.c: Remove VMS support.
      
      * message.el (Module):
      
      * gnus-start.el (Module):
      
      * gnus-registry.el (Module):
      
      * textmodes/texinfmt.el:
      * nxml/nxml-enc.el:
      * mail/feedmail.el:
      * international/mule.el:
      * international/latexenc.el:
      * emulation/viper-util.el:
      * emulation/viper-init.el:
      * emulation/viper-ex.el:
      * emacs-lisp/bytecomp.el:
      * version.el:
      * subr.el:
      * startup.el:
      * sort.el:
      * shadowfile.el:
      * recentf.el:
      * printing.el:
      * paths.el:
      * minibuffer.el:
      * ls-lisp.el:
      * loadup.el:
      * hippie-exp.el:
      * finder.el:
      * files.el:
      * ediff-util.el:
      * ediff-ptch.el:
      * ediff-init.el:
      * ediff-diff.el:
      * dired.el:
      * dired-aux.el:
      * cus-edit.el:
      * bindings.el:
      * arc-mode.el:
      * add-log.el: Remove VMS support.
      * obsolete/vmsproc.el:
      * obsolete/vms-pmail.el:
      * obsolete/vms-patch.el: Remove file.
      
      * etags.c:
      * emacsclient.c: Remove VMS support.
      
      * termcap.src: Remove file.
      * README:
      * PROBLEMS:
      * MACHINES: Remove VMS info.
      
      * ediff.texi: Remove VMS support.
      
      * os.texi:
      * intro.texi:
      * files.texi: Remove VMS support.
      
      * emacs.texi: Remove VMS support.
      
      * make-dist:
      * README: Remove VMS support.
      * vms: Remove directory.
      7c2fb837
  32. 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
  33. 23 Jul, 2008 1 commit