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: Sun, 31 Aug 2008 02:15:31 -0400 Message-ID: References: <200808301456.m7UEuKa9030348@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 1220163349 13004 80.91.229.12 (31 Aug 2008 06:15:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2008 06:15:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Eric M. Ludlam" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 31 08:16:43 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 1KZgEq-00039F-Ah for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 08:16:40 +0200 Original-Received: from localhost ([127.0.0.1]:45235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZgDr-00074P-LB for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 02:15:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZgDn-00073K-6r for emacs-devel@gnu.org; Sun, 31 Aug 2008 02:15:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZgDl-00071O-F3 for emacs-devel@gnu.org; Sun, 31 Aug 2008 02:15:34 -0400 Original-Received: from [199.232.76.173] (port=52444 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZgDl-00071L-93 for emacs-devel@gnu.org; Sun, 31 Aug 2008 02:15:33 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51705) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZgDl-00089w-0u for emacs-devel@gnu.org; Sun, 31 Aug 2008 02:15:33 -0400 Original-Received: from alfajor.home (vpn-132-204-232-27.acd.umontreal.ca [132.204.232.27]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m7V6FVri015167; Sun, 31 Aug 2008 02:15:31 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 1C62B1C277; Sun, 31 Aug 2008 02:15:31 -0400 (EDT) In-Reply-To: <200808301456.m7UEuKa9030348@projectile.siege-engine.com> (Eric M. Ludlam's message of "Sat, 30 Aug 2008 10:56:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3093=0 X-detected-kernel: by monty-python.gnu.org: 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:103296 Archived-At: > 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, Stefan