* mime-edit.el (mime-edit-insert-key): Insert a text tag when
authorueno <ueno>
Fri, 9 Jun 2000 09:44:43 +0000 (09:44 +0000)
committerueno <ueno>
Fri, 9 Jun 2000 09:44:43 +0000 (09:44 +0000)
the buffer has any trailing text.

ChangeLog
mime-edit.el

index 44cfc4a..0372f12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-09   Daiki Ueno  <ueno@unixuser.org>
+
+       * mime-edit.el (mime-edit-insert-key): Insert a text tag when
+       the buffer has any trailing text.
+
 2000-06-05  Shugo Maeda <shugo@ruby-lang.org>
 
        * pgg-gpg.el (pgg-scheme-insert-key): Don't quote user id.
index 922adb1..0b953ad 100644 (file)
@@ -2304,7 +2304,10 @@ and insert data encoded as ENCODING."
   (interactive "P")
   (mime-edit-insert-tag "application" "pgp-keys")
   (mime-edit-define-encoding "7bit")
-  (pgg-insert-key))
+  (pgg-insert-key)
+  (if (and (not (eobp))
+          (not (looking-at mime-edit-single-part-tag-regexp)))
+      (insert (mime-make-text-tag) "\n")))
 
 
 ;;; @ flag setting