From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.devel Subject: hook into window's content flux? Date: Tue, 4 Apr 2006 09:50:12 -0400 (EDT) Message-ID: <20060404135012.23333816A@planetmath.cc.vt.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1144174475 29662 80.91.229.2 (4 Apr 2006 18:14:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2006 18:14:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 04 20:14:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQq2u-00012c-FF for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2006 20:14:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQq2t-0007RO-QK for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2006 14:14:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FQlvD-0007Ak-N1 for emacs-devel@gnu.org; Tue, 04 Apr 2006 09:50:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FQlvC-0007AQ-8r for emacs-devel@gnu.org; Tue, 04 Apr 2006 09:50:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQlvC-0007AN-3N for emacs-devel@gnu.org; Tue, 04 Apr 2006 09:50:14 -0400 Original-Received: from [198.82.161.133] (helo=planetmath.cc.vt.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FQlyU-0006fH-FQ for emacs-devel@gnu.org; Tue, 04 Apr 2006 09:53:38 -0400 Original-Received: by planetmath.cc.vt.edu (Postfix, from userid 1025) id 23333816A; Tue, 4 Apr 2006 09:50:12 -0400 (EDT) Original-To: emacs-devel@gnu.org X-Mailman-Approved-At: Tue, 04 Apr 2006 14:14:16 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52400 Archived-At: (This is a copy of a message I posted to help-gnu-emacs@gnu.org yesterday, haven't heard back yet. Anyone?) I'd like to run a function to examine the contexts that are being displayed in my Emacs windows, whenever these change. I'm particularly interested in content changes related to scrolling; when I press next-line or scroll-up, etc., the window's content changes even though the buffer is not modified. There are two things I think I think I'll need to know to achieve this. 1. Are there any hooks I can add to that run when the window's content changes? 2. Are there variables that indicate the beginning and end positions of the string that is being displayed on the screen? Additional motion-dependent question, extending 1, is: are there hooks I can run when the cursor changes position (whether or not the window's content changes)? These questions relate to my work on the Arxana hypertext system for Emacs, http://lists.gnu.org/archive/html/gnu-emacs-sources/2006-03/msg00017.html and particularly to the problem of contextual display of annotations.