From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Need help with search based font-locking Date: Wed, 30 Dec 2009 14:56:52 +0100 Message-ID: <87my10d0pn.fsf@thinkpad.tsdh.de> References: <877hsen0na.fsf@thinkpad.tsdh.de> <87637yj64c.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 1262181442 9228 80.91.229.12 (30 Dec 2009 13:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 13:57:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 14:57:15 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 1NPz33-0002Zg-9b for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 14:57:13 +0100 Original-Received: from localhost ([127.0.0.1]:54848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPz33-0006Ol-H4 for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 08:57:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPz2y-0006OY-7l for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:57:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPz2t-0006Nt-P4 for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:57:07 -0500 Original-Received: from [199.232.76.173] (port=57867 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPz2t-0006Np-Gr for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:57:03 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:56087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPz2t-0004Xq-49 for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:57:03 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 6FBE0C8853 for ; Wed, 30 Dec 2009 08:57:02 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 30 Dec 2009 08:57:02 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=rT4btjNBmvIUYdFu6vaMpaCUc/g=; b=HunXcSXT50KT2ne95UzZrZQng9W6Dyf1sKHojyeG5dJFBNEv+M0KuVWPzLRgpS5N8cwINiiL1w7jzAVv/ONQbUgDONVx5x2Sk2DZB0U22zPprjDGdSqY/N8AaUEbSsE8soVDH2incN+rOvCyVfLLMyOhMPUy7iDhCFsEGj/bO3g= X-Sasl-enc: XdzsBFNR/YhVPJhqSx9HDARy7oVyU4RTTEMW2k3Ji/1z 1262181421 Original-Received: from thinkpad.tsdh.de (p54AF2016.dip0.t-ipconnect.de [84.175.32.22]) by mail.messagingengine.com (Postfix) with ESMTPA id 974C449C83D for ; Wed, 30 Dec 2009 08:57:01 -0500 (EST) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Wed, 23 Dec 2009 22:07:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:119042 Archived-At: Stefan Monnier writes: Hi Stefan, > 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). Bye, Tassilo