diff options
| author | Richard M. Stallman | 1999-08-29 20:35:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-08-29 20:35:30 +0000 |
| commit | 6e66e4c6fc350fe8cb85d4cc35d9ca567df56548 (patch) | |
| tree | 9ac3b61c9ea2241ab7a8df15946e6d301f8e6d0e | |
| parent | 565c8985a0dc86ef7ce4108f616fc65c7fcd97c0 (diff) | |
| download | emacs-6e66e4c6fc350fe8cb85d4cc35d9ca567df56548.tar.gz emacs-6e66e4c6fc350fe8cb85d4cc35d9ca567df56548.zip | |
(mail-extr-all-letters-but-separators)
(mail-extr-first-letters, mail-extr-last-letters):
Use character classes [:alpha:] and [:alnum:].
| -rw-r--r-- | lisp/mail/mail-extr.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mail/mail-extr.el b/lisp/mail/mail-extr.el index ab3545b66df..7a58699e095 100644 --- a/lisp/mail/mail-extr.el +++ b/lisp/mail/mail-extr.el | |||
| @@ -299,7 +299,7 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 299 | ;; You will also notice the consideration for the | 299 | ;; You will also notice the consideration for the |
| 300 | ;; Swedish/Finnish/Norwegian character set. | 300 | ;; Swedish/Finnish/Norwegian character set. |
| 301 | (defconst mail-extr-all-letters-but-separators | 301 | (defconst mail-extr-all-letters-but-separators |
| 302 | (purecopy "][A-Za-z{|}'~0-9`\240-\377")) | 302 | (purecopy "][[:alnum:]{|}'~`")) |
| 303 | 303 | ||
| 304 | ;; Any character that can occur in a name in an RFC822 address including | 304 | ;; Any character that can occur in a name in an RFC822 address including |
| 305 | ;; the separator (hyphen and possibly period) for multipart names. | 305 | ;; the separator (hyphen and possibly period) for multipart names. |
| @@ -309,11 +309,11 @@ by translating things like \"foo!bar!baz@host\" into \"baz@bar.UUCP\"." | |||
| 309 | 309 | ||
| 310 | ;; Any character that can start a name. | 310 | ;; Any character that can start a name. |
| 311 | ;; Keep this set as minimal as possible. | 311 | ;; Keep this set as minimal as possible. |
| 312 | (defconst mail-extr-first-letters (purecopy "A-Za-z\240-\377")) | 312 | (defconst mail-extr-first-letters (purecopy "[:alpha:]")) |
| 313 | 313 | ||
| 314 | ;; Any character that can end a name. | 314 | ;; Any character that can end a name. |
| 315 | ;; Keep this set as minimal as possible. | 315 | ;; Keep this set as minimal as possible. |
| 316 | (defconst mail-extr-last-letters (purecopy "A-Za-z\240-\377`'.")) | 316 | (defconst mail-extr-last-letters (purecopy "[:alpha:]`'.")) |
| 317 | 317 | ||
| 318 | (defconst mail-extr-leading-garbage | 318 | (defconst mail-extr-leading-garbage |
| 319 | (purecopy (format "[^%s]+" mail-extr-first-letters))) | 319 | (purecopy (format "[^%s]+" mail-extr-first-letters))) |