1. 15 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      Drop VERTICAL_SCROLL_BAR_WIDTH_TRIM. For X, it is zero since 1999, · 0eed0355
      Dmitry Antipov authored
      and it is always zero for others, so I assume that this is an ancient
      leftover which nobody will want to change any more.
      * xterm.h, w32term.h, nsterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Remove.
      (VERTICAL_SCROLL_BAR_INSIDE_WIDTH):
      * frame.c (x_set_scroll_bar_width):
      * w32fns.c (w32_createscrollbar):
      * w32term.c (w32_set_vertical_scroll_bar):
      * xfns.c (x_set_scroll_bar_default_width):
      * xterm.c (XTflash, x_scroll_bar_create, XTset_vertical_scroll_bar)
      (x_scroll_bar_expose): Related users changed.
      0eed0355
  2. 13 Sep, 2013 2 commits
    • Dmitry Antipov's avatar
      Unify Fx_focus_frame between all ports. · fcd42c11
      Dmitry Antipov authored
      * src/frame.h (x_focus_frame): New prototype.
      * src/xfns.c (Fx_focus_frame): Remove.
      (syms_of_xfns): Do not defsubr it.
      (x_focus_frame): X implementation.
      * src/nsfns.m (Fx_focus_frame): Remove.
      (syms_of_nsfns): Do not defsubr it.
      (x_focus_frame): NS implementation.
      * src/w32term.c (Fx_focus_frame): Remove.
      (x_focus_on_frame): Rename to...
      (x_focus_frame): W32 implementation.
      * src/w32term.h (x_focus_on_frame): Remove prototype.
      * src/w32fns.c (Fx_focus_frame): Remove.
      (syms_of_w32fns): Do not defsubr it.
      * src/frame.c (Fx_focus_frame): Define here.
      (syms_of_frame): Defsubr here.
      * src/gtkutil.c (xg_tool_bar_callback): Use x_focus_frame.
      * lisp/frame.el (x-focus-frame): Mark as declared in frame.c.
      fcd42c11
    • Dmitry Antipov's avatar
      Unify FRAME_window_system_DISPLAY_INFO macros between all ports. · aad3612f
      Dmitry Antipov authored
      All of them are replaced with FRAME_DISPLAY_INFO, defined in
      each port to reference the port-specific window system data.
      * msdos.h (FRAME_X_DISPLAY_INFO): Remove.
      (FRAME_DISPLAY_INFO): Define.
      * w32term.h (FRAME_W32_DISPLAY_INFO, FRAME_X_DISPLAY_INFO): Remove.
      (FRAME_DISPLAY_INFO): Define.  Adjust users.
      * xterm.h (FRAME_X_DISPLAY_INFO): Remove.
      (FRAME_DISPLAY_INFO): Define.  Adjust users.
      * frame.h (FRAME_RES_X, FRAME_RES_Y): Unify.
      * font.c, frame.c, gtkutil.c, image.c, menu.c, msdos.c, nsfns.m:
      * nsfont.m, nsterm.m, w32fns.c, w32font.c, w32menu.c, w32term.c:
      * w32xfns.c, widget.c, xdisp.c, xfaces.c, xfns.c, xfont.c, xmenu.c:
      * xselect.c, xterm.c: All related users changed.
      aad3612f
  3. 11 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      * nsterm.m (syms_of_nsterm): Use Qns. · 8d2db8be
      Dmitry Antipov authored
      * w32fns.c (Fx_open_connection): Remove old '#if 0' code.
      * w32term.c (w32_create_terminal, syms_of_w32term): Use Qw32.
      * xfns.c (x_display_info_for_name, Fx_open_connection):
      Remove old '#if 0' code.
      (syms_of_xfns): Use Qx.
      8d2db8be
  4. 09 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      Cleanup frame flushing. · fd462129
      Dmitry Antipov authored
      * dispextern.h (struct redisplay_interface): Drop
      flush_display_optional because flush_display is enough
      for X and flushing via RIF is just a no-op for others.
      * frame.h (flush_frame): New function.
      * dispnew.c (update_frame):
      * minibuf.c (read_minibuf):
      * xdisp.c (echo_area_display, redisplay_preserve_echo_area):
      Use it.
      * keyboard.c (detect_input_pending_run_timers): Do not flush
      all frames but selected one in redisplay_preserve_echo_area.
      * nsterm.m (ns_flush): Remove no-op.
      (ns_redisplay_interface): Adjust user.
      * w32term.h (x_flush): Remove no-op.
      (w32_redisplay_interface): Adjust user.
      * xterm.c (x_flush): Simplify because we do not flush all
      frames at once any more.  Adjust comment.
      (x_redisplay_interface): Adjust user.
      fd462129
  5. 02 Sep, 2013 2 commits
    • Dmitry Antipov's avatar
      * msdos.c (last_mouse_window): Move to... · 1fccc530
      Dmitry Antipov authored
      (dos_rawgetc): ...this function and adjust comment.
      * nsterm.m (last_window): Rename to last_mouse_window, move to...
      (mouseMoved): ...this function and adjust comment.
      * w32term.c (last_window): Likewise with...
      (w32_read_socket): ...this function.
      * xterm.c (last_window): Likewise with...
      (handle_one_xevent): ...this function.
      1fccc530
    • Dmitry Antipov's avatar
      * msdos.c (IT_set_terminal_window): Remove no-op. · 0c7f856e
      Dmitry Antipov authored
      (initialize_msdos_display): Adjust terminal setup.
      * w32console.c (w32con_set_terminal_window): Remove no-op.
      (initialize_w32_display): Adjust terminal setup.
      * w32term.c (w32_set_terminal_window): Remove no-op.
      (w32_create_terminal): Adjust terminal setup.
      * xterm.c (XTset_terminal_window): Remove no-op.
      (x_create_terminal): Adjust terminal setup.
      0c7f856e
  6. 01 Sep, 2013 1 commit
    • Dmitry Antipov's avatar
      * nsterm.m (ns_set_terminal_modes, ns_reset_terminal_modes): · a892a94c
      Dmitry Antipov authored
      Remove no-ops.
      (ns_create_terminal): Adjust terminal setup.
      * w32term.c (w32_set_terminal_modes, w32_reset_terminal_modes):
      Remove no-ops.
      (w32_create_terminal): Adjust terminal setup.
      * xterm.c (XTset_terminal_modes, XTreset_terminal_modes):
      Remove no-ops.
      (x_create_terminal): Adjust terminal setup.
      a892a94c
  7. 28 Aug, 2013 2 commits
    • Dmitry Antipov's avatar
      Prefer enum glyph_row_area to int where appropriate. · c3c4768d
      Dmitry Antipov authored
      * dispextern.h (enum glyph_row_area): Add ANY_AREA member.
      Fix comment.
      (window_box, window_box_width, window_box_left, window_box_left_offset)
      (window_box_right, window_box_right_offset): Adjust prototypes.
      * xdisp.c (window_box, window_box_width, window_box_left)
      (window_box_left_offset, window_box_right, window_box_right_offset):
      Use enum glyph_row_area.  Adjust users and tweak comment where needed.
      (window_box_edges): Likewise.  Lost 2nd arg since it is always ANY_AREA.
      * nsterm.m (ns_clip_to_row):
      * w32term.c (w32_clip_to_row):
      * xterm.c (x_clip_to_row): Likewise.
      c3c4768d
    • Dmitry Antipov's avatar
      Redesign redisplay interface to drop global output_cursor. · f60e429a
      Dmitry Antipov authored
      * dispextern.h (struct redisplay_interface): Remove cursor_to member.
      (toplevel): Remove declaration of output_cursor.
      (set_output_cursor, x_cursor_to): Remove prototype.
      * window.h (struct window): New member output_cursor.
      (output_cursor_to): New function to replace RIF member.
      * dispnew.c (redraw_overlapped_rows, update_marginal_area)
      (update_text_area, set_window_cursor_after_update): Use it.
      * xdisp.c (output_cursor, set_output_cursor, x_cursor_to): Remove.
      (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
      * nsterm.m (ns_update_window_begin, ns_update_window_end):
      * w32term.c (x_update_window_begin, x_update_window_end):
      * xterm.c (x_update_window_begin, x_update_window_end):
      Adjust to use per-window output cursor.
      f60e429a
  8. 27 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      * lisp.h (Mouse_HLInfo): Move from here... · 9fed9729
      Dmitry Antipov authored
      * dispextern.h (Mouse_HLInfo): ...to here and offload lisp.h.
      (reset_mouse_highlight): New function.
      * msdos.c (dos_set_window_size, IT_update_begin)
      (internal_terminal_init):
      * nsterm.m (ns_update_window_end, x_free_frame_resources)
      (ns_initialize_display_info):
      * w32console.c (initialize_w32_display):
      * w32term.c (x_update_window_end, x_free_frame_resources)
      (w32_initialize_display_info):
      * xterm.c (x_update_window_end, x_free_frame_resources, x_term_init):
      * window.c (Fdelete_other_windows_internal):
      * xdisp.c (clear_mouse_face, cancel_mouse_face): Use it.
      * termchar.h (toplevel):
      * xterm.h (toplevel): Include dispextern.h.
      9fed9729
  9. 23 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Minor cleanup for redisplay interface and few related functions. · 9997ec56
      Dmitry Antipov authored
      * frame.h (enum text_cursor_kinds): Move from here...
      * dispextern.h (enum text_cursor_kinds): ...to here.
      (toplevel): Drop unnecessary declarations.
      (struct redisplay_interface): Use bool and enum text_cursor_kinds
      in update_window_end_hook and draw_window_cursor functions.
      (display_and_set_cursor, x_update_cursor): Adjust prototypes.
      * nsterm.m (ns_update_window_end, ns_draw_window_cursor):
      * w32term.c (x_update_window_end,w32_draw_window_cursor):
      * xterm.c (x_update_window_end, x_draw_window_cursor):
      * xdisp.c (display_and_set_cursor, update_window_cursor)
      (update_cursor_in_window_tree, x_update_cursor): Use bool and
      enum text_cursor_kinds where appropriate.
      9997ec56
  10. 14 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Utility function and macro to copy Lisp string to C string. · 5b71542d
      Dmitry Antipov authored
      * lisp.h (xlispstrdupa): New macro.
      (xlispstrdup): New prototype.
      * alloc.c (xlispstrdup): New function.
      * callint.c (Fcall_interactively):
      * fileio.c (Ffile_name_directory, Fexpand_file_name)
      (Fsubstitute_in_file_name):
      * frame.c (Fmake_terminal_frame): Use xlispstrdupa.
      * image.c (x_create_bitmap_from_file):
      * w32term.c (w32_term_init):
      * xterm.c (x_term_init): Use xlispstrdup.
      5b71542d
  11. 13 Aug, 2013 2 commits
    • Eli Zaretskii's avatar
      Fix the Windows build broken by 2013-08-13T15:29:25Z!dmantipov@yandex.ru. · 2fa611b7
      Eli Zaretskii authored
       src/window.c (Fwindow_margins): Return nil when there's no marginal
       area, as per the documented API.
       src/w32term.c (x_scroll_bar_create): Use ALLOCATE_PSEUDOVECTOR, not
       Fmake_vector, as scroll bar's struct members are not all Lisp
       objects now.  This avoids crashes in GC.
       src/w32term.h (struct scroll_bar): Convert fringe_extended_p to a
       bool, so its address could be taken.
      2fa611b7
    • Dmitry Antipov's avatar
      * window.h (WINDOW_FRINGE_EXTENDED_P): New macro. · c8ae93b0
      Dmitry Antipov authored
      * nsterm.m (ns_set_vertical_scroll_bar): Use it.  Use convenient
      bool instead of BOOL.
      * w32term.h (struct scroll_bar): Convert fringe_extended_p
      from Lisp_Object to bitfield.  Adjust comment.
      * w32term.c (x_scroll_bar_create): Adjust user.
      Use WINDOW_FRINGE_EXTENDED_P and bool for boolean.
      * xterm.c (XTset_vertical_scroll_bar): Likewise.
      Use bool for boolean.
      * xterm.h (struct scroll_bar): Prefer commonly used `unsigned'
      to `unsigned int' when defining a bitfield.
      c8ae93b0
  12. 08 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Redesign redisplay interface to drop global variable updated_window. · 65620264
      Dmitry Antipov authored
      Always pass currently updated window as a parameter to update routines.
      * dispextern.h (updated_window): Remove declaration.
      (struct redisplay_interface): Pass window parameter to
      write_glyphs, insert_glyphs, clear_end_of_line, cursor_to
      and after_update_window_hook.
      (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line, x_cursor_to):
      Adjust prototypes.
      * dispnew.c (updated_window): Remove.
      (redraw_overlapped_rows, update_marginal_area, update_text_area)
      (update_window_line): Adjust to match redisplay interface changes.
      * nsterm.m (ns_update_window_begin, ns_update_window_end)
      (ns_scroll_run, ns_after_update_window_line):
      * w32term.c (x_update_window_begin, x_update_window_end)
      (x_after_update_window_line, x_scroll_run):
      * xterm.c (x_update_window_begin, x_update_window_end)
      (x_after_update_window_line, x_scroll_run):
      * xdisp.c (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
      Likewise.  Adjust comments where appropriate.
      (x_cursor_to): Simplify because this is always called during window
      update (but install debugging check anyway).
      (expose_window): Check must_be_updated_p flag to see whether this
      function is called during window update.
      65620264
  13. 07 Aug, 2013 1 commit
  14. 03 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Drop FRAME_PTR typedef. · a10c8269
      Dmitry Antipov authored
      * composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
      * ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
      * menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
      * nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
      * w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
      * w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
      * xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
      All related users changed.
      a10c8269
  15. 02 Aug, 2013 1 commit
  16. 01 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Do not use pure Xism x_wm_set_icon_position in non-X ports. · 52b8a085
      Dmitry Antipov authored
      * frame.c (x_set_frame_parameters): Call to x_wm_set_icon_position
      only if HAVE_X_WINDOWS is in use.
      * frame.h (x_set_frame_parameters): Move under HAVE_X_WINDOWS.
      * nsterm.m (x_wm_set_icon_position): Remove no-op.
      * w32term.c (x_wm_set_icon_position): Likewise.
      * w32fns.c (x_icon): Adjust user.
      52b8a085
  17. 30 Jul, 2013 1 commit
    • Dmitry Antipov's avatar
      * fringe.c (draw_window_fringes, update_window_fringes) · d7e6881a
      Dmitry Antipov authored
      (compute_fringe_widths):
      * w32term.c (x_draw_glyph_string):
      * window.c (candidate_window_p, Frecenter):
      * xfaces.c (realize_basic_faces, realize_default_face)
      (Fbitmap_space_p, Finternal_set_lisp_face_attribute)
      (x_update_menu_appearance, face_attr_equal_p, lface_equal_p):
      * xfns.c (x_set_cursor_color, xic_free_xfontset):
      * xmenu.c (Fx_menu_bar_open_internal):
      * xselect.c (x_reply_selection_request, Fx_get_atom_name):
      * xsettings.c (xft_settings_event):
      * xterm.c (x_draw_glyph_string, x_had_errors_p):
      Use bool for booleans.  Adjust style and comments where
      appropriate.
      * dispextern.h (draw_window_fringes, update_window_fringes)
      (compute_fringe_widths):
      * xterm.h (x_had_errors_p): Adjust prototype.
      d7e6881a
  18. 27 Jul, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix focus-out events on MS-Windows. · e95da6d3
      Eli Zaretskii authored
       src/w32term.c (w32_read_socket) <WM_KILLFOCUS>: Call
       w32_detect_focus_change instead of doing part of its job by hand.
       This fixes the problem whereby FOCUS_OUT events were not sent to
       the event queue.
      e95da6d3
  19. 26 Jul, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix bug #14841 with invisible frames on MS-Windows. · a8f93651
      Eli Zaretskii authored
       src/w32term.c (w32_read_socket) <WM_EMACS_PAINT>: Warn about frame
       being re-exposed only if it didn't ask to become visible.
       <WM_SIZE>: Under SIZE_RESTORED, only set the frame visible if it
       was previously iconified.
       (x_iconify_frame): Mark the frame iconified.
      a8f93651
  20. 18 Jul, 2013 1 commit
  21. 13 Jul, 2013 1 commit
  22. 06 Jul, 2013 1 commit
    • Paul Eggert's avatar
      Use emacs_open more consistently when opening files. · 406af475
      Paul Eggert authored
      This handles EINTR more consistently now, and makes it easier
      to introduce other uniform changes to file descriptor handling.
      * src/systdio.h: New file.
      * src/buffer.c (mmap_init):
      * cygw32.c (chdir_to_default_directory):
      * dispnew.c (Fopen_termscript):
      * emacs.c (Fdaemon_initialized):
      * fileio.c (Fdo_auto_save):
      * image.c (slurp_file, png_load_body, jpeg_load_body):
      * keyboard.c (Fopen_dribble_file):
      * lread.c (Fload):
      * print.c (Fredirect_debugging_output):
      * sysdep.c (get_up_time, procfs_ttyname, procfs_get_total_memory):
      * termcap.c (tgetent):
      * unexaix.c, unexcoff.c (unexec, adjust_lnnoptrs):
      * unexcw.c, unexelf.c, unexhp9k800.c, unexmacosx.c (unexec):
      * w32term.c (w32_initialize) [CYGWIN]:
      * xfaces.c (Fx_load_color_file):
      Use emacs_open instead of plain open, and emacs_fopen instead of
      plain fopen.
      * dispnew.c, fileio.c, image.c, keyboard.c, lread.c, print.c, sysdep.c:
      * xfaces.c: Include sysstdio.h rather than stdio.h, for emacs_fopen.
      * callproc.c (default_output_mode): New constant.
      (Fcall_process): Use it to call emacs_open instead of plain creat.
      * dispnew.c (Fopen_termscript): Fix minor race in opening termscript.
      * sysdep.c (emacs_open): Add commentary and don't call file name "path".
      (emacs_fopen): New function.
      * unexaix.c, unexcoff.c, unexelf.c, unexhp9k800.c, unexmacosx.c:
      Include <lisp.h>, for emacs_open.
      * unexelf.c (fatal): Remove decl; not needed with <lisp.h> included.
      406af475
  23. 04 Jul, 2013 1 commit
  24. 20 Jun, 2013 1 commit
    • Eli Zaretskii's avatar
      Yet another attempt at fixing bugs #14602, 14630, 14669. · b932cad7
      Eli Zaretskii authored
       src/w32fns.c (w32_wnd_proc): Don't compute the header line and mode
       line dimensions here, to avoid race conditions with the main
       thread.
       src/w32term.c (w32_draw_window_cursor): Compute the header line and
       mode line dimensions here.
       <w32_system_caret_window, w32_system_caret_hdr_height>:
       <w32_system_caret_mode_height>: New variables.
       src/w32term.h: Declare them.
      b932cad7
  25. 03 Jun, 2013 1 commit
    • Eli Zaretskii's avatar
      * configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS. · 7f203aa1
      Eli Zaretskii authored
      (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): Substitute.
      
      * nt/config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY.
      
      * src/Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
      (ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
      (LIBES): Add $(GFILENOTIFY_LIBS).
      
      * src/w32inevt.c (handle_file_notifications): Add dummy implementation
      for !HAVE_W32NOTIFY.
      
      * src/w32term.c: Wrap code with HAVE_W32NOTIFY.
      7f203aa1
  26. 14 Apr, 2013 1 commit
    • Erik Charlebois's avatar
      * src/w32fns.c (w32_fullscreen_rect): New function to compute the · 1f635a07
      Erik Charlebois authored
      window rectangle for the given fullscreen mode.
      (w32_wnd_proc): When in a fullscreen mode, WM_WINDOWPOSCHANGING
      no longer tunes the window size.  This keeps the window's edges
      flush with the screen and allows the taskbar to hide itself in
      fullboth.
      * src/w32term.c (w32fullscreen_hook): fullboth now shows without
      window decorations and uses the entire screen.
      1f635a07
  27. 01 Apr, 2013 1 commit
  28. 26 Mar, 2013 1 commit
  29. 24 Mar, 2013 1 commit
  30. 23 Mar, 2013 2 commits
    • Eli Zaretskii's avatar
      Fix fullscreen resizing of multiple frames on MS-Windows. · cdc0d0bd
      Eli Zaretskii authored
       src/w32term.h (struct w32_output): New members normal_width,
       normal_height, normal_top, normal_left, and prev_fsmode.
       (FRAME_NORMAL_WIDTH, FRAME_NORMAL_HEIGHT, FRAME_NORMAL_TOP)
       (FRAME_NORMAL_LEFT, FRAME_PREV_FSMODE): New macros to access these
       members of a frame.
       src/w32term.c (w32fullscreen_hook): Use FRAME_NORMAL_WIDTH,
       FRAME_NORMAL_HEIGHT, and FRAME_PREV_FSMODE, instead of static
       variables, to save and restore frame dimensions.  Use
       FRAME_NORMAL_LEFT and FRAME_NORMAL_TOP to restore frame position
       after returning from a 'fullscreen' configuration.  use
       SendMessage instead of PostMessage to send the SC_RESTORE message,
       to avoid races between the main thread and the input thread.
      cdc0d0bd
    • Eli Zaretskii's avatar
      Fix bug #14032 with restoring frame dimensions on MS-Windows. · b5b7745f
      Eli Zaretskii authored
       src/w32term.c (w32fullscreen_hook): Record last value of the frame's
       'fullscreen' parameter.  Always record previous width and height
       of the frame, except when switching out of maximized modes, so
       that they could be restored correctly, instead of resetting to the
       default frame dimensions.  Send SC_RESTORE command to the frame,
       unless we are going to send SC_MAXIMIZE, to restore the frame
       resize hints in the mouse pointer shown by the window manager.
       src/frame.c (get_frame_param): Now extern for WINDOWSNT as well.
       src/lisp.h (get_frame_param): Adjust conditions for prototype
       declaration.
      b5b7745f
  31. 15 Mar, 2013 1 commit
  32. 14 Mar, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix bug #13953 with spontaneous frame resizes on MS-Windows. · a5cc4dde
      Eli Zaretskii authored
       src/w32term.c (w32_read_socket) <WM_WINDOWPOSCHANGED>: Remove old
       and incorrect code.  Treat WM_WINDOWPOSCHANGED like WM_ACTIVATE
       and WM_ACTIVATEAPP.
       (w32fullscreen_hook): If the frame is visible, reset
       f->want_fullscreen flag after changing the frame size.  If the
       frame is not visible, set f->want_fullscreen to FULLSCREEN_WAIT.
      a5cc4dde
  33. 13 Mar, 2013 1 commit
  34. 10 Mar, 2013 1 commit
    • Daniel Colascione's avatar
      2013-03-10 Daniel Colascione <dancol@dancol.org> · 819e2da9
      Daniel Colascione authored
      	* w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN)
      	(GUI_SDATA, guichar_t): Macros to abstract out differences between
      	NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of
      	w32fns.c.
      
      	* w32term.c (construct_drag_n_drop): Use the above macros to make
      	drag-and-drop work for non-ASCII filenames in cygw32 builds.
      
      	* w32fns.c (x_set_name, x_set_title): Use the above macros to
      	properly display non-ASCII frame titles in cygw32 builds.
      
      	* w32fns.c (Fw32_shell_execute): Use the above macros to properly
      	call ShellExecute in cygw32 builds.
      
      	* w32fn.c (Fx_file_dialog): Use the above macros to simplify the
      	common file dialog code.
      
      	* w32fns.c (Ffile_system_info): Remove from cygw32 builds, which
      	can just use du like other systems.
      
      	* coding.c (from_unicode_buffer): Declare.
      	* coding.c (from_unicode_buffer): Implement.
      819e2da9
  35. 16 Feb, 2013 1 commit