help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Function that return visible to user region and performing action on


From: Stefan Monnier
Subject: Re: Function that return visible to user region and performing action on demand.
Date: Mon, 29 Oct 2012 10:26:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

>   How can I determine if selected buffer shown in any frame or in selected
>   frame?

get-buffer-window?

>   How can I get visible to user region of buffer?

window-start, window-end?

>   That practices was used for delayed buffer processing? More concrete is the
>   case then my code need highlight or hide text but only in portion that will
>   be visible to user on display (not strictly to visible part, a few more is
>   acceptable). Is that delayed practice have sense?

You can use jit-lock-register or font-lock-keywords, which will call you
back whenever something that hasn't yet been highlighted needs to
be highlighted.


        Stefan


reply via email to

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