From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: joao17@mailinator.com (joao) Newsgroups: gmane.emacs.help Subject: Fontification with a specific function Date: 15 Oct 2004 03:00:21 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1097834601 26226 80.91.229.6 (15 Oct 2004 10:03:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2004 10:03:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 12:03:16 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 1CIOvc-0007DW-00 for ; Fri, 15 Oct 2004 12:03:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CIP2j-0004W4-UP for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Oct 2004 06:10:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 194.205.123.7 Original-X-Trace: posting.google.com 1097834422 23577 127.0.0.1 (15 Oct 2004 10:00:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Oct 2004 10:00:22 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:125885 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:21255 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21255 Hi all, I'm trying to define a function to find text for fontification. This is one of the possible elements of `font-lock-keywords'. Looking at the emacs lisp reference manual (Font Lock Mode/Search-based Fontification), I see that When FUNCTION is called, it receives one argument, the limit of the search. It should return non-`nil' if it succeeds, and set the match data to describe the match that was found. I don't see where this "match data" is defined. Can anyone point me to an example, in the emacs sources or in some package, of this usage of fontification ? Thanks, Joao