From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Function that return visible to user region and performing action on demand. Date: Mon, 29 Oct 2012 10:26:46 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351521013 28463 80.91.229.3 (29 Oct 2012 14:30:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2012 14:30:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 15:30:22 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TSqM9-0008Gc-U8 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 15:30:22 +0100 Original-Received: from localhost ([::1]:56852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSqM1-0005h5-D0 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Oct 2012 10:30:13 -0400 Original-Path: usenet.stanford.edu!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx04.eternal-september.org; posting-host="9476eb3185f812e862f943f2f5680783"; logging-data="17094"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SRUUpwXShvIYHEIxR5NKE" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:AdKtP6eM2BcTueLgMrvz0aqNvYU= sha1:fqhAyp7RSNQ99ZCa3P8+QRPEQ8Y= Original-Xref: usenet.stanford.edu gnu.emacs.help:195154 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87483 Archived-At: > 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