X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=wl%2Fwl-address.el;h=5581fc834876ce3c1bd7c2e5df19d44620382b47;hb=c2ac268b74496aeac035cc9f9e903946bd4c51ae;hp=8b30e56b528e5b455b66d46e342afd2dc32feb3d;hpb=6c294bd31998519569b347649a553910f76ae351;p=elisp%2Fwanderlust.git diff --git a/wl/wl-address.el b/wl/wl-address.el index 8b30e56..5581fc8 100644 --- a/wl/wl-address.el +++ b/wl/wl-address.el @@ -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))