From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Trapuzzano Newsgroups: gmane.emacs.bugs Subject: bug#13429: 24.2; `window-end' returns point after last point in window Date: Sun, 13 Jan 2013 17:12:59 -0500 Message-ID: <87y5fwivf8.fsf@nbtrap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358115294 29561 80.91.229.3 (13 Jan 2013 22:14:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2013 22:14:54 +0000 (UTC) To: 13429@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 13 23:15:12 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 1TuVpc-0007OT-J7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2013 23:15:08 +0100 Original-Received: from localhost ([::1]:60670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVpM-0007pc-D7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2013 17:14:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVpG-0007nQ-UV for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:14:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuVpC-00077U-Je for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:14:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVpC-00077P-G9 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:14:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TuVpW-0004vY-HH for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Trapuzzano Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Jan 2013 22:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135811525018863 (code B ref -1); Sun, 13 Jan 2013 22:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2013 22:14:10 +0000 Original-Received: from localhost ([127.0.0.1]:58737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuVoe-0004uA-7j for submit@debbugs.gnu.org; Sun, 13 Jan 2013 17:14:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34561) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TuVob-0004tW-DZ for submit@debbugs.gnu.org; Sun, 13 Jan 2013 17:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuVo7-0006ke-QP for submit@debbugs.gnu.org; Sun, 13 Jan 2013 17:13:39 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:41787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVo7-0006ka-NL for submit@debbugs.gnu.org; Sun, 13 Jan 2013 17:13:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVo1-0007ZC-00 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:13:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuVnx-0006jm-K5 for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:13:28 -0500 Original-Received: from oproxy9.bluehost.com ([69.89.24.6]:35917) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TuVnx-0006ja-8N for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 17:13:25 -0500 Original-Received: (qmail 1744 invoked by uid 0); 13 Jan 2013 22:13:02 -0000 Original-Received: from unknown (HELO host393.hostmonster.com) (66.147.240.193) by oproxy9.bluehost.com with SMTP; 13 Jan 2013 22:13:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbtrap.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=69vX2PU0ewD+3z0EMupflzwAb0/a5b1pExKKQD5VDvo=; b=iSZpNj29oxurZXnuoU97SjxxibzvcHXysx0JVNvBnXjWW0NE1DuE42RaxcH5AhOeDACvqM0/TCnwjuNpOdWVuL7vftit2jeMVC/lWdkWvywZkoJMBWTY0CPNK4PB5CXw; Original-Received: from [76.240.203.247] (port=52177 helo=Nathan-GNU) by host393.hostmonster.com with esmtpsa (TLSv1:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1TuVnZ-0006GE-Kt for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2013 15:13:02 -0700 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Identified-User: {1585:host393.hostmonster.com:nbtrapco:nbtrap.com} {sentby:smtp auth 76.240.203.247 authed with nbtrap@nbtrap.com} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:69733 Archived-At: 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. However, even if that's an incorrect interpretation, the behavior of this function is inconsistent under seemingly any interpretation. 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**. 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. As I say, this behavior seems inconsistent under any interpretation of the documentation. If it is in fact a bug, the code should be rectified; but in either case, the documentation should be clarified, because if there is a correct interpretation that I'm missing, it's not obvious. Nathan In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu) of 2013-01-13 on Nathan-GNU Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--without-x' '--without-sound' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t