From 22beba3ebe7a254671c2e1112008dcdda5abff8e Mon Sep 17 00:00:00 2001 From: morioka Date: Thu, 24 Dec 1998 12:37:31 +0000 Subject: [PATCH] (default-mime-charset-for-write): New variable. (detect-mime-charset-region): Return `default-mime-charset-for-write' if suitable mime-charset is not found. --- mcs-om.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mcs-om.el b/mcs-om.el index 820ee9e..bff4150 100644 --- a/mcs-om.el +++ b/mcs-om.el @@ -191,10 +191,19 @@ It is used when MIME-charset is not specified. It must be symbol.") +(defvar default-mime-charset-for-write + default-mime-charset + "Default value of MIME-charset for encoding. +It is used when suitable MIME-charset is not found. +It must be symbol." + :group 'i18n + :type 'mime-charset) + (defun detect-mime-charset-region (start end) "Return MIME charset for region between START and END." - (charsets-to-mime-charset - (cons lc-ascii (find-charset-region start end)))) + (or (charsets-to-mime-charset + (cons lc-ascii (find-charset-region start end))) + default-mime-charset-for-write)) ;;; @ end -- 1.7.10.4