]> git.eshelyaron.com Git - emacs.git/commitdiff
(coding-system-category): New function.
authorKenichi Handa <handa@m17n.org>
Tue, 10 Jun 2003 01:24:23 +0000 (01:24 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 10 Jun 2003 01:24:23 +0000 (01:24 +0000)
lisp/international/mule.el

index 687a58b94ac1052e42f86e39bbd58ac88d622d17..51ae8832c1c16f5ffb5dc7254ebe281cd905cfae 100644 (file)
@@ -695,6 +695,10 @@ If CODING-SYSTEM supports all ISO-2022 charsets, return `iso-2022'.
 If CODING-SYSTEM supports all emacs-mule charsets, return `emacs-mule'."
   (plist-get (coding-system-plist coding-system) :charset-list))
 
+(defun coding-system-category (coding-system)
+  "Return a category symbol of CODING-SYSTEM."
+  (plist-get (coding-system-plist coding-system) :category))
+
 (defun coding-system-get (coding-system prop)
   "Extract a value from CODING-SYSTEM's property list for property PROP.
 For compatibility with Emacs 20/21, this accepts old-style symbols