From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How can I predict which regions xdisp will present me for font-locking? Date: Mon, 12 Mar 2012 15:25:26 -0400 Message-ID: References: <20120311205903.GA3717@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331580338 6234 80.91.229.3 (12 Mar 2012 19:25:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Mar 2012 19:25:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 12 20:25:37 2012 Return-path: Envelope-to: ged-emacs-devel@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 1S7AsD-0007s3-LQ for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2012 20:25:37 +0100 Original-Received: from localhost ([::1]:60544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7AsD-0006bj-0U for ged-emacs-devel@m.gmane.org; Mon, 12 Mar 2012 15:25:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7As7-0006aD-Al for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:25:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7As5-0000YG-Mt for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:25:30 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7As5-0000Xv-J1 for emacs-devel@gnu.org; Mon, 12 Mar 2012 15:25:29 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q2CJPQNI025313; Mon, 12 Mar 2012 15:25:26 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 9AD43130D24; Mon, 12 Mar 2012 15:25:26 -0400 (EDT) In-Reply-To: <20120311205903.GA3717@acm.acm> (Alan Mackenzie's message of "Sun, 11 Mar 2012 20:59:03 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4159=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4159> : streams <737218> : uri <1081823> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148982 Archived-At: > I hope this isn't one of these "send complete details" questions, but: > In a file.hpp, inside a 3355 line macro (I kid you not), I type a single > character. xdisp responds by presenting jit-lock, successively, with > four areas to fontify. (This was determined by > trace-function-background on `font-lock-fontify-region'). While "complete details" would be nice, just showing the actual four areas, plus the corresponding position of point (and maybe also the position of beginning and end of the macro) might be a good starting point, Stefan