* Function that return visible to user region and performing action on demand.
@ 2012-10-28 19:34 Oleksandr Gavenko
0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Gavenko @ 2012-10-28 19:34 UTC (permalink / raw
To: help-gnu-emacs
When I playing with:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12747
I got questions:
How can I determine if selected buffer shown in any frame or in selected
frame?
How can I get visible to user region of buffer?
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?
Please advise me best practices or point to source code that implement
asked techniques.
--
Best regards!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Function that return visible to user region and performing action on demand.
[not found] <mailman.11876.1351452915.855.help-gnu-emacs@gnu.org>
@ 2012-10-29 14:26 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2012-10-29 14:26 UTC (permalink / raw
To: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-29 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.11876.1351452915.855.help-gnu-emacs@gnu.org>
2012-10-29 14:26 ` Function that return visible to user region and performing action on demand Stefan Monnier
2012-10-28 19:34 Oleksandr Gavenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.