emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/window.c


From: Luc Teirlinck
Subject: [Emacs-diffs] Changes to emacs/src/window.c
Date: Mon, 19 Jul 2004 18:00:33 -0400

Index: emacs/src/window.c
diff -c emacs/src/window.c:1.470 emacs/src/window.c:1.471
*** emacs/src/window.c:1.470    Sat Jul 17 14:59:02 2004
--- emacs/src/window.c  Mon Jul 19 21:57:05 2004
***************
*** 318,332 ****
  
  DEFUN ("pos-visible-in-window-p", Fpos_visible_in_window_p,
         Spos_visible_in_window_p, 0, 3, 0,
!        doc: /* Return t if position POS is currently on the frame in WINDOW.
  Return nil if that position is scrolled vertically out of view.
  If a character is only partially visible, nil is returned, unless the
  optional argument PARTIALLY is non-nil.
  POS defaults to point in WINDOW; WINDOW defaults to the selected window.
  
  If POS is visible, return t if PARTIALLY is nil; if PARTIALLY is non-nil,
! return value is a list (X Y PARTIAL) where X and Y are the pixel relative
! coordinate  */)
       (pos, window, partially)
       Lisp_Object pos, window, partially;
  {
--- 318,334 ----
  
  DEFUN ("pos-visible-in-window-p", Fpos_visible_in_window_p,
         Spos_visible_in_window_p, 0, 3, 0,
!        doc: /* Return non-nil if position POS is currently on the frame in 
WINDOW.
  Return nil if that position is scrolled vertically out of view.
  If a character is only partially visible, nil is returned, unless the
  optional argument PARTIALLY is non-nil.
+ If POS is only out of view because of horizontal scrolling, return non-nil.
  POS defaults to point in WINDOW; WINDOW defaults to the selected window.
  
  If POS is visible, return t if PARTIALLY is nil; if PARTIALLY is non-nil,
! return value is a list (X Y FULLY) where X and Y are the pixel coordinates
! relative to the top left corner of the window, and FULLY is t if the
! character after POS is fully visible and nil otherwise.  */)
       (pos, window, partially)
       Lisp_Object pos, window, partially;
  {
***************
*** 430,436 ****
  
  DEFUN ("set-window-hscroll", Fset_window_hscroll, Sset_window_hscroll, 2, 2, 
0,
         doc: /* Set number of columns WINDOW is scrolled from left margin to 
NCOL.
! NCOL should be zero or positive.
  
  Note that if `automatic-hscrolling' is non-nil, you cannot scroll the
  window so that the location of point becomes invisible.  */)
--- 432,438 ----
  
  DEFUN ("set-window-hscroll", Fset_window_hscroll, Sset_window_hscroll, 2, 2, 
0,
         doc: /* Set number of columns WINDOW is scrolled from left margin to 
NCOL.
! Return NCOL.  NCOL should be zero or positive.
  
  Note that if `automatic-hscrolling' is non-nil, you cannot scroll the
  window so that the location of point becomes invisible.  */)
***************
*** 544,550 ****
  }
  
  DEFUN ("window-inside-pixel-edges", Fwindow_inside_pixel_edges, 
Swindow_inside_pixel_edges, 0, 1, 0,
!        doc: /* Return a list of the edge coordinates of WINDOW.
  \(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame.
  RIGHT is one more than the rightmost x position used by text in WINDOW,
  and BOTTOM is one more than the bottommost y position used by text in WINDOW.
--- 546,552 ----
  }
  
  DEFUN ("window-inside-pixel-edges", Fwindow_inside_pixel_edges, 
Swindow_inside_pixel_edges, 0, 1, 0,
!        doc: /* Return a list of the edge pixel coordinates of WINDOW.
  \(LEFT TOP RIGHT BOTTOM), all relative to 0, 0 at top left corner of frame.
  RIGHT is one more than the rightmost x position used by text in WINDOW,
  and BOTTOM is one more than the bottommost y position used by text in WINDOW.
***************
*** 986,991 ****
--- 988,995 ----
  This is updated by redisplay, when it runs to completion.
  Simply changing the buffer text or setting `window-start'
  does not update this value.
+ Return nil if there is no recorded value.  \(This can happen if the
+ last redisplay of WINDOW was preempted, and did not finish.)
  If UPDATE is non-nil, compute the up-to-date position
  if it isn't already recorded.  */)
       (window, update)
***************
*** 1051,1057 ****
  }
  
  DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
!        doc: /* Make point value in WINDOW be at position POS in WINDOW's 
buffer.  */)
       (window, pos)
       Lisp_Object window, pos;
  {
--- 1055,1062 ----
  }
  
  DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
!        doc: /* Make point value in WINDOW be at position POS in WINDOW's 
buffer.
! Return POS.  */)
       (window, pos)
       Lisp_Object window, pos;
  {
***************
*** 1074,1079 ****
--- 1079,1085 ----
  
  DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0,
         doc: /* Make display in WINDOW start at position POS in WINDOW's 
buffer.
+ Return POS.
  Optional third arg NOFORCE non-nil inhibits next redisplay
  from overriding motion of point in order to display at this exact start.  */)
       (window, pos, noforce)
***************
*** 4848,4854 ****
  }
  
  DEFUN ("scroll-up", Fscroll_up, Sscroll_up, 0, 1, "P",
!        doc: /* Scroll text of current window upward ARG lines; or near full 
screen if no ARG.
  A near full screen is `next-screen-context-lines' less than a full screen.
  Negative ARG means scroll downward.
  If ARG is the atom `-', scroll downward by nearly full screen.
--- 4854,4861 ----
  }
  
  DEFUN ("scroll-up", Fscroll_up, Sscroll_up, 0, 1, "P",
!        doc: /* Scroll text of current window upward ARG lines.
! If ARG is omitted or nil, scroll upward by a near full screen.
  A near full screen is `next-screen-context-lines' less than a full screen.
  Negative ARG means scroll downward.
  If ARG is the atom `-', scroll downward by nearly full screen.
***************
*** 4861,4867 ****
  }
  
  DEFUN ("scroll-down", Fscroll_down, Sscroll_down, 0, 1, "P",
!        doc: /* Scroll text of current window down ARG lines; or near full 
screen if no ARG.
  A near full screen is `next-screen-context-lines' less than a full screen.
  Negative ARG means scroll upward.
  If ARG is the atom `-', scroll upward by nearly full screen.
--- 4868,4875 ----
  }
  
  DEFUN ("scroll-down", Fscroll_down, Sscroll_down, 0, 1, "P",
!        doc: /* Scroll text of current window down ARG lines.
! If ARG is omitted or nil, scroll down by a near full screen.
  A near full screen is `next-screen-context-lines' less than a full screen.
  Negative ARG means scroll upward.
  If ARG is the atom `-', scroll upward by nearly full screen.
***************
*** 4875,4884 ****
  
  DEFUN ("other-window-for-scrolling", Fother_window_for_scrolling, 
Sother_window_for_scrolling, 0, 0, 0,
         doc: /* Return the other window for \"other window scroll\" commands.
- If in the minibuffer, `minibuffer-scroll-window' if non-nil
- specifies the window.
  If `other-window-scroll-buffer' is non-nil, a window
! showing that buffer is used.  */)
       ()
  {
    Lisp_Object window;
--- 4883,4893 ----
  
  DEFUN ("other-window-for-scrolling", Fother_window_for_scrolling, 
Sother_window_for_scrolling, 0, 0, 0,
         doc: /* Return the other window for \"other window scroll\" commands.
  If `other-window-scroll-buffer' is non-nil, a window
! showing that buffer is used.
! If in the minibuffer, `minibuffer-scroll-window' if non-nil
! specifies the window.  This takes precedence over
! `other-window-scroll-buffer'.  */)
       ()
  {
    Lisp_Object window;
***************
*** 4924,4933 ****
  If ARG is the atom `-', scroll downward by nearly full screen.
  When calling from a program, supply as argument a number, nil, or `-'.
  
- If in the minibuffer, `minibuffer-scroll-window' if non-nil
- specifies the window to scroll.
  If `other-window-scroll-buffer' is non-nil, scroll the window
! showing that buffer, popping the buffer up if necessary.  */)
       (arg)
       Lisp_Object arg;
  {
--- 4933,4943 ----
  If ARG is the atom `-', scroll downward by nearly full screen.
  When calling from a program, supply as argument a number, nil, or `-'.
  
  If `other-window-scroll-buffer' is non-nil, scroll the window
! showing that buffer, popping the buffer up if necessary.
! If in the minibuffer, `minibuffer-scroll-window' if non-nil
! specifies the window to scroll.  This takes precedence over
! `other-window-scroll-buffer'.  */)
       (arg)
       Lisp_Object arg;
  {
***************
*** 5903,5909 ****
  
  DEFUN ("save-window-excursion", Fsave_window_excursion, 
Ssave_window_excursion,
         0, UNEVALLED, 0,
!        doc: /* Execute body, preserving window sizes and contents.
  Restore which buffer appears in which window, where display starts,
  and the value of point and mark for each window.
  Also restore the choice of selected window.
--- 5913,5920 ----
  
  DEFUN ("save-window-excursion", Fsave_window_excursion, 
Ssave_window_excursion,
         0, UNEVALLED, 0,
!        doc: /* Execute BODY, preserving window sizes and contents.
! Return the value of the last form in BODY.
  Restore which buffer appears in which window, where display starts,
  and the value of point and mark for each window.
  Also restore the choice of selected window.
***************
*** 6163,6169 ****
         doc: /* Set amount by which WINDOW should be scrolled vertically to 
VSCROLL.
  WINDOW nil means use the selected window.  Normally, VSCROLL is a
  non-negative multiple of the canonical character height of WINDOW;
! optional third arg PIXELS_P non-nil means that VSCROLL is in pixels.  */)
    (window, vscroll, pixels_p)
       Lisp_Object window, vscroll, pixels_p;
  {
--- 6174,6184 ----
         doc: /* Set amount by which WINDOW should be scrolled vertically to 
VSCROLL.
  WINDOW nil means use the selected window.  Normally, VSCROLL is a
  non-negative multiple of the canonical character height of WINDOW;
! optional third arg PIXELS_P non-nil means that VSCROLL is in pixels.
! If PIXELS-P is nil, VSCROLL may have to be rounded so that it
! corresponds to an integral number of pixels.  The return value is the
! result of this rounding.
! If PIXELS-P is non-nil, the return value is VSCROLL.  */)
    (window, vscroll, pixels_p)
       Lisp_Object window, vscroll, pixels_p;
  {
***************
*** 6647,6655 ****
  
    DEFVAR_BOOL ("window-size-fixed", &window_size_fixed,
               doc: /* Non-nil in a buffer means windows displaying the buffer 
are fixed-size.
  Emacs won't change the size of any window displaying that buffer,
! unless you explicitly change the size, or Emacs has no other choice.
! This variable automatically becomes buffer-local when set.  */);
    Fmake_variable_buffer_local (Qwindow_size_fixed);
    window_size_fixed = 0;
  
--- 6662,6672 ----
  
    DEFVAR_BOOL ("window-size-fixed", &window_size_fixed,
               doc: /* Non-nil in a buffer means windows displaying the buffer 
are fixed-size.
+ If the value is`height', then only the window's height is fixed.
+ If the value is `width', then only the window's width is fixed.
+ Any other non-nil value fixes both the width and the height.
  Emacs won't change the size of any window displaying that buffer,
! unless you explicitly change the size, or Emacs has no other choice.  */);
    Fmake_variable_buffer_local (Qwindow_size_fixed);
    window_size_fixed = 0;
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]