Mercurial > hg > xemacs-beta
diff lisp/tm/tm-edit.el @ 114:8619ce7e4c50 r20-1b9
Import from CVS: tag r20-1b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:21:54 +0200 |
parents | 0d2f883870bc |
children | 25f70ba0133c |
line wrap: on
line diff
--- a/lisp/tm/tm-edit.el Mon Aug 13 09:20:50 2007 +0200 +++ b/lisp/tm/tm-edit.el Mon Aug 13 09:21:54 2007 +0200 @@ -6,7 +6,7 @@ ;; MORIOKA Tomohiko <morioka@jaist.ac.jp> ;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp> ;; Created: 1994/08/21 renamed from mime.el -;; Version: $Revision: 1.8 $ +;; Version: $Revision: 1.9 $ ;; Keywords: mail, news, MIME, multimedia, multilingual ;; This file is part of tm (Tools for MIME). @@ -120,7 +120,7 @@ ;;; (defconst mime-editor/RCS-ID - "$Id: tm-edit.el,v 1.8 1997/02/15 22:21:28 steve Exp $") + "$Id: tm-edit.el,v 1.9 1997/03/22 06:02:45 steve Exp $") (defconst mime-editor/version (get-version-string mime-editor/RCS-ID)) @@ -1760,16 +1760,17 @@ (tag (buffer-substring beg end)) ) (delete-region beg end) - (setq contype (mime-editor/get-contype tag)) - (setq encoding (mime-editor/get-encoding tag)) - (insert (concat prefix "--" boundary "\n")) - (save-restriction - (narrow-to-region (point)(point)) - (insert "Content-Type: " contype "\n") - (if encoding - (insert "Content-Transfer-Encoding: " encoding "\n")) - (mime/encode-message-header) - ) + (let ((contype (mime-editor/get-contype tag)) + (encoding (mime-editor/get-encoding tag)) + ) + (insert (concat prefix "--" boundary "\n")) + (save-restriction + (narrow-to-region (point)(point)) + (insert "Content-Type: " contype "\n") + (if encoding + (insert "Content-Transfer-Encoding: " encoding "\n")) + (mime/encode-message-header) + )) t))) (defun mime-editor/translate-region (beg end &optional boundary multipart)