[Top][All Lists]

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

Re: Problems with non-zero scroll-margin

From: Kim F. Storm
Subject: Re: Problems with non-zero scroll-margin
Date: Wed, 06 Jul 2005 09:53:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     I would be VERY surprised if M-0 M-r suddenly started to scroll the
>     window.
>     Since move-to-window-line moves _point_ in the current window _without_
>     scrolling, I don't understand why it would ever consider scroll-margin.

I was wrong -- in fact, M-0 M-r should scroll if scroll-margin is > 0.

> If move-to-window-line does not consider the scroll-margin,
> M-0 M-r will put point on the text that is in line 0.
> Then the subsequent redisplay will scroll the screen because
> point should not be there.

Which is ok IMO.

> I was thinking of avoiding that result by making move-to-window-line
> put point on line 1 in that case.  More generally, it would not put
> point inside the scroll margin.

I think that is a very bad idea ... in fact it seems like an endless
source of errors...

People who set scroll-margin > 0 just have to avoid M-0 M-r

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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