From: Dave Love Date: Tue, 3 Oct 2000 17:38:06 +0000 (+0000) Subject: (quoted-printable-encode-region): Don't use mm-find-charset-region. X-Git-Tag: emacs-pretest-21.0.90~1191 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3b0bf2617c6dc06345152599963c25260b079e8b;p=emacs.git (quoted-printable-encode-region): Don't use mm-find-charset-region. --- diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el index 5bfb149bf69..6d2c01d41d8 100644 --- a/lisp/gnus/qp.el +++ b/lisp/gnus/qp.el @@ -85,10 +85,13 @@ the form expected by `skip-chars-forward'. If `mm-use-ultra-safe-encoding' is set, fold lines unconditionally and encode lines starting with \"From\"." (interactive "r") - (if (delq 'eight-bit-graphic - (delq 'eight-bit-control - (delq 'ascii (mm-find-charset-region from to)))) - (error "Multibyte character in QP encoding region")) + ;; Fixme: what should this do in XEmacs/Mule? + (if (fboundp 'find-charset-region) ; else XEmacs, non-Mule + (if (delq 'unknown ; Emacs 20 unibyte + (delq 'eight-bit-graphic ; Emacs 21 + (delq 'eight-bit-control + (delq 'ascii (find-charset-region from to))))) + (error "Multibyte character in QP encoding region"))) (unless class (setq class "^\000-\007\013\015-\037\200-\377=")) (if (fboundp 'string-as-multibyte)