From unknown Mon Jun 23 23:49:10 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#16148 <16148@debbugs.gnu.org> To: bug#16148 <16148@debbugs.gnu.org> Subject: Status: Cursor stuck on line ending w/ visual-order-cursor movement - move-point-visually fails. Reply-To: bug#16148 <16148@debbugs.gnu.org> Date: Tue, 24 Jun 2025 06:49:10 +0000 retitle 16148 Cursor stuck on line ending w/ visual-order-cursor movement -= move-point-visually fails. reassign 16148 emacs submitter 16148 David Reitter severity 16148 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 14 12:54:26 2013 Received: (at submit) by debbugs.gnu.org; 14 Dec 2013 17:54:26 +0000 Received: from localhost ([127.0.0.1]:50294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrtQ1-0002Yp-EI for submit@debbugs.gnu.org; Sat, 14 Dec 2013 12:54:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56043) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VrtPv-0002Ye-O7 for submit@debbugs.gnu.org; Sat, 14 Dec 2013 12:54:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrtPn-0002gm-2C for submit@debbugs.gnu.org; Sat, 14 Dec 2013 12:54:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrtPm-0002gh-V2 for submit@debbugs.gnu.org; Sat, 14 Dec 2013 12:54:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrtPe-0007Nm-F0 for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 12:54:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrtPW-0002fX-1h for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 12:54:02 -0500 Received: from mail-qe0-x229.google.com ([2607:f8b0:400d:c02::229]:44589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrtPV-0002fQ-ST for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 12:53:53 -0500 Received: by mail-qe0-f41.google.com with SMTP id gh4so2726623qeb.28 for ; Sat, 14 Dec 2013 09:53:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=GV0Gj7k4TVPGqJkN19lkzN9mLQmrDVmnFAJxvwhlkkE=; b=aBjrGEMXIacJXWjPlJYK+12N9uJuXt5WbyAWOD79fWXWrrNDI+QmZGJ3C7hkBCDf9y hTie5qez9LbHCxOMPV73nGd3LBeM+ZWLyrbWhTWUzBYxRI7J/HOj7OqlesSY72y0jPmp OU1VC5UmTlpZnPQkNX/fHFkXgZ//QQRTF/6SGosc9RpuKgVIgVjznSplmafc0x+uw7h0 Vclh/JKNvHHGLxJI/UQOl9+mJNYUu8ofU9BK1Xp4MIeGkGrN/3flBSlFgqS36uP5XRMa R+UOM4z5WK2+gSSKEKYm6sWcOp+Ur5pxTZ/hL6XPwRml3WoWyfQ3IIu36/ceZEEtNiWE GHmQ== X-Received: by 10.224.39.15 with SMTP id d15mr16841402qae.36.1387043632989; Sat, 14 Dec 2013 09:53:52 -0800 (PST) Received: from [10.0.1.15] (c-67-171-71-38.hsd1.pa.comcast.net. [67.171.71.38]) by mx.google.com with ESMTPSA id f19sm22025832qaq.12.2013.12.14.09.53.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 14 Dec 2013 09:53:52 -0800 (PST) From: David Reitter Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Cursor stuck on line ending w/ visual-order-cursor movement - move-point-visually fails. Message-Id: <53044678-73E7-46F4-88CE-33D2F2EC3E59@gmail.com> Date: Sat, 14 Dec 2013 12:53:51 -0500 To: Bug-Gnu-Emacs Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) X-Mailer: Apple Mail (2.1812) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) With a certain combination of settings, cursor movement to the left = fails at the (right) end of lines: Emacs -Q -nw [Enter and evaluate the following:] (whitespace-newline-mode 1) (global-hl-line-mode 1) (setq visual-order-cursor-movement t) [Then press left-arrow repeatedly. Cursor will get "stuck" on a line = ending.] Further observations: - the "-nw" is not necessary - this is just to simplify things. - `hl-line-mode' alone does not suffice - it has to the be = `global-hl-line-mode'. Second, simpler recipe: Emacs -Q -nw [Enter and evaluate the following:] (whitespace-newline-mode 1) Place cursor at end of line, then M-: (move-point-visually -1) RET. Nothing happens. In GNU Emacs 24.3.50.3 (x86_64-apple-darwin13.0.0, NS = apple-appkit-1265.00) of 2013-12-07 on momo [git revision 9d4f4d00978ceed46c4c30fe41c258716f9e042e - last change Sat = Dec 7 20:46] Configured using: `configure --with-ns' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction= From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 14 14:37:38 2013 Received: (at 16148-done) by debbugs.gnu.org; 14 Dec 2013 19:37:38 +0000 Received: from localhost ([127.0.0.1]:50326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrv1t-0005RE-OG for submit@debbugs.gnu.org; Sat, 14 Dec 2013 14:37:38 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:44713) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrv1p-0005R1-Eg for 16148-done@debbugs.gnu.org; Sat, 14 Dec 2013 14:37:34 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MXT00K00AFWLK00@a-mtaout20.012.net.il> for 16148-done@debbugs.gnu.org; Sat, 14 Dec 2013 21:37:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXT00KGWAII7ZA0@a-mtaout20.012.net.il>; Sat, 14 Dec 2013 21:37:31 +0200 (IST) Date: Sat, 14 Dec 2013 21:37:35 +0200 From: Eli Zaretskii Subject: Re: bug#16148: Cursor stuck on line ending w/ visual-order-cursor movement - move-point-visually fails. In-reply-to: <53044678-73E7-46F4-88CE-33D2F2EC3E59@gmail.com> X-012-Sender: halo1@inter.net.il To: David Reitter Message-id: <83a9g3fclc.fsf@gnu.org> References: <53044678-73E7-46F4-88CE-33D2F2EC3E59@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16148-done Cc: 16148-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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 (+) > From: David Reitter > Date: Sat, 14 Dec 2013 12:53:51 -0500 > > With a certain combination of settings, cursor movement to the left fails at the (right) end of lines: > > Emacs -Q -nw > > [Enter and evaluate the following:] > > (whitespace-newline-mode 1) > (global-hl-line-mode 1) > (setq visual-order-cursor-movement t) > > [Then press left-arrow repeatedly. Cursor will get "stuck" on a line ending.] Fixed. > - `hl-line-mode' alone does not suffice - it has to the be `global-hl-line-mode'. That's because move-point-visually uses 2 separate strategies, and the problem was only in one of them. You need to work very hard for move-point-visually to fall back on the second strategy, but the combination of the above 2 mode, each one of which is a redisplay optimizations killer, succeeded in doing just that. > Second, simpler recipe: > > Emacs -Q -nw > > [Enter and evaluate the following:] > > (whitespace-newline-mode 1) > > Place cursor at end of line, then M-: (move-point-visually -1) RET. > Nothing happens. This is the same problem (M-: also forces move-point-visually to use the 2nd strategy), so it is also fixed. Thanks. From unknown Mon Jun 23 23:49:10 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, 12 Jan 2014 12:24:04 +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