From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28936: move_it_in_display_line_to returns MOVE_POS_MATCH_OR_ZV before ZV Date: Mon, 23 Oct 2017 16:55:17 +0300 Message-ID: <83h8uq9dfe.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1508766981 14144 195.159.176.226 (23 Oct 2017 13:56:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2017 13:56:21 +0000 (UTC) Cc: 28936@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 23 15:56:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1e6dD9-0002Fj-4f for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 15:56:11 +0200 Original-Received: from localhost ([::1]:38939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dDD-00058E-AS for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Oct 2017 09:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dD5-00057X-7x for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 09:56:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6dD0-00045s-K4 for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 09:56:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6dD0-00045R-Fz for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 09:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6dCz-0002hX-SS for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2017 09:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2017 13:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28936 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28936-submit@debbugs.gnu.org id=B28936.150876694110375 (code B ref 28936); Mon, 23 Oct 2017 13:56:01 +0000 Original-Received: (at 28936) by debbugs.gnu.org; 23 Oct 2017 13:55:41 +0000 Original-Received: from localhost ([127.0.0.1]:57825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6dCf-0002hH-I8 for submit@debbugs.gnu.org; Mon, 23 Oct 2017 09:55:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6dCe-0002hB-Am for 28936@debbugs.gnu.org; Mon, 23 Oct 2017 09:55:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6dCU-0003sL-JJ for 28936@debbugs.gnu.org; Mon, 23 Oct 2017 09:55:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6dCU-0003sH-FJ; Mon, 23 Oct 2017 09:55:30 -0400 Original-Received: from [176.228.60.248] (port=2833 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e6dCT-0008CG-TW; Mon, 23 Oct 2017 09:55:30 -0400 In-reply-to: (message from Keith David Bershatsky on Sun, 22 Oct 2017 22:20:32 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:138890 Archived-At: > Date: Sun, 22 Oct 2017 22:20:32 -0700 > From: Keith David Bershatsky > Cc: 28936@debbugs.gnu.org > > I was able to verify this evening that it.current_x is indeed 0 immediately following a call to `move_it_by_lines (&it, 0)` when the issue is present. Then perhaps the problem happens because of some factors you didn't include in your recipe. The comments talk about adding lnum_pixel_width, and about using auto-hscroll = current-line mode, but the recipe mentions nothing about that. Is the recipe complete? > It may be that move_it_in_display_line_to is reaching the correct X, but is merely throwing the wrong label/result in this situation -- i.e., it is not really reaching a POS or ZV. No, that's extremely improbable, to say the least. Like I said: these functions work in Emacs all the time, and if they'd fail like you describe, we'd have gazillion of display bugs.