emacs-devel
[Top][All Lists]
Advanced

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

Re: Distinguishing: Temporary v. Semi-Permanent -- Horizontal Scrolling


From: Eli Zaretskii
Subject: Re: Distinguishing: Temporary v. Semi-Permanent -- Horizontal Scrolling
Date: Sun, 24 Jun 2018 17:26:10 +0300

> Date: Sat, 23 Jun 2018 20:49:26 -0700
> From: Keith David Bershatsky <address@hidden>
> 
>   bool hscl = (!it->w->suspend_auto_hscroll
>                && EQ (Fbuffer_local_value (Qauto_hscroll_mode, buf), 
> Qcurrent_line)
>                && it->w->hscroll > 0);
> 
> I am now moving on to deal with a situation where horizontal scrolling is 
> semi-permanent.  In this situation (C-u C-x <), hscl is true.  So that test 
> is insufficient here.
> 
> What test, please, would be appropriate to determine whether semi-permanent 
> (c-u C-x <) is in effect?

"C-x <" sets the window's min_hscroll field to a positive value.
That's how its effect is made more "permanent".

> And, is it correct to assume that the current line will never be horizontally 
> scrolled differently when semi-permanent (C-u X-x <) is in effect?

I don't understand the question.  Differently from what?



reply via email to

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