1. 10 Jun, 2011 8 commits
    • Paul Eggert's avatar
      * image.c: Fix minor problems reported by GCC 4.6.0. · 33290528
      Paul Eggert authored
      (gif_load, svg_load_image): Rename locals to avoid shadowing.
      (imagemagick_load_image): Fix pointer signedness problem by changing
      last arg from unsigned char * to char *.  All uses changed.
      Also, fix a local for similar reasons.
      Remove unused locals.  Remove locals to avoid shadowing.
      (fn_rsvg_handle_free): Remove; unused.
      (svg_load, svg_load_image): Fix pointer signedness problem.
      33290528
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * movemail.c: Fix race condition and related bugs (Bug#8836). · 529a133c
      Paul Eggert authored
      (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this
      fixes some race conditions.  Report mkstemp/mktemp errno rather
      than a possibly-garbage errno.  Reinitialize the template each
      time through the loop, as earlier mkstemp/mktemp calls could have
      trashed it.  Pass 0600 (not 0666) to mktemp, for consistency
      with mkstemp; the permissions don't matter anyway.
      529a133c
    • Chong Yidong's avatar
    • Martin Rudalics's avatar
      Some more window.h fixes missing in 2011-06-10T06:55:18Z!rudalics@gmx.at. · 2c8e37d4
      Martin Rudalics authored
      * window.h (resize_proportionally, orig_total_lines)
      (orig_top_line): Remove from window structure.
      (set_window_height, set_window_width, change_window_heights)
      (Fdelete_window): Remove prototypes.
      (resize_frame_windows): Remove duplicate declaration.
      2c8e37d4
    • Eli Zaretskii's avatar
      Avoid compiler warnings about missing prototypes of window.c functions. · 440a42e3
      Eli Zaretskii authored
       src/window.h (resize_frame_windows, resize_window_check)
       (delete_deletable_window, resize_root_window)
       (resize_frame_windows): Declare prototypes.
       src/ window.c (resize_window_apply): Make definition be "static" to
       match the prototype.
      440a42e3
    • Martin Rudalics's avatar
      Move window resize code from window.c to window.el. · 562dd5e9
      Martin Rudalics authored
      * window.c: Remove declarations of Qwindow_size_fixed,
      window_min_size_1, window_min_size_2, window_min_size,
      size_window, window_fixed_size_p, enlarge_window, delete_window.
      Remove static from declaration of Qdelete_window, it's
      temporarily needed by Fbury_buffer.
      (replace_window): Don't assign orig_top_line and
      orig_total_lines.
      (Fdelete_window, delete_window): Remove.  Window deletion is
      handled by window.el.
      (window_loop): Remove DELETE_OTHER_WINDOWS case.  Replace
      Fdelete_window calls with calls to Qdelete_window.
      (Fdelete_other_windows): Remove.  Deleting other windows is
      handled by window.el.
      (window_fixed_size_p): Remove.  Fixed-sizeness of windows is
      handled in window.el.
      (window_min_size_2, window_min_size_1, window_min_size): Remove.
      Window minimum sizes are handled in window.el.
      (shrink_windows, size_window, set_window_height)
      (set_window_width, change_window_heights, window_height)
      (window_width, CURBEG, CURSIZE, enlarge_window)
      (adjust_window_trailing_edge, Fadjust_window_trailing_edge)
      (Fenlarge_window, Fshrink_window): Remove.  Window resizing is
      handled in window.el.
      (make_dummy_parent): Rename to make_parent_window and give it a
      second argument horflag.
      (make_window): Don't set resize_proportionally any more.
      (Fsplit_window): Remove.  Windows are split in window.el.
      (save_restore_action, save_restore_orig_size)
      (shrink_window_lowest_first, save_restore_orig_size): Remove.
      Resize mini windows in window.el.
      (grow_mini_window, shrink_mini_window): Implement by calling
      Qresize_root_window_vertically, resize_window_check and
      resize_window_apply.
      (saved_window, Fset_window_configuration, save_window_save): Do
      not handle orig_top_line, orig_total_lines, and
      resize_proportionally.
      (window_min_height, window_min_width): Move to window.el.
      (keys_of_window): Move bindings for delete-other-windows,
      split-window, delete-window and enlarge-window to window.el.
      
      * buffer.c: Temporarily extern Qdelete_window.
      (Fbury_buffer): Temporarily call Qdelete_window instead of
      Fdelete_window (Fbury_buffer will move to window.el soon).
      
      * frame.c (set_menu_bar_lines_1): Remove code handling
      orig_top_line and orig_total_lines.
      
      * dispnew.c (adjust_frame_glyphs_initially): Don't use
      set_window_height but set heights directly.
      (change_frame_size_1): Use resize_frame_windows.
      
      * xdisp.c (init_xdisp): Don't use set_window_height but set
      heights directly.
      
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use
      resize_frame_windows instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows
      instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * window.el (window-min-height, window-min-width): Move here
      from window.c.  Add defcustoms and rewrite doc-strings.
      (resize-mini-window, resize-window): New functions.
      (adjust-window-trailing-edge, enlarge-window, shrink-window):
      Move here from window.c.
      (maximize-window, minimize-window): New functions.
      (delete-window, delete-other-windows, split-window): Move here
      from window.c.
      (window-split-min-size): New function.
      (split-window-keep-point): Mention split-window-above-each-other
      instead of split-window-vertically.
      (split-window-above-each-other, split-window-vertically): Rename
      split-window-vertically to split-window-above-each-other and
      provide defalias for old definition.
      (split-window-side-by-side, split-window-horizontally): Rename
      split-window-horizontally to split-window-side-by-side and provide
      defalias for the old definition.
      (ctl-x-map): Move bindings for delete-window,
      delete-other-windows and enlarge-window here from window.c.
      Replace bindings for split-window-vertically and
      split-window-horizontally by bindings for
      split-window-above-each-other and split-window-side-by-side.
      
      * cus-start.el (all): Remove entries for window-min-height and
      window-min-width.  Add entries for window-splits and
      window-nest.
      562dd5e9
    • Katsumi Yamaoka's avatar
      Improve Gnus' dribble data handling. · b229f37d
      Katsumi Yamaoka authored
      b229f37d
  2. 09 Jun, 2011 10 commits
  3. 08 Jun, 2011 9 commits
    • Paul Eggert's avatar
      7e2aa385
    • Martin Rudalics's avatar
      New symbols in window.c. · b9e809c2
      Martin Rudalics authored
      * window.c: (WINDOW_TOTAL_SIZE, MIN_SAFE_WINDOW_WIDTH)
      (MIN_SAFE_WINDOW_HEIGHT): Really remove them from window.c.
      (syms_of_window): New Lisp objects Qrecord_window_buffer,
      Qwindow_deletable_p, Qdelete_window, Qreplace_buffer_in_windows,
      Qget_mru_window, Qresize_root_window,
      Qresize_root_window_vertically, Qsafe, Qabove, Qbelow,
      Qauto_buffer_name; staticpro them.
      b9e809c2
    • Martin Rudalics's avatar
      A few new functions and rewrites in window.el. · 387522b2
      Martin Rudalics authored
      * window.el (one-window-p): Move down in code.  Rewrite
      doc-string.
      (window-current-scroll-bars): Rewrite doc-string.  Normalize
      live window argument.
      (walk-windows, get-window-with-predicate, count-windows):
      Rewrite doc-string.  Use window-list-1.
      (window-in-direction-2, window-in-direction, get-mru-window):
      New functions.
      387522b2
    • Martin Rudalics's avatar
      Add some new members to window structure in window.h. · 496e208e
      Martin Rudalics authored
      * window.h (window): Add some new members to window structure -
      normal_lines, normal_cols, new_total, new_normal, clone_number,
      splits, nest, prev_buffers, next_buffers.
      (WINDOW_TOTAL_SIZE): Move here from window.c.
      (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT): Define.
      
      * window.c (WINDOW_TOTAL_SIZE): Move to window.h.
      (make_dummy_parent): Set new members of windows structure.
      (make_window): Move down in code.  Handle new members of window
      structure.
      (Fwindow_clone_number, Fwindow_splits, Fset_window_splits)
      (Fwindow_nest, Fset_window_nest, Fwindow_new_total)
      (Fwindow_normal_size, Fwindow_new_normal, Fwindow_prev_buffers)
      (Fset_window_prev_buffers, Fwindow_next_buffers)
      (Fset_window_next_buffers, Fset_window_clone_number): New
      functions.
      (Fwindow_hscroll, Fwindow_at, Fwindow_point, Fwindow_start)
      (Fwindow_end, Fwindow_line_height, Fset_window_dedicated_p):
      Doc-string fixes.
      (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter):
      Argument WINDOW can be now internal window too.
      (Fwindow_use_time): Move up in code.
      (Fget_buffer_window): Rename argument FRAME to ALL-FRAMES.
      Rewrite doc-string.
      (Fset_window_configuration, saved_window)
      (Fcurrent_window_configuration, save_window_save): Handle new
      members of window structure.
      496e208e
    • Glenn Morris's avatar
    • Ivan Kanis's avatar
    • Glenn Morris's avatar
      ChangeLog fixes. · 9b5c21bb
      Glenn Morris authored
      9b5c21bb
    • Glenn Morris's avatar
      Move ChangeLog entry to the right file. · e61923c8
      Glenn Morris authored
      e61923c8
    • Martin Rudalics's avatar
      window-height, window-width, and window-full-width-p are now in window.el. · f3d1777e
      Martin Rudalics authored
      * window.c (Fwindow_height, Fwindow_width, Fwindow_full_width_p):
      Remove.
      * window.el (window-height): Defalias to window-total-height.
      (window-width): Defalias to window-body-width.
      f3d1777e
  4. 07 Jun, 2011 11 commits
    • Chong Yidong's avatar
      Some changes and re-organization for animated gif support. · 18af70d0
      Chong Yidong authored
      * lisp/image.el (image-animate-max-time): Moved to image-mode.el.
      (create-animated-image): Remove unnecessary function.
      (image-animate): Rename from image-animate-start.  New arg.
      (image-animate-stop): Removed; just use image-animate-timer.
      (image-animate-timer): Use car-safe.
      (image-animate-timeout): Rename argument.
      
      * lisp/image-mode.el (image-toggle-animation): New command.
      (image-mode-map): Bind it to RET.
      (image-mode): Update message.
      (image-toggle-display-image): Avoid a spurious cache flush.
      (image-transform-rotation): Doc fix.
      (image-transform-properties): Return quickly in the normal case.
      (image-animate-loop): Rename from image-animate-max-time.
      18af70d0
    • Eli Zaretskii's avatar
      Fix the MS-DOS build broken by STRING_BYTES_MAX. · 2c631e0e
      Eli Zaretskii authored
       msdos/sedlibmk.inp (PTRDIFF_T_SUFFIX): Edit to nothing.
      2c631e0e
    • Martin Rudalics's avatar
      Add and rewrite window size functions in window.el. · a1511caf
      Martin Rudalics authored
      * window.el (window-safe-min-height, window-safe-min-width):
      New constants.
      (window-size-ignore, window-min-size, window-min-size-1)
      (window-sizable, window-sizable-p, window-size-fixed-1)
      (window-size-fixed-p, window-min-delta-1, window-min-delta)
      (window-max-delta-1, window-max-delta, window-resizable)
      (window-resizable-p, window-total-height, window-total-width)
      (window-body-width): New functions.
      (window-full-height-p, window-full-width-p): Rewrite using
      window-total-size.
      (window-body-height): Rewrite using window-body-size.
      a1511caf
    • Martin Rudalics's avatar
      Move get-lru-window and get-largest-window to window.el. · 190b47e6
      Martin Rudalics authored
      * window.c (window_loop): Remove handling of GET_LRU_WINDOW and
      GET_LARGEST_WINDOW.
      (Fget_lru_window, Fget_largest_window): Move to window.el.
      
      * window.el (get-lru-window, get-largest-window): Move here from
      window.c.  Rename first argument to ALL-FRAMES.  Rephrase
      doc-strings.
      (get-buffer-window-list): Rewrite using window-list-1.  Rephrase
      doc-string.
      190b47e6
    • Martin Rudalics's avatar
      Make delete_all_subwindows argument a Lisp_Object. · fa8a67e6
      Martin Rudalics authored
      * window.c (delete_window, Fset_window_configuration): Call
      delete_all_subwindows with window as argument.
      (delete_all_subwindows): Take a window as argument and not a
      structure.  Rewrite.
      
      * window.h: delete_all_subwindows now takes a Lisp_Object as
      argument.
      
      * frame.c (delete_frame): Call delete_all_subwindows with root
      window as argument.
      fa8a67e6
    • Eli Zaretskii's avatar
      nt/ChangeLog: Fix a typo in last entry. · 81d63f1a
      Eli Zaretskii authored
      81d63f1a
    • Eli Zaretskii's avatar
      Update nt/inc/stdint.h for PTRDIFF_MAX. · f7b2cdf3
      Eli Zaretskii authored
       nt/inc/stdint.h (INT32_MAX, INT64_MAX, INTPTR_MAX, PTRDIFF_MAX)
       [!__GNUC__]: New macros.
      f7b2cdf3
    • Glenn Morris's avatar
      Auto-commit of generated files. · 0442dc7f
      Glenn Morris authored
      0442dc7f
    • Martin Rudalics's avatar
      Install some window-size related functions and window-list-1. · abde8f8c
      Martin Rudalics authored
      * window.c (Fwindow_total_size, Fwindow_left_column)
      (Fwindow_top_line, window_body_lines, Fwindow_body_size)
      (Fwindow_list_1): New functions.
      (window_box_text_cols): Replace with window_body_cols.
      (Fwindow_width, Fscroll_left, Fscroll_right): Use
      window_body_cols instead of window_box_text_cols.
      
      * window.h: Extern window_body_cols instead of
      window_box_text_cols.
      
      * indent.c (compute_motion, Fcompute_motion): Use
      window_body_cols instead of window_box_text_cols.
      abde8f8c
    • Paul Eggert's avatar
      [ChangeLog] · 81eafe29
      Paul Eggert authored
      * configure.in: Add --with-wide-int.
      * INSTALL: Mention this.
      [etc/ChangeLog]
      * NEWS: Mention new configure option --with-wide-int.
      81eafe29
    • Daniel Colascione's avatar
      a54e3482
  5. 06 Jun, 2011 2 commits