bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10024: 24.0.91; save-restriction fails to restore the screen


From: martin rudalics
Subject: bug#10024: 24.0.91; save-restriction fails to restore the screen
Date: Sun, 13 Nov 2011 15:09:52 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> But save-excursion also does not restore the window. It restores point
> (etc.). If a redisplay happens inside save-excursion, the window can
> scroll.

It _could_ scroll back to the initial position when, returning from the
excursion, point is off-screen.  Chances are that even the window-start
position after that is the same as before the excursion.  But there's
_no_ guarantee.  So you should restore the old position using something
like either `recenter' or `set-window-start'.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]