(write-region-as-mime-charset): New function.
authormorioka <morioka>
Thu, 14 May 1998 06:56:43 +0000 (06:56 +0000)
committermorioka <morioka>
Thu, 14 May 1998 06:56:43 +0000 (06:56 +0000)
emu-mule.el

index 63be74e..b089a14 100644 (file)
@@ -220,6 +220,14 @@ find-file-hooks, etc.
        (decode-coding-string string cs)
       string)))
 
+(defun write-region-as-mime-charset (charset start end filename)
+  "Like `write-region', q.v., but code-convert by MIME CHARSET."
+  (let ((file-coding-system
+        (or (mime-charset-to-coding-system charset)
+            *noconv*)))
+    (write-region start end filename append visit)
+    ))
+
 
 ;;; @@ to coding-system
 ;;;