From: tomo Date: Thu, 28 Dec 2000 04:57:26 +0000 (+0000) Subject: (mime-charset-p): New alias. X-Git-Tag: apel-10_3~9 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=984604d5fc994ae264175786ef64ddd74f6ec2cd;p=elisp%2Fapel.git (mime-charset-p): New alias. --- diff --git a/mcs-20.el b/mcs-20.el index fae467b..ca9f394 100644 --- a/mcs-20.el +++ b/mcs-20.el @@ -103,6 +103,8 @@ is specified, it is used as line break code type of coding-system." charset lbt cs) )))) +(defalias 'mime-charset-p 'mime-charset-to-coding-system) + (defvar widget-mime-charset-prompt-value-history nil "History of input to `widget-mime-charset-prompt-value'.") diff --git a/mcs-ltn1.el b/mcs-ltn1.el index 17a93bb..aa76ef9 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). @@ -40,11 +40,11 @@ (defun mime-charset-to-coding-system (charset) (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." diff --git a/mcs-nemacs.el b/mcs-nemacs.el index 0251369..9784ac6 100644 --- a/mcs-nemacs.el +++ b/mcs-nemacs.el @@ -1,8 +1,8 @@ ;;; mcs-nemacs.el --- MIME charset implementation for Nemacs -;; 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). @@ -48,6 +48,8 @@ ) (cdr (assq charset mime-charset-coding-system-alist))) +(fset 'mime-charset-p 'mime-charset-to-coding-system) + (defun detect-mime-charset-region (start end) "Return MIME charset for region between START and END. \[emu-nemacs.el]"