[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: are there hooks for text becoming visible or hidden in a given windo
From: |
Eli Zaretskii |
Subject: |
Re: are there hooks for text becoming visible or hidden in a given window? |
Date: |
Fri, 25 Feb 2022 09:04:37 +0200 |
> Date: Thu, 24 Feb 2022 14:25:39 -0800
> From: Thomas Lord <lord@basiscraft.com>
>
> Is there a way to mark a region of text in a buffer, so that when that
> text becomes visible in any window, or when it stops being visible, a
> hook is called and provided the location of the text in the buffer, and
> the window in which its visibility has changed?
Please clarify what you mean by "visible" in this context. I mean not
a couple of examples, but an exhaustive, complete definition.
> Watching scroll events would only cover part of the problem
Which part it won't cover, in your opinion?
> and I'm worried about the interactive performance of having to
> frequently search the range of visible text for text with a certain
> property or within a certain overlay.
Why do you think this could be expensive? A typical window doesn't
show too much text.