Mercurial > emacs
comparison lisp/mail/mail-extr.el @ 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 | a61dfbd23534 |
children | aca2b7839d21 |
comparison
equal
deleted
inserted
replaced
25438:4868ac7f6a3f | 25439:f597d85734d7 |
---|---|
297 ;; separate parts of a multipart name (hyphen and period). | 297 ;; separate parts of a multipart name (hyphen and period). |
298 ;; Yes, there are weird people with digits in their names. | 298 ;; Yes, there are weird people with digits in their names. |
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. |
306 ;; #### should . be in here? | 306 ;; #### should . be in here? |
307 (defconst mail-extr-all-letters | 307 (defconst mail-extr-all-letters |
308 (purecopy (concat mail-extr-all-letters-but-separators "---"))) | 308 (purecopy (concat mail-extr-all-letters-but-separators "---"))) |
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))) |
320 | 320 |
321 ;; (defconst mail-extr-non-name-chars | 321 ;; (defconst mail-extr-non-name-chars |