1999-02-19 Tanaka Akira <akr@jaist.ac.jp>
+ * mel-b-ccl.el (base64-ccl-encode-string): New argument `no-line-break'.
+ (base64-ccl-encode-region): Ditto.
+
+1999-02-19 Tanaka Akira <akr@jaist.ac.jp>
+
* mime.el (mime-read-field): Use `plain' instead of `native' for
third argument for `mime-decode-field-body'.
(unless-broken ccl-execute-eof-block-on-decoding-some
- (defun base64-ccl-encode-string (string)
+ (defun base64-ccl-encode-string (string &optional no-line-break)
"Encode STRING with base64 encoding."
- (decode-coding-string string 'mel-ccl-base64-lf-rev))
+ (if no-line-break
+ (decode-coding-string string 'mel-ccl-b-rev)
+ (decode-coding-string string 'mel-ccl-base64-lf-rev)))
- (defun base64-ccl-encode-region (start end)
+ (defun base64-ccl-encode-region (start end &optional no-line-break)
"Encode region from START to END with base64 encoding."
(interactive "r")
- (decode-coding-region start end 'mel-ccl-base64-lf-rev))
+ (if no-line-break
+ (decode-coding-region start end 'mel-ccl-b-rev)
+ (decode-coding-region start end 'mel-ccl-base64-lf-rev)))
(defun base64-ccl-insert-encoded-file (filename)
"Encode contents of file FILENAME to base64, and insert the result."