From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Diary font-lock problem
Date: Thu, 05 Apr 2007 20:28:54 -0700 [thread overview]
Message-ID: <ll3b3efafd.fsf@xoc2.stanford.EDU> (raw)
In-Reply-To: mailman.1789.1175788495.7795.help-gnu-emacs@gnu.org
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).
next parent reply other threads:[~2007-04-06 3:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1789.1175788495.7795.help-gnu-emacs@gnu.org>
2007-04-06 3:28 ` Glenn Morris [this message]
2007-04-06 4:15 ` Diary font-lock problem Glenn Morris
2007-04-06 16:00 ` Stephen Berman
2007-04-05 15:50 Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ll3b3efafd.fsf@xoc2.stanford.EDU \
--to=rgm+news@stanford.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.