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: Need help with search based font-locking Date: Wed, 30 Dec 2009 13:29:28 -0200 Message-ID: References: <877hsen0na.fsf@thinkpad.tsdh.de> <87637yj64c.fsf@thinkpad.tsdh.de> <87my10d0pn.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262187068 27271 80.91.229.12 (30 Dec 2009 15:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 15:31:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 16:31:01 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 1NQ0Uq-0005D0-Hn for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 16:30:00 +0100 Original-Received: from localhost ([127.0.0.1]:51263 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ0Uq-0000JB-Bp for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 10:30:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ0US-00009H-F4 for emacs-devel@gnu.org; Wed, 30 Dec 2009 10:29:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ0UO-00007s-T6 for emacs-devel@gnu.org; Wed, 30 Dec 2009 10:29:36 -0500 Original-Received: from [199.232.76.173] (port=38583 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ0UO-00007n-Q0 for emacs-devel@gnu.org; Wed, 30 Dec 2009 10:29:32 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:48035) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQ0UO-00033i-I2 for emacs-devel@gnu.org; Wed, 30 Dec 2009 10:29:32 -0500 Original-Received: from vpn-132-204-232-126.acd.umontreal.ca (vpn-132-204-232-126.acd.umontreal.ca [132.204.232.126]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id nBUFTTg3030354; Wed, 30 Dec 2009 10:29:30 -0500 Original-Received: by arepa.local (Postfix, from userid 501) id DE71445584F; Wed, 30 Dec 2009 13:29:28 -0200 (ARST) In-Reply-To: <87my10d0pn.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 30 Dec 2009 14:56:52 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3437=0 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:119049 Archived-At: >> In your case, tho, a better option might be to change your >> greql-font-lock-keywords-3 so it doesn't change. See >> sh-font-lock-here-doc for an example of how you might be able to do >> that. > Now my greql-font-lock-keywords-3 are static, and contain two functions > that drive the search and are steered by another variable that may > change. This given me much more flexibility (now I not only highlight > valid schema elements, but also put a warning face on unknown types, > thus 2 functions). Great to hear, it, Stefan