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: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669. Date: Sat, 7 Feb 2015 12:27:11 +0000 Message-ID: <20150207122711.GA3772@acm.acm> References: <20150201212213.17840.3710@vcs.savannah.gnu.org> <20150202213957.GF3673@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1423312091 6421 80.91.229.3 (7 Feb 2015 12:28:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2015 12:28:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 07 13:28:10 2015 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 1YK4Uc-0006we-5W for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2015 13:28:10 +0100 Original-Received: from localhost ([::1]:52599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK4Ub-0003l5-GH for ged-emacs-devel@m.gmane.org; Sat, 07 Feb 2015 07:28:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK4UP-0003kz-GR for emacs-devel@gnu.org; Sat, 07 Feb 2015 07:27:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YK4UM-0005Oz-At for emacs-devel@gnu.org; Sat, 07 Feb 2015 07:27:57 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:51239 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK4UM-0005Ol-0y for emacs-devel@gnu.org; Sat, 07 Feb 2015 07:27:54 -0500 Original-Received: (qmail 68432 invoked by uid 3782); 7 Feb 2015 12:27:48 -0000 Original-Received: from acm.muc.de (pD951A043.dip0.t-ipconnect.de [217.81.160.67]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 07 Feb 2015 13:27:47 +0100 Original-Received: (qmail 3915 invoked by uid 1000); 7 Feb 2015 12:27:11 -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: FreeBSD 8.x 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:182594 Archived-At: Hello, Stefan. On Mon, Feb 02, 2015 at 09:26:46PM -0500, Stefan Monnier wrote: > >> Can you walk me through what happens in the scenario of bug#19669? > > Certainly! > This looks specific to some assumptions made in CC-mode's font-lock > code, rather than to assumptions made in font-lock itself, or > assumptions often made in other major modes, so I think we're in the clear. > Thanks. > > 12. font-lock-default-fontify-region adjusts 409 to 404, since 409 is > > not at BOL. 404 is no longer a "syntactically safe" position wrt the > > original 506. > What would be "the closest syntactically safe" position before 409? In the sense meant, 409 is the earliest "syntactically safe" position, since (char-before 409) is "{" > Stefan -- Alan Mackenzie (Nuremberg, Germany).