From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#16585: c-invalidate-state-cache fails if called when narrowed Date: Sat, 8 Feb 2014 22:57:02 +0000 Message-ID: <20140208225702.GC4063__47483.6155343384$1391900522$gmane$org@acm.acm> References: <52E862C0.3010608@dancol.org> <20140208223717.GA4063@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1391900509 12271 80.91.229.3 (8 Feb 2014 23:01:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 23:01:49 +0000 (UTC) Cc: 16585@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 09 00:01:56 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WCGuH-0000zb-Fx for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 00:01:53 +0100 Original-Received: from localhost ([::1]:48296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCGuH-0006Mu-53 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 18:01:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCGti-0005je-Kz for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 18:01:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCGtb-00043e-Bt for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 18:01:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCGtT-00042q-Cd; Sat, 08 Feb 2014 18:01:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCGtS-00006K-Ur; Sat, 08 Feb 2014 18:01:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 08 Feb 2014 23:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16585 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16585-submit@debbugs.gnu.org id=B16585.1391900428331 (code B ref 16585); Sat, 08 Feb 2014 23:01:02 +0000 Original-Received: (at 16585) by debbugs.gnu.org; 8 Feb 2014 23:00:28 +0000 Original-Received: from localhost ([127.0.0.1]:58331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCGst-00005E-5U for submit@debbugs.gnu.org; Sat, 08 Feb 2014 18:00:27 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:51244 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCGsp-00004s-Le for 16585@debbugs.gnu.org; Sat, 08 Feb 2014 18:00:24 -0500 Original-Received: (qmail 74020 invoked by uid 3782); 8 Feb 2014 23:00:22 -0000 Original-Received: from acm.muc.de (pD951823D.dip0.t-ipconnect.de [217.81.130.61]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 09 Feb 2014 00:00:21 +0100 Original-Received: (qmail 5177 invoked by uid 1000); 8 Feb 2014 22:57:02 -0000 Content-Disposition: inline In-Reply-To: <20140208223717.GA4063@acm.acm> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84997 Archived-At: Hi, Daniel. On Sat, Feb 08, 2014 at 10:37:17PM +0000, Alan Mackenzie wrote: [ .... ] > I don't think (but I'm not quite sure) that this patch is correct, since > it leaves c-invalidate-state-cache-1 running widened. That might well > lead to incorrect "state cache" manipulations. Instead I've widened the > buffer around the two calls which clear and set the text properties. > Would you please try out the following patch, which should fix the > problem. I just forgot to say, after applying the patch, please compile first cc-defs.el, then cc-engine.el. -- Alan Mackenzie (Nuremberg, Germany).