(mime-view-application/pgp): Specify preview buffer explicitly;
authoryamaoka <yamaoka>
Fri, 2 Jul 1999 12:19:43 +0000 (12:19 +0000)
committeryamaoka <yamaoka>
Fri, 2 Jul 1999 12:19:43 +0000 (12:19 +0000)
set the value of `mime-raw-buffer' and `mime-mother-buffer' in preview buffer.

mime-pgp.el

index dcbe2d8..b953c12 100644 (file)
@@ -79,6 +79,7 @@
         (new-name
          (format "%s-%s" (buffer-name) (mime-entity-number entity)))
         (mother (current-buffer))
+        (preview-buffer (concat "*Preview-" (buffer-name) "*"))
         representation-type)
     (set-buffer (get-buffer-create new-name))
     (erase-buffer)
           (setq representation-type 'binary)
           ))
     (setq major-mode 'mime-show-message-mode)
-    (save-window-excursion (mime-view-buffer nil nil mother
+    (save-window-excursion (mime-view-buffer nil preview-buffer mother
                                             nil representation-type))
-    (set-window-buffer p-win mime-preview-buffer)
+    (with-current-buffer preview-buffer
+      (setq mime-raw-buffer (get-buffer new-name)
+           mime-mother-buffer mother))
+    (set-window-buffer p-win preview-buffer)
     ))