From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "sandro.dentella" Newsgroups: gmane.emacs.help Subject: regexp match failure Date: 22 Nov 2006 06:46:33 -0800 Organization: http://groups.google.com Message-ID: <1164206793.546304.289140@m7g2000cwm.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1164210864 30924 80.91.229.2 (22 Nov 2006 15:54:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 15:54:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 16:54:18 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GmuQ7-0007Z2-He for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 16:53:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmuQ7-0007gn-2z for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 10:53:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 151.38.130.161 Original-X-Trace: posting.google.com 1164206799 14794 127.0.0.1 (22 Nov 2006 14:46:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 22 Nov 2006 14:46:39 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Galeon/2.0.0 (Debian package 2.0.0-2),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m7g2000cwm.googlegroups.com; posting-host=151.38.130.161; posting-account=5pj8_A0AAAAcvY3f2Jf9G78aXC6jAaZG Original-Xref: shelby.stanford.edu gnu.emacs.help:143280 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38897 Archived-At: Hi, I can't understand wht's wrong with the following regexp: (define-derived-mode mutt-mode text-mode "Mutt" (make-face 'mutt-variable-face) (font-lock-add-keywords nil '( ("^\\(Date\\|Status:\\)" 1 font-lock-keyword-face) ("^\\(\\S+:\\)" 1 font-lock-keyword-face) )) (font-lock-mode 1) ) The first ine works, it colors Date: and Status:, the second line should in my opinion be just a generalized version of the first line but it does not work. BTW, i'd have written: "^[-\\S]+:" but it doens't work eather. Can anybody explain me what I'm missing? Thanks sandro *:-)