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: Sun, 05 Dec 2021 12:34:58 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: dick.r.chiang@gmail.com,  emacs-devel@gnu.org
> Date: Sun, 05 Dec 2021 17:31:03 +0800
> 
> >> Also, where should I put the code to test if cursor is invisible?  I
> >> think it should be after the label force_start, as forcing the start
> >> could potentially adjust point to be inside the window.
> >
> > It goes back to the same question I asked above: why do you need to
> > know that point is outside of the window? for what purposes?
> >
> > IOW, why not just let redisplay do its thing, without bothering to
> > bring point into the window, when that is allowed?
> 
> I need to erase the phys cursor and to tell display_and_set_cursor to
> not draw it: otherwise, the ghost of the cursor remains on-screen even
> after point is moved out.

Which probably means you need to put the code which determines whether
point is inside or outside of the window in update_window or
thereabouts?



reply via email to

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