1. 28 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      Generalize run-time debugging checks. · a54e2c05
      Dmitry Antipov authored
      * configure.in (ENABLE_CHECKING): Update comment.
      * src/dispextern.h (XASSERTS): Remove.
      * src/fontset.c (xassert): Remove.
      Convert from xassert to eassert.
      * src/alloc.c: Convert from xassert to eassert.
      * src/bidi.c: Likewise.
      * src/dispnew.c: Likewise.
      * src/fns.c: Likewise.
      * src/fringe.c: Likewise.
      * src/ftfont.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/image.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/menu.c: Likewise.
      * src/process.c: Likewise.
      * src/scroll.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32console.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/window.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xselect.c: Likewise.
      * src/xterm.c: Likewise.
      a54e2c05
  2. 26 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * alloc.c (allocate_window): Zero out non-Lisp part of newly · 62efea5e
      Dmitry Antipov authored
      allocated window.
      (allocate_process): Likewise for new process.
      (allocate_terminal): Changed to use offsetof.
      (allocate_frame): Likewise.
      * frame.c (make_frame): Omit redundant initialization.
      * window.c (make_parent_window): Use memset.
      (make_window): Omit redundant initialization.
      * process.c (make_process): Omit redundant initialization.
      * terminal.c (create_terminal): Likewise.
      62efea5e
  3. 19 Jun, 2012 1 commit
  4. 16 Jun, 2012 2 commits
    • Andreas Schwab's avatar
      * buffer.h (FETCH_MULTIBYTE_CHAR): Define as inline. · e5560ff7
      Andreas Schwab authored
      (BUF_FETCH_MULTIBYTE_CHAR): Likewise.
      * character.c (_fetch_multibyte_char_p): Remove.
      * alloc.c: Include "character.h" before "buffer.h".
      * bidi.c: Likewise.
      * buffer.c: Likewise.
      * bytecode.c: Likewise.
      * callint.c: Likewise.
      * callproc.c: Likewise.
      * casefiddle.c: Likewise.
      * casetab.c: Likewise.
      * category.c: Likewise.
      * cmds.c: Likewise.
      * coding.c: Likewise.
      * composite.c: Likewise.
      * dired.c: Likewise.
      * dispnew.c: Likewise.
      * doc.c: Likewise.
      * dosfns.c: Likewise.
      * editfns.c: Likewise.
      * emacs.c: Likewise.
      * fileio.c: Likewise.
      * filelock.c: Likewise.
      * font.c: Likewise.
      * fontset.c: Likewise.
      * fringe.c: Likewise.
      * indent.c: Likewise.
      * insdel.c: Likewise.
      * intervals.c: Likewise.
      * keyboard.c: Likewise.
      * keymap.c: Likewise.
      * lread.c: Likewise.
      * macros.c: Likewise.
      * marker.c: Likewise.
      * minibuf.c: Likewise.
      * nsfns.m: Likewise.
      * nsmenu.m: Likewise.
      * print.c: Likewise.
      * process.c: Likewise.
      * regex.c: Likewise.
      * region-cache.c: Likewise.
      * search.c: Likewise.
      * syntax.c: Likewise.
      * term.c: Likewise.
      * textprop.c: Likewise.
      * undo.c: Likewise.
      * unexsol.c: Likewise.
      * w16select.c: Likewise.
      * w32fns.c: Likewise.
      * w32menu.c: Likewise.
      * window.c: Likewise.
      * xdisp.c: Likewise.
      * xfns.c: Likewise.
      * xmenu.c: Likewise.
      * xml.c: Likewise.
      * xselect.c: Likewise.
      e5560ff7
    • Eli Zaretskii's avatar
      Fix bug #11677 with segfault when deleting windows under -batch. · 4c5501e9
      Eli Zaretskii authored
       src/window.c (Fdelete_other_windows_internal)
       (Fdelete_window_internal): Don't access frame's mouse highlight
       info of the initial frame.
      4c5501e9
  5. 01 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      For a 'struct window', replace some Lisp_Object fields to · c98ff5dd
      Dmitry Antipov authored
      bitfields where appropriate, remove unused fields.
      * window.h (struct window): Remove unused 'last_mark_x' and
      'last_mark_y' fields.  Rename 'mini_p' field to 'mini',
      change it's type from Lisp_Object to bitfield.
      Change type of 'force_start', 'optional_new_start',
      'last_had_star', 'update_mode_line' and 'start_at_line_beg'
      fields from Lisp_Object to bitfield. Adjust users accordingly.
      c98ff5dd
  6. 23 Apr, 2012 1 commit
    • Eli Zaretskii's avatar
      Avoid assertion violation when scrolling minibuffer windows. · f0ee99a0
      Eli Zaretskii authored
       src/xdisp.c (pos_visible_p): If the window start position is beyond
       ZV, start the display from buffer beginning.  Prevents assertion
       violation in init_iterator when the minibuffer window is scrolled
       via the scroll bar.
       src/window.c (window_scroll_pixel_based): Likewise.
      f0ee99a0
  7. 11 Apr, 2012 1 commit
  8. 31 Mar, 2012 1 commit
  9. 12 Mar, 2012 1 commit
    • Chong Yidong's avatar
      Rename inhibit_window_configuration_change_hook to inhibit_lisp_code. · d1f55f16
      Chong Yidong authored
      This is a tweak to 2012-02-23T07:28:21Z!cyd@gnu.org, suggested by Stefan.
      
      * eval.c (inhibit_lisp_code): Rename from
      inhibit_window_configuration_change_hook; move from window.c.
      
      * xfns.c (unwind_create_frame_1, Fx_create_frame):
      * window.c (run_window_configuration_change_hook)
      (syms_of_window): Callers changed.
      d1f55f16
  10. 23 Feb, 2012 2 commits
  11. 12 Feb, 2012 1 commit
  12. 19 Jan, 2012 1 commit
    • Martin Rudalics's avatar
      Fix handling of persistent window parameters. · 34a02f46
      Martin Rudalics authored
      * window.c (save_window_save, Fcurrent_window_configuration)
      (Vwindow_persistent_parameters): Do not use Qstate.  Rewrite
      doc-strings.
      * window.el (window--state-get-1, window-state-get): Do not use
      special state value for window-persistent-parameters.  Rename
      argument IGNORE to WRITABLE.  Rewrite doc-string.
      (window--state-put-2): Reset all window parameters to nil before
      assigning values of persistent parameters.
      * windows.texi (Window Configurations): Rewrite references to
      persistent window parameters.
      (Window Parameters): Fix description of persistent window
      parameters.
      34a02f46
  13. 16 Jan, 2012 1 commit
    • Martin Rudalics's avatar
      Provide persistent window parameters. · 6a6ee00d
      Martin Rudalics authored
      * window.c (Vwindow_persistent_parameters): New variable.
      (Fset_window_configuration, save_window_save): Handle persistent
      window parameters.
      
      * window.el (window-state-ignored-parameters): Remove variable.
      (window--state-get-1): Rename argument MARKERS to IGNORE.
      Handle persistent window parameters.  Make copy of clone-of
      parameter only if requested.  (Bug#10348)
      (window--state-put-2): Install a window parameter only if it has
      a non-nil value or an existing parameter shall be overwritten.
      
      * windows.texi (Window Configurations, Window Parameters):
      Describe persistent window parameters.
      6a6ee00d
  14. 11 Jan, 2012 1 commit
  15. 05 Jan, 2012 1 commit
  16. 13 Dec, 2011 3 commits
  17. 04 Dec, 2011 1 commit
  18. 27 Nov, 2011 1 commit
  19. 23 Nov, 2011 1 commit
  20. 21 Nov, 2011 1 commit
    • Chong Yidong's avatar
      More updates to Windows chapter of Lisp manual. · a9b9b7f5
      Chong Yidong authored
      * doc/lispref/windows.texi (Splitting Windows): Fix error in documentation of
      window-combination-limit.
      (Cyclic Window Ordering): Minor fixes to next-window,
      one-window-p, and get-lru-window docs.  Don't document
      window-list-1.
      (Buffers and Windows): Copyedits.
      (Choosing Window): Document special handling of special-display-*.
      (Choosing Window Options): Fix display-buffer-reuse-frames doc.
      Don't document even-window-heights, which is going away.  Clarify
      which options are obeyed by which action functions.
      
      * src/window.c (Fnext_window, Fprevious_window): Doc fix.
      a9b9b7f5
  21. 20 Nov, 2011 2 commits
  22. 19 Nov, 2011 2 commits
  23. 17 Nov, 2011 2 commits
    • Juanma Barranquero's avatar
      Fix typos. · df85d315
      Juanma Barranquero authored
      df85d315
    • Martin Rudalics's avatar
      Rename window-splits to window-combination-resize. · a0c2d0ae
      Martin Rudalics authored
      * window.c (Vwindow_splits): Rename to
      Vwindow_combination_resize.  Suggested by Juri Linkov.
      (Fsplit_window_internal): Use Vwindow_combination_resize instead
      of Vwindow_splits.
      * window.el (window-resize, delete-window, split-window):
      Replace window-splits by window-combination-resize.
      * cus-start.el (window-splits): Replace by
      window-combination-resize.
      * windows.texi (Resizing Windows, Splitting Windows)
      (Deleting Windows): Use term window-combination-resize instead
      of window-splits.
      a0c2d0ae
  24. 16 Nov, 2011 2 commits
    • Juanma Barranquero's avatar
      Fix typos. · 58179cce
      Juanma Barranquero authored
      58179cce
    • Martin Rudalics's avatar
      Rename window-nest to window-combination-limit. · b6f67890
      Martin Rudalics authored
      * window.h (window): Rename slot "nest" to "combination_limit".
      * window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
      (Fset_window_nest): Rename to Fset_window_combination_limit.
      (Vwindow_nest): Rename to Vwindow_combination_limit.
      (recombine_windows, make_parent_window, make_window)
      (Fsplit_window_internal, saved_window)
      (Fset_window_configuration, save_window_save): Rename all
      occurrences of window_nest to window_combination_limit.
      * window.el (split-window, window-state-get-1)
      (window-state-put-1, window-state-put-2): Rename occurrences of
      window-nest to window-combination-limit.
      * cus-start.el (window-nest): Rename to
      window-combination-limit.
      * windows.texi (Resizing Windows, Splitting Windows): Rename
      occurrences of window-nest to window-combination-limit.
      b6f67890
  25. 14 Nov, 2011 1 commit
  26. 12 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Don't handle splits status. · 89d61221
      Martin Rudalics authored
      * window.h (window): Remove splits slot.
      * window.c (Fwindow_splits, Fset_window_splits): Remove.
      (Fdelete_other_windows_internal, make_parent_window)
      (make_window, Fsplit_window_internal, Fdelete_window_internal)
      (Fset_window_configuration, save_window_save): Don't deal with
      split status of windows.
      (saved_window): Remove splits slot.
      (Vwindow_splits): Rewrite doc-string.
      * window.el (window-resize, delete-window): Use window-splits
      variable instead of function.
      (window-state-get-1, window-state-put-2, window-state-put):
      Don't deal with windows' splits status.
      * windows.texi (Splitting Windows, Deleting Windows): Remove
      references to splits status of windows.
      89d61221
  27. 09 Nov, 2011 1 commit
  28. 08 Nov, 2011 1 commit
    • Chong Yidong's avatar
      Move low-level window width/height functions to C, and high-level functions to Lisp. · 105216ed
      Chong Yidong authored
      * lisp/window.el (window-total-height, window-total-width): Doc fix.
      (window-body-size): Move from C.
      (window-body-height, window-body-width): Move to C.
      
      * src/window.c (Fwindow_left_column, Fwindow_top_line): Doc fix.
      (Fwindow_body_height, Fwindow_body_width): Move from Lisp.  Signal
      an error if not a live window.
      (Fwindow_total_width, Fwindow_total_height): Move from Lisp.
      (Fwindow_total_size, Fwindow_body_size): Move to Lisp.
      105216ed
  29. 07 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Remove term "subwindow" from code and documentation. · be7f5545
      Martin Rudalics authored
      * window.h: Declare delete_all_child_windows instead of
      delete_all_subwindows.
      * window.c (Fwindow_nest, Fset_window_nest)
      (Fset_window_new_total, Fset_window_new_normal)
      (Fwindow_resize_apply): Don't use term subwindow in doc-strings.
      (delete_all_subwindows): Rename to delete_all_child_windows.
      (Fdelete_other_windows_internal, Fset_window_configuration):
      Call delete_all_child_windows instead of delete_all_subwindows.
      * frame.c (delete_frame): Call delete_all_child_windows instead
      of delete_all_subwindows.
      
      * window.el (window-combinations): Make WINDOW argument
      mandatory.  Rewrite doc-string.
      (walk-window-subtree, window-atom-check, window-min-delta)
      (window-max-delta, window--resize-this-window)
      (window--resize-root-window-vertically, window-tree)
      (balance-windows, window-state-put): Rewrite doc-strings as to
      not mention the term "subwindow".
      (window--resize-subwindows-skip-p): Rename to
      window--resize-child-windows-skip-p.
      (window--resize-subwindows-normal): Rename to
      window--resize-child-windows-normal.
      (window--resize-subwindows): Rename to
      window--resize-child-windows.
      (window-or-subwindow-p): Rename to window--in-subtree-p.
      
      * windows.texi (Resizing Windows, Splitting Windows)
      (Window Configurations): Use "child window" instead of
      "subwindow".
      be7f5545
  30. 06 Nov, 2011 1 commit
    • Chong Yidong's avatar
      Delete window-combination-p; tweaks to window-top-child and window-left-child. · 49745b39
      Chong Yidong authored
      * lisp/window.el (window-combination-p): Function deleted; its
      side-effect is not used in any existing code.
      (window-combinations, window-combined-p): Call window-*-child
      directly.
      
      * window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window)
      (Fminibuffer_window, Fwindow_buffer, Fwindow_splits)
      (Fset_window_splits, Fwindow_nest, Fset_window_nest)
      (Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size)
      (Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line)
      (Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars)
      (Fwindow_vscroll): Doc fix.
      (Fwindow_top_child, Fwindow_left_child): Eliminate a nil default
      argument, since it makes no sense to pass a live window and for
      consistency with window-child.
      49745b39
  31. 04 Nov, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix documentation per bug #9949. · 89bd5ee1
      Eli Zaretskii authored
       src/window.c (Fwindow_body_size): Mention in the doc string that the
       return value is in frame's canonical units.
       lisp/window.el (window-body-height, window-body-width): Mention in
       the doc string that the return values are in frame's canonical
       units.
       doc/lispref/windows.texi (Window Sizes): Mention in the doc string that the
       return values of `window-body-height' and `window-body-width' are
       in frame's canonical units.
      89bd5ee1
  32. 01 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Remove unused variable temp-buffer-show-specifiers. · 4ee88440
      Martin Rudalics authored
      * window.c (temp_output_buffer_show): Don't use
      Vtemp_buffer_show_specifiers.
      (Vtemp_buffer_show_specifiers): Remove unused variable.
      * help.el (with-help-window): Don't reference
      temp-buffer-show-specifiers in doc-string.
      4ee88440