GNU bug report logs - #3396
next-line and previous-line do not work correctly near long lines

Previous Next

Package: emacs;

Reported by: "Shannon Jones" <cz2s20d02 <at> sneakemail.com>

Date: Wed, 27 May 2009 01:20:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3396 in the body.
You can then email your comments to 3396 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3396; Package emacs. (Wed, 27 May 2009 01:20:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Shannon Jones" <cz2s20d02 <at> sneakemail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 27 May 2009 01:20:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Shannon Jones" <cz2s20d02 <at> sneakemail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: next-line and previous-line do not work correctly near long lines
Date: 27 May 2009 01:13:30 -0000
This is similar to bug#3386 posted by Heinrich Rommerskirchen.  It's somewhat different, so I decided to post a new bug report.

* Emacs version: GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.10.4) of 2009-05-26

Also reproduced on 23.0.94.1 on Windows.

* Compiled on CentOS 5.3.

* No options given to configure

* To reproduce:

Run: emacs -Q (happens with or without -nw)
C-x b *scratch*
C-u 1000 X
<RET>

This will put 1000 X's on the screen and the cursor will be on the line below them.  The line of X's should wrap over several lines of the screen with continuation marks at the end of each line.

Hit C-p. This *should* put the cursor at the beginning of the line of X's.  Instead, it puts the cursor at the left column on the screen, but somewhere in the middle of the line of X's.  Hitting C-p again a few times moves the cursor somewhere else on the line, but still at the left-most column. Hitting C-n now should move you to the beginning of the next physical line (the blank one after the X's), but instead moves you somewhere else on the line of X's (but still in the first column).

In other words, next-line and previous-line should move relative to physical lines in the file, but are instead moving relative to lines on the screen.  Changing the screen width changes the behavior of C-n and C-p when the lines are long enough to wrap.

This is different from Emacs 22.  I noticed this when writing macros that do something to one line, then move to the next line at the end macro to prepare for the next run.  The macro failed on lines that were longer than my screen width.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3396; Package emacs. (Wed, 27 May 2009 05:05:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jason Rumney <jasonr <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 27 May 2009 05:05:07 GMT) Full text and rfc822 format available.

Message #10 received at 3396 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Shannon Jones <cz2s20d02 <at> sneakemail.com>, 3396 <at> debbugs.gnu.org
Subject: Re: bug#3396: next-line and previous-line do not work correctly near
 long lines
Date: Wed, 27 May 2009 12:58:15 +0800
Shannon Jones wrote:
> Hit C-p. This *should* put the cursor at the beginning of the line of X's.  Instead, it puts the cursor at the left column on the screen, but somewhere in the middle of the line of X's.

This is intentional, see etc/NEWS under the heading "Editing Changes in 
Emacs 23.1".


> This is different from Emacs 22.  I noticed this when writing macros that do something to one line, then move to the next line at the end macro to prepare for the next run.  The macro failed on lines that were longer than my screen width.
>   

The effect of this change on keyboard macros is currently being 
discussed on emacs-devel.




bug closed, send any further explanations to "Shannon Jones" <cz2s20d02 <at> sneakemail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 26 Jan 2010 18:42:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 24 Feb 2010 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.