[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Diary font-lock problem
From: |
Glenn Morris |
Subject: |
Re: Diary font-lock problem |
Date: |
Thu, 05 Apr 2007 20:28:54 -0700 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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).