From: Eli Zaretskii <eliz@gnu.org>
To: Nathan Trapuzzano <nbtrap@nbtrap.com>
Cc: 13429@debbugs.gnu.org
Subject: bug#13429: 24.2; `window-end' returns point after last point in window
Date: Mon, 14 Jan 2013 05:47:39 +0200 [thread overview]
Message-ID: <83vcb0qvc4.fsf@gnu.org> (raw)
In-Reply-To: <87y5fwivf8.fsf@nbtrap.com>
> From: Nathan Trapuzzano <nbtrap@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.
next prev parent reply other threads:[~2013-01-14 3:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-13 22:12 bug#13429: 24.2; `window-end' returns point after last point in window Nathan Trapuzzano
2013-01-14 3:47 ` Eli Zaretskii [this message]
2021-07-15 9:23 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83vcb0qvc4.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=13429@debbugs.gnu.org \
--cc=nbtrap@nbtrap.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.