+2001-11-16 Richard M. Stallman <rms@gnu.org>
+
+ * mail/mail-extr.el (mail-extr-voodoo): Treat a number as a word
+ if it doesn't make sense as anything else.
+ Don't recognize a "telephone number" at the beginning of the name.
+ (mail-extr-leading-garbage): Match non-word characters only.
+
2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* emulation/viper.el: Fix typo.
;; Keep this set as minimal as possible.
(defconst mail-extr-last-letters (purecopy "[:alpha:]`'."))
-(defconst mail-extr-leading-garbage
- (purecopy (format "[^%s]+" mail-extr-first-letters)))
+(defconst mail-extr-leading-garbage "\\W+")
;; (defconst mail-extr-non-name-chars
;; (purecopy (concat "^" mail-extr-all-letters ".")))
(looking-at mail-extr-trailing-comment-start-pattern)
;; Stop before telephone numbers
- (looking-at mail-extr-telephone-extension-pattern))
+ (and (>= word-count 1)
+ (looking-at mail-extr-telephone-extension-pattern)))
(setq name-done-flag t))
;; Delete ham radio call signs
(goto-char name-end)
(setq word-found-flag t))
+ ;; Allow a number as a word, if it doesn't mean anything else.
+ ((looking-at "[0-9]+\\>")
+ (setq name-beg (point))
+ (setq name-end (match-end 0))
+ (goto-char name-end)
+ (setq word-found-flag t))
+
(t
(setq name-done-flag t)
))