From: morioka Date: Fri, 16 Aug 1996 05:44:47 +0000 (+0000) Subject: (rfc822/analyze-atom): New implementation. X-Git-Tag: XEmacs-20_3-b27-viet~92 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d0053f7942fc9d7135ada5305867bf746b72ec;p=elisp%2Fmu-cite.git (rfc822/analyze-atom): New implementation. --- diff --git a/tl-822.el b/tl-822.el index f80c0c4..7a5e164 100644 --- a/tl-822.el +++ b/tl-822.el @@ -29,7 +29,7 @@ (defconst rfc822/RCS-ID - "$Id: tl-822.el,v 7.32 1996-08-16 05:36:27 morioka Exp $") + "$Id: tl-822.el,v 7.33 1996-08-16 05:44:47 morioka Exp $") (defconst rfc822/version (get-version-string rfc822/RCS-ID)) @@ -251,17 +251,15 @@ ) (defun rfc822/analyze-atom (str) - (let ((i (position-mismatched - (function - (lambda (elt) - (not (find elt rfc822/non-atom-chars)) - )) str)) - ) - (if (> i 0) - (cons (cons 'atom (substring str 0 i)) - (substring str i) - )) - )) + (let ((i (string-match (concat "[" rfc822/non-atom-chars "]") str))) + (if i + (if (> i 0) + (cons (cons 'atom (substring str 0 i)) + (substring str i) + )) + (if (not (string-equal str "")) + (cons (cons 'spaces str) "") + )))) (defun rfc822/analyze-quoted-string (str) (let ((len (length str)))