1. 05 Jun, 2008 1 commit
  2. 04 Jun, 2008 2 commits
  3. 02 Jun, 2008 1 commit
    • Jim Meyering's avatar
      Make "xfree (NULL)" a no-op; remove useless if-before-xfree. · 70fdbb46
      Jim Meyering authored
      * src/alloc.c (xfree): Return right away for a NULL arg.
      * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests.
      * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise.
      * src/mac.c (create_apple_event_from_event_ref): Likewise.
      (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise.
      * src/doprnt.c (doprnt1): Likewise.
      * src/frame.c (frame): Likewise.
      * src/keyboard.c (wipe_kboard): Likewise.
      * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
      (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
      * src/term.c (tty_default_color_capabilities, maybe_fatal)
      (delete_tty): Likewise.
      * src/w16select.c (string): Likewise.
      * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
      * src/w32bdf.c (w32_free_bdf_font): Likewise.
      * src/w32fns.c (w32_unload_font): Likewise.
      * src/w32font.c (w32font_close): Likewise.
      * src/window.c (size_window): Likewise.
      * src/xselect.c (receive_incremental_selection): Likewise.
      * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise.
      * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
      * src/w32.c (stat): Likewise.
      70fdbb46
  4. 14 May, 2008 1 commit
  5. 01 May, 2008 1 commit
    • Martin Rudalics's avatar
      (make_window): Initialize resize_proportionally. · 047aaeb9
      Martin Rudalics authored
      (enlarge_window): Temporarily set resize_proportionally to make
      sure that shrink_windows does scale the window proportionally.
      (shrink_windows): When window has resize_proportionally set try
      to shrink it proportionally by stealing from other windows.
      (struct saved_window, Fset_window_configuration)
      (compare_window_configurations): Handle resize_proportionally.
      (WINDOW_TOTAL_SIZE): New macro.
      (window_min_size, shrink_windows, size_window): Use it.
      (check_min_window_sizes): Removed.  Invalid values of
      window-min-height|width are handled by window_min_size_2 now.
      (size_window, Fsplit_window, enlarge_window)
      (adjust_window_trailing_edge, grow_mini_window): Don't call
      check_min_window_sizes.
      (window_min_size_2, window_min_size_1, window_min_size): New
      argument safe_p for retrieving "safe" minimum sizes.
      (Fdisplay_buffer, Fsplit_window, enlarge_window):
      (adjust_window_trailing_edge, grow_mini_window): Adjust
      arguments of window_min_size... functions.
      (shrink_windows): Argument min_size removed.  New argument
      safe_p allows shrinking windows to their safe minimum sizes.
      Calculate minimum size and decide whether a window shall be
      deleted for each window individually.
      (size_window): When nodelete_p equals 2, tell shrink_windows to
      delete windows only if their new minimum size is no more safe.
      (shrink_window_lowest_first): Call window_min_size_1 to make
      sure to preserve modeline of bottom-most window when resizing
      the minibuffer.
      (Fset_window_configuration, Fcurrent_window_configuration)
      (compare_window_configurations): Do not handle
      window-min-height|width any more.
      (syms_of_window): Clarify window-min-height|width doc-strings.
      047aaeb9
  6. 02 Apr, 2008 1 commit
  7. 31 Mar, 2008 1 commit
  8. 29 Mar, 2008 1 commit
    • Juri Linkov's avatar
      (Fdisplay_buffer): Move call to · 7ae6d1d1
      Juri Linkov authored
      Vsplit_window_preferred_function out of conditions that check
      if window is eligible for vertical splitting.
      When Vsplit_window_preferred_function is non-nil, call it and use
      its non-nil return value as window.  Otherwise, continue doing
      vertical splitting using Fsplit_window with arg horflag=nil.
      (syms_of_window) <Vsplit_window_preferred_function>: Change the
      default value from `split-window' to nil.
      7ae6d1d1
  9. 19 Mar, 2008 1 commit
    • Stefan Monnier's avatar
      (run_funs): New fun. · 6a44ffb3
      Stefan Monnier authored
      (run_window_configuration_change_hook): Use it to run the buffer-local
      and the global part of the hook.
      6a44ffb3
  10. 25 Feb, 2008 1 commit
    • Stefan Monnier's avatar
      (Fdelete_window, Fadjust_window_trailing_edge): · eeca6f6f
      Stefan Monnier authored
      Handle a nil arg.  Use run_window_configuration_change_hook.
      (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
      (Fenlarge_window, Fshrink_window, Fset_window_configuration):
      Use run_window_configuration_change_hook.
      eeca6f6f
  11. 28 Jan, 2008 1 commit
  12. 19 Jan, 2008 1 commit
  13. 08 Jan, 2008 1 commit
  14. 16 Nov, 2007 1 commit
    • Stefan Monnier's avatar
      (struct save_window_data): Move non-lisp data to the end · b05b4e27
      Stefan Monnier authored
      and make it `int' rather than Lisp_Object.
      (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
      Done wrap/unwrap integer values.
      (Fset_window_configuration, compare_window_configurations):
      Update use of fields to their new types.
      b05b4e27
  15. 26 Oct, 2007 2 commits
  16. 16 Oct, 2007 1 commit
    • Stefan Monnier's avatar
      * xfns.c (Fx_create_frame, Fx_display_list): · 9beb8baa
      Stefan Monnier authored
      * window.c (window_fixed_size_p, enlarge_window, shrink_window_lowest_first):
      * macterm.c (init_font_name_table):
      * macfns.c (Fx_create_frame, Fx_display_list):
      * lread.c (close_load_descs):
      * keyboard.c (read_char_x_menu_prompt):
      * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
      * coding.c (code_convert_region_unwind): Test the type of an object
      rather than just !NILP before extracting data from it.
      9beb8baa
  17. 13 Oct, 2007 1 commit
  18. 02 Oct, 2007 3 commits
  19. 21 Sep, 2007 1 commit
  20. 12 Sep, 2007 1 commit
  21. 08 Sep, 2007 1 commit
  22. 07 Sep, 2007 3 commits
  23. 06 Aug, 2007 1 commit
    • Martin Rudalics's avatar
      (window_min_size_2): New function. · 35ea56c9
      Martin Rudalics authored
      (window_min_size_1, size_window, Fdisplay_buffer)
      (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
      windows without mode- or header-lines when window-min-height is
      too small.
      (size_window): Reset nodelete_p after testing it, following an
      earlier note by Kim F. Storm.
      (display_buffer): Do not set split_height_threshold to twice the
      value of window_min_height to avoid changing the value of a
      customizable variable.  Rather explicitly check whether the
      height of the window that shall be splitted is at least as large
      as split_height_threshold.
      (Fwindow_full_width_p): New defun.
      (syms_of_window): Defsubr it.
      (Fdisplay_buffer): Use NILP.
      (Fset_window_scroll_bars): Likewise.
      35ea56c9
  24. 25 Jul, 2007 1 commit
  25. 19 Jul, 2007 1 commit
  26. 17 Jul, 2007 1 commit
  27. 16 Jul, 2007 2 commits
  28. 15 Jul, 2007 1 commit
    • Martin Rudalics's avatar
      (window_min_size_2): New function. · f1de8c77
      Martin Rudalics authored
      (window_min_size_1, size_window, Fdisplay_buffer)
      (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
      windows without mode- or header-lines when window-min-height is
      too small.
      (size_window): Reset nodelete_p after testing it, following an
      earlier note by Kim F. Storm.
      (display_buffer): Do not set split_height_threshold to twice the
      value of window_min_height to avoid changing the value of a
      customizable variable.  Rather explicitly check whether the
      height of the window that shall be splitted is at least as large
      as split_height_threshold.
      f1de8c77
  29. 14 Jul, 2007 1 commit
  30. 05 Jun, 2007 1 commit
  31. 04 Jun, 2007 1 commit
  32. 01 Jun, 2007 1 commit
  33. 26 May, 2007 1 commit
    • Dan Nicolaescu's avatar
      * xfaces.c (syms_of_xfaces): Delete stray semicolon. · 3b8c0c70
      Dan Nicolaescu authored
      * xdisp.c (next_element_from_buffer):
      * window.c (delete_window):
      * term.c (term_mouse_highlight):
      * msdos.c (getdefdir):
      * macterm.c (mac_create_bitmap_from_bitmap_data)
      (init_font_name_table):
      * fns.c (Fsxhash):
      * data.c (Fmake_local_variable):
      * ccl.c (ccl_driver): Likewise.
      3b8c0c70