From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: joao Newsgroups: gmane.emacs.help Subject: Re: Fontification with a specific function Date: Sat, 16 Oct 2004 22:27:13 +0200 Organization: Guest of Teaser Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097958476 23343 80.91.229.6 (16 Oct 2004 20:27:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Oct 2004 20:27:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 16 22:27:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CIv9c-00082U-00 for ; Sat, 16 Oct 2004 22:27:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIvGo-0003ez-0j for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Oct 2004 16:35:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!news2.google.com!proxad.net!teaser.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: montmartre-15-82-230-80-148.fbx.proxad.net Original-X-Trace: feed.teaser.net 1097958412 70748 82.230.80.148 (16 Oct 2004 20:26:52 GMT) Original-X-Complaints-To: abuse@teaser.fr Original-NNTP-Posting-Date: Sat, 16 Oct 2004 20:26:52 +0000 (UTC) User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:AJvKaVT+TWInCbM4PpuGSP9xtd8= Original-Xref: shelby.stanford.edu gnu.emacs.help:125906 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21276 Oliver Scholz writes: > Joakim Hove writes: > [function using `re-search-forward'.] > >> Hence, the match data is automatically set by the (re-search-forward >> ) function, you don't have to do that. Yes, that's simple enough... but the problem is, my search criteria here are not purely syntactical, if they were, then I could've used the other, more usual forms of fontification. Maybe I mix : search with the regexp functions, then apply my own criteria on top of the match... > Note that you can also set the match-data explicetly with > `set-match-data'. See (info "(elisp)Entire Match Data"). This sounds more promising, I'll look into this. Thank you, Joakim, Oliver. Joao