From 43fd8adb6259e75aa36a1a04830df312f30b355d Mon Sep 17 00:00:00 2001 From: morioka Date: Fri, 21 May 1999 11:27:15 +0000 Subject: [PATCH] (detect-mime-charset-region): Use `find-mime-charset-by-charsets'. --- mcs-20.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mcs-20.el b/mcs-20.el index c115e4c..5fc7502 100644 --- a/mcs-20.el +++ b/mcs-20.el @@ -139,13 +139,8 @@ It must be symbol." (defun detect-mime-charset-region (start end) "Return MIME charset for region between START and END." - (let ((charsets (find-charset-region start end))) - (or (charsets-to-mime-charset charsets) - (if default-mime-charset-detect-method-for-write - (funcall default-mime-charset-detect-method-for-write - 'region charsets start end) - default-mime-charset-for-write) - ))) + (find-mime-charset-by-charsets (find-charset-region start end) + 'region start end)) (defun write-region-as-mime-charset (charset start end filename &optional append visit lockname) -- 1.7.10.4