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: [Emacs-diffs] emacs-24 d69e9f1: CC Mode: Stop Font Lock forcing fontification from BOL. Fixes debbugs#19669. Date: Mon, 02 Feb 2015 21:26:46 -0500 Message-ID: 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 X-Trace: ger.gmane.org 1422930423 26537 80.91.229.3 (3 Feb 2015 02:27:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2015 02:27:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 03:26:58 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 1YITCb-00014x-BC for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2015 03:26:57 +0100 Original-Received: from localhost ([::1]:57515 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YITCa-0000RQ-Ku for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 21:26:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YITCX-0000RK-1T for emacs-devel@gnu.org; Mon, 02 Feb 2015 21:26:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YITCS-0007a7-V7 for emacs-devel@gnu.org; Mon, 02 Feb 2015 21:26:52 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:57132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YITCS-0007ZB-Rr for emacs-devel@gnu.org; Mon, 02 Feb 2015 21:26:48 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhgFAOwQflQYjOP5/2dsb2JhbABbgweDYMp9AoElFgEBAQEBAXyEAwEBAwF5BQsLDQEmBwsUGDGISgnWWQEBAQcCAR+QbweESAWLAZhxhB+JFoI3gWIhgncBAQE X-IPAS-Result: AhgFAOwQflQYjOP5/2dsb2JhbABbgweDYMp9AoElFgEBAQEBAXyEAwEBAwF5BQsLDQEmBwsUGDGISgnWWQEBAQcCAR+QbweESAWLAZhxhB+JFoI3gWIhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="109513425" Original-Received: from unknown (HELO ceviche.home) ([24.140.227.249]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Feb 2015 21:26:46 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0A28C66100; Mon, 2 Feb 2015 21:26:46 -0500 (EST) In-Reply-To: <20150202213957.GF3673@acm.acm> (Alan Mackenzie's message of "Mon, 2 Feb 2015 21:39:57 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:182305 Archived-At: >> 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? Stefan