emacs-devel
[Top][All Lists]
Advanced

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

Re: Feature request for extra configuration variable.


From: Yuan Fu
Subject: Re: Feature request for extra configuration variable.
Date: Wed, 4 May 2022 15:53:05 -0700


> On May 3, 2022, at 5:38 PM, Po Lu <luangruo@yahoo.com> wrote:
> 
> dalanicolai <dalanicolai@gmail.com> writes:
> 
>> When I try to use `(set-window-start ...)`, then for some reason 
>> subsequently setting `vscroll` does not work.
>> Setting vscroll does work after a `(redisplay)` but then the jump becomes 
>> very 'ugly'.
> 
> That is because the window start will be forced after the next
> redisplay.  The fix is to pass t as the `noforce' parameter to
> `set-window-start'.
> 
> If you're interested in this, I suggest to look at some of the code in
> pixel-scroll.el.
> 

We probably should mention set-window-vscroll in the documentation of 
set-window-start. It is currently impossible to know set-window-vscroll 
wouldn’t work after set-window-start without knowledge of Emacs redisplay 
internals.

Yuan


reply via email to

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