diff lisp/tm/tmh-comp.el @ 98:0d2f883870bc r20-1b1

Import from CVS: tag r20-1b1
author cvs
date Mon, 13 Aug 2007 09:13:56 +0200
parents c0c698873ce1
children fe104dbd9147
line wrap: on
line diff
--- a/lisp/tm/tmh-comp.el	Mon Aug 13 09:12:43 2007 +0200
+++ b/lisp/tm/tmh-comp.el	Mon Aug 13 09:13:56 2007 +0200
@@ -1,12 +1,12 @@
 ;;; tm-mh-e.el --- tm-mh-e functions for composing messages
 
-;; Copyright (C) 1993,1994,1995,1996 Free Software Foundation, Inc.
+;; Copyright (C) 1993,1994,1995,1996,1997 Free Software Foundation, Inc.
 
 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;;         OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
 ;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;; Created: 1996/2/29 (separated from tm-mh-e.el)
-;; Version: $Id: tmh-comp.el,v 1.2 1996/12/28 21:03:16 steve Exp $
+;; Version: $Id: tmh-comp.el,v 1.3 1997/02/15 22:21:31 steve Exp $
 ;; Keywords: mail, MH, MIME, multimedia, encoded-word, multilingual
 
 ;; This file is part of tm (Tools for MIME).
@@ -464,14 +464,18 @@
 	    (delete-windows-on mh-show-buffer))
 	(set-buffer mh-show-buffer)	; Find displayed message
 	(let ((mh-ins-str
-	       (let (mime-viewer/plain-text-preview-hook buf)
-		 (prog1
-		     (save-window-excursion
-		       (set-buffer mime::preview/article-buffer)
-		       (setq buf (mime/viewer-mode))
-		       (buffer-string)
-		       )
-		   (kill-buffer buf)))))
+	       (if mime::preview/article-buffer
+		   (let (mime-viewer/plain-text-preview-hook buf)
+		     (prog1
+			 (save-window-excursion
+			   (set-buffer mime::preview/article-buffer)
+			   (setq buf (mime/viewer-mode))
+			   (buffer-string)
+			   )
+		       (kill-buffer buf)
+		       ))
+		 (buffer-string)
+		 )))
 	  (set-buffer to-buffer)
 	  (save-restriction
 	    (narrow-to-region to-point to-point)