From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13429: 24.2; `window-end' returns point after last point in window Date: Mon, 14 Jan 2013 05:47:39 +0200 Message-ID: <83vcb0qvc4.fsf@gnu.org> References: <87y5fwivf8.fsf@nbtrap.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1358135272 18419 80.91.229.3 (14 Jan 2013 03:47:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 03:47:52 +0000 (UTC) Cc: 13429@debbugs.gnu.org To: Nathan Trapuzzano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 04:48:09 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tub1s-0004fa-9P for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 04:48:08 +0100 Original-Received: from localhost ([::1]:44236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tub1b-0000c1-Vd for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2013 22:47:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tub1U-0000Z0-VG for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 22:47:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tub1R-0007Gu-Gb for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 22:47:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tub1R-0007Gp-DF for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 22:47:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tub1m-0007lE-M1 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 22:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jan 2013 03:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13429-submit@debbugs.gnu.org id=B13429.135813526429794 (code B ref 13429); Mon, 14 Jan 2013 03:48:02 +0000 Original-Received: (at 13429) by debbugs.gnu.org; 14 Jan 2013 03:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:58988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tub1S-0007kU-Mt for submit@debbugs.gnu.org; Sun, 13 Jan 2013 22:47:43 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:55034) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tub1O-0007kD-Vu for 13429@debbugs.gnu.org; Sun, 13 Jan 2013 22:47:40 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MGL00800JT38M00@a-mtaout21.012.net.il> for 13429@debbugs.gnu.org; Mon, 14 Jan 2013 05:47:10 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGL008T8JUM0270@a-mtaout21.012.net.il>; Mon, 14 Jan 2013 05:47:10 +0200 (IST) In-reply-to: <87y5fwivf8.fsf@nbtrap.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69751 Archived-At: > From: Nathan Trapuzzano > 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.