From unknown Sun Jun 22 07:28:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8155 <8155@debbugs.gnu.org> To: bug#8155 <8155@debbugs.gnu.org> Subject: Status: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property Reply-To: bug#8155 <8155@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:28:49 +0000 retitle 8155 23.2; erratic cursor movement with visual-line-mode and wrap-p= refix property reassign 8155 emacs submitter 8155 Nicolas Goaziou severity 8155 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 02 12:16:01 2011 Received: (at submit) by debbugs.gnu.org; 2 Mar 2011 17:16:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PupeZ-0005DR-TD for submit@debbugs.gnu.org; Wed, 02 Mar 2011 12:16:00 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuoBn-000393-Rn for submit@debbugs.gnu.org; Wed, 02 Mar 2011 10:42:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuoBh-0008QB-NT for submit@debbugs.gnu.org; Wed, 02 Mar 2011 10:42:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuoBh-0008Q4-Jj for submit@debbugs.gnu.org; Wed, 02 Mar 2011 10:42:05 -0500 Received: from [140.186.70.92] (port=54069 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuoBf-00076g-TO for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 10:42:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuoBb-0008Ox-Vf for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 10:42:03 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:45005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuoBb-0008Og-Kl for bug-gnu-emacs@gnu.org; Wed, 02 Mar 2011 10:41:59 -0500 Received: by fxm5 with SMTP id 5so126196fxm.0 for ; Wed, 02 Mar 2011 07:41:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:mime-version :content-type; bh=IWJIiXjDFu2GjzTwRUcHl2DLcnfGV7yDoIXtHy0M6+Y=; b=YHxWVMy9OhMuwP8Dx2gkWzb/o1220fTWFvHAP/OzQbmJR7AlWVdk7SGkqP9Snrm2yj 1PPVB9iFHhEGVOYoLYaoRkiDKz47kDSZrnLWq9inrRO5I+6zAAMpygwaTA1PMK8cBMka cWvLu369S+yBS6jwiy+2LeI6CNpXmgFRraaYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type; b=Mx11laxm/8faz00WWfUy4UYczyv39cJuXuNwoTuaznrUP23h8tG/tl5DfMqhjx5k2K 3O4O8nqQjTuOwrEI2d2pBRYswKp08FfWTxE/bxxqqc63Q4tEaIEy4HHHuyWkuuvrJHfU W/yfvRSProCxr6kaf3bJ8+btqM4iJAJFjMyAQ= Received: by 10.223.101.136 with SMTP id c8mr9623fao.100.1299080500876; Wed, 02 Mar 2011 07:41:40 -0800 (PST) Received: from selenimh (23.29.86-79.rev.gaoland.net [79.86.29.23]) by mx.google.com with ESMTPS id 5sm35815fak.47.2011.03.02.07.41.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 02 Mar 2011 07:41:40 -0800 (PST) From: Nicolas Goaziou To: bug-gnu-emacs@gnu.org Subject: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property Date: Wed, 02 Mar 2011 16:41:40 +0100 Message-ID: <877hchfs23.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 02 Mar 2011 12:15:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': >From `emacs -Q', C-x b whatever to open a new buffer. Then M-x visual-line-mode. Now fill a bit more than a screenfull of text without inserting a newline. Eventually use (put-text-property 1 (point-max) 'wrap-prefix " "). Now, going from (point-min), use C-n to move down. Near the end of that huge paragraph, C-n will not keep a constant column. In the same area, C-e and C-a will change line. C-p will go through the same path as C-n, thus not keeping the first column as well. Under certain conditions that I have yet to find (but related to that property and visual-line-mode), `next-line', when reaching the last line of the window, will put point back in the middle of the screen while keeping the same buffer portion visible (so it's a loopback, as the next part of the buffer is never shown). When it happens, the cursor is stuck forever in that loop if the user keep moving with `next-line'. This doesn't happen with C-p, and C-v can get out of the loop. In GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-05-08 on pidsley.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.10904000 configured using `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--mandir=/usr/share/man' '--without-sound' '-with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-optimize-sibling-calls' 'LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent input: C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p M-t f C-g c C-n c C-n M-t M-x r e p o r t - e m Recent messages: Visual-Line mode enabled Mark set [6 times] Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `put-text-pro' found Scanning for dabbrevs...100% dabbrev-expand: No dynamic expansion for `put-text-proper' found call-interactively: End of buffer nil Quit C-n runs the command next-line C-n runs the command next-line Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-fns dabbrev tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) -- Nicolas Goaziou From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 30 17:39:19 2020 Received: (at 8155) by debbugs.gnu.org; 30 Aug 2020 21:39:19 +0000 Received: from localhost ([127.0.0.1]:50899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCV2k-0008AQ-Ky for submit@debbugs.gnu.org; Sun, 30 Aug 2020 17:39:19 -0400 Received: from mout.gmx.net ([212.227.17.21]:52469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCV2i-0008AC-8O for 8155@debbugs.gnu.org; Sun, 30 Aug 2020 17:39:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1598823548; bh=tFzvcSyXUQwU/tb93JOZwZw0oo1gw8xD3eHnGHZAmD4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=fuQiH3voOaLEvOF3vAfsP7TiPMhvuhHk4XYxkH4hfmCQ43orL57JwP3HelJX8Vx46 T70LiD1yvqEVbkHE3e+n4R9sBK/gY2PN5rjPC+lpMvsNTIjcSMLU3G1ox1KQeQMYtE PYazXkB2+AndCGE1kP8gayq8zZVKUTLjHnwm0TVQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from linux-a75o ([178.1.127.22]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfHEJ-1kopzb2krT-00gnh5; Sun, 30 Aug 2020 23:39:08 +0200 From: Stephen Berman To: Nicolas Goaziou Subject: Re: bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property References: <877hchfs23.fsf@gmail.com> Date: Sun, 30 Aug 2020 23:39:07 +0200 In-Reply-To: <877hchfs23.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 02 Mar 2011 16:41:40 +0100") Message-ID: <874koj24qs.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:SiJ/EamovSXg+nKlnn+VXn3RAIxP01mx2YEac846yCzHuFVoufE ZeQzrP4xaqB2zuXmbom2YPg/uNaKuaOPoh6ov1Otvkpvst/xDmsBhwHSa2uals6LhqrLHQU usKVUd0GqiogC+9U2QJLjMWdu/1hGhnoAQiKjGLNPzRcIcrjoFF8GTkAIPgo/f4RGQMh8fQ T/bJFg4ZQmYfY0GC/CQDA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rRlHmu5aEX4=:CuYgYiskgIIY/tQ0gY3CBN ZKJ0lWz0wvbWKiAWdx1aSJL9qc2w+04wG4Asr/499b3kiIbqx/AYCSgBJDqPlif6F+7orOxB7 yjSneQ/5WewNpwL/ZIEQsEfJhf8VPifNsuGstN/KJBpfg4AKtYnRREMsOj20gzCWh6E5AkFhM 7hPA08WOmh8QWeRpr4q4193ZYnbWRmfcVyorcUNJmaSWoY1Qq0UUWTzPw3Lah7eEunumBEAqY 8kcQyGPSHRPPbrgxYq/nmRQokOBXish7x8qoviO21skuDu1USF7928AG+mi8hCmyHLzhatd5X nQfeBvAnaFFnUaeVZT8LMkZXeyuBQ7ekfhY5Bez3BzShE8Z6+3v0RB8TAbZkyU96Gsb4HFj0m slCZtLavXLSu9HRMZ1NL1qPT6TSiznJ3/ilviA1GwnFawYdwWQMaa68TgMvGRaZb5SXJjCS1+ 89Pi9ati1EueztELG5NRVQwGEVSefa60H157Xo2CLYOlA79Zh9VcpDOcQIWF5kKXTGYJkiYqg zKng8ejJX9qOCWx5q9vcviEGpjB1u7F8zaz25TwM16VuYya61RAJRETchsxjn6KS0ypLxdbPt iTqOpoJzGUwFQ4l+c1WPewkaF3ufZPQaiKJDRVL5RurCfTQPdF3SznTHZ++6Ih+MHDkrvrKRW LlfCL7L8whOIcuQJf/38vuXJ1Q3XhHgNiFfe7kCpO3hTweXmIl62oMeFHYH0ZTG+fV3NjfBYJ cOEzyDkgNwt+4OcMTN1aN9B6vF3uTUwZhOumSfJJ5EtlAgjsI6nrh6azmEtnD3anrp2bpjcfP Ai9i0a4aED9vtUJqM/rZoIqFcvaDHXLsPSzXYVsg1U8uySjsRN0yT3BQ+Y8sRNhnL6EAX7yLu pRLOVNjAk3DumnKQSkDU/hjlc+nkYgg6JN22C4DwxA7BT6e2+0BAGvNZ7xhGPmzXbIGMw5/hZ veyD5aaOJ2DiibtssZo4Nt1iJlRxhaEQCDaCxtHnUJWGjMmHXJQbjTgMP5hOH4JQVQiEaj+ip xFGE0txKoPHHfEZZ3rhcAb8SFM9crj6HiCLdphTqWfRVpQCfYmOZMCkg9O2/lLXNYZ+7hro0f LmHlapKjxGpfchdl8YjiGYITlh8LcAbeFO2RUNIz/e/Bb+u8KNO2soH6OVvpE/1HAF+TaGBvs cblLgYCg+QFzr8WfzsRBDvAPNUHcHaHpFATjK92fYJfOpcrkFcSQ7exdIqKi6qWSlcVJVRaP0 2mO+IkT+e2ilZIYkWPV36DLvfWOsTC4h459YfLA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 8155 Cc: 8155@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.7 (-) On Wed, 02 Mar 2011 16:41:40 +0100 Nicolas Goaziou wrote: > From `emacs -Q', C-x b whatever to open a new buffer. Then M-x > visual-line-mode. Now fill a bit more than a screenfull of text without > inserting a newline. Eventually use (put-text-property 1 (point-max) > 'wrap-prefix " "). > > Now, going from (point-min), use C-n to move down. Near the end of that > huge paragraph, C-n will not keep a constant column. In the same area, > C-e and C-a will change line. C-p will go through the same path as C-n, > thus not keeping the first column as well. I can reproduce this in GNU/Linux on current master (at commit 0bbc84630). > Under certain conditions that I have yet to find (but related to that > property and visual-line-mode), `next-line', when reaching the last line > of the window, will put point back in the middle of the screen while > keeping the same buffer portion visible (so it's a loopback, as the next > part of the buffer is never shown). When it happens, the cursor is stuck > forever in that loop if the user keep moving with `next-line'. This > doesn't happen with C-p, and C-v can get out of the loop. I haven't been able to reproduce this yet. > In GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) > of 2010-05-08 on pidsley.hoetzel.info I also have some additional observations: - The erratic cursor movement also happens when visual-line-mode is enabled _without_ adding the wrap-prefix property, and with much less than a screenful of text: 0. emacs -Q 1. Switch to a new buffer, e.g., C-x b a RET 2. Insert this text without any line breaks: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 3. M-x visual-line-mode 4. Starting from (point-min), type C-n four times. => Point is now at 310, before the last word 'eu' of the fourth visual line, corresponding to visual column 77 of that line. 5. Typing C-n again puts point before the next word 'fugiat', the first word of the fifth visual line at visual column 1, and another C-n puts point at visual column 1 of the sixth visual line. Typing C-p returns point to visual column 77 of the fourth visual line. 6. Repeat step 4, and then type C-a, which moves point to visual column 1 of visual line 4, then type C-e, which moves point to 309, visually in the space between 'dolore' and 'eu' in visual line 4. 7. Type C-n again. => Point is now at 386, before the 'n' of 'sunt' in visual line 5, corresponding to visual column 73. 8. Type C-p. => Point is now at 231, befor the last character '.' of visual line 3, corresponding to column 76. 5. Type a space at the end of the text and insert another copy of the text, so that there are now 12 visual lines. 6. Repeat step 4 and then type C-n three more times. => Point is now at 465, before the last word 'sit' of visual line 6. 7. Type C-n three more times. => Point is now at 609, before the first letter of the last word on visual line 9, at visual column 62. 8. Type C-n again. => Point is now at 684, before the first letter of the third to last word on visual line 10, at visual column 62. 9. Type C-n again. => Point is now at 689, before the first letter of the second to last word on visual line 10, at visual column 67. I have also observed that the positions after C-n as reported above may be differen when other commands intervenes (already noted with C-a and C-e, but also e.g. sometimes 'M-: (point)'). - Using the mouse is also effected by visual-line-mode: 10. With the buffer as before step 4 above, clicking mouse-1 anywhere before position 310 puts point at the position clicked, as usual. => But trying to click at any position after 309 put point three positions (columns) before the position clicked on, e.g., clicking on the first visual column of visual line 5 locates point at 311, before the last character of visual line 4. 11. Likewise, trying to select a region with the mouse shows a corresponding lag between the region end and the mouse pointer, e.g., clicking with mouse-1 on a position before 309 in visual line 4, and dragging the mouse while holding down mouse-1 to the end of visual line 4 -- but not dragging the mouse below visual line 4 -- selects a region that ends at 309. Only when the mouse is dragged below line 4 is the region then extended, but its end is three columns before the location of the mouse pointer. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 03 09:07:01 2020 Received: (at 8155) by debbugs.gnu.org; 3 Sep 2020 13:07:01 +0000 Received: from localhost ([127.0.0.1]:33966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDoxA-0006ul-V7 for submit@debbugs.gnu.org; Thu, 03 Sep 2020 09:07:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDox9-0006uY-1Z for 8155@debbugs.gnu.org; Thu, 03 Sep 2020 09:06:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36841) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDox3-0004Nr-MU; Thu, 03 Sep 2020 09:06:53 -0400 Received: from [176.228.60.248] (port=4372 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kDox2-00014n-UI; Thu, 03 Sep 2020 09:06:53 -0400 Date: Thu, 03 Sep 2020 16:06:39 +0300 Message-Id: <83pn73ui00.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <874koj24qs.fsf@gmx.net> (message from Stephen Berman on Sun, 30 Aug 2020 23:39:07 +0200) Subject: Re: bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property References: <877hchfs23.fsf@gmail.com> <874koj24qs.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8155 Cc: 8155@debbugs.gnu.org, Yuan Fu , n.goaziou@gmail.com 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: Stephen Berman > Date: Sun, 30 Aug 2020 23:39:07 +0200 > Cc: 8155@debbugs.gnu.org > > On Wed, 02 Mar 2011 16:41:40 +0100 Nicolas Goaziou wrote: > > > From `emacs -Q', C-x b whatever to open a new buffer. Then M-x > > visual-line-mode. Now fill a bit more than a screenfull of text without > > inserting a newline. Eventually use (put-text-property 1 (point-max) > > 'wrap-prefix " "). > > > > Now, going from (point-min), use C-n to move down. Near the end of that > > huge paragraph, C-n will not keep a constant column. In the same area, > > C-e and C-a will change line. C-p will go through the same path as C-n, > > thus not keeping the first column as well. > > I can reproduce this in GNU/Linux on current master (at commit 0bbc84630). I could not. Maybe the recipe needs to be more specific, e.g. to specify the text to be inserted. > - The erratic cursor movement also happens when visual-line-mode is > enabled _without_ adding the wrap-prefix property, and with much less > than a screenful of text: This I _could_ reproduce, but only on master. It was introduced by the changes that added support for word-wrap-by-category, which had a subtle logic error. So this bug is very recent, and almost certainly has nothing to do with the one discussed here from the beginning. That original bug was either solved long ago, or rears its ugly head only in some very subtle situations, which would explain why I cannot reproduce it. > I have also observed that the positions after C-n as reported above > may be differen when other commands intervenes (already noted with C-a > and C-e, but also e.g. sometimes 'M-: (point)'). > > - Using the mouse is also effected by visual-line-mode: All of the problems you describe are due to a single incorrect 'if' clause deep in the bowels of the display code. It should be fixed now. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 07 07:58:49 2020 Received: (at 8155) by debbugs.gnu.org; 7 Sep 2020 11:58:49 +0000 Received: from localhost ([127.0.0.1]:48285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFFnM-00066v-Mq for submit@debbugs.gnu.org; Mon, 07 Sep 2020 07:58:48 -0400 Received: from mout.gmx.net ([212.227.17.21]:60583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFFnK-00066h-Fu for 8155@debbugs.gnu.org; Mon, 07 Sep 2020 07:58:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599479918; bh=godyF0roUY8rGzpPKJDebegcoaf8Mm9SvHZGu6XexBY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Ii3jTXeU37G5K/3tAwOUYHpD1bZAP8mmxfiVPs+d8RuKap8IpWkL/G9uZpq9t5ySN LC3qZ7qxTYd3/DLVZiRQnXiXFhXjLmzic0e+m1r6GXthAhux+PlFEndpoR9CWeMgoP UEl5XQIfCSjrJackSSoIvsJn+UL2S/ektyWSuzj8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.208.169]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7zBb-1kbAab1mLb-0153Dw; Mon, 07 Sep 2020 13:58:38 +0200 From: Stephen Berman To: Eli Zaretskii Subject: Re: bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property References: <877hchfs23.fsf@gmail.com> <874koj24qs.fsf@gmx.net> <83pn73ui00.fsf@gnu.org> Date: Mon, 07 Sep 2020 13:58:36 +0200 In-Reply-To: <83pn73ui00.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Sep 2020 16:06:39 +0300") Message-ID: <871rjd4x3n.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:4a8nMQJbDFtb6bG4G9QmGQ8EnVeeX/yzFNIKfUKFwI9bUVTvPkq 9mCyYaRQtpDB+HvY5A+SWaTY7CBGGL7XUvUaEZHsyBYLN1zVaHSiTfI0qgdKGmNQxYZt+hm V8GPkexXdLRED1+Oe00ljYs+9jyaDaCu7V3xPz1F/b5RkhG+6V6Rt/yks3/flQei6XpZzd1 5o/N6bx3fiLDhxyewqPuQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ZphXLonkcM0=:G1PtIW8bP62IxBAvWOFbCf +sRfR52QUuOeOgBqRuUNApj5UgUh30tFAloKMLhSoUHnfpgDDUM6XU9rap+cPlQMbN/1uiu38 QyaFL0fQF3Ln8s2lJT0J6LZ7CM5DJoNzwsaF1bjKe0I3vW/ZD8ZUQTjmGsj/tLDIYywhaW1wH AfrdmwfZNTqbXGPUH1yKcysaCN8+ugtRZBbKjsS5NRv2pP4Sv8GdFlD/NzNg0pvJRQOYTol4F ft5/JDvawpYLIP3/e08mX12bcm6tvo1Yh9S/qg74pynraeZsJ2ovkJ7Kzz878QEBhKp3ZVVa6 BZYhh7S6B46JDAS+D6o2uDWvV+TCkC8lCz3lzEXxrUrc2nXtB0+gUW8C10YFIC8qoNlULdxR+ 79RU/v93PBTUiIUEBHXv+CSbStdnTUSILAWj+7AEMGJifvgToXSEM5KXv1RF2HFquwibd5uPo oiXdsX2bz1hlFMbvXDxBIugbYPyU75vrbqlSlqBJHC/V4rWQNh6wj1gGqNTrmjhOMcwWHDkWq aSuYJBvqKNoPaqGkTfBCoY9slvLiZaddVLviBk8cJ95stQM94M7fTDexZkOm5DOiZNIHK2uOz Ib+AYqACZ3jueCnmcFXI+cjp7h1FuMzmlphZs1zXR1IfnUpFaDpV96mDqDu3qLmPG1/2zzJr0 +xVxmg8GHog67azsj0fpoOFh1epFfBXLGBQnVKoSXTGfQWWer0cvOcPHrm27On7uacpq2oAzO cfh66TQWuvDCNakek6gHGLsIWQfVW8OJS+wWpnIa4Vrkr93N53v3qrpNdPle5b+i6PmwQuOdA 7UBtPvFNxMhzjOKMewnhuhFEH70k8U1FZ1UvYDq6aW+E3K63H7+KN3xJH53BcfRYFZJCaDfvs 4DXvSRDkdJUyZ4mFM6UImJp+iokx/Jj8U0xOET/1xLEU3MfQc2PHZUAWDUl8J+rJmpV2+W9we bnqISv55SfcG96202UzlUfrXruRVwSB3dNEC8HascjuCH1UO1aWG4DSMjg0p7jZdbdZOwFm2d vrVwO+sfXxTmAaxqgZoCExqXXS/QXRP0mhI3Ja+SRkvpfhqgDtF5jAzuxditmSx5M1a5vI5lV GZicwSzSJDllztwHdpoV1DGDyNxR8thm83Wqq3fEZNLVW8fex7vi+v8Z3kE/3eNQdHPsmLRXF 7IASBAurGrrraJY6z+ulxAUmt0chz3B8Fi7xA/rhYl9GSpVH46haJyYJNhymEsq77cKQjXgGu aFH70HzbpAvVEmT4dU1OlNXpmk8f/Pvz8dkZc6A== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 8155 Cc: 8155@debbugs.gnu.org, Yuan Fu , n.goaziou@gmail.com 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.7 (-) On Thu, 03 Sep 2020 16:06:39 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Date: Sun, 30 Aug 2020 23:39:07 +0200 >> Cc: 8155@debbugs.gnu.org >> >> On Wed, 02 Mar 2011 16:41:40 +0100 Nicolas Goaziou wrote: >> >> > From `emacs -Q', C-x b whatever to open a new buffer. Then M-x >> > visual-line-mode. Now fill a bit more than a screenfull of text witho= ut >> > inserting a newline. Eventually use (put-text-property 1 (point-max) >> > 'wrap-prefix " "). >> > >> > Now, going from (point-min), use C-n to move down. Near the end of th= at >> > huge paragraph, C-n will not keep a constant column. In the same area= , >> > C-e and C-a will change line. C-p will go through the same path as C-= n, >> > thus not keeping the first column as well. >> >> I can reproduce this in GNU/Linux on current master (at commit 0bbc8463= 0). > > I could not. Maybe the recipe needs to be more specific, e.g. to > specify the text to be inserted. I guess I was mistaken in thinking what I saw was the same thing Nicolas described: in trying to reproduce it again I find the column changing already only a few lines down from the begining (which I assume is due to the new bug you fixed), not just near the end of the paragraph. >> - The erratic cursor movement also happens when visual-line-mode is >> enabled _without_ adding the wrap-prefix property, and with much less >> than a screenful of text: > > This I _could_ reproduce, but only on master. It was introduced by > the changes that added support for word-wrap-by-category, which had a > subtle logic error. So this bug is very recent, and almost certainly > has nothing to do with the one discussed here from the beginning. > That original bug was either solved long ago, or rears its ugly head > only in some very subtle situations, which would explain why I cannot > reproduce it. Indeed, I had neglected to check with Emacs 27, but now did that and do not see the problem there. >> I have also observed that the positions after C-n as reported above >> may be differen when other commands intervenes (already noted with C-= a >> and C-e, but also e.g. sometimes 'M-: (point)'). >> >> - Using the mouse is also effected by visual-line-mode: > > All of the problems you describe are due to a single incorrect 'if' > clause deep in the bowels of the display code. It should be fixed > now. Indeed, after rebuilding with your change, I confirm that that problems I described are gone. Thanks! (And I far as I'm concerned this bug can be closed as fixed.) Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 07 10:36:59 2020 Received: (at 8155-done) by debbugs.gnu.org; 7 Sep 2020 14:36:59 +0000 Received: from localhost ([127.0.0.1]:50385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIGR-00023g-HY for submit@debbugs.gnu.org; Mon, 07 Sep 2020 10:36:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIGP-00023R-18 for 8155-done@debbugs.gnu.org; Mon, 07 Sep 2020 10:36:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42945) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFIGJ-0008U1-Eo; Mon, 07 Sep 2020 10:36:51 -0400 Received: from [176.228.60.248] (port=4197 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kFIGI-0006s0-Ox; Mon, 07 Sep 2020 10:36:51 -0400 Date: Mon, 07 Sep 2020 17:36:47 +0300 Message-Id: <834ko9odq8.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <871rjd4x3n.fsf@gmx.net> (message from Stephen Berman on Mon, 07 Sep 2020 13:58:36 +0200) Subject: Re: bug#8155: 23.2; erratic cursor movement with visual-line-mode and wrap-prefix property References: <877hchfs23.fsf@gmail.com> <874koj24qs.fsf@gmx.net> <83pn73ui00.fsf@gnu.org> <871rjd4x3n.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 8155-done Cc: casouri@gmail.com, 8155-done@debbugs.gnu.org, n.goaziou@gmail.com 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: Stephen Berman > Cc: n.goaziou@gmail.com, 8155@debbugs.gnu.org, Yuan Fu > Date: Mon, 07 Sep 2020 13:58:36 +0200 > > > All of the problems you describe are due to a single incorrect 'if' > > clause deep in the bowels of the display code. It should be fixed > > now. > > Indeed, after rebuilding with your change, I confirm that that problems > I described are gone. Thanks! (And I far as I'm concerned this bug can > be closed as fixed.) Thanks, done. From unknown Sun Jun 22 07:28:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Oct 2020 11:24:07 +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