+1998-12-04 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * mel-b-ccl.el (base64-ccl-insert-encoded-file): Use
+ `insert-file-contents-as-specified-coding-system' instead of
+ `insert-file-contents'.
+ * mel-q-ccl.el (quoted-printable-ccl-insert-encoded-file):
+ Likewise.
+
+ * mel-b-ccl.el (base64-ccl-write-decoded-region): Use
+ `write-region-as-specified-coding-system' instead of
+ `write-region'.
+ * mel-q-ccl.el (quoted-printable-ccl-write-decoded-region):
+ Likewise.
+
+\f
1998-12-02 MORIOKA Tomohiko <morioka@jaist.ac.jp>
* FLIM: Version 1.12.1 (Nishinoky\e-Dò)\e-A released.
(defun base64-ccl-insert-encoded-file (filename)
"Encode contents of file FILENAME to base64, and insert the result."
(interactive (list (read-file-name "Insert encoded file: ")))
- (let ((coding-system-for-read 'mel-ccl-base64-lf-rev))
- (insert-file-contents filename)))
+ (insert-file-contents-as-specified-coding-system
+ filename 'mel-ccl-base64-lf-rev))
(mel-define-method-function (mime-encode-string string (nil "base64"))
'base64-ccl-encode-string)
(interactive
(list (region-beginning) (region-end)
(read-file-name "Write decoded region to file: ")))
- (let ((coding-system-for-write 'mel-ccl-b-rev)
- jka-compr-compression-info-list)
- (write-region start end filename)))
+ (write-region-as-specified-coding-system
+ start end filename 'mel-ccl-b-rev))
(mel-define-method-function (mime-decode-string string (nil "base64"))
'base64-ccl-decode-string)
(defun quoted-printable-ccl-insert-encoded-file (filename)
"Encode contents of the file named as FILENAME, and insert it."
(interactive (list (read-file-name "Insert encoded file: ")))
- (let ((coding-system-for-read 'mel-ccl-quoted-printable-lf-lf-rev))
- (insert-file-contents filename)))
+ (insert-file-contents-as-specified-coding-system
+ filename 'mel-ccl-quoted-printable-lf-lf-rev))
(mel-define-method-function
(mime-encode-string string (nil "quoted-printable"))
(interactive
(list (region-beginning) (region-end)
(read-file-name "Write decoded region to file: ")))
- (let ((coding-system-for-write 'mel-ccl-quoted-printable-lf-lf-rev))
- (write-region start end filename)))
+ (write-region-as-specified-coding-system
+ start end filename 'mel-ccl-quoted-printable-lf-lf-rev))
(mel-define-method-function
(mime-decode-string string (nil "quoted-printable"))