help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Diary font-lock problem


From: Stephen Berman
Subject: Diary font-lock problem
Date: Thu, 05 Apr 2007 17:50:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux)

I would like to have diary entries of the form

Thu, Apr 5, 2007 Today's entry

in which the string "Thu, Apr 5, 2007" has diary face.  This
fontification is not provided by the default diary setup, but I had
hoped and expected to get it by customizing diary-date-forms
appropriately.  However, after making what I think is the necessary
customization, I still don't get the fontification I want.  I can
reproduce the problem with emacs -Q:

1. Let ~/.emacs consist only of this sexp:

Attachment: txtY3qt_ToLJb.txt
Description: ~/.emacs

2. emacs -Q

3. M-x calendar

4. In the calendar type `s' to show the whole diary, then in the diary
buffer type the above entry.  Only "Thu," has diary face.

If I eval diary-font-lock-keywords I get this:

Attachment: txtbXEEu4ifAi.txt
Description: diary-font-lock-keywords

The sexp immediately preceding `...' contains the result of the
customization I made above, and the regexp it contains is
string-match'd by the above diary entry string:

Attachment: txtXwj1rl2DZe.txt
Description: string-match

Therefore, I assume my customization is what I want and I would expect
the entire date string to have diary face.  Should I be doing
something else to get the fontification I want (and if so, what) or is
there a bug here?

Steve Berman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]