Avoid attaching the external buffer.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Thu, 27 Apr 2000 13:08:09 +0000 (13:08 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Thu, 27 Apr 2000 13:08:09 +0000 (13:08 +0000)
lisp/ChangeLog
lisp/gnus-msg.el

index cc9a46e..72129d9 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-27 09:06:29  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-msg.el (gnus-bug): Avoid attaching the external buffer.
+
 2000-04-27 00:58:43  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * mm-decode.el (mm-inline-media-tests): Add message/partial.
index 737b293..57f7d02 100644 (file)
@@ -869,10 +869,12 @@ If YANK is non-nil, include the original article."
               (stringp nntp-server-type))
       (insert nntp-server-type))
     (insert "\n\n\n\n\n")
-    (save-excursion
-      (set-buffer (gnus-get-buffer-create " *gnus environment info*"))
-      (gnus-debug))
-    (insert "<#part type=application/x-emacs-lisp buffer=\" *gnus environment info*\" disposition=inline description=\"User settings\"><#/part>")
+    (let (text)
+      (save-excursion
+       (set-buffer (gnus-get-buffer-create " *gnus environment info*"))
+       (gnus-debug)
+       (setq text (buffer-string)))
+      (insert "<#part type=application/x-emacs-lisp disposition=inline description=\"User settings\">\n" text "\n<#/part>"))
     (goto-char (point-min))
     (search-forward "Subject: " nil t)
     (message "")))