From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#16961: left-char moves to beginning of line; visual-order-cursor-movement Date: Fri, 7 Mar 2014 10:52:38 -0500 Message-ID: <974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_6CFEBC3F-B3E0-4742-BE37-418D8F8317E5" X-Trace: ger.gmane.org 1394207656 12986 80.91.229.3 (7 Mar 2014 15:54:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2014 15:54:16 +0000 (UTC) Cc: markoilcan@gmail.com To: 16961@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 07 16:54:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLx6K-0001N9-9L for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 16:54:20 +0100 Original-Received: from localhost ([::1]:37160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx6J-0005Wz-FO for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Mar 2014 10:54:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx6A-0005Uz-8s for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:54:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLx64-00016S-Dm for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:54:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLx64-00016M-AZ for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2014 10:54:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WLx63-0002Kb-DM; Fri, 07 Mar 2014 10:54:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: "Debbugs-submit" Resent-CC: markoilcan@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Mar 2014 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16961 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs X-Debbugs-Original-Xcc: markoilcan@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.13942075918868 (code B ref -1); Fri, 07 Mar 2014 15:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Mar 2014 15:53:11 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86624 Archived-At: --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--