From unknown Tue Jun 17 20:14:05 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#16961 <16961@debbugs.gnu.org> To: bug#16961 <16961@debbugs.gnu.org> Subject: Status: left-char moves to beginning of line; visual-order-cursor-movement Reply-To: bug#16961 <16961@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:14:05 +0000 retitle 16961 left-char moves to beginning of line; visual-order-cursor-mov= ement reassign 16961 emacs submitter 16961 David Reitter severity 16961 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 10:53:10 2014 Received: (at submit) by debbugs.gnu.org; 7 Mar 2014 15:53:11 +0000 Received: from localhost ([127.0.0.1]:55040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLx5B-0002Iw-JG for submit@debbugs.gnu.org; Fri, 07 Mar 2014 10:53:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53103) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLx56-0002Id-O3 for submit@debbugs.gnu.org; Fri, 07 Mar 2014 10:53:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLx50-0000eh-Ez for submit@debbugs.gnu.org; Fri, 07 Mar 2014 10:53:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FREEMAIL_REPLY,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx50-0000ed-Bj for submit@debbugs.gnu.org; Fri, 07 Mar 2014 10:52:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx4u-00058s-FV for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:52:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLx4o-0000cL-J7 for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:52:52 -0500 Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:63567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx4o-0000cB-D1 for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:52:46 -0500 Received: by mail-qc0-f182.google.com with SMTP id e16so4778507qcx.41 for ; Fri, 07 Mar 2014 07:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:references:to:message-id :mime-version; bh=hRGj3f7AZX/CksHS0CZFAVXYm87HGLlADu1RHYeEm4I=; b=QfY5n2OrmdDMLEely5OE6udaK6JNCOUM7jBRHjtY/+95GR7EB1dhqhfohNLFPx+t0k 0GnFzHtRzp+r3syoHz3wPLc/9evHyQAhwRCftIvl6aasqhCcE7G4/yJq1f0UJHdUud7b suSpT06vzJYjwoWOW4koaiYEAHDI32bcjxkb7X3tnu4XLweeRLWsYsMfukphpMcHXoF/ wVFFZY/Ds9lzEZK1KyMrgCuxjdyCL682aHZDbtfND/7ZMpVm8+uvNGxUoXE1xyCmn4Pg eyqpFFQ7/jX5PZIbjnSUImMPrE1pPjrX5yyJJv67KVayQXzxNYjdKmnL6qabEcfD8Djo waTg== X-Received: by 10.224.60.71 with SMTP id o7mr21954980qah.38.1394207565807; Fri, 07 Mar 2014 07:52:45 -0800 (PST) Received: from [172.20.10.4] (252.sub-174-229-1.myvzw.com. [174.229.1.252]) by mx.google.com with ESMTPSA id 67sm13179884qgr.15.2014.03.07.07.52.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Mar 2014 07:52:41 -0800 (PST) From: David Reitter Content-Type: multipart/alternative; boundary="Apple-Mail=_6CFEBC3F-B3E0-4742-BE37-418D8F8317E5" Subject: left-char moves to beginning of line; visual-order-cursor-movement Date: Fri, 7 Mar 2014 10:52:38 -0500 References: To: Bug-Gnu-Emacs Message-Id: <974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) 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: -3.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 (----) --Apple-Mail=_6CFEBC3F-B3E0-4742-BE37-418D8F8317E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 X-Debbugs-cc: markoilcan@gmail.com To reproduce this bug: Start Emacs -Q (testing with mainline build dated Jan 29): Paste the following: =97=97snip (global-hl-line-mode) (setq visual-order-cursor-movement t) (visual-line-mode) asdasd =97=97snap Note that =93 asdasd=94 has a space at the beginning, and it needs to be = the last line of the buffer. Evaluate the first three expressions, place the text cursor at the end = of the buffer (that is, after =93asd=94). The line should be highlighted. Now press `left=92 (or do M-x = left-char). Point will jump to the beginning of the line. Expected behavior is that it would move by just one char. Begin forwarded message: > From: M A > Subject: cursor movement error > Date: March 6, 2014 at 5:55:29 PM EST > To: aquamacs-bugs@aquamacs.org >=20 > When pressing the left arrow key when global-hl-line-mode is enabled = and the cursor is at the very end of the buffer (no characters following = it, including \n) and there is a space earlier in the line, instead of = moving left a single characacter, the cursor moves a whole word. >=20 >=20 > To replicate this: > 1. Start aquamacs without customizations. > 2. M-x global-hl-line-mode. > 3. Type " testing" (note space before the word "testing"). > 4. Press left arrow key once. > At this point the cursor is to the left of the space character before = the word "testing" instead of before the letter "g". >=20 > In Aquamacs 3.0a GNU Emacs 24.3.50.2 > (x86_64-apple-darwin13.0.0, NS apple-appkit-1265.00) > of 2014-01-20 (Aquamacs-3.0a) on watson > Git revision: Aquamacs-3.0a > Operating System: OS X Version 10.7.5 (Build 11G63b) > Configured using: > `configure --with-ns --without-x 'CFLAGS=3D-arch x86_64 -O3 -g > -mtune=3Dcorei7 -mmacosx-version-min=3D10.6' 'LDFLAGS=3D-arch x86_64 = -O3 -g > -mtune=3Dcorei7 -mmacosx-version-min=3D10.6'' >=20 > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t >=20 >=20 --Apple-Mail=_6CFEBC3F-B3E0-4742-BE37-418D8F8317E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
X-Debbugs-cc: markoilcan@gmail.com
To reproduce this bug:

