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: Sun, 28 Dec 2008 08:12:22 -0500 Message-ID: <200812281312.mBSDCMma011059@projectile.siege-engine.com> References: <200808301456.m7UEuKa9030348@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1230469963 687 80.91.229.12 (28 Dec 2008 13:12:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 13:12:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 28 14:13:50 2008 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 1LGvSj-0004pB-V6 for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2008 14:13:46 +0100 Original-Received: from localhost ([127.0.0.1]:40598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGvRW-0006vZ-Fa for ged-emacs-devel@m.gmane.org; Sun, 28 Dec 2008 08:12:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGvRR-0006vK-OT for emacs-devel@gnu.org; Sun, 28 Dec 2008 08:12:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGvRQ-0006v2-Se for emacs-devel@gnu.org; Sun, 28 Dec 2008 08:12:25 -0500 Original-Received: from [199.232.76.173] (port=33242 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGvRQ-0006uz-Lq for emacs-devel@gnu.org; Sun, 28 Dec 2008 08:12:24 -0500 Original-Received: from static-71-184-83-10.bstnma.fios.verizon.net ([71.184.83.10]:56757 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 1LGvRQ-0007UP-Cn for emacs-devel@gnu.org; Sun, 28 Dec 2008 08:12:24 -0500 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 mBSDCMPc011061; Sun, 28 Dec 2008 08:12:22 -0500 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.12.8/8.12.8/Submit) id mBSDCMma011059; Sun, 28 Dec 2008 08:12:22 -0500 In-reply-to: (message from Stefan Monnier on Sun, 31 Aug 2008 02:15:31 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:107330 Archived-At: >>> Stefan Monnier seems to think that: >> I have some tests for the CEDET/Semantic incremental parsing engine. >> This test calls 'erase-buffer', and performs edits very quickly, and >> was causing font-lock to throw errors in my tests. > >Do you have backtraces for those bugs? > >> This patch basically protects various determined regions (BEG/END) >> from being out of bounds of a buffer. I'd guess there is a better way >> to do it, but this allows my tests to run. > >I'm not sure if there's a better place to enforce the bounds, but it's >indeed possible. Some stack traces would help figure it out, [ ... ] Hello, 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. You can also use C-k on the last line in this buffer, to get the same effect. Thanks Eric -- Eric Ludlam: eric@siege-engine.com Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net