From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: "Font-lock is limited to text matching" is a myth Date: Tue, 11 Aug 2009 23:37:11 +0900 Message-ID: <87r5vipgbs.fsf@catnip.gol.com> References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <200908101335.24002.danc@merrillprint.com> <87my67s8mr.fsf@randomsample.de> <1249942011.29022.15.camel@projectile.siege-engine.com> <1249955428.29022.186.camel@projectile.siege-engine.com> <9c768dc60908102347v57bdf38ara9fe2179f68c07e4@mail.gmail.com> <42D4C5C5-E702-4E30-AB95-A016280F20C7@merrillpress.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250001484 5276 80.91.229.12 (11 Aug 2009 14:38:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 14:38:04 +0000 (UTC) Cc: emacs-devel@gnu.org, David Engster , Daniel Colascione , Lennart Borgman , Deniz Dogan , Stefan Monnier , Steve Yegge , Leo To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 16:37:56 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 1MasU7-0000WR-UZ for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 16:37:56 +0200 Original-Received: from localhost ([127.0.0.1]:33357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasU6-0007Ry-Ce for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2009 10:37:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MasTk-0007FL-QE for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:37:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MasTg-0007DW-Ax for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:37:32 -0400 Original-Received: from [199.232.76.173] (port=43367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MasTf-0007DH-OB for emacs-devel@gnu.org; Tue, 11 Aug 2009 10:37:27 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:54233) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MasTV-0004wC-Kj; Tue, 11 Aug 2009 10:37:18 -0400 Original-Received: from 218.231.177.167.eo.eaccess.ne.jp ([218.231.177.167] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1MasTQ-0007nB-Ez; Tue, 11 Aug 2009 23:37:12 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id AF814DF93; Tue, 11 Aug 2009 23:37:11 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <42D4C5C5-E702-4E30-AB95-A016280F20C7@merrillpress.com> (Daniel Colascione's message of "Tue, 11 Aug 2009 08:13:28 -0400") Original-Lines: 18 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com 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:114055 Archived-At: Daniel Colascione writes: >> Note: diagnostic messages in js2-mode are highlighted using overlays. >> I tried using overlays for all highlighting but it was unacceptably >> slow and had a tendency to crash Emacs. > > I've had the same thought. Just as in aside, overlays seem like a much > better conceptual fit for fontification than text properties do. Why? [Aside from the "changing text-properties affect buffer-modified status" silliness, which I think is probably a mistake, but that's easy enough to work around.] -miles -- Monday, n. In Christian countries, the day after the baseball game.