`mime-create-tag'. Use `string=' instead of `looking-at'.
+2003-01-12 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * wl-draft.el (wl-draft-remove-text-plain-tag): Use
+ `mime-create-tag'. Use `string=' instead of `looking-at'.
+
2003-01-11 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* wl-news.el.in (wl-news-send-news): Add 3rd argument `folder'
(defun wl-draft-remove-text-plain-tag ()
"Remove text/plain tag of mime-edit."
- (if (looking-at "^--\\[\\[text/plain\\]\\]$")
- (delete-region (point-at-bol)(1+ (point-at-eol)))))
+ (when (string= (mime-create-tag "text" "plain")
+ (buffer-substring-no-properties (point-at-bol)(point-at-eol)))
+ (delete-region (point-at-bol)(1+ (point-at-eol)))))
(defun wl-draft-reedit (number)
(let ((draft-folder (wl-folder-get-elmo-folder wl-draft-folder))