Start Emacs -Q = (testing with mainline build dated Jan = 29):

Paste the = following:

=97=97snip
(global-hl-l= ine-mode)
(setq visual-order-cursor-movement = t)
(visual-line-mode)

 asdasd
=97=97snap

Note that =93 asdasd=94 has a = space at the beginning, and it needs to be the last line of the = buffer.
Evaluate the first three expressions, place the text = cursor at the end of the buffer (that is, after = =93asd=94).

The line should be highlighted. =  Now press `left=92 (or do M-x = left-char).

Point will jump to the beginning of = the line.
Expected behavior is that it would move by just one = char.



Begin forwarded = message:

From: = M A <markoilcan@gmail.com>
Subject: cursor movement = error
Date: = March 6, 2014 at = 5:55:29 PM EST

When pressing the left arrow = key when global-hl-line-mode is enabled and the cursor is at the very = end of the buffer (no characters following it, including \n) and there = is a space earlier in the line, instead of moving left a single = characacter, the cursor moves a whole word.


To replicate this:
1. Start aquamacs without = customizations.
2. M-x global-hl-line-mode.
3. Type " testing" = (note space before the word "testing").
4. Press left arrow key = once.
At this point the cursor is to the left of the space character before = the word "testing" instead of before the letter "g".

In Aquamacs = 3.0a GNU Emacs 24.3.50.2
(x86_64-apple-darwin13.0.0, NS = apple-appkit-1265.00)
 of 2014-01-20 (Aquamacs-3.0a) on watson
Git revision: = Aquamacs-3.0a
Operating System: OS X Version 10.7.5 (Build = 11G63b)
Configured using:
 `configure --with-ns --without-x = 'CFLAGS=3D-arch x86_64 -O3 -g
 -mtune=3Dcorei7 -mmacosx-version-min=3D10.6' 'LDFLAGS=3D-arch = x86_64 -O3 -g
 -mtune=3Dcorei7 = -mmacosx-version-min=3D10.6''

Important settings:
  value = of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t



= --Apple-Mail=_6CFEBC3F-B3E0-4742-BE37-418D8F8317E5-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 07 15:04:00 2014 Received: (at 16961-done) by debbugs.gnu.org; 7 Mar 2014 20:04:01 +0000 Received: from localhost ([127.0.0.1]:55178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM0zw-0001OI-GA for submit@debbugs.gnu.org; Fri, 07 Mar 2014 15:04:00 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:61533) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WM0zt-0001O6-JA for 16961-done@debbugs.gnu.org; Fri, 07 Mar 2014 15:03:59 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N2300B000STHV00@a-mtaout22.012.net.il> for 16961-done@debbugs.gnu.org; Fri, 07 Mar 2014 22:03:56 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2300B8212J4QA0@a-mtaout22.012.net.il>; Fri, 07 Mar 2014 22:03:56 +0200 (IST) Date: Fri, 07 Mar 2014 22:03:53 +0200 From: Eli Zaretskii Subject: Re: bug#16961: left-char moves to beginning of line; visual-order-cursor-movement In-reply-to: <974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com> X-012-Sender: halo1@inter.net.il To: David Reitter Message-id: <83wqg5pyhi.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 8BIT References: <974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 16961-done Cc: 16961-done@debbugs.gnu.org, markoilcan@gmail.com 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: Fri, 7 Mar 2014 10:52:38 -0500 > Cc: markoilcan@gmail.com > > Start Emacs -Q (testing with mainline build dated Jan 29): > > Paste the following: > > ——snip > (global-hl-line-mode) > (setq visual-order-cursor-movement t) > (visual-line-mode) > > asdasd > ——snap > > Note that “ asdasd” has a space at the beginning, and it needs to be the last line of the buffer. > Evaluate the first three expressions, place the text cursor at the end of the buffer (that is, after “asd”). > > The line should be highlighted. Now press `left’ (or do M-x left-char). > > Point will jump to the beginning of the line. > Expected behavior is that it would move by just one char. HL Line Mode, the Mother Of All Evil... Fixed in trunk revision 116701. > > 1. Start aquamacs without customizations. > > 2. M-x global-hl-line-mode. > > 3. Type " testing" (note space before the word "testing"). > > 4. Press left arrow key once. > > At this point the cursor is to the left of the space character before the word "testing" instead of before the letter "g". Does this mean "Aquamacs without customizations" has visual-order-cursor-movement set to t? If so, I think it's not a good idea at all: that variable is user-level customization, it shouldn't be forced on the users. From unknown Tue Jun 17 20:14:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Apr 2014 11: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