From: Kenichi Handa Date: Wed, 18 Jun 1997 13:21:23 +0000 (+0000) Subject: (coding-system-parent): Moved from mule-util.el. X-Git-Tag: emacs-20.1~1634 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd882697eaf8c576757b07373761169fabb581e3;p=emacs.git (coding-system-parent): Moved from mule-util.el. --- diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 830f3924e2f..5b97b0e6e33 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -291,6 +291,13 @@ See also the documentation of make-char." (or (get coding-system 'coding-category) (coding-system-category (get coding-system 'coding-system))))) +(defun coding-system-parent (coding-system) + "Return parent of CODING-SYSTEM." + (let ((parent (get coding-system 'parent-coding-system))) + (and parent + (or (coding-system-parent parent) + parent)))) + ;; Make subsidiary coding systems (eol-type variants) of CODING-SYSTEM. (defun make-subsidiary-coding-system (coding-system) (let ((subsidiaries (vector (intern (format "%s-unix" coding-system))