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: font-lock patch for automated edits Date: Wed, 15 Apr 2009 17:16:19 -0400 Message-ID: References: <200808301456.m7UEuKa9030348@projectile.siege-engine.com> <200812281312.mBSDCMma011059@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239830639 15604 80.91.229.12 (15 Apr 2009 21:23:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2009 21:23:59 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: "Eric M. Ludlam" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 15 23:25:18 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LuCbU-0003yb-IS for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2009 23:25:08 +0200 Original-Received: from localhost ([127.0.0.1]:58163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuCa5-00024j-Gj for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2009 17:23:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuCT8-0008Cq-DM for emacs-devel@gnu.org; Wed, 15 Apr 2009 17:16:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuCT3-00088j-Ka for emacs-devel@gnu.org; Wed, 15 Apr 2009 17:16:29 -0400 Original-Received: from [199.232.76.173] (port=59880 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuCT3-00088e-9A for emacs-devel@gnu.org; Wed, 15 Apr 2009 17:16:25 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38371) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LuCT3-0004T3-0C for emacs-devel@gnu.org; Wed, 15 Apr 2009 17:16:25 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n3FLGJXp019917; Wed, 15 Apr 2009 17:16:19 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 5D3393C582; Wed, 15 Apr 2009 17:16:19 -0400 (EDT) In-Reply-To: <200812281312.mBSDCMma011059@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sun, 28 Dec 2008 08:12:22 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3254=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110301 Archived-At: > I updated my version of Emacs from CVS recently, and this problem > still occurs. I also have a simplified reproduction step. Start with > this C++ file: > ---------- > /* A comment */ > /* > * A multi-line comment > */ > ----------- > Make sure font lock has fontified this entire buffer. > Mark the entirety of the multi-line comment, and use C-w to kill the > region. Font lock will throw an error and stop auto-updating. I see now. It appears to be a bug in c-extend-after-change-region (assigned to font-lock-extend-after-change-region-function) which returns a region that extends past the end of the buffer. Alan, can you take a look at it? In the above recipe, it helps to do: M-: (setq fnt-lock-support-mode nil debug-on-error t) RET and then toggle font-lock-mode OFF and back ON before doing the C-w. Stefan