From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.bugs Subject: bug#67604: Motion problems with inline images Date: Tue, 5 Dec 2023 23:33:42 -0500 Message-ID: <990D9D56-A1EF-4450-B5E2-C6F47FECC9E3@gmail.com> References: <83cyvn6wix.fsf@gnu.org> <190CBBD6-067F-41D8-B5EE-6E1643F01C02@gmail.com> <83ttoy5cqo.fsf@gnu.org> <4FF4BC61-297C-41CD-8094-5BFB7CF2594B@gmail.com> <83r0k259wv.fsf@gnu.org> <83plzm590d.fsf@gnu.org> <9F116A2F-AC1C-4E7D-8870-60561BFD537C@gmail.com> <83lea96d8n.fsf@gnu.org> <778F3EE6-3AC6-4D0E-86B0-CD22751F38B5@gmail.com> <83jzpt69my.fsf@gnu.org> <83h6kx5o2u.fsf@gnu.org> <8698018C-6994-4CD2-8810-F77A65D60212@gmail.com> <83ttow3t2h.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_E7292599-3864-4D12-8366-0F93BD2FED6D" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67604@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 06 05:35:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rAjcw-0002zJ-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Dec 2023 05:35:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAjca-000734-Cd; Tue, 05 Dec 2023 23:34:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAjcZ-00072r-Fw for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 23:34:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAjcZ-0006GC-7K for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 23:34:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAjck-0003Ae-FJ for bug-gnu-emacs@gnu.org; Tue, 05 Dec 2023 23:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Dec 2023 04:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67604 X-GNU-PR-Package: emacs Original-Received: via spool by 67604-submit@debbugs.gnu.org id=B67604.170183725412126 (code B ref 67604); Wed, 06 Dec 2023 04:35:02 +0000 Original-Received: (at 67604) by debbugs.gnu.org; 6 Dec 2023 04:34:14 +0000 Original-Received: from localhost ([127.0.0.1]:38674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAjby-00039V-8Q for submit@debbugs.gnu.org; Tue, 05 Dec 2023 23:34:14 -0500 Original-Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]:45063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAjbw-00039G-01 for 67604@debbugs.gnu.org; Tue, 05 Dec 2023 23:34:12 -0500 Original-Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-35d624b0415so15940535ab.2 for <67604@debbugs.gnu.org>; Tue, 05 Dec 2023 20:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701837234; x=1702442034; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=uBz6KyJNjOmcZJOvkTKBybf25dtr/j+HNmxEhBcTtXU=; b=lDfGjym5b36kFzDTXd/z4CGL2ulAQRrzR8zcBgiwshQDkRqqYDNHhkLMD/YJrnm/9u kGi5SFK8Kkf8wMj/7fr7YAAUTGEnhWkRJMELvoKdsZzYKxVHkidDRxC8ORTdBVKdflsp 09I762EBqAx+WIE20AWvLXQ8982M5/ZwVNHlhwzeui2/sx1Cw+BzQWsKiwGPjGaHjH84 POO2rB0VglLk9SUQ111UtTRW2pIvGy3v6zf1uSEw+R5pVGho7vGS6q2QcjnFNgBqDy+w 4naH/FiF3U1FiRq532IhibpQLtMwM56kZ3YkEUXxdx6E2XT2iKjIQ6iQfFX4c0Ug+5hs S9Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701837234; x=1702442034; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uBz6KyJNjOmcZJOvkTKBybf25dtr/j+HNmxEhBcTtXU=; b=FI52ubo2t4myJoJIin82gJVOyCru7NrRWIJj9kQVXVieasJzbSy5KsStvAsbriCk9w fpHLyCHqfLdfmwcnfGeINXV2pb7Gwv5KE7SvXPk3MbWphjCx2CUZXgg0Mr0TBg/esNCH RoBaJoR8E5114HfvX1J0HdCy1R2+FESLC661phoKaTf+wrONLQ1fHCgMcIKfjDHpoW/a XczrxVzzNHzny4FQ1+ROU6PMHzKtEbTF+8x5hrPW5wUDnD1vXkO5EYcIAZtoF6gFQtrb XNYIMEmjwmRHtsn2eW6wIjnkgYAKt3voo9erCq8OsXxiOYDWueR43WYuGNZmi/JexIdU Jolw== X-Gm-Message-State: AOJu0YyMenl3xIRjwShGJ4uN1YvOkaVQlnIMHBn443/IrO4liBLTUGrx KcBXI+cPyFZ+x6+c4ZE8V2ZDWe0Gc1k= X-Google-Smtp-Source: AGHT+IH4WS+OL830zdvFjxdC8ErT32Wkn3WJoIKp0Ct7G01CiclUjeeWA7iHegbx+4GPYOsYgPipSw== X-Received: by 2002:a92:d68f:0:b0:35d:6991:a535 with SMTP id p15-20020a92d68f000000b0035d6991a535mr558366iln.30.1701837234472; Tue, 05 Dec 2023 20:33:54 -0800 (PST) Original-Received: from smtpclient.apple (cm-24-53-187-34.buckeyecom.net. [24.53.187.34]) by smtp.gmail.com with ESMTPSA id dh6-20020a056e021f0600b0035265088c52sm1014837ilb.34.2023.12.05.20.33.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2023 20:33:53 -0800 (PST) In-Reply-To: <83ttow3t2h.fsf@gnu.org> X-Mailer: Apple Mail (2.3774.200.91.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275582 Archived-At: --Apple-Mail=_E7292599-3864-4D12-8366-0F93BD2FED6D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Dec 5, 2023, at 10:31=E2=80=AFPM, Eli Zaretskii = wrote: >=20 >> From: JD Smith >> Date: Tue, 5 Dec 2023 18:06:41 -0500 >> Cc: 67604@debbugs.gnu.org >>=20 >>>> Before or after the test? >>>=20 >>> After the test. >>=20 >> OK, so this was likely a false positive then. I=E2=80=99m out of = ideas. Maybe Windows is magically immune. >=20 > Unlikely. More likely is that we need some specific metrics of the > displayed stuff to see the problem (which is therefore very rare). >=20 >> For me both NS and Mac builds with your most recent xdisp.c fixes = exhibit the same motion issue. Do you have anyone you can call in to = try the simple test on another build? >=20 > Not really, no. But reproducing the problem is just a step towards > debugging it, so the alternative is for you to step through next-line > and its subroutines I stepped through next-line and subroutines via edebug and landed via = line-move-visual on: (vertical-motion (cons (or goal-column (if (consp temporary-goal-column) (car temporary-goal-column) temporary-goal-column)) arg)) So vertical-motion is where all fingers point. > It isn't like I'm the only > one who should be able to read the code and understand where it fails. I agree with that, but unfortunately am not setup for it here and have = next to no familiarity with Emacs=E2=80=99 C code. I=E2=80=99m sorry I = can=E2=80=99t be of more help. But similar to how you were unable to = work with dvisvgm and other packages, I don=E2=80=99t have access to = gdb, as it is not supported on my architecture. --Apple-Mail=_E7292599-3864-4D12-8366-0F93BD2FED6D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Dec 5, 2023, at 10:31=E2=80=AFPM, Eli Zaretskii = <eliz@gnu.org> wrote:

From: JD Smith <jdtsmith@gmail.com>
Date: Tue, 5 = Dec 2023 18:06:41 -0500
Cc: 67604@debbugs.gnu.org

Before or after the = test?

After the test.

OK, so = this was likely a false positive then.  I=E2=80=99m out of ideas. =  Maybe Windows is magically immune.

Unlikely. =  More likely is that we need some specific metrics of = the
displayed stuff to see the problem (which is therefore very = rare).

For me both NS and Mac builds = with your most recent xdisp.c fixes exhibit the same motion issue. =  Do you have anyone you can call in to try the simple test on = another build?

Not really, no.  But reproducing = the problem is just a step towards
debugging it, so the alternative = is for you to step through next-line
and its = subroutines

I stepped = through next-line and subroutines via edebug and landed via = line-move-visual on:

(vertical-motion  (cons (or = goal-column
  =   (if (consp = temporary-goal-column)
= (car = temporary-goal-column)
=       = temporary-goal-column))
= arg))

So = vertical-motion is where all fingers point.

It isn't like I'm the only
one who should be = able to read the code and understand where it = fails.

I agree with that, but = unfortunately am not setup for it here and have next to no familiarity = with Emacs=E2=80=99 C code.  I=E2=80=99m sorry I can=E2=80=99t be = of more help.  But similar to how you were unable to work with = dvisvgm and other packages, I don=E2=80=99t have access to gdb, as it is = not supported on my architecture.

= --Apple-Mail=_E7292599-3864-4D12-8366-0F93BD2FED6D--