From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: State-machine based syntax highlighting Date: Thu, 07 Dec 2006 12:42:29 -0500 Message-ID: References: <1165472049.496117.320630@79g2000cws.googlegroups.com> <1165488825.132862.189340@79g2000cws.googlegroups.com> <1165492567.864982.59980@79g2000cws.googlegroups.com> <1165495364.560960.271250@f1g2000cwa.googlegroups.com> <1165501630.172348.157180@j72g2000cwa.googlegroups.com> <1165502373.932709.15860@79g2000cws.googlegroups.com> <1165510932.276718.251220@73g2000cwn.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165513470 14909 80.91.229.10 (7 Dec 2006 17:44:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 17:44:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 18:44:27 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsNIF-0005qG-Lc for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 18:44:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsNIF-0003L9-Ad for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 12:44:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsNGX-0002Km-OH for help-gnu-emacs@gnu.org; Thu, 07 Dec 2006 12:42:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsNGW-0002K0-HK for help-gnu-emacs@gnu.org; Thu, 07 Dec 2006 12:42:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsNGW-0002Js-Cm for help-gnu-emacs@gnu.org; Thu, 07 Dec 2006 12:42:36 -0500 Original-Received: from [209.226.175.34] (helo=tomts13-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GsNGW-0007ex-9U for help-gnu-emacs@gnu.org; Thu, 07 Dec 2006 12:42:36 -0500 Original-Received: from pastel.home ([74.13.164.204]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061207174229.LIIC1773.tomts13-srv.bellnexxia.net@pastel.home> for ; Thu, 7 Dec 2006 12:42:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 46D917F93; Thu, 7 Dec 2006 12:42:29 -0500 (EST) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <1165510932.276718.251220@73g2000cwn.googlegroups.com> (spamfilteraccount@gmail.com's message of "7 Dec 2006 09\:02\:12 -0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39330 Archived-At: >> > I did a quick search and found this page >> > http://harmonia.cs.berkeley.edu/harmonia/projects/harmonia-mode/doc/index.html >> > with a demo xemacs package with syntax highlighting and stuff. Looked >> > interesting. >> Interesting. > I wondered why they supported xemacs only, so I downloaded the source. > Seems they wrote xemacs extensions in c which have to be compiled into > xemacs. > Not a usual way to extend an emacs, but probably advantageous from a > performance point of view. > The idea already occured to me that font locking should be implemented > in pure c in emacs for speed, but I guess it's kind of against the > extensible editor concept or something. Actually, font-locking *is* implemented in C. The elisp part usually takes a negligible amount of time. The problem start appearing when the functionality of the C code is not sufficient and you start trying to parse the code in elisp, which is slow. Stefan