From: Eli Zaretskii Date: Tue, 4 Jun 2013 16:33:46 +0000 (+0300) Subject: Fix bug #14540 with inaccurate doc string of pos-visible-in-window-p. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~80 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ba59bd80a234985ecc1c65533c0471791d5b8d62;p=emacs.git Fix bug #14540 with inaccurate doc string of pos-visible-in-window-p. src/window.c (Fpos_visible_in_window_p): Doc fix. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7fdd456c9a7..0914d8efac0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-06-04 Eli Zaretskii + + * window.c (Fpos_visible_in_window_p): Doc fix. (Bug#14540) + 2013-06-03 Eli Zaretskii * w32console.c (initialize_w32_display): Return the dimensions of diff --git a/src/window.c b/src/window.c index 7cf35a480f7..28e01103eb1 100644 --- a/src/window.c +++ b/src/window.c @@ -1620,12 +1620,13 @@ specifies the position of the last visible glyph in WINDOW. 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 of 2 or 6 elements (X Y [RTOP RBOT ROWH VPOS]), +the return value is a list of 2 or 6 elements (X Y [RTOP RBOT ROWH VPOS]), where X and Y are the pixel coordinates relative to the top left corner of the window. The remaining elements are omitted if the character after POS is fully visible; otherwise, RTOP and RBOT are the number of pixels -off-window at the top and bottom of the row, ROWH is the height of the -display row, and VPOS is the row number (0-based) containing POS. */) +off-window at the top and bottom of the screen line ("row") containing +POS, ROWH is the visible height of that row, and VPOS is the row number +\(zero-based). */) (Lisp_Object pos, Lisp_Object window, Lisp_Object partially) { register struct window *w;