From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: (pos-visible-in-window-p t nil t) returns wrong position/is suboptimally documented. Date: Sun, 27 Sep 2015 10:40:41 +0000 Message-ID: <20150927104041.GA2401@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1443350395 23805 80.91.229.3 (27 Sep 2015 10:39:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2015 10:39:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 27 12:39:46 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Zg9Mb-00038n-Tu for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 12:39:26 +0200 Original-Received: from localhost ([::1]:56908 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg9Mb-00038B-LW for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 06:39:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg9MY-00037x-Ic for emacs-devel@gnu.org; Sun, 27 Sep 2015 06:39:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zg9MV-0003GZ-D6 for emacs-devel@gnu.org; Sun, 27 Sep 2015 06:39:22 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:31384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg9MV-0003FV-2v for emacs-devel@gnu.org; Sun, 27 Sep 2015 06:39:19 -0400 Original-Received: (qmail 83653 invoked by uid 3782); 27 Sep 2015 10:39:17 -0000 Original-Received: from acm.muc.de (p5B1469F3.dip0.t-ipconnect.de [91.20.105.243]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 27 Sep 2015 12:39:16 +0200 Original-Received: (qmail 2484 invoked by uid 1000); 27 Sep 2015 10:40:41 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190408 Archived-At: Hello Emacs. In emacs -Q, with a buffer in a window such that there is text in the window's last line, I run M-: (pos-visible-in-window-p t nil t) . (Those parameters are in order POS, WINDOW, and PARTIALLY) The return value is, e.g., (0 64), the X and Y coordinates of the _beginning_ of the last line. (On an X window, the result is (0 920).) With PARTIALLY non-nil, and POS set to t, the function should return the coordinates of "the last visible position in WINDOW", according to elisp page "Window Start and End". I would expect the "last visible position" to mean the _end_ of the last line, not the beginning. Which is correct? The function or the documentation? -- Alan Mackenzie (Nuremberg, Germany).