emacs-devel
[Top][All Lists]
Advanced

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

Re: Fontification of calendar breaks localization


From: Stefan Monnier
Subject: Re: Fontification of calendar breaks localization
Date: Tue, 26 Nov 2002 17:46:41 -0500

> I have written a quick fix that builds the regular expression using the
> names defined in `calendar-month-name-array' so that it always
> accurately matches month names.  It is in the attached patch (against
> the current CVS).
> 
> What do you think?

Good idea.

> !     (mapconcat 'identity 
> !                (mapcar '(lambda (x) (concat x " -?[0-9]+"))
> !                        calendar-month-name-array)
> !                "\\|")

I'd use

   (concat (regexp-opt (mapcar 'identity calendar-month-name-array) t)
           " -?[0-9]+")

instead, tho: it makes a shorter regexp.


        Stefan






reply via email to

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