From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: How can I predict which regions xdisp will present me for font-locking? Date: Tue, 13 Mar 2012 14:05:25 +0000 Message-ID: <20120313140525.GA2536@acm.acm> References: <20120311205903.GA3717@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1331647605 16913 80.91.229.3 (13 Mar 2012 14:06:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2012 14:06:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 13 15:06:44 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 1S7SN1-00051w-EX for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 15:06:35 +0100 Original-Received: from localhost ([::1]:42078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7SN0-0003Ct-PS for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2012 10:06:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7SMx-0003C2-JW for emacs-devel@gnu.org; Tue, 13 Mar 2012 10:06:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7SMr-0002VP-F2 for emacs-devel@gnu.org; Tue, 13 Mar 2012 10:06:31 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:30016 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7SMr-0002VB-5j for emacs-devel@gnu.org; Tue, 13 Mar 2012 10:06:25 -0400 Original-Received: (qmail 10570 invoked by uid 3782); 13 Mar 2012 14:06:23 -0000 Original-Received: from acm.muc.de (pD951B273.dip.t-dialin.net [217.81.178.115]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 13 Mar 2012 15:06:21 +0100 Original-Received: (qmail 2541 invoked by uid 1000); 13 Mar 2012 14:05:25 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 193.149.48.1 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:149010 Archived-At: Hello, Stefan. On Mon, Mar 12, 2012 at 03:25:26PM -0400, Stefan Monnier wrote: > > 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, The font locking boundaries were indeed set by CC Mode. Sorry for wasting people's time. > Stefan -- Alan Mackenzie (Nuremberg, Germany).