1. 24 Mar, 2013 1 commit
  2. 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
  3. 22 Mar, 2013 2 commits
    • Ken Brown's avatar
      * src/unexcw.c: Update for x86_64-cygwin. · a3454eed
      Ken Brown authored
      Drop unneeded inclusion of w32common.h.
      (report_sheap_usage): Declare.
      (read_exe_header): Add magic numbers for x86_64.
      (fixup_executable): Fix printf format specifier for unsigned long
      argument.
      a3454eed
    • Dmitry Antipov's avatar
      * frame.h (struct frame): Put menu_bar_window under #ifdef · 5a49b79c
      Dmitry Antipov authored
      because this member is not needed when X toolkit is in use.
      (fset_menu_bar_window):
      * dispnew.c (clear_current_matrices, clear_desired_matrices)
      (free_glyphs, update_frame):
      * xdisp.c (expose_frame): Likewise.
      (display_menu_bar): Likewise.  Remove redundant eassert.
      * window.h (WINDOW_MENU_BAR_P): Always define to 0 if X
      toolkit is in use.
      5a49b79c
  4. 21 Mar, 2013 2 commits
    • Paul Eggert's avatar
      Use functions and constants to manipulate Lisp_Save_Value objects. · 7b1123d8
      Paul Eggert authored
      This replaces code that used macros and strings and token-pasting.
      The change makes the C source a bit easier to follow,
      and shrinks the Emacs executable a bit.
      * alloc.c: Verify some properties of Lisp_Save_Value's representation.
      (make_save_value): Change 1st arg from string to enum.  All callers
      changed.
      (INTX): Remove.
      (mark_object): Use if, not #if, for GC_MARK_STACK.
      * lisp.h (SAVE_VALUEP, XSAVE_VALUE, XSAVE_POINTER, XSAVE_INTEGER)
      (XSAVE_OBJECT): Now functions, not macros.
      (STRING_BYTES_BOUND): Now just a macro, not a constant too;
      the constant was never used.
      (SAVE_SLOT_BITS, SAVE_VALUE_SLOTS, SAVE_TYPE_BITS, SAVE_TYPE_INT_INT)
      (SAVE_TYPE_INT_INT_INT, SAVE_TYPE_OBJ_OBJ, SAVE_TYPE_OBJ_OBJ_OBJ)
      (SAVE_TYPE_OBJ_OBJ_OBJ_OBJ, SAVE_TYPE_PTR_INT, SAVE_TYPE_PTR_OBJ)
      (SAVE_TYPE_PTR_PTR, SAVE_TYPE_PTR_PTR_OBJ, SAVE_TYPE_MEMORY):
      New constants.
      (struct Lisp_Save_Value): Replace members area, type0, type1, type2,
      type3 with a single member save_type.  All uses changed.
      (save_type, set_save_pointer, set_save_integer): New functions.
      * print.c (PRINTX): Remove.
      7b1123d8
    • Paul Eggert's avatar
      d6723bf7
  5. 20 Mar, 2013 4 commits
    • Dmitry Antipov's avatar
      * window.h (struct window): Convert left_col, top_line, total_lines · 5f24fa51
      Dmitry Antipov authored
      and total_cols from Lisp_Objects to integers.  Adjust comments.
      (wset_left_col, wset_top_line, wset_total_cols, wset_total_lines):
      Remove.
      (WINDOW_TOTAL_COLS, WINDOW_TOTAL_LINES, WINDOW_LEFT_EDGE_COL)
      (WINDOW_TOP_EDGE_LINE): Drop Lisp_Object to integer conversion.
      * dispnew.c, frame.c, w32fns.c, window.c, xdisp.c, xfns.c:
      Adjust users where appropriate.
      5f24fa51
    • Dmitry Antipov's avatar
      Fix ChangeLog entry. · 96061a21
      Dmitry Antipov authored
      96061a21
    • Dmitry Antipov's avatar
      * frame.h (struct frame): Drop resx and resy because the same data is · 42143acd
      Dmitry Antipov authored
      available from window system-specific output context.  Adjust users.
      (default_pixesls_per_inch_x, default_pixesls_per_inch_y): New
      functions to provide defaults when no window system available.
      (FRAME_RES_X, FRAME_RES_Y): New macros.
      (NUMVAL): Moved from xdisp.c.
      * font.c (font_pixel_size, font_find_for_lface, font_open_for_lface)
      (Ffont_face_attributes, Fopen_font):
      * image.c (gs_load):
      * w32font.c (fill_in_logfont):
      * xdisp.c (calc_pixel_width_or_height):
      * xfaces.c (Fx_family_fonts, set_lface_from_font): Use them.
      * xsettings.c (apply_xft_settings): Drop frame loop and adjust comment.
      42143acd
    • Kenichi Handa's avatar
  6. 19 Mar, 2013 3 commits
  7. 18 Mar, 2013 1 commit
    • Dmitry Antipov's avatar
      * window.c (window_resize_check, window_resize_apply) · 748fa866
      Dmitry Antipov authored
      (window_from_coordinates, recombine_windows, set_window_buffer)
      (make_parent_window, Fwindow_resize_apply, resize_frame_windows)
      (Fsplit_window_internal, Fdelete_window_internal)
      (freeze_window_starts): Use bool for booleans.
      * window.h (window_frame_coordinates, resize_frame_windows)
      (freeze_window_starts, set_window_buffer): Adjust prototypes.
      748fa866
  8. 17 Mar, 2013 2 commits
  9. 16 Mar, 2013 3 commits
  10. 15 Mar, 2013 5 commits
  11. 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
  12. 13 Mar, 2013 7 commits
    • Daniel Colascione's avatar
      * emacs.c (main): Call syms_of_cygw32 on CYGWIN non-NTGUI builds · 3fc5e44a
      Daniel Colascione authored
      too so that these builds can use Cygwin's file conversion
      functions.  (We've been building and linking cygw32.o all along
      and just not using it.)
      3fc5e44a
    • Paul Eggert's avatar
      File synchronization fixes. · 47d7532e
      Paul Eggert authored
      * admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove.
      * admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync.
      * configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
      (fsync): Remove check; now done by gnulib.
      * lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4:
      New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib-src/Makefile.in (LIB_FDATASYNC): New macro.
      (emacsclient${EXEEXT}): Use it.
      * lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't
      care about metadata.  Keep trying if interrupted.
      * lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
      fsync is available everywhere (or there is a substitute).  Don't
      report an error if fsync returns EINVAL.
      * nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii.
      * src/Makefile.in (LIB_FDATASYNC): New macro.
      (LIBES): Use it.
      * src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
      * src/fileio.c (Fwrite_region, write_...
      47d7532e
    • Eli Zaretskii's avatar
      Fix bug #13937 with creating a maximized frame on MS-Windows. · c7ffccaf
      Eli Zaretskii authored
       src/w32term.c (w32_read_socket): If we Emacs frame is being
       activated, call w32fullscreen_hook, to make sure the new frame
       dimensions are in effect.
      c7ffccaf
    • Dmitry Antipov's avatar
      * window.c (Fscroll_other_window): Use SET_PT_BOTH because both · ffcd945e
      Dmitry Antipov authored
      character and byte positions can be obtained from marker.
      ffcd945e
    • Dmitry Antipov's avatar
      * xdisp.c (init_iterator): Simplify because both character and byte · 8a7debc1
      Dmitry Antipov authored
      positions are either specified or -1.  Add eassert.  Adjust comment.
      8a7debc1
    • Paul Eggert's avatar
      Static checking by Sun C 5.12. · d9df6f40
      Paul Eggert authored
      * lib-src/etags.c (analyse_regex): Omit unreachable code.
      * src/alloc.c (buffer_memory_full) [REL_ALLOC]:
      * src/bytecode.c (exec_byte_code):
      * src/dispnew.c (init_display):
      * src/eval.c (error):
      * src/fileio.c (Fsubstitute_in_file_name):
      * src/keyboard.c (Fevent_convert_list):
      * src/keymap.c (Fsingle_key_description):
      * src/term.c (maybe_fatal, fatal):
      * src/xfns.c (Fx_display_backing_store, Fx_display_visual_class):
      * src/xsmfns.c (Fhandle_save_session):
      Omit unreachable code.
      * src/keymap.c (map_keymap_char_table_item): Cast void * to
      a function pointer type; the C Standard requires this.
      d9df6f40
    • Paul Eggert's avatar
      * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out. · 7fd8c501
      Paul Eggert authored
      Include <sys/param.h> unconditionally, as that works elsewhere and
      is simpler here.  Include <sys/sysctl.h> if DARWIN_OS ||
      __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
      and FreeBSD now.
      7fd8c501
  13. 11 Mar, 2013 4 commits
  14. 10 Mar, 2013 3 commits
    • 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
    • Stefan Monnier's avatar
      * src/lread.c: Minor cleanup. · d2e24f92
      Stefan Monnier authored
      (FROM_FILE_P): New macro.
      (skip_dyn_bytes, unreadchar, read1): Use it.
      (read_list): Consolidate duplicated code.
      d2e24f92
    • Stefan Monnier's avatar