GNU bug report logs - #2694
23.0.91; C-p does not move point beyond the selective-display ellipses

Previous Next

Package: emacs;

Reported by: Daiki Ueno <ueno <at> unixuser.org>

Date: Tue, 17 Mar 2009 04:15:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Daiki Ueno <ueno <at> unixuser.org>
Cc: 2694-done <at> debbugs.gnu.org
Subject: Re: 23.0.91; C-p does not move point beyond the selective-display ellipses
Date: Wed, 18 Mar 2009 23:04:25 -0400
> (let ((buffer (generate-new-buffer "*test*")))
>   (pop-to-buffer buffer)
>   (setq visual-line-mode nil
>   selective-display t
>   truncate-lines t)
>   (insert "A\n"
>     (make-string (/ (window-width) 2) ?B) "\r"
>       (make-string (/ (window-width) 2) ?C) "\n")
>   (end-of-line 0))
>
> Your cursor will be placed at the end of line 2 (after "...").  Then
> even if you type C-p (previous-line) several times, the cursor stays at
> the same position.

I've checked in a fix.

This fix consists of reverting a change to the vertical-motion code made
in 2005.  I don't know the rationale for that change---the comments say
it's for dealing with selective-display, but it gives rise to the bug
you reported, and reverting it does not seem to cause any problems.
However, my tests are not conclusive, so if you could do some further
testing to make sure I did not reintroduce any problems, I'd appreciate
it.  Thanks.




This bug report was last modified 16 years and 127 days ago.

Previous Next


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