1. 30 Jun, 2012 1 commit
  2. 29 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      * lisp/fringe.el (fringe-mode): Doc fix. · 2af3565e
      Dmitry Antipov authored
      * src/window.h (struct window): Change type of 'fringes_outside_margins'
      to bitfield.  Fix comment.  Adjust users accordingly.
      (struct window): Change type of 'window_end_bytepos' to ptrdiff_t.
      Adjust comment.
      * src/xdisp.c (try_window_id): Change type of 'first_vpos' and 'vpos'
      to ptrdiff_t.
      2af3565e
  3. 28 Jun, 2012 4 commits
    • Paul Eggert's avatar
      Avoid integer overflow on scroll-left and scroll-right. · aa754e6a
      Paul Eggert authored
      * window.c (HSCROLL_MAX): New macro.
      (Fscroll_left, Fscroll_right): Avoid undefined behavior on integer
      overflow when requested scroll falls outside ptrdiff_t range.
      aa754e6a
    • Dmitry Antipov's avatar
      * window.h (struct window): Change type of 'hscroll', · 80b00b08
      Dmitry Antipov authored
      'min_hscroll' and 'last_point' from Lisp_Object to ptrdiff_t,
      'last_modified' and 'last_overlay_modified' to EMACS_INT.
      Adjust users accordingly.
      * xdisp.c (try_cursor_movement): Replace type check with eassert.
      * window.c (Fscroll_left, Fscroll_right): Change type of 'hscroll'
      from EMACS_INT to ptrdiff_t.
      (make_window): Omit redundant initialization.
      80b00b08
    • Dmitry Antipov's avatar
      * window.h (struct window): Change type of 'use_time' and · 45942c7d
      Dmitry Antipov authored
      'sequence_number' from Lisp_Object to int.
      * frame.c (make_frame): Adjust users accordingly.
      * print.c (print_object): Likewise.
      * window.c (select_window, Fwindow_use_time, make_parent_window)
      (make_window): Likewise.
      45942c7d
    • 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
  4. 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
  5. 19 Jun, 2012 1 commit
  6. 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
  7. 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
  8. 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
  9. 11 Apr, 2012 1 commit
  10. 31 Mar, 2012 1 commit
  11. 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
  12. 23 Feb, 2012 2 commits
  13. 12 Feb, 2012 1 commit
  14. 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
  15. 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
  16. 11 Jan, 2012 1 commit
  17. 05 Jan, 2012 1 commit
  18. 13 Dec, 2011 3 commits
  19. 04 Dec, 2011 1 commit
  20. 27 Nov, 2011 1 commit
  21. 23 Nov, 2011 1 commit
  22. 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
  23. 20 Nov, 2011 2 commits
  24. 19 Nov, 2011 2 commits
  25. 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
  26. 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
  27. 14 Nov, 2011 1 commit
  28. 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
  29. 09 Nov, 2011 1 commit