`insert-file-contents-as-coding-system' with CODING-SYSTEM as the 1st arg.
* mel-q-ccl.el (quoted-printable-ccl-insert-encoded-file): Likewise.
* mel-b-ccl.el (base64-ccl-write-decoded-region): Call
`write-region-as-coding-system' with CODING-SYSTEM as the 1st arg.
* mel-q-ccl.el (quoted-printable-ccl-write-decoded-region): Likewise.
1998-12-14 Katsumi Yamaoka <yamaoka@jpl.org>
+ * mel-b-ccl.el (base64-ccl-insert-encoded-file): Call
+ `insert-file-contents-as-coding-system' with CODING-SYSTEM as the
+ 1st arg.
+ * mel-q-ccl.el (quoted-printable-ccl-insert-encoded-file):
+ Likewise.
+
+ * mel-b-ccl.el (base64-ccl-write-decoded-region): Call
+ `write-region-as-coding-system' with CODING-SYSTEM as the 1st arg.
+ * mel-q-ccl.el (quoted-printable-ccl-write-decoded-region):
+ Likewise.
+
+1998-12-14 Katsumi Yamaoka <yamaoka@jpl.org>
+
* mel-b-ccl.el (base64-ccl-insert-encoded-file): Use
`insert-file-contents-as-coding-system' (renamed from
`insert-file-contents-as-specified-coding-system').
(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: ")))
- (insert-file-contents-as-coding-system filename 'mel-ccl-base64-lf-rev))
+ (insert-file-contents-as-coding-system 'mel-ccl-base64-lf-rev filename))
(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: ")))
- (write-region-as-coding-system start end filename 'mel-ccl-b-rev))
+ (write-region-as-coding-system 'mel-ccl-b-rev start end filename))
(mel-define-method-function (mime-decode-string string (nil "base64"))
'base64-ccl-decode-string)
"Encode contents of the file named as FILENAME, and insert it."
(interactive (list (read-file-name "Insert encoded file: ")))
(insert-file-contents-as-coding-system
- filename 'mel-ccl-quoted-printable-lf-lf-rev))
+ 'mel-ccl-quoted-printable-lf-lf-rev filename))
(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: ")))
- (write-region-as-coding-system start end filename
- 'mel-ccl-quoted-printable-lf-lf-rev))
+ (write-region-as-coding-system 'mel-ccl-quoted-printable-lf-lf-rev
+ start end filename))
(mel-define-method-function
(mime-decode-string string (nil "quoted-printable"))