From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49891: 28.0.50; Automatic hscroll does not consider line numbers when checking hscroll-margin, causing point to get stuck in the margin when using a small hscroll-step Date: Fri, 06 Aug 2021 10:55:06 +0300 Message-ID: <83lf5fhusl.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49891@debbugs.gnu.org To: Leonardo Dagnino Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 06 09:56:10 2021 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 1mBuiA-00041U-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Aug 2021 09:56:10 +0200 Original-Received: from localhost ([::1]:35988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBui8-0002nK-AZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Aug 2021 03:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBui2-0002mv-Fb for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2021 03:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBui2-00032a-8x for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2021 03:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBui2-0000SS-25 for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2021 03:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2021 07:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49891 X-GNU-PR-Package: emacs Original-Received: via spool by 49891-submit@debbugs.gnu.org id=B49891.16282365171706 (code B ref 49891); Fri, 06 Aug 2021 07:56:02 +0000 Original-Received: (at 49891) by debbugs.gnu.org; 6 Aug 2021 07:55:17 +0000 Original-Received: from localhost ([127.0.0.1]:49010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBuhJ-0000RR-5v for submit@debbugs.gnu.org; Fri, 06 Aug 2021 03:55:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBuhH-0000RA-Fl for 49891@debbugs.gnu.org; Fri, 06 Aug 2021 03:55:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39480) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBuhC-0002Df-1e; Fri, 06 Aug 2021 03:55:10 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4693 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBuh9-0006Gr-FF; Fri, 06 Aug 2021 03:55:09 -0400 In-Reply-To: (message from Leonardo Dagnino on Thu, 5 Aug 2021 00:32:25 -0300) 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:211299 Archived-At: > From: Leonardo Dagnino > Date: Thu, 5 Aug 2021 00:32:25 -0300 > > Steps to reproduce in emacs -Q: > (display-line-numbers-mode) > (setq truncate-lines t > hscroll-step 1) > (insert-char ?a 200) > > Then press left arrow until point gets in hscroll-margin. The point > will be inside the margin, at buffer's column hscroll-margin minus > display-line-numbers's current width. Even pressing right arrow still > has point inside the margin, triggering the bug again, making it > "stuck" at that column. Thanks, this should be fixed now on the master branch; please test.