From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re[2]: font-lock patch for automated edits Date: Wed, 15 Apr 2009 18:57:54 -0400 Message-ID: <200904152257.n3FMvsBq020433@projectile.siege-engine.com> References: <200808301456.m7UEuKa9030348@projectile.siege-engine.com> <200812281312.mBSDCMma011059@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239839722 4891 80.91.229.12 (15 Apr 2009 23:55:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2009 23:55:22 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 16 01:56:40 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 1LuEy8-0002z3-FI for ged-emacs-devel@m.gmane.org; Thu, 16 Apr 2009 01:56:40 +0200 Original-Received: from localhost ([127.0.0.1]:53555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuEwj-0003O0-GJ for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2009 19:55:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuEwe-0003NE-5O for emacs-devel@gnu.org; Wed, 15 Apr 2009 19:55:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuEwd-0003N2-AD for emacs-devel@gnu.org; Wed, 15 Apr 2009 19:55:07 -0400 Original-Received: from [199.232.76.173] (port=60103 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuEwd-0003Mz-3q for emacs-devel@gnu.org; Wed, 15 Apr 2009 19:55:07 -0400 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:41346 helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuEwc-0002C8-OT for emacs-devel@gnu.org; Wed, 15 Apr 2009 19:55:06 -0400 Original-Received: from projectile.siege-engine.com (localhost.localdomain [127.0.0.1]) by projectile.siege-engine.com (8.12.8/8.12.8) with ESMTP id n3FMvtEB020435; Wed, 15 Apr 2009 18:57:55 -0400 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.12.8/8.12.8/Submit) id n3FMvsBq020433; Wed, 15 Apr 2009 18:57:54 -0400 In-reply-to: (message from Stefan Monnier on Wed, 15 Apr 2009 17:16:19 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-Greylist: delayed 3429 seconds by postgrey-1.27 at monty-python; Wed, 15 Apr 2009 19:55:05 EDT 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:110303 Archived-At: >>> Stefan Monnier seems to think that: >> 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. Thanks Stefan. My .emacs is so old I had old font-lock-support stuff in it trying to allow functionality between Emacs 20 and 21 and various support modes that I think has the effect your M-: line above creates. Without the old config, thus enabling jit-lock-mode, my automated editing test suites work fine when font lock is enabled. Eric -- Eric Ludlam: eric@siege-engine.com Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net