emacs-devel
[Top][All Lists]
Advanced

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

Re: Allowing point to be outside the window?


From: Eli Zaretskii
Subject: Re: Allowing point to be outside the window?
Date: Sat, 04 Dec 2021 15:41:20 +0200
User-agent: K-9 Mail for Android

On December 4, 2021 3:19:57 PM GMT+02:00, Po Lu <luangruo@yahoo.com> wrote:
> dick <dick.r.chiang@gmail.com> writes:
> 
> > PL> +  if (!keep_point_visible
> > PL> +      && (!w->cursor_visible_p
> > PL> +         || w->cursor.vpos == -1)
> > PL> +      && w->phys_cursor_on_p)
> 
> > The display code is already rife with a hundred state variables, all of
> > which invite laborious combinations of if-clauses to accommodate
> 
> I am aware of that.


But you could perhaps avoid a separate flag if you'd set w->cursor.vpos to a 
negative value when the cursor is outside of the window.



reply via email to

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