all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Vertical cursor movement in Emacs 23.1
@ 2009-12-07  6:23 D Yong
  2009-12-07 13:41 ` Teemu Likonen
  2009-12-07 15:59 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: D Yong @ 2009-12-07  6:23 UTC (permalink / raw
  To: help-gnu-emacs

Hello,

I recently upgraded from Emacs 21.3 to 23.1 on my Windows computer and
noticed that the cursor movement is now different in version 23.1.

When I use the arrow keys to move the cursor vertically from one line
to the next, the cursor does not stay in the same column *unless* the
previous key press was an up or down arrow.

Example: Say I have a buffer fill of text lines all the same length. I
click my mouse to position the cursor somewhere in the middle of the
text. If press "left up up up" or "right up up up" then the cursor
will move *left* one column and up one row after the first "up" key
but then remain in the same column for all subsequent "up" key
presses.

A similar thing will happen if I press "[backspace] up up up" or "q up
up up". The cursor will move left and up for the first "up" keypress,
then stay in the same column for all subsequent "up" key presses.

This is not the same thing as using picture-mode to maintain the same
column number when moving the cursor vertically. I'm assuming here
that all of the lines of text are long enough that the same column
number can be maintained.

I can confirm that in Emacs 21.3 this did not happen. When moving the
cursor vertically, Emacs always tries to maintain the same column
number. I also do not think this is a matter of some strange mode I'm
using or strange configuration. I can reproduce this behavior with
no .emacs file and while editing in the scratch buffer.

Can someone confirm that this is the case, or better yet, tell me how
to fix this strange behavior so that emacs will maintain the same
column when moving the cursor vertically from one line to the same?

Thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vertical cursor movement in Emacs 23.1
  2009-12-07  6:23 Vertical cursor movement in Emacs 23.1 D Yong
@ 2009-12-07 13:41 ` Teemu Likonen
  2009-12-07 15:59 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Teemu Likonen @ 2009-12-07 13:41 UTC (permalink / raw
  To: help-gnu-emacs

On 2009-12-06 22:23 (-0800), D. Yong wrote:

> I recently upgraded from Emacs 21.3 to 23.1 on my Windows computer and
> noticed that the cursor movement is now different in version 23.1.
>
> When I use the arrow keys to move the cursor vertically from one line
> to the next, the cursor does not stay in the same column *unless* the
> previous key press was an up or down arrow.

Seems like you have found this bug:

    "next-line and previous-line don't keep the column in
    text-scale-mode"

    http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3668

> Can someone confirm that this is the case, or better yet, tell me how
> to fix this strange behavior so that emacs will maintain the same
> column when moving the cursor vertically from one line to the same?

I, too, wish someone would fix the bug. :-)

If you have more information, please add it the the bug report. Just
send mail to address <3668 [at] emacsbugs.donarmstrong.com>.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vertical cursor movement in Emacs 23.1
  2009-12-07  6:23 Vertical cursor movement in Emacs 23.1 D Yong
  2009-12-07 13:41 ` Teemu Likonen
@ 2009-12-07 15:59 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-12-07 15:59 UTC (permalink / raw
  To: help-gnu-emacs

> Example: Say I have a buffer fill of text lines all the same length. I
> click my mouse to position the cursor somewhere in the middle of the
> text. If press "left up up up" or "right up up up" then the cursor
> will move *left* one column and up one row after the first "up" key
> but then remain in the same column for all subsequent "up" key
> presses.

Sounds like a bug.  Please report it via M-x report-emacs-bug.  Try to
make sure you provide a concrete test-case starting from "emacs -Q".


        Stefan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-07 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07  6:23 Vertical cursor movement in Emacs 23.1 D Yong
2009-12-07 13:41 ` Teemu Likonen
2009-12-07 15:59 ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.