[Top][All Lists]

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

Re: Changes in frame/window code

From: Eli Zaretskii
Subject: Re: Changes in frame/window code
Date: Tue, 29 Jul 2014 17:51:20 +0300

> Date: Tue, 29 Jul 2014 16:02:41 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden, address@hidden
>  >  . As soon as I click on the scroll-bar thumb, which is correctly
>  >    drawn flushed all the way to the right when point is an a R2L line,
>  >    the scroll bar "jumps" to the left edge.  Where's the code which
>  >    does that?
> I see the problem - it must be with auto-hscroll suspension.  This can
> be a bit hairy to get right.  The idea is that when you drag the slider
> and `point' is about to go off screen, usually auto-hscroll kicks in and
> moves the text back to the previous position to make `point' visible
> again (note that dragging the slider is not supposed to move `point').
> Now the suspend_auto_hscroll flag of a window, when set, is supposed to
> prevent that.  For some reason this seems to backfire here.

Why doesn't it backfire in the L2R case?  IOW, where's the code that
moves the slider back to the left edge of the scroll bar?

>   . The code below is for the selected window, where point is up to
>     date.  But what about non-selected windows, should we use
>     window-point there?
> There's no other choice I suppose.

I tried that, but then the feature stopped working altogether.  Maybe
I used the window point marker incorrectly, I don't know.

reply via email to

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