Mercurial > emacs
changeset 46728:bd4c1ae5d8e7
Fix previous unexpected change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 29 Jul 2002 05:11:40 +0000 |
parents | ef296b0ffe50 |
children | 348e184769b0 |
files | lisp/international/mule.el |
diffstat | 1 files changed, 6 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/mule.el Mon Jul 29 05:05:19 2002 +0000 +++ b/lisp/international/mule.el Mon Jul 29 05:11:40 2002 +0000 @@ -429,8 +429,7 @@ "Return the coding type of CODING-SYSTEM. A coding type is an integer value indicating the encoding method of CODING-SYSTEM. See the function `make-coding-system' for more detail." - (let ((spec (coding-system-spec coding-system))) - (if spec (aref spec coding-spec-type-idx)))) + (aref (coding-system-spec coding-system) coding-spec-type-idx)) (defun coding-system-mnemonic (coding-system) "Return the mnemonic character of CODING-SYSTEM. @@ -441,21 +440,18 @@ (defun coding-system-doc-string (coding-system) "Return the documentation string for CODING-SYSTEM." - (let ((spec (coding-system-spec coding-system))) - (if spec (aref spec coding-spec-doc-string-idx)))) + (aref (coding-system-spec coding-system) coding-spec-doc-string-idx)) (defun coding-system-plist (coding-system) "Return the property list of CODING-SYSTEM." - (let ((spec (coding-system-spec coding-system))) - (if spec (aref spec coding-spec-plist-idx)))) + (aref (coding-system-spec coding-system) coding-spec-plist-idx)) (defun coding-system-flags (coding-system) "Return `flags' of CODING-SYSTEM. A `flags' of a coding system is a vector of length 32 indicating detailed information of a coding system. See the function `make-coding-system' for more detail." - (let ((spec (coding-system-spec coding-system))) - (if spec (aref spec coding-spec-flags-idx)))) + (aref (coding-system-spec coding-system) coding-spec-flags-idx)) (defun coding-system-get (coding-system prop) "Extract a value from CODING-SYSTEM's property list for property PROP." @@ -466,8 +462,8 @@ (let ((plist (coding-system-plist coding-system))) (if plist (plist-put plist prop val) - (let ((spec (coding-system-spec coding-system))) - (if spec (aset spec coding-spec-plist-idx (list prop val))))))) + (aset (coding-system-spec coding-system) coding-spec-plist-idx + (list prop val))))) (defun coding-system-category (coding-system) "Return the coding category of CODING-SYSTEM.