From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Obtain X / HPOS with move_it_to at eol when buffer-display-table line-feed Date: Thu, 31 Aug 2017 19:17:24 +0300 Message-ID: <83r2vr1zl7.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1504196312 24937 195.159.176.226 (31 Aug 2017 16:18:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 Aug 2017 16:18:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 31 18:18:27 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnSAa-0005f2-Lv for ged-emacs-devel@m.gmane.org; Thu, 31 Aug 2017 18:18:16 +0200 Original-Received: from localhost ([::1]:56621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnSAh-0004Iw-CW for ged-emacs-devel@m.gmane.org; Thu, 31 Aug 2017 12:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnSA2-0004Ir-EN for emacs-devel@gnu.org; Thu, 31 Aug 2017 12:17:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnS9x-0007ic-Og for emacs-devel@gnu.org; Thu, 31 Aug 2017 12:17:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnS9x-0007iX-Ku; Thu, 31 Aug 2017 12:17:37 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3378 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dnS9x-000787-2A; Thu, 31 Aug 2017 12:17:37 -0400 In-reply-to: (message from Keith David Bershatsky on Thu, 31 Aug 2017 09:07:46 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:217895 Archived-At: > Date: Thu, 31 Aug 2017 09:07:46 -0700 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > The argument of it.last_visible_x is important for the very last line of the visible window, or else IT will not continue looking for POS until it reaches the window-end. If you mean the case of the last line not ending in a newline, then you could use window-end instead, I guess. Anyway, you may find it useful to look at the code in move-point-visually, there's a loop there starting at line 22660 of xdisp.c which solves a similar problem.