Mercurial > emacs
changeset 25439:f597d85734d7
(mail-extr-all-letters-but-separators)
(mail-extr-first-letters, mail-extr-last-letters):
Use character classes [:alpha:] and [:alnum:].
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 29 Aug 1999 20:35:30 +0000 |
parents | 4868ac7f6a3f |
children | 0a1099580297 |
files | lisp/mail/mail-extr.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/mail-extr.el Sun Aug 29 20:32:04 1999 +0000 +++ b/lisp/mail/mail-extr.el Sun Aug 29 20:35:30 1999 +0000 @@ -299,7 +299,7 @@ ;; You will also notice the consideration for the ;; Swedish/Finnish/Norwegian character set. (defconst mail-extr-all-letters-but-separators - (purecopy "][A-Za-z{|}'~0-9`\240-\377")) + (purecopy "][[:alnum:]{|}'~`")) ;; Any character that can occur in a name in an RFC822 address including ;; the separator (hyphen and possibly period) for multipart names. @@ -309,11 +309,11 @@ ;; Any character that can start a name. ;; Keep this set as minimal as possible. -(defconst mail-extr-first-letters (purecopy "A-Za-z\240-\377")) +(defconst mail-extr-first-letters (purecopy "[:alpha:]")) ;; Any character that can end a name. ;; Keep this set as minimal as possible. -(defconst mail-extr-last-letters (purecopy "A-Za-z\240-\377`'.")) +(defconst mail-extr-last-letters (purecopy "[:alpha:]`'.")) (defconst mail-extr-leading-garbage (purecopy (format "[^%s]+" mail-extr-first-letters)))