aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-07-29 05:11:40 +0000
committerKenichi Handa2002-07-29 05:11:40 +0000
commit2653e2a77fcfcbf320fae7dd17b26d870d8d6016 (patch)
treedc49a169eb7f99fa023ca704e809e2a17cb6f203
parent5c88a01e1e8a7f7fefda2ee3c1e16e0782fa02e5 (diff)
downloademacs-2653e2a77fcfcbf320fae7dd17b26d870d8d6016.tar.gz
emacs-2653e2a77fcfcbf320fae7dd17b26d870d8d6016.zip
Fix previous unexpected change.
-rw-r--r--lisp/international/mule.el16
1 files changed, 6 insertions, 10 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index fc5b10bcb9b..7efcb9c1fb7 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -429,8 +429,7 @@ code-point in CCS. Currently not supported and just ignored."
429 "Return the coding type of CODING-SYSTEM. 429 "Return the coding type of CODING-SYSTEM.
430A coding type is an integer value indicating the encoding method 430A coding type is an integer value indicating the encoding method
431of CODING-SYSTEM. See the function `make-coding-system' for more detail." 431of CODING-SYSTEM. See the function `make-coding-system' for more detail."
432 (let ((spec (coding-system-spec coding-system))) 432 (aref (coding-system-spec coding-system) coding-spec-type-idx))
433 (if spec (aref spec coding-spec-type-idx))))
434 433
435(defun coding-system-mnemonic (coding-system) 434(defun coding-system-mnemonic (coding-system)
436 "Return the mnemonic character of CODING-SYSTEM. 435 "Return the mnemonic character of CODING-SYSTEM.
@@ -441,21 +440,18 @@ to indicate the coding system. If the arg is nil, return ?-."
441 440
442(defun coding-system-doc-string (coding-system) 441(defun coding-system-doc-string (coding-system)
443 "Return the documentation string for CODING-SYSTEM." 442 "Return the documentation string for CODING-SYSTEM."
444 (let ((spec (coding-system-spec coding-system))) 443 (aref (coding-system-spec coding-system) coding-spec-doc-string-idx))
445 (if spec (aref spec coding-spec-doc-string-idx))))
446 444
447(defun coding-system-plist (coding-system) 445(defun coding-system-plist (coding-system)
448 "Return the property list of CODING-SYSTEM." 446 "Return the property list of CODING-SYSTEM."
449 (let ((spec (coding-system-spec coding-system))) 447 (aref (coding-system-spec coding-system) coding-spec-plist-idx))
450 (if spec (aref spec coding-spec-plist-idx))))
451 448
452(defun coding-system-flags (coding-system) 449(defun coding-system-flags (coding-system)
453 "Return `flags' of CODING-SYSTEM. 450 "Return `flags' of CODING-SYSTEM.
454A `flags' of a coding system is a vector of length 32 indicating detailed 451A `flags' of a coding system is a vector of length 32 indicating detailed
455information of a coding system. See the function `make-coding-system' 452information of a coding system. See the function `make-coding-system'
456for more detail." 453for more detail."
457 (let ((spec (coding-system-spec coding-system))) 454 (aref (coding-system-spec coding-system) coding-spec-flags-idx))
458 (if spec (aref spec coding-spec-flags-idx))))
459 455
460(defun coding-system-get (coding-system prop) 456(defun coding-system-get (coding-system prop)
461 "Extract a value from CODING-SYSTEM's property list for property PROP." 457 "Extract a value from CODING-SYSTEM's property list for property PROP."
@@ -466,8 +462,8 @@ for more detail."
466 (let ((plist (coding-system-plist coding-system))) 462 (let ((plist (coding-system-plist coding-system)))
467 (if plist 463 (if plist
468 (plist-put plist prop val) 464 (plist-put plist prop val)
469 (let ((spec (coding-system-spec coding-system))) 465 (aset (coding-system-spec coding-system) coding-spec-plist-idx
470 (if spec (aset spec coding-spec-plist-idx (list prop val))))))) 466 (list prop val)))))
471 467
472(defun coding-system-category (coding-system) 468(defun coding-system-category (coding-system)
473 "Return the coding category of CODING-SYSTEM. 469 "Return the coding category of CODING-SYSTEM.