1. 21 Nov, 2009 2 commits
    • Jan Djärv's avatar
      Use a select wrapper around the GLib event loop, thus taking into account GLib · 872870b2
      Jan Djärv authored
      timeouts and event sources.  This simplifies Gtk+-code a lot, and is needed
      for handling GConf death/restart.
      
      * xterm.c: #include xgselect.h.
      (x_initialize): Call xgselect_initialize.
      
      * xsettings.c (something_changedCB): C++ comments => C comments.
      (init_gconf): Do not deal with any GLib file descriptors, xg_select
      does that now.
      
      * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
      (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
      (scroll_bar_button_cb): Remove.
      (create_menus): C++ comments => C comments. Don't bind grab-notify
      event.
      (xg_create_scroll_bar): Don't bind button-press-event and
      button-release-event.
      
      * process.c: Include xgselect.h if defined (USE_GTK) ||
      defined (HAVE_GCONF).
      (wait_reading_process_output): Call xg_select for the same condition.
      
      * xgselect.c (xg_select): New function to better integrate with
      GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
      
      * xgselect.h: New file, declare xg_select, xgselect_initialize.
      
      * Makefile.in (XOBJ): Add xgselect.o.
      872870b2
    • Andreas Schwab's avatar
      * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove · 62a6e103
      Andreas Schwab authored
      ignored second argument.  All callers changed.
      * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
      (RE_STRING_CHAR_AND_LENGTH): Likewise.
      * xdisp.c (string_char_and_length): Likewise.
      62a6e103
  2. 11 Nov, 2009 1 commit
    • 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
  3. 10 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Bug #4574. Common code for file/font dialog. Handle timers with glib-timers. · e90292a9
      Jan Djärv authored
      * keyboard.h: Declare timer_check.
      
      * keyboard.c (timer_check_2): New function that does what the old
      timer_check did.
      (timer_check): Call timer_check_2 until -1 or a non-zero time is
      returned, i.e. don't return -1 with timers pending.
      
      * process.c: Remove extern declaration of timer_check.
      
      * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
      even if timer_check returned -1.
      
      * gtkutil.c (xg_dialog_response_cb): data is now a struct xg_dialog_data
      (pop_down_dialog): Destroy widget (if any), cancel timer and unref
      the event loop.
      (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
      (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
      Destroy the dialog after xg_dialog_run.
      e90292a9
  4. 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
  5. 19 Oct, 2009 2 commits
    • Dan Nicolaescu's avatar
      * process.c (create_pty): Remove conditionals for no longer · 019d2c4c
      Dan Nicolaescu authored
      supported systems: UNIPLUS and RTU.
      019d2c4c
    • 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
  6. 13 Oct, 2009 1 commit
  7. 30 Aug, 2009 2 commits
  8. 27 Aug, 2009 1 commit
  9. 17 Aug, 2009 1 commit
    • Chong Yidong's avatar
      * process.c (status_notify): Don't perform redisplay. · e42bdf01
      Chong Yidong authored
      (Fdelete_process, list_processes_1, process_send_signal):
      Expliticly perform redisplay.
      (wait_reading_process_output): Always check process status, but
      don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
      e42bdf01
  10. 14 Aug, 2009 1 commit
  11. 13 Aug, 2009 1 commit
    • Nick Roberts's avatar
      (create_pty): New function. · 850d0752
      Nick Roberts authored
      (Fstart_process): Use it to allow Emacs to just associate a pty
      with the buffer.  See associated change in gdb-mi.el.
      (list_processes_1): Deal with no program name.
      (start_process_unwind): Use pid == -2 to mean no process.
      850d0752
  12. 18 Jul, 2009 1 commit
  13. 28 Jun, 2009 2 commits
  14. 20 Jun, 2009 1 commit
  15. 15 Jun, 2009 1 commit
  16. 09 Jun, 2009 1 commit
  17. 02 May, 2009 1 commit
  18. 29 Apr, 2009 1 commit
  19. 28 Apr, 2009 1 commit
  20. 23 Feb, 2009 1 commit
  21. 10 Feb, 2009 1 commit
  22. 29 Jan, 2009 1 commit
  23. 18 Jan, 2009 1 commit
  24. 03 Jan, 2009 1 commit
    • Eli Zaretskii's avatar
      (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess) · 6a1bab0e
      Eli Zaretskii authored
      (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
      (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
      (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime) [!subprocesses]: Define.
      (syms_of_process) [!subprocesses]: Intern and staticpro them.
      (Flist_system_processes, Fsystem_process_attributes) [!subprocesses]: Call
      list_system_processes and system_process_attributes instead of returning Qnil.
      6a1bab0e
  25. 02 Jan, 2009 1 commit
  26. 01 Jan, 2009 1 commit
  27. 19 Dec, 2008 3 commits
    • Dan Nicolaescu's avatar
      * process.c: (Flist_system_processes): · 900d51fc
      Dan Nicolaescu authored
      (Fsystem_process_attributes): Undo previous change, these functions
      are duplicated for the benefit of #ifndef subprocesses.
      900d51fc
    • Dan Nicolaescu's avatar
      * process.c: (Flist_system_processes): · 3d7de9fb
      Dan Nicolaescu authored
      (Fsystem_process_attributes): Fix strange CVS problem, return the
      correct value.
      3d7de9fb
    • Dan Nicolaescu's avatar
      Reorganize implementation of Flist_system_processes and · 06e111a6
      Dan Nicolaescu authored
      Fsystem_process_attributes.  No functional changes.
      * process.c: Don't #include pwd.h, grp.h and limits.h.
      (Flist_system_processes): Just call list_system_processes.
      (Fsystem_process_attributes): Just call system_process_attributes.
      (procfs_list_system_processes, time_from_jiffies)
      (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
      (procfs_get_total_memory, procfs_system_process_attributes): Move ...
      
      * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
      (list_system_processes): Rename from
      procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
      Provide a do nothing implementation.
      (system_process_attributes): Rename from
      procfs_list_system_processes.
      (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
      (procfs_get_total_memory):  Enclose in #ifdef GNU_LINUX.
      
      * w32.c (list_system_processes): Rename from
      w32_list_system_processes.
      (system_process_attributes): Rename from
      w32_system_process_attributes.
      
      * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
      
      * process.h (w32_list_system_processes)
      (w32_system_process_attributes): Remove.
      (list_system_processes, system_process_attributes): New
      prototypes.
      
      * config.nt (LISTPROC, PROCATTR): Remove.
      06e111a6
  28. 16 Dec, 2008 1 commit
  29. 11 Dec, 2008 1 commit
  30. 05 Dec, 2008 2 commits
  31. 02 Oct, 2008 2 commits