From 5a78073aba9a22c45b0d19fcf54318c74dfb2ca5 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 21 Dec 1999 01:44:42 +0000 Subject: [PATCH] Restore the original code and invalidate it; use mel for the base64 codec. --- lisp/base64.el | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lisp/base64.el b/lisp/base64.el index a396808..42750dd 100644 --- a/lisp/base64.el +++ b/lisp/base64.el @@ -25,8 +25,17 @@ ;;; Boston, MA 02111-1307, USA. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(require 'poe) +(eval-when-compile (require 'static)) +(require 'mel) + +(eval-and-compile + (mel-find-function 'mime-decode-string "base64") + (mel-find-function 'mime-decode-region "base64") + (mel-find-function 'mime-encode-string "base64") + (mel-find-function 'mime-encode-region "base64")) + +(static-when nil ;; For non-MULE (if (not (fboundp 'char-int)) (fset 'char-int 'identity)) @@ -110,9 +119,9 @@ base64-encoder-program.") (insert-char char count) (with-current-buffer buffer (insert-char char count)))) - (setq base64-binary-coding-system 'raw-text)) + (setq base64-binary-coding-system 'no-conversion)) -(defun-maybe base64-decode-region (start end) +(defun base64-decode-region (start end) (interactive "r") ;;(message "Decoding base64...") (let ((work-buffer nil) @@ -180,7 +189,7 @@ base64-encoder-program.") ;;(message "Decoding base64... done") ) -(defun-maybe base64-encode-region (start end &optional no-line-break) +(defun base64-encode-region (start end &optional no-line-break) (interactive "r") (message "Encoding base64...") (let ((work-buffer nil) @@ -275,4 +284,6 @@ base64-encoder-program.") (fset 'base64-decode-string 'base64-decode) (fset 'base64-encode-string 'base64-encode) +);; (static-when nil ... + (provide 'base64) -- 1.7.10.4