From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Diary font-lock problem Date: Thu, 05 Apr 2007 20:28:54 -0700 Organization: None Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175830674 10222 80.91.229.12 (6 Apr 2007 03:37:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2007 03:37:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 05:37:36 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZfGX-00086Y-SU for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2007 05:37:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZfJy-0001DY-Mv for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Apr 2007 23:41:06 -0400 Original-Path: shelby.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: news.Stanford.EDU 1175830134 19920 171.64.109.31 (6 Apr 2007 03:28:54 GMT) Original-X-Complaints-To: news@news.stanford.edu X-Spook: radar Sivi Vukovi Kahane Chai DNA Gerakin Aceh Merdeka X-Ran: $q:Rda9Q?/>t.i4qTj&eR^f/EHSj2'\]]!dM/#={NFace;dU@&==`AQ`a#98RBKYMp36Op X-Hue: green X-Attribution: GM Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: nobody User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:EbmXw7HZ8uUkYKJzn+jJuoc7big= Original-Xref: shelby.stanford.edu gnu.emacs.help:146847 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:42451 Archived-At: Stephen Berman wrote: > Thu, Apr 5, 2007 Today's entry > > in which the string "Thu, Apr 5, 2007" has diary face. > 1. Let ~/.emacs consist only of this sexp: You've written this: (setq diary-date-forms '((month "/" day "[^/0-9]") (month "/" day "/" year "[^0-9]") (monthname " *" day "[^,0-9]") (monthname " *" day ", *" year "[^0-9]") (dayname "\\W") (dayname ", *" monthname " *" day ", *" year "[^0-9]"))) where the last line is the pattern you added. The string "Thu, Apr 5, 2007" also matches the pattern in the previous line, ie (dayname "\\W"). This pattern gets applied before yours does. So move your pattern earlier in the diary-date-forms list (at the start is probably best).