From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Re: font-lock and fontifying the few first nonempty lines in a buffer Date: 27 Jun 2003 18:01:14 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3EFB8125.6090600@yahoo.com> <5lisqr5ume.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1056762420 18537 80.91.224.249 (28 Jun 2003 01:07:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2003 01:07:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 03:06:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19W4B9-0004oo-00 for ; Sat, 28 Jun 2003 03:06:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19W49f-00088X-Vr for gnu-help-gnu-emacs@m.gmane.org; Fri, 27 Jun 2003 21:05:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1056762075 5950 127.0.0.1 (28 Jun 2003 01:01:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 28 Jun 2003 01:01:15 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114803 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11296 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11296 "Stefan Monnier" wrote in message news:<5lisqr5ume.fsf@rum.cs.yale.edu>... > > "\\`\\(\\(.+\n\\)\\{1,7\\}\\)\n" > > You can also try "\\`\\(\\(.+\n\\)*?\\)\n". > "\\(\\`\\(?:\\(?:.+\n\\)*?\\)\n\\)" with match data set to the whole match. You can interactively experiment with this stuff using M-x re-builder