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: Mon, 30 Mar 2015 16:44:42 +0000 Message-ID: <20150330164441.GA17661@acm.fritz.box> References: <20150201212213.17840.3710@vcs.savannah.gnu.org> <55076CF8.60309@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1427733939 9451 80.91.229.3 (30 Mar 2015 16:45:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2015 16:45:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 30 18:45:31 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 1YccoM-0004BC-Or for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 18:45:14 +0200 Original-Received: from localhost ([::1]:35119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YccoM-000440-77 for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 12:45:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycco8-00043j-BZ for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:45:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycco4-0004v3-RP for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:45:00 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:55769 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycco4-0004uc-Hf for emacs-devel@gnu.org; Mon, 30 Mar 2015 12:44:56 -0400 Original-Received: (qmail 35493 invoked by uid 3782); 30 Mar 2015 16:44:54 -0000 Original-Received: from acm.muc.de (pD95186F1.dip0.t-ipconnect.de [217.81.134.241]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 30 Mar 2015 18:44:52 +0200 Original-Received: (qmail 452 invoked by uid 1000); 30 Mar 2015 16:44:42 -0000 Content-Disposition: inline In-Reply-To: <55076CF8.60309@dancol.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.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:184555 Archived-At: Hello, Daniel. On Mon, Mar 16, 2015 at 04:53:28PM -0700, Daniel Colascione wrote: > On 02/01/2015 01:22 PM, Alan Mackenzie wrote: > > branch: emacs-24 > > commit d69e9f1c24f37f36af33b0468c5a4e100dbb09b6 > > Author: Alan Mackenzie > > Commit: Alan Mackenzie > > CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669. > > cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to > > nil. > This change is driving me nuts. Consider the following buffer, with @ > representing point: > void foo() { > @ > } > If I type [f o r SPC], then depending on timing, I see only the "or", or > only the "r", fontified in font-lock-keyword-face. A moment later, > jit-lock kicks in and refontifies the entire chunk properly. > Can we please extend the start of the region back to at least the last `}'? I've just committed a fix (to the master branch) which should fix this whilst also leaving bug #19669 fixed. Could you try it out, please. -- Alan Mackenzie (Nuremberg, Germany).