GNU bug report logs - #10076
24.0.91; Automatic horizontal scrolling

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sat, 19 Nov 2011 18:27:01 UTC

Severity: normal

Found in version 24.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: dmoncayo <at> gmail.com
Cc: 10076 <at> debbugs.gnu.org
Subject: bug#10076: 24.0.91; Automatic horizontal scrolling
Date: Sat, 19 Nov 2011 21:54:26 +0200
> Date: Sat, 19 Nov 2011 21:16:00 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 10076 <at> debbugs.gnu.org
> 
> > Date: Sat, 19 Nov 2011 19:24:54 +0100
> > From: Dani Moncayo <dmoncayo <at> gmail.com>
> > 
> > Recipe from "emacs -Q":
> > 
> > 1. Type "C-p".
> > --> Without this, the bug does not show up.
> > 
> > 2. Type "C-u 2 C-x < SPC".
> > --> This scrolls the buffer two position to the left (ok).
> > 
> > 3. Type "C-p C-p".
> > --> The buffer automatically scrolls back to its original position,
> > which is wrong (see [a]).
> 
> This happens in Emacs 23.3 as well, so this isn't a regression.
> 
> I will try to take a look at it when I have time and see if it's
> something simple to fix.

I found an easy band-aid, and fixed this in revision 106431 on the
trunk.

(The fundamental problem here is that posn-at-point can return nil, if
point is invisible in the window, and line-move-visual doesn't handle
this situation.  Can point be invisible in some case that doesn't
involve hscroll?)




This bug report was last modified 13 years and 264 days ago.

Previous Next


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