X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mcs-ltn1.el;h=9e06fe5a08c47a33b9f7561af068b035fab06eaf;hb=7e67f474839cdc4089f01d0474fa0fee1b677c16;hp=17a93bbff1ddd086aeb0201cd6b48b599d0bc893;hpb=8ea0cf57c248b6a4ba2f73288cc1b7cad582e171;p=elisp%2Fapel.git diff --git a/mcs-ltn1.el b/mcs-ltn1.el index 17a93bb..9e06fe5 100644 --- a/mcs-ltn1.el +++ b/mcs-ltn1.el @@ -1,9 +1,9 @@ ;;; mcs-ltn1.el --- MIME charset implementation for Emacs 19 ;;; and XEmacs without MULE -;; Copyright (C) 1995,1996,1997,1998 MORIOKA Tomohiko +;; Copyright (C) 1995,1996,1997,1998,2000 Free Software Foundation, Inc. -;; Author: MORIOKA Tomohiko +;; Author: MORIOKA Tomohiko ;; Keywords: emulation, compatibility, Mule ;; This file is part of APEL (A Portable Emacs Library). @@ -38,13 +38,13 @@ (mac . "\r")))) ) -(defun mime-charset-to-coding-system (charset) +(defun mime-charset-to-coding-system (charset &optional lbt) (if (stringp charset) - (setq charset (intern (downcase charset))) - ) + (setq charset (intern (downcase charset)))) (if (memq charset (list 'us-ascii default-mime-charset)) - charset - )) + charset)) + +(defalias 'mime-charset-p 'mime-charset-to-coding-system) (defun detect-mime-charset-region (start end) "Return MIME charset for region between START and END."