From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 05 11:00:22 2021 Received: (at submit) by debbugs.gnu.org; 5 Aug 2021 15:00:22 +0000 Received: from localhost ([127.0.0.1]:48056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBer6-0008NR-ND for submit@debbugs.gnu.org; Thu, 05 Aug 2021 11:00:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:53432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBU7c-0003HD-Ja for submit@debbugs.gnu.org; Wed, 04 Aug 2021 23:32:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBU7c-0005TC-CQ for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 23:32:40 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:55042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBU7a-0002XU-KG for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 23:32:40 -0400 Received: by mail-wm1-x32d.google.com with SMTP id b128so2386846wmb.4 for ; Wed, 04 Aug 2021 20:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MSl3BzeGTw9FcyuQr+W4yk3k4PQS806wEALMkezpW/c=; b=rdpZqS7K0eHJrdDwps4NKYf5hlnVkJjoNrKDXnlsaiZq0w+gKjBEW0vDx3N2QPKFt2 fZNiU9Pqe+eESWM2JkXjkkxe0M3+hFay0LEn+Qb0OnRhMU9pCMzoWaOSzSaaWkGAv8z2 5S7Aa1iIdlmCwgnncQFEX5Qrq1GhJc8WYfA/BRItQxZkIkvZ3YkxLpNaKgDfhjU+2z2+ 7NAlK3EHJdhtOERRj/EQgg2Im9Yy3lWicTSNVUAclgOVs9/7nLNO9SdQUfqy9FdqUeXy I73jZxXElwzGXIshUW2xXzFaKXP9GIL3kOiZ26MtlQAh/gR/uMcqb5OhcsCi6GNoFfYH zx5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MSl3BzeGTw9FcyuQr+W4yk3k4PQS806wEALMkezpW/c=; b=XjyHb3P7MogMkhdP9aiaSyemxdISL7aFYRY+kqbjVRPJOHpV9ro53x6G1TtK5I6Hfs hPeHCMYWZI47XFSSnFN05KLdj9fwGzZnGB5+oTFIVW0xmi7x3ll/XaS0QX/7dlWJQnQW IAFiNSWozoMZZPYNlQEmJJ6hnwppakIXf+WnxfXdvkZMyU7Sg/CzOdRusBjbV1/GoSst wi+ZPBDjXHgZOh0UZ1BrSIZLSPEuuoFeG4ZJvLxe4J5L9mYICre/EeU2EYDyJt8p9C2O 1GGOeX729KGGR/1lec5pKy9vI+CNftYR/uqq6aJbvg90ThugDBaKDxfbENitIEaUJitY 1NFQ== X-Gm-Message-State: AOAM531qvLEG2wYLennIGi2T/mlHv6/ZASs6sLe6nVihd9+BtJvMsM4L a/Qs1XLXRCFbqMy4W82KisdykgAutb+ZIxedTSR/RDW3ylO+yw== X-Google-Smtp-Source: ABdhPJxzOkwhxCD9VsYatZHDrF2CHWqY5I8jUGurNXazXQx+kNoPiUvbJKl+EnfJRTzCqEPjJJ8Ru9ihi3qkbiQ2tTk= X-Received: by 2002:a1c:4e1a:: with SMTP id g26mr12579683wmh.52.1628134356197; Wed, 04 Aug 2021 20:32:36 -0700 (PDT) MIME-Version: 1.0 From: Leonardo Dagnino Date: Thu, 5 Aug 2021 00:32:25 -0300 Message-ID: Subject: 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 To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=leodag.sch@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 05 Aug 2021 11:00:19 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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. Also happens when lines are truncated because of `truncate-partial-width-windows'. Slightly different cases where this bug occurs (tested by setting display-line-numbers-width to the desired line-number-display-width): - In emacs -Q, it will work as expected if line-number-display-width >= hscroll-margin -1 (example: 7 and 8, respectively). However it is still buggy on my personal init.el, point gets briefly (maybe about 0.1s?) drawn on the rightmost column of the line number (the one that usually never has anything on it, right before the buffer's text starts). Maybe it's because with emacs -Q this second draw happens so fast the first one is not visible? - gets stuck in hscroll-margin if line-number-display-width < hscroll-margin - 2 (example: 5 and 8, respectively) - when line-number-display-width == hscroll-margin - 2, alternates between "stuck in the margin" and "hscroll-margin columns from window edge" every time you press the left arrow (example: 6 and 8). In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-04 built on shinsou Repository revision: 4b729ff60887f2de320a99cf1fb4c734d1145b00 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Arch Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=gtk3 --without-xaw3d --without-compress-install '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto -fuse-linker-plugin' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LC_TIME: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-line-numbers-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-extra seq byte-opt gv bytecomp byte-compile cconv pp cl-print help-fns radix-tree help-mode cl-loaddefs cl-lib display-line-numbers iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 374670 144142) (symbols 48 26281 2) (strings 32 100311 5337) (string-bytes 1 3452695) (vectors 16 51112) (vector-slots 8 1507408 148478) (floats 8 756 670) (intervals 56 8951 4879) (buffers 992 25)) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 06 03:55:17 2021 Received: (at 49891) by debbugs.gnu.org; 6 Aug 2021 07:55:17 +0000 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 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 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 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 Date: Fri, 06 Aug 2021 10:55:06 +0300 Message-Id: <83lf5fhusl.fsf@gnu.org> From: Eli Zaretskii To: Leonardo Dagnino In-Reply-To: (message from Leonardo Dagnino on Thu, 5 Aug 2021 00:32:25 -0300) Subject: Re: 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 References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49891 Cc: 49891@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 02:10:24 2021 Received: (at 49891) by debbugs.gnu.org; 8 Aug 2021 06:10:24 +0000 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 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 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) MIME-Version: 1.0 References: <83lf5fhusl.fsf@gnu.org> In-Reply-To: <83lf5fhusl.fsf@gnu.org> From: Leonardo Dagnino Date: Sun, 8 Aug 2021 03:10:05 -0300 Message-ID: Subject: Re: 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 To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49891 Cc: 49891@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 02:35:00 2021 Received: (at 49891-done) by debbugs.gnu.org; 8 Aug 2021 06:35:00 +0000 Received: from localhost ([127.0.0.1]:53551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCcOh-0007fN-VR for submit@debbugs.gnu.org; Sun, 08 Aug 2021 02:35:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCcOc-0007f4-F2 for 49891-done@debbugs.gnu.org; Sun, 08 Aug 2021 02:34:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55064) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCcOV-0000Dd-Ma; Sun, 08 Aug 2021 02:34:47 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4283 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 1mCcOV-00020s-79; Sun, 08 Aug 2021 02:34:47 -0400 Date: Sun, 08 Aug 2021 09:34:54 +0300 Message-Id: <83pmuoh2b5.fsf@gnu.org> From: Eli Zaretskii To: Leonardo Dagnino In-Reply-To: (message from Leonardo Dagnino on Sun, 8 Aug 2021 03:10:05 -0300) Subject: Re: 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 References: <83lf5fhusl.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49891-done Cc: 49891-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Leonardo Dagnino > Date: Sun, 8 Aug 2021 03:10:05 -0300 > Cc: 49891@debbugs.gnu.org > > It is fixed indeed, tested with multiple values and seems to be > working as expected in all cases. > > Thanks for the quick fix! Thanks for testing, I'm therefore closing this bug. From unknown Fri Aug 15 04:07:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Sep 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator