Subject: bug#10076: 24.0.91; Automatic horizontal scrolling

From: Eli Zaretskii <[email-masked]>
Date: Sat, 19 Nov 2011 23:13:13 +0200

> From: Johan Bockgård <[email-masked]>
> Cc: [email-masked]
> Date: Sat, 19 Nov 2011 21:35:00 +0100
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > (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?)
> 
> It also happens during ordinary scrolling
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7046#23

The problem with posn-at-point returning nil is that you have no way
of knowing the horizontal position of point.

Does it help to call line-move-1 in line-move instead of
line-move-visual, when posn-at-point returns nil?