aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2003-05-06 12:29:02 +0000
committerKenichi Handa2003-05-06 12:29:02 +0000
commit0ea1a6ca28aa172454d2b4b4a46df2af69459b15 (patch)
tree4367a30a4e61cee00445fc98cf4f945458ee92bd
parentb49a1807a984553f0bb9c1e2d3d16d306c2d13d0 (diff)
downloademacs-0ea1a6ca28aa172454d2b4b4a46df2af69459b15.tar.gz
emacs-0ea1a6ca28aa172454d2b4b4a46df2af69459b15.zip
(define-coding-system): Fix docstring about :bom and :endian.
-rw-r--r--lisp/international/mule.el18
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index df3455ab4d0..1be00688428 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -439,9 +439,6 @@ of ASCII.
439If `use-oldjis' is specified, JIS0208-1976 is designated instead of 439If `use-oldjis' is specified, JIS0208-1976 is designated instead of
440JIS0208-1983.") 440JIS0208-1983.")
441 441
442;; Fixme: Are translation tables still relevant? (Not currently
443;; implemented, anyway.)
444;; Fixme: What does cons :bom mean? Explanation of :endian.
445(defun define-coding-system (name docstring &rest props) 442(defun define-coding-system (name docstring &rest props)
446 "Define NAME (a symbol) as a coding system with DOCSTRING and attributes. 443 "Define NAME (a symbol) as a coding system with DOCSTRING and attributes.
447The remaining arguments must come in pairs ATTRIBUTE VALUE. ATTRIBUTE 444The remaining arguments must come in pairs ATTRIBUTE VALUE. ATTRIBUTE
@@ -559,11 +556,24 @@ This attributes specifies whether the coding system uses a `byte order
559mark'. VALUE must nil, t, or cons of coding systems whose 556mark'. VALUE must nil, t, or cons of coding systems whose
560`:coding-type' is `utf-16'. 557`:coding-type' is `utf-16'.
561 558
559If the value is nil, on decoding, don't treat the first two-byte as
560BOM, and on encoding, don't produce BOM bytes.
561
562If the value is t, on decoding, skip the first two-byte as BOM, and on
563encoding, produce BOM bytes accoding to the value of `:endian'.
564
565If the value is cons, on decoding, check the first two-byte. If theyq
566are 0xFE 0xFF, use the car part coding system of the value. If they
567are 0xFF 0xFE, use the car part coding system of the value.
568Otherwise, treat them as bytes for a normal character. On encoding,
569produce BOM bytes accoding to the value of `:endian'.
570
562This attribute has a meaning only when `:coding-type' is `utf-16'. 571This attribute has a meaning only when `:coding-type' is `utf-16'.
563 572
564`:endian' 573`:endian'
565 574
566VALUE must be t or nil. See the above description for the detail. 575VALUE must be `big' or `little' specifying big-endian and
576little-endian respectively. The default value is `big'.
567 577
568This attribute has a meaning only when `:coding-type' is `utf-16'. 578This attribute has a meaning only when `:coding-type' is `utf-16'.
569 579