* wl-address.el (wl-address-specials-regexp): New constant.
authorteranisi <teranisi>
Thu, 18 Jan 2001 08:56:31 +0000 (08:56 +0000)
committerteranisi <teranisi>
Thu, 18 Jan 2001 08:56:31 +0000 (08:56 +0000)
 (wl-address-quote-specials): Use it.

wl/ChangeLog
wl/wl-address.el

index 02de4cc..5828039 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-18  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-address.el (wl-address-specials-regexp): New constant.
+       (wl-address-quote-specials): Use it.
+
 2001-01-17  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-summary.el (wl-summary-rescan):
index 8b30e56..5581fc8 100644 (file)
@@ -280,9 +280,11 @@ Matched address lists are append to CL."
        (completing-read "To: " cl)
       (read-string "To: "))))
 
+(defconst wl-address-specials-regexp "[]\"(),.:;<>@[\\]")
+
 (defun wl-address-quote-specials (word)
   "Make quoted string of WORD if needed."
-  (if (assq 'specials (std11-lexical-analyze word))
+  (if (string-match wl-address-specials-regexp word)
       (prin1-to-string word)
     word))