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 22:51:53 +0200 Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <200908101335.24002.danc@merrillprint.com> <87my67s8mr.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249937558 9035 80.91.229.12 (10 Aug 2009 20:52:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 20:52:38 +0000 (UTC) Cc: Daniel Colascione , Daniel Colascione , emacs-devel@gnu.org, Deniz Dogan , Stefan Monnier , "Eric M. Ludlam" , Steve Yegge , Leo , Miles Bader To: David Engster Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 22:52:30 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 1Mabr0-0005mU-K3 for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 22:52:26 +0200 Original-Received: from localhost ([127.0.0.1]:46008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mabqz-00055G-LJ for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2009 16:52:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mabqd-0004ws-2t for emacs-devel@gnu.org; Mon, 10 Aug 2009 16:52:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MabqX-0004ts-0s for emacs-devel@gnu.org; Mon, 10 Aug 2009 16:52:01 -0400 Original-Received: from [199.232.76.173] (port=40819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MabqW-0004tT-IP for emacs-devel@gnu.org; Mon, 10 Aug 2009 16:51:56 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.247]:2332) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MabqU-0003DW-Ka; Mon, 10 Aug 2009 16:51:54 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so1257470ana.21 for ; Mon, 10 Aug 2009 13:51:54 -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=cMZqk/wiEuPkD1vNsDMeAZLJYgcT0R0I7dn5MbJEKqc=; b=LemqrvNjYXqoqY6+HpriD80yRlRvH94i4UIFHCnE/zWYQV7BWU4QlbKaJAe1MFQ3qV ATPWW264Uc8AbxWDcenlkrTtkLyYTZjeA90zKCf1tHF/GcxdwhSnhpFVxuF75S7smknT 45VptTJADdnSMjo9Ex6ealg9LNqoW+QozixJY= 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=n3tjoyVjPEWIk9QamsACNdTmDnXSX7e9IAZ0xxBccbQaa5ugGRXUW8TBQiWo+o48GH jfk3jXgDBDt7GqWENiRUbe/Jh8Ec8BF5ZbzgW/dcBGNhBJ1hCh44PUvSamdv08t23b5f fCUyGt26BNMMKKBKbNC6txeLt5CwfaqRhu62I= Original-Received: by 10.100.12.4 with SMTP id 4mr4206786anl.135.1249937513986; Mon, 10 Aug 2009 13:51:53 -0700 (PDT) In-Reply-To: <87my67s8mr.fsf@randomsample.de> 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:113999 Archived-At: On Mon, Aug 10, 2009 at 10:42 PM, David Engster wrote: >> I think Xah meant the grammars. Maybe CEDET is not yet using >> font-lock, I do not know how old JIT-lock, which is an essential part >> for this, is. > > CEDET can create formatted strings from the tags, and it supports using > font-lock for that (see file semantic-format.el). There's also the > minor-mode 'semantic-decoration' (semantic-decorate.el) which applies > styles to certain tags in the buffer while editing, and this mode does > not use font-lock. Thanks David. What is the reason that font-lock is not used there? I do not know much about it, but am a bit curious. Does CEDET use the font-lock/JIT-lock frame work for handling parsing requirements? > Since Semantic usually does not parse every > expression in the buffer, this decoration is currently limited to stuff > like include statements, function declarations or protected class > members. (Eric, please correct me if I'm wrong here). > > -David >