From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Boitnott Newsgroups: gmane.emacs.help Subject: keyword highlighting Date: Thu, 9 Sep 2004 16:26:46 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094765241 30368 80.91.224.253 (9 Sep 2004 21:27:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2004 21:27:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 09 23:27:05 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 1C5WRd-00053z-00 for ; Thu, 09 Sep 2004 23:27:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5WWy-0002e2-2j for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Sep 2004 17:32:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5WWl-0002dB-G1 for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 17:32:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5WWk-0002cK-EC for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 17:32:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5WWk-0002cA-CE for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 17:32:22 -0400 Original-Received: from [66.111.4.31] (helo=frontend2.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5WRL-0004kI-UE for help-gnu-emacs@gnu.org; Thu, 09 Sep 2004 17:26:48 -0400 X-Sasl-enc: xt/0UXUtf/ntn9WXWBs3Ag 1094765205 Original-Received: from [192.251.102.29] (trillian.mcneese.edu [192.251.102.29]) by frontend2.messagingengine.com (Postfix) with ESMTP id C469A56D33A for ; Thu, 9 Sep 2004 17:26:45 -0400 (EDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.619) 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:20577 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20577 I'm adding keyword highlighting to a new major mode I'm writing. I'm having trouble getting one type to work. I'd like to set any line that begins with "vms " to font-lock-constant face. I thought something like this should work: ("^VMS.*$" . font-lock-constant-face) But the lines don't highlight at all. If I do: ("^VMS" . font-lock-constant-face) the "VMS" is colored but the rest of the line isn't. If I do this: ("^VMS...." . font-lock-constant-face) the "VMS" and four characters after are colored. This suggests the caret and the period are working as expected. Is the engine matching un-greedily? Any help would be appriciated. Thanks, Dan