1. 26 Aug, 2013 1 commit
    • Paul Eggert's avatar
      Fix minor problems found by static checking. · f462f075
      Paul Eggert authored
      * image.c (XGetPixel, XPutPixel) [HAVE_NS]: Now static.
      (expect): Avoid nested-if warning.
      (x_build_heuristic_mask) [HAVE_NS]: Avoid unused-var warning.
      * nsmenu.m (fillWithWidgetValue:): Avoid type warning.
      * nsterm.h, nsterm.m (ns_select):
      * xgselect.c, xgselect.h (xg_select):
      Adjust signature to better match pselect's.
      * nsterm.m (ns_select):
      Don't set *TIMEOUT, since pselect doesn't.
      * regex.c (whitespace_regexp): Now const_re_char *, to avoid
      diagnostic about assigning const char * to it.
      * xfaces.c (x_display_info) [HAVE_NS]: Remove; unused.
      f462f075
  2. 01 Jan, 2013 1 commit
  3. 25 Aug, 2012 1 commit
    • Paul Eggert's avatar
      * xgselect.c (xg_select): Use auto storage for the GPollFD buffer · 0f46bc75
      Paul Eggert authored
      as that's faster and simpler than static storage.  Don't bother
      with the g_main_context_query overhead if g_main_context_pending
      says no events are pending.
      (gfds, gfds_size): Remove these static vars.
      (xgselect_initialize): Remove; no longer needed.
      All uses and decls removed.
      0f46bc75
  4. 22 Jun, 2012 1 commit
  5. 11 Jan, 2012 1 commit
  6. 05 Jan, 2012 1 commit
  7. 26 Jan, 2011 1 commit
  8. 25 Jan, 2011 1 commit
  9. 15 Jan, 2011 1 commit
  10. 02 Jan, 2011 1 commit
  11. 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
  12. 13 Jan, 2010 1 commit
  13. 01 Dec, 2009 1 commit
  14. 21 Nov, 2009 1 commit
    • 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
  15. 08 Jan, 2009 1 commit
  16. 09 May, 2008 2 commits
  17. 07 Jan, 2008 1 commit
  18. 25 Jul, 2007 1 commit
  19. 21 Jan, 2007 1 commit
  20. 06 Feb, 2006 1 commit
  21. 10 Aug, 2005 1 commit
  22. 04 Jul, 2005 1 commit
  23. 16 Apr, 2004 1 commit
  24. 08 Sep, 2003 1 commit
  25. 01 Sep, 2003 1 commit
  26. 26 Apr, 2002 1 commit
  27. 22 Oct, 2000 1 commit
    • Andrew Choi's avatar
      Initial check-in: changes for building Emacs under Mac OS. · 1a578e9b
      Andrew Choi authored
      2000-10-23  Andrew Choi  <akochoi@i-cable.com>
      
      	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
      
      	* dispnew.c [macintosh]: Include macterm.h.
      	(init_display) [macintosh]: initialization for window system.
      
      	* emacs.c (main) [macintosh]: Call syms_of_textprop,
      	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
      	syms_of_search, x_term_init, and init_keyboard before calling
      	init_window_once.  Also, call syms_of_xmenu.
      
      	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
      	default fontset to Monaco.
      
      	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
      	NewMacWindow and DisposeMacWindow.
      	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
      	instead of calling NewMacWindow and setting fields of
      	f->output_data.mac directly.  Call init_frame_faces.
      	(Fdelete_frame) [macintosh]: Remove unused code.
      	(Fmodify_frame_parameters) [macintosh]: Call
      	x_set_frame_parameters instead of mac_set_frame_parameters.
      
      	* frame.h [macintosh]: Define menu_bar_lines field in struct
      	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.
      
      	* keyboard.c [macintosh]: Include macterm.h.
      	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
      	and menu_bar_activate_event type events as for X and NT.
      	(make_lispy_event) [macintosh]: Construct lisp events of type
      	MENU_BAR_EVENT as for X and NT.
      
      	* sysdep.c [macintosh]: Remove declaration for sys_signal.
      	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
      	(sys_subshell) [macintosh]: Remove definition entirely.
      	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
      	Vwindow_system_version here.  Remove initialization of
      	Vx_bitmap_file_path.
      	(read_input_waiting): Correct the number of parameters passed to
      	read_socket_hook.
      	Move all Macintosh functions to mac/mac.c.
      
      	* term.c [macintosh]: Include macterm.h.
      
      	* window.c [macintosh]: Include macterm.h.
      
      	* xdisp.c [macintosh]: Include macterm.h.  Declare
      	set_frame_menubar and pending_menu_activation.
      	(echo_area_display) [macintosh]: Do not return if terminal frame
      	is the selected frame.
      	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
      	Allow only the selected frame to set menu bar.
      	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
      	calling FRAME_EXTERNAL_MENU_BAR (f).
      	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
      
      	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
      	and check_x.  Declare XCreateGC.  Define x_create_gc and
      	x_free_gc.  Initialize font_sort_order.
      	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
      	but call x_list_fonts instead of w32_list_fonts.
      	(Finternal_face_x_get_resource) [macintosh]: Do not call
      	display_x_get_resource.
      	(prepare_face_for_display) [macintosh]: Set xgcv.font.
      	(realize_x_face) [macintosh]: Load the font if it is specified in
      	ATTRS.
      	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
      	to Qt.
      
      	* cus-edit.el (custom-button-face): Use 3D look for mac.
      	(custom-button-pressed-face): Likewise.
      
      	* faces.el (set-face-attributes-from-resources): Handle mac frames
      	in the same way as x and w32 frames.
      	(face-valid-attribute-values): Likewise.
      	(read-face-attribute): Likewise.
      	(defined-colors): Likewise.
      	(color-defined-p): Likewise.
      	(color-values): Likewise.
      	(display-grayscale-p): Likewise.
      	(face-set-after-frame-default): Likewise.
      	(mode-line): Same default face as for x and w32.
      	(tool-bar): Likewise.
      
      	* frame.el: Remove call to frame-notice-user-settings at end of
      	the file.
      
      	* info.el (Info-fontify-node): make underlines invisible for mac
      	as for x, pc, and w32 frame types.
      
      	* term/mac-win.el: New file.
      1a578e9b
  28. 25 Aug, 1996 1 commit
  29. 15 Jan, 1996 1 commit
  30. 15 Jun, 1995 1 commit
  31. 03 Mar, 1995 1 commit
  32. 13 Jan, 1992 1 commit
  33. 25 Oct, 1990 2 commits