comparison lisp/mail/mail-extr.el @ 81020:6e1a357362af

(mail-extract-address-components): Recognize non-ASCII characters except for NBSP as words.
author Kenichi Handa <handa@m17n.org>
date Tue, 22 May 2007 02:13:27 +0000
parents e3694f1cb928
children b98604865ea0 31beec9ee600
comparison
equal deleted inserted replaced
81019:a1b4792efa5e 81020:6e1a357362af
871 ?\\ 871 ?\\
872 )) 872 ))
873 (mail-extr-nuke-char-at (point)) 873 (mail-extr-nuke-char-at (point))
874 (forward-char 1)) 874 (forward-char 1))
875 (t 875 (t
876 (forward-word 1))) 876 ;; Do `(forward-word 1)', recognizing non-ASCII characters
877 ;; except Latin-1 nbsp as words.
878 (while (progn
879 (skip-chars-forward "^\000-\177 ")
880 (and (not (eobp))
881 (eq ?w (char-syntax (char-after)))
882 (progn
883 (forward-word 1)
884 (and (not (eobp))
885 (> (char-after) ?\177)
886 (not (eq (char-after) ? )))))))))
877 (or (eq char ?\() 887 (or (eq char ?\()
878 ;; At the end of first address of a multiple address header. 888 ;; At the end of first address of a multiple address header.
879 (and (eq char ?,) 889 (and (eq char ?,)
880 (eobp)) 890 (eobp))
881 (setq last-real-pos (point)))) 891 (setq last-real-pos (point))))