unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: 16961@debbugs.gnu.org
Cc: markoilcan@gmail.com
Subject: bug#16961: left-char moves to beginning of line; visual-order-cursor-movement
Date: Fri, 7 Mar 2014 10:52:38 -0500	[thread overview]
Message-ID: <974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com> (raw)
In-Reply-To: CAARRV4TVSFiF+SKwpZyo4uE9AbB4P4D2GX2jJrn7j5Dw=gLYqQ@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 2034 bytes --]

X-Debbugs-cc: markoilcan@gmail.com

To reproduce this bug:

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.



Begin forwarded message:

> From: M A <markoilcan@gmail.com>
> Subject: cursor movement error
> Date: March 6, 2014 at 5:55:29 PM EST
> To: aquamacs-bugs@aquamacs.org
> 
> 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=-arch x86_64 -O3 -g
>  -mtune=corei7 -mmacosx-version-min=10.6' 'LDFLAGS=-arch x86_64 -O3 -g
>  -mtune=corei7 -mmacosx-version-min=10.6''
> 
> Important settings:
>   value of $LANG: en_US.UTF-8
>   locale-coding-system: utf-8-unix
>   default enable-multibyte-characters: t
> 
> 


[-- Attachment #2: Type: text/html, Size: 3715 bytes --]

       reply	other threads:[~2014-03-07 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAARRV4TVSFiF+SKwpZyo4uE9AbB4P4D2GX2jJrn7j5Dw=gLYqQ@mail.gmail.com>
2014-03-07 15:52 ` David Reitter [this message]
2014-03-07 20:03   ` bug#16961: left-char moves to beginning of line; visual-order-cursor-movement Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=974DC76B-2C9D-4A3A-90B8-EFEBA25D0885@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=16961@debbugs.gnu.org \
    --cc=markoilcan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).