From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leonardo Dagnino 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: Sun, 8 Aug 2021 03:10:05 -0300 Message-ID: References: <83lf5fhusl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16385"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49891@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 08 08:11: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 1mCc1e-00044e-4b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 08:11:10 +0200 Original-Received: from localhost ([::1]:45356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCc1c-0003XN-CY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Aug 2021 02:11:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCc1W-0003XF-HX for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 02:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCc1W-0005B6-Ai for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 02:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCc1W-00075D-2Q for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2021 02:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leonardo Dagnino Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2021 06:11: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.162840302427182 (code B ref 49891); Sun, 08 Aug 2021 06:11:02 +0000 Original-Received: (at 49891) by debbugs.gnu.org; 8 Aug 2021 06:10:24 +0000 Original-Received: from localhost ([127.0.0.1]:53519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCc0u-00074M-J6 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 02:10:24 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:34472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCc0s-000749-Qq for 49891@debbugs.gnu.org; Sun, 08 Aug 2021 02:10:23 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id o1-20020a05600c5101b02902e676fe1f04so1289413wms.1 for <49891@debbugs.gnu.org>; Sat, 07 Aug 2021 23:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=qa9zMogdTDQoHO8fuBwL/pSSxVTT57g/KNc51srwnNU=; b=Gk/JD40bAbQKU2hIRJGt0pbIlwkGpho6ZyVntVXIrQXo4pbA57sTNcR8dwu85Bo/8J Zr0CcwsqD7joOST5VdmPqbJA8QuvQKUWHpnacq7TPX+pSOabNMJIvkEvVv9stcEmsDQn KEDDFUIm+E0pQJQHE+rYVNrYRaSXpZir4CMA42fSex38LKezAJ/i3Y0pIRn0O6koG+rq s9iQsfKhjLFAlpPkxeOBkCPVKWscd/l8LhUc1aGQnPUaBy9n20AzfxGQnAfGBZdQAfma gS7tWHD1E8/qzEd9r5uFWFkeaE/eGz84P+WOGFWTwWe9u4asqjU9LBHHiNHeuYRgpNE1 kQsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=qa9zMogdTDQoHO8fuBwL/pSSxVTT57g/KNc51srwnNU=; b=Cm57odDggvKQXqvZBUhwR871ziyoMBF6ogkc8V54Gs4BWEknqrs/+F4c+x0njLo1dL 6/tcB6VAMFVK/l7EP82alEUlnoyQL28Ijck9sF/74Jv2Xa9ViS550uBtZLPBvO82gic7 KKznFQPtnF2MY9GTPXi6jX6as35+yeO9o6b6eDcc8Gt+ZVQeSx32gZlAJ0dX/CJzxzLy K483enVv21HU7gQt7MOhy1UXkLCYUT8ZEr1RN05esjiaxevFY/inXDIPACx6fRVxJcqS ooqgps7GdvxpLdq1KC7m25G49Ii0QiCMnysSvxf5zZgSGTP1ap40LqbsR9mlmRiAMHz+ y6Pw== X-Gm-Message-State: AOAM533N37rp1Zg4UDqGyJqnWqGaJF2Wzm7RqshWC/VHj91FQ7BKqhuw cLuprlnGvEALuDnqvZz9vVZYWU2YnhLj+Y78uZE= X-Google-Smtp-Source: ABdhPJx0MLv6CnZ5FWtxmh8rsrLfgugTjADVSSjhqx+y1CAzrUPXWHLlUTSWxvdCADhLGzeWsZ3G36p+HG3/ZufqIYU= X-Received: by 2002:a1c:4e1a:: with SMTP id g26mr27072977wmh.52.1628403016914; Sat, 07 Aug 2021 23:10:16 -0700 (PDT) In-Reply-To: <83lf5fhusl.fsf@gnu.org> 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:211397 Archived-At: It is fixed indeed, tested with multiple values and seems to be working as expected in all cases. Thanks for the quick fix! Em sex., 6 de ago. de 2021 =C3=A0s 04:55, Eli Zaretskii escr= eveu: > > > 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. --=20 Leonardo Dagnino