On Tue, 30 Sep 2003 10:43:19 +0900 "Stephen J. Turnbull"
<stephen(a)xemacs.org> wrote:
>>>>> "Bjorn" == Bjorn Victor
<Bjorn.Victor(a)it.uu.se> writes:
Bjorn> In order to change the parsing, I not only need to set the
Bjorn> constants *after* loading the package, but I also need to
Bjorn> set all constants which depend on them - which are also
Bjorn> defconst's. (These are mail-extr-bad-dot-pattern,
Bjorn> mail-extr-name-pattern, mail-extr-initial-pattern, and
Bjorn> mail-extr-normal-name-pattern).
Bjorn> Please consider changing mail-extr.el to use defvar instead
Bjorn> of defconst. This would make life easier for
Bjorn> non-Americans.
Would you consider a trade -- your regexps for a few defvars? :-)
Sure! I was lazy and only added the Swedish letters ÅÄÖåäö (\305,
\304, \326, \345, \344, \366) to mail-extr-first-letters, but I added
ÅÄÖåäö0-9 to mail-extr-last-letters to handle "names" like Etaps02
(name of a conference, where the year really matters).
To really "work properly" internationally, both should probably
contain \200-\376; however there is a comment just before
mail-extr-first-letters saying "Keep this set as minimal as possible"
- probably for efficiency? Personally I would trade the efficiency
for better behaviour any day.
And please, change all the defconsts to defvars! Using defconst for
things someone may want to customize is a Bad Idea. (I've got the
same problem with mail-extr-trailing-comment-start-pattern, others
probably run into problems with other constants.)
Thanks for your positive reply!
-- Björn