* wl-draft.el (wl-draft-parse-mailbox-list): Don't insert extra space.
authorteranisi <teranisi>
Tue, 24 Oct 2000 03:23:47 +0000 (03:23 +0000)
committerteranisi <teranisi>
Tue, 24 Oct 2000 03:23:47 +0000 (03:23 +0000)
* wl-address.el (wl-address-string-without-group-list-contents): Fixed
 problem when group-list content is nothing.
(Reported by Mito <mit@nines.nec.co.jp>)

wl/ChangeLog
wl/wl-address.el
wl/wl-draft.el

index f4abd4c..90fba91 100644 (file)
@@ -1,3 +1,11 @@
+2000-10-24  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-draft.el (wl-draft-parse-mailbox-list): Don't insert extra space.
+
+       * wl-address.el (wl-address-string-without-group-list-contents): Fixed
+       problem when group-list content is nothing.
+       (Reported by Mito <mit@nines.nec.co.jp>)
+
 2000-10-18  SAITO Atsunori <sai@yedo.com>
 
        * wl-summary.el (wl-summary-print-destination): Adjust line length.
index 4d75b79..c9b55bf 100644 (file)
@@ -587,7 +587,7 @@ e.g. \"Mr. bar <hoge@foo.com>\"
 (defun wl-address-string-without-group-list-contents (sequence)
   "Return address string from lexical analyzed list SEQUENCE.
 Group list contents is not included."
-  (let (address-string route-addr-end token seq)
+  (let (address-string route-addr-end token seq group-end)
   (while sequence
     (setq token (car sequence))
     (cond
@@ -597,10 +597,12 @@ Group list contents is not included."
       (setq address-string (concat address-string (cdr token))) ; ':'
       (setq seq (cdr sequence))
       (setq token (car seq))
-      (while (not (and (eq 'specials (car token))
-                      (string= (cdr token) ";")))
+      (setq group-end nil)
+      (while (not group-end)
        (setq token (car seq))
-       (setq seq (cdr seq)))
+       (setq seq (cdr seq))
+       (setq group-end (and (eq 'specials (car token))
+                            (string= (cdr token) ";"))))
       (setq address-string (concat address-string (cdr token))) ; ';'
       (setq sequence seq))
      ;;   route-addr  =  "<" [route] addr-spec ">"
index a217749..0a617c0 100644 (file)
@@ -879,7 +879,7 @@ from current buffer."
          (setq addresses (cdr addresses)))
        (when (and remove-group-list has-group-list)
          (delete-region beg (point))
-         (insert " " (wl-address-string-without-group-list-contents seq))))
+         (insert (wl-address-string-without-group-list-contents seq))))
       mailbox-list)))
 
 (defun wl-draft-deduce-address-list (buffer header-start header-end)