From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Erik van Zwol Newsgroups: gmane.emacs.bugs Subject: bug#57343: hscroll current-line scrolls short lines too far to the left Date: Tue, 23 Aug 2022 21:50:54 -0600 Message-ID: References: <83czcr85mw.fsf@gnu.org> <87tu62c30d.fsf@rub.de> <83mtbu7ut8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002d0ef405e6f49729" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Berman , 57343@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 24 05:52:12 2022 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 1oQhR5-0000GM-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 05:52:11 +0200 Original-Received: from localhost ([::1]:38756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQhR4-0000dy-T6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Aug 2022 23:52:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQhQw-0000a3-IY for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 23:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQhQw-0006q9-9i for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 23:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQhQw-00047p-17 for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2022 23:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Erik van Zwol Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 03:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57343 X-GNU-PR-Package: emacs Original-Received: via spool by 57343-submit@debbugs.gnu.org id=B57343.166131307415800 (code B ref 57343); Wed, 24 Aug 2022 03:52:01 +0000 Original-Received: (at 57343) by debbugs.gnu.org; 24 Aug 2022 03:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:45364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQhQ9-00046k-LI for submit@debbugs.gnu.org; Tue, 23 Aug 2022 23:51:14 -0400 Original-Received: from mail-oa1-f53.google.com ([209.85.160.53]:41551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQhQ7-00046X-QY for 57343@debbugs.gnu.org; Tue, 23 Aug 2022 23:51:12 -0400 Original-Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-11c4d7d4683so19201518fac.8 for <57343@debbugs.gnu.org>; Tue, 23 Aug 2022 20:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=a1XSE2CpQmd67DjWJbhz6j6KmHasFAmDhEhWn0WqjOE=; b=TDWhgrMQsi/DI1zuL7NPebtz2/BuFq5Q0xH7/7B3neUZu5rDPxBSeSkBSwoOtTrPfH mc2As1VJpwFks6II3x5Jy5FQrW7sQHpDTk6aouib627WqZVvoa05xV2ilca5bXnRb5i8 X/LfXqBFQEhHSz0GfkPE9XixCOeQA2aOd7yvjm4XMfVidw4zlXc8gVghOWjDEMt1zKT/ FjwDXhcBSX4NqxZnQDonPt+Pi3hiRtED54Xf4CHFalx3UnEEybQNdYWUS05SVpT2Xs56 UB+iw3TSth/cr9VKqwu98NG/K84z0VM89NkVM9yFDfRstycyXNIPXoPnCsDcikBulIWd Ys4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=a1XSE2CpQmd67DjWJbhz6j6KmHasFAmDhEhWn0WqjOE=; b=tGyH4hFEgMTdxNSxOTjns+bq8IXtzVw8ocoILgXnU9DsKxIdwkJmvhA0JSucDyG/FM uOn1s1aMQ+sngIkyFsJITLB3noaVjBFRULi4GA5fEQbRkjDITp1YIu7p+FcXJ9OQCWKI 0ECI+w9yF1VV+INnphWyCeFh0ISjcvOkM6YjXHmPFC+M/HNygtv3jyQwJx6+XqHIOUYd Z4Ln5K1pLOw/1WuJTg1GUeknNOeb38elV+8vnANgBydblqZQewIEBk8oQ7oJsn8bZPhi 0U9+O+xqK/XvtsCtijoYU3AmhPlDVphZFkkU+Cbt782FuaVhQ+BkddpM6sPD1pmVrldu 4kZA== X-Gm-Message-State: ACgBeo0qpHTogQzKvf5ZY5Ia7Yz693TfmmiggzOrTvwPJ8CjRHaocrlU 6JgbHJ/o/OhyFhEZGW9+pzxXih6Jlifw5yl21hI= X-Google-Smtp-Source: AA6agR7RK8PtWKvqpiBqRWcwJE0ifVIQgZRTY0Wa046/Hb0dcbqPap9udlw8naEU9/DNJAVUHX5SDGPe2J7lJs5AUSU= X-Received: by 2002:a05:6870:2197:b0:11c:f898:c995 with SMTP id l23-20020a056870219700b0011cf898c995mr2836952oae.216.1661313066273; Tue, 23 Aug 2022 20:51:06 -0700 (PDT) In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:240588 Archived-At: --0000000000002d0ef405e6f49729 Content-Type: text/plain; charset="UTF-8" Looking at your screenshots, I believe if you make the bottom line almost as long as the width of the frame, then the problem would not occur on that line. On Tue, Aug 23, 2022 at 9:48 PM Erik van Zwol wrote: > I believe the issue happens when the line you are moving the cursor from a > line that is hscrolled to a line that is shorter than (frame_width - > hscroll_margin), the issue occurs. However, if the line you are moving the > cursor to is greater than or equal to (frame_width - hscroll_margin), the > problem does not occur. This is more evident when you set the > hscroll-margin to something smaller, like 1 or 2. > > The patch I attached has modified the if statement that has this condition > in it (point >= frame_width - hscroll_margin) or something like that, I > don't have the code in front of me. > > > > On Tue, Aug 23, 2022 at 11:07 AM Eli Zaretskii wrote: > >> > From: Stephen Berman >> > Cc: Erik van Zwol , 57343@debbugs.gnu.org >> > Date: Tue, 23 Aug 2022 18:56:34 +0200 >> > >> > > I feel there's something else at work here, because if you move the >> > > cursor up instead of down (i.e., to the previous instead of the next >> > > line), the problem doesn't happen. >> > >> > I see the same hscrolling when moving to the next and to the previous >> > line, both the same length (too short for hscrolling), see the attached >> > screenshots. >> >> You are saying that what you see on your system invalidates my >> observations on my system? >> >> All I'm saying is that what I see here tells me there's more here than >> meets the eye. AFAIU, your evidence actually affirms my feeling. >> > --0000000000002d0ef405e6f49729 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looking at your screenshots, I believe if you make the bot= tom line almost as long as the width of the frame, then the problem would n= ot occur on that line.=C2=A0

On Tue, Aug 23, 2022 at 9:48 PM Erik van Zwol= <thejofat@gmail.com> wrote= :
I believe the issue happens when the line you are moving the cursor from= a line that is hscrolled to a line that is shorter than (frame_width - hsc= roll_margin), the issue occurs.=C2=A0 However, if the line you are moving t= he cursor to is greater than or equal to (frame_width - hscroll_margin), th= e problem does not occur.=C2=A0 This is more evident when you set the hscro= ll-margin to something smaller, like 1 or 2.

The patch I= attached has modified the if statement that has this condition in it (poin= t >=3D frame_width - hscroll_margin) or something like that, I don't= have the code in front of me.


On Tue, A= ug 23, 2022 at 11:07 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Stephen Berman <stephen.berman@gmx.net><= br> > Cc: Erik van Zwol <thejofat@gmail.com>,=C2=A0 57343@debbugs.gnu.org
> Date: Tue, 23 Aug 2022 18:56:34 +0200
>
> > I feel there's something else at work here, because if you mo= ve the
> > cursor up instead of down (i.e., to the previous instead of the n= ext
> > line), the problem doesn't happen.
>
> I see the same hscrolling when moving to the next and to the previous<= br> > line, both the same length (too short for hscrolling), see the attache= d
> screenshots.

You are saying that what you see on your system invalidates my
observations on my system?

All I'm saying is that what I see here tells me there's more here t= han
meets the eye.=C2=A0 AFAIU, your evidence actually affirms my feeling.
--0000000000002d0ef405e6f49729--