From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: "Font-lock is limited to text matching" is a myth Date: Mon, 10 Aug 2009 20:55:28 +0200 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <200908101335.24002.danc@merrillprint.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249930552 10810 80.91.229.12 (10 Aug 2009 18:55:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 18:55:52 +0000 (UTC) Cc: Daniel Colascione , Daniel Colascione , Deniz Dogan , emacs-devel@gnu.org, Leo , Miles Bader To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 20:55:44 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 1Maa23-0007v3-TY for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 20:55:44 +0200 Original-Received: from localhost ([127.0.0.1]:55241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maa22-0005yv-P4 for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 14:55:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Maa1y-0005yW-3s for emacs-devel@gnu.org; Mon, 10 Aug 2009 14:55:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Maa1s-0005yA-Ux for emacs-devel@gnu.org; Mon, 10 Aug 2009 14:55:37 -0400 Original-Received: from [199.232.76.173] (port=47230 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Maa1s-0005y7-SZ for emacs-devel@gnu.org; Mon, 10 Aug 2009 14:55:32 -0400 Original-Received: from mail-yw0-f186.google.com ([209.85.211.186]:34944) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Maa1p-0006Gh-Qe; Mon, 10 Aug 2009 14:55:30 -0400 Original-Received: by ywh16 with SMTP id 16so5158862ywh.24 for ; Mon, 10 Aug 2009 11:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+uxjQXs936AiyTAUnBtudeuyAi8uUpmPZOMeA6u8EUs=; b=X/3GSzCzKt7pM3fgUROmRrI3LNwMK87sNce+2YhLQTMa1t0CsAhc0J0ceLAbwxn64B jGdzwoFJRkVe7Pd0MWNxDwaADvyaAuwGpIpWDjlAmaRb0DrlNIJkxEz7IOeWIEistjdh dpK4V/JtNhICmTmQHS/XWhUc3P+BVhwi6sQDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=suJ26g9k1KgGirSHkzKmIoUWV5zZWW+Fz0A0nnUyh+pbueyquDN7xvWiFUvH9lZ730 H6man/KsGkudmErv00gGPjTUaeqEC1m4tTEpzQeh8R5eFXB4noa56Sie+8eh8cilnMPc IRDkg8zkpLtNXq8klTdtmhwjxnWvO8wsG46us= Original-Received: by 10.100.252.13 with SMTP id z13mr4109563anh.24.1249930528302; Mon, 10 Aug 2009 11:55:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:113994 Archived-At: On Mon, Aug 10, 2009 at 8:47 PM, Stefan Monnier w= rote: >>> it'd be nice if emacs provides syntax parsing infrastructure.... nmxl, = js2, >>> cedet, can be leads in this direction and see how things work out. >> It already does. It's called font-lock. > > No, font-lock doesn't do any parsing. =C2=A0parse-partial-sexp does a ver= y > limited kind of parsing, and font-lock makes use of it, but font-lock > itself doesn't do any parsing. I think Daniel suggested that it is a frame-work that can be used for book-keeping of how far parsing has gone (the state must be kept elsewhere) and parsing while Emacs is idle. Don't you think it can be used for that? > Your font-lock-keywords may of course do an arbitrarily complex form of > parsing, but it's still not font-lock that does it. > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Stefan >