GNU bug report logs -
#13429
24.2; `window-end' returns point after last point in window
Previous Next
Reported by: Nathan Trapuzzano <nbtrap <at> nbtrap.com>
Date: Sun, 13 Jan 2013 22:15:02 UTC
Severity: wishlist
Found in version 24.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 13429 <at> debbugs.gnu.org (full text, mbox):
> From: Nathan Trapuzzano <nbtrap <at> nbtrap.com>
> Date: Sun, 13 Jan 2013 17:12:59 -0500
>
> The current doc-string for `window-end' states that the function returns
> the ``position at which display currently ends in WINDOW''. I understand
> this to mean, more or less, the greatest position visible in
> WINDOW.
This interpretation is incorrect.
> For example, when a given window is displaying a buffer that overflows
> the window, a call to `window-end' will return the greatest visible
> position **plus one**.
This is what is meant by "position at which display ends".
Suggestions for how to describe that better are welcome.
> Whereas, when the buffer does not overflow the window
> (i.e., when the window displays the end of the buffer, including any
> blank lines at the end), `window-end' returns just the greatest visible
> position, the same thing that `point-max' would return.
This is still consistent: there's no character at position returned by
point-max. The last position visible in the window is one less that
the returned value in this case as well.
This bug report was last modified 3 years and 315 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.