aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-12-28 17:43:43 +0200
committerEli Zaretskii2014-12-28 17:43:43 +0200
commit79e2dade762491c58aa6396e35bae0ef418bafc6 (patch)
treed54180c78efaa3dcd5867f77e1d9080a567f87c1
parenta45d4b846434cf9fb70ac9e4d591956af4259214 (diff)
downloademacs-79e2dade762491c58aa6396e35bae0ef418bafc6.tar.gz
emacs-79e2dade762491c58aa6396e35bae0ef418bafc6.zip
lisp/international/mule.el (define-coding-system): Fix typos in the doc string.
Add missing ChangeLog entry for the previous commit.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/international/mule.el108
2 files changed, 64 insertions, 54 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 193e0c0ebf2..ba7503fb753 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12014-12-28 Eli Zaretskii <eliz@gnu.org>
2
3 * international/mule.el (define-coding-system): Fix typos in the
4 doc string.
5
62014-12-28 Kenichi Handa <handa@gnu.org>
7
8 * international/mule.el (define-coding-system): Improve the doc
9 string.
10
12014-12-28 Ivan Shmakov <ivan@siamics.net> 112014-12-28 Ivan Shmakov <ivan@siamics.net>
2 12
3 * net/shr.el (shr-tag-table): Fix handling of tbody/header/footer 13 * net/shr.el (shr-tag-table): Fix handling of tbody/header/footer
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 4f8d50c8c84..c957a77e9ab 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -599,21 +599,22 @@ opposite of decoding).
599 599
600The decoding is done by at most 3 steps; the first is to convert 600The decoding is done by at most 3 steps; the first is to convert
601a byte sequence to a character sequence by one of Emacs' 601a byte sequence to a character sequence by one of Emacs'
602internal routines specified by :coding-type attribute. The 602internal routines specified by `:coding-type' attribute. The
603optional second step is to convert the character sequence (the 603optional second step is to convert the character sequence (the
604result of the first step) by a translation table specified 604result of the first step) by a translation table specified
605by :decode-translation-table attribute. The optional third step 605by `:decode-translation-table' attribute. The optional third step
606is to convert the above reslut by a Lisp function specified 606is to convert the above result by a Lisp function specified
607by :post-read-conversion attribute. 607by `:post-read-conversion' attribute.
608 608
609The encoding is done by at most 3 steps which are reverse of the 609The encoding is done by at most 3 steps, which are the reverse
610decoding steps. The optional first step converts a character 610of the decoding steps. The optional first step converts a
611sequence to another character sequence by a Lisp function 611character sequence to another character sequence by a Lisp
612specified by :pre-write-conversion attribute. The optional 612function specified by `:pre-write-conversion' attribute. The
613second step converts the above result by a translation table 613optional second step converts the above result by a translation
614specified by :encode-translation-table attribute.. The third 614table specified by `:encode-translation-table' attribute. The
615step converts the abobe result to a byte sequence by one of 615third step converts the above result to a byte sequence by one
616Emacs' internal routines specified by :coding-type attribute. 616of the Emacs's internal routines specified by the `:coding-type'
617attribute.
617 618
618The following attributes have special meanings. Those labeled as 619The following attributes have special meanings. Those labeled as
619\"(required)\" should not be omitted. 620\"(required)\" should not be omitted.
@@ -629,53 +630,52 @@ decodes and encodes to. It must be one of `charset', `utf-8',
629`utf-16', `iso-2022', `emacs-mule', `shift-jis', `ccl', 630`utf-16', `iso-2022', `emacs-mule', `shift-jis', `ccl',
630`raw-text', `undecided'. 631`raw-text', `undecided'.
631 632
632If VALUE is `charset', the coding system is for handling a byte 633If VALUE is `charset', the coding system is for handling a
633sequence in which each byte or each two to four bytes sequence 634byte sequence in which each byte or every two- to four-byte
634represents a character code of a charset specified 635sequence represents a character code of a charset specified
635by :charset-list attribute. 636by the `:charset-list' attribute.
636 637
637If VALUE is `utf-8', the coding system is for handling Unicode 638If VALUE is `utf-8', the coding system is for handling Unicode
638UTF-8 byte sequence. See also the documentation of the 639UTF-8 byte sequences. See also the documentation of the
639attribute :bom. 640attribute `:bom'.
640 641
641If VALUE is `utf-16', the coding system is for handling Unicode 642If VALUE is `utf-16', the coding system is for handling Unicode
642UTF-16 byte sequence. See also the documentation of the 643UTF-16 byte sequences. See also the documentation of the
643attributes :bom and :endian. 644attributes :bom and `:endian'.
644 645
645If VALUE is `iso-2022', the coding system is for handling a byte 646If VALUE is `iso-2022', the coding system is for handling byte
646sequence conforming to ISO/IEC 2022. See also the documentation 647sequences conforming to ISO/IEC 2022. See also the documentation
647of the attributes :charset-list, :flags, and :designation. 648of the attributes `:charset-list', `:flags', and `:designation'.
648 649
649If VALUE is `emacs-mule', the coding system is for handling a 650If VALUE is `emacs-mule', the coding system is for handling
650byte sequence which Emacs 20 and 21 used for internal character 651byte sequences which Emacs 20 and 21 used for their internal
651representations. 652representation of characters.
652 653
653If VALUE is `shift-jis', the coding system is for handling a byte 654If VALUE is `shift-jis', the coding system is for handling byte
654sequence of Shift_JIS format. See also the 655sequences of Shift_JIS format. See also the attribute `:charset-list'.
655attribute :charset-list.
656 656
657If VALUE is `ccl', the coding system uses CCL programs to decodes 657If VALUE is `ccl', the coding system uses CCL programs to decode
658and encodes to a byte sequence. The CCL programs must be 658and encode byte sequences. The CCL programs must be
659specified by the attributes :ccl-decoder and :ccl-encoder. 659specified by the attributes `:ccl-decoder' and `:ccl-encoder'.
660 660
661If VALUE is `raw-text', the coding system decodes a byte sequence 661If VALUE is `raw-text', the coding system decodes byte sequences
662as is. 662without any conversions.
663 663
664`:eol-type' 664`:eol-type'
665 665
666VALUE is the EOL (end-of-line) format of the coding system. It must be 666VALUE is the EOL (end-of-line) format of the coding system. It must be
667one of `unix', `dos', `mac'. The symbol `unix' means Unix-like EOL 667one of `unix', `dos', `mac'. The symbol `unix' means Unix-like EOL
668\(i.e. single LF), `dos' means DOS-like EOL \(i.e. sequence of CR LF), 668\(i.e. a single LF character), `dos' means DOS-like EOL \(i.e. a sequence
669and `mac' means Mac-like EOL \(i.e. single CR). If omitted, Emacs 669of CR followed by LF), and `mac' means Mac-like EOL \(i.e. a single CR).
670detects the EOL format automatically when decoding. 670If omitted, Emacs detects the EOL format automatically when decoding.
671 671
672`:charset-list' (required if :coding-type is `charset' or `shift-jis') 672`:charset-list' (required if `:coding-type' is `charset' or `shift-jis')
673 673
674VALUE must be a list of charsets supported by the coding system. 674VALUE must be a list of charsets supported by the coding system.
675 675
676If `coding-type:' is `charset', on decoding and encoding by the 676If `coding-type:' is `charset', then on decoding and encoding by the
677coding system, if a character belongs to multiple charsets in the 677coding system, if a character belongs to multiple charsets in the
678list, a charset that comes earlier in the list is selected. 678list, a charset that comes first in the list is selected.
679 679
680If `:coding-type' is `iso-2022', VALUE may be `iso-2022', which 680If `:coding-type' is `iso-2022', VALUE may be `iso-2022', which
681indicates that the coding system supports all ISO-2022 based 681indicates that the coding system supports all ISO-2022 based
@@ -685,7 +685,7 @@ If `:coding-type' is `shift-jis', VALUE must be a list of three
685to four charsets supported by Shift_JIS encoding scheme. The 685to four charsets supported by Shift_JIS encoding scheme. The
686first charset (one dimension) is for code space 0x00..0x7F, the 686first charset (one dimension) is for code space 0x00..0x7F, the
687second (one dimension) for 0xA1..0xDF, the third (two dimension) 687second (one dimension) for 0xA1..0xDF, the third (two dimension)
688for 0x8140..0xEFFC, the optional fourth (thw dimension) for 688for 0x8140..0xEFFC, the optional fourth (three dimension) for
6890xF040..0xFCFC. 6890xF040..0xFCFC.
690 690
691If `:coding-type' is `emacs-mule', VALUE may be `emacs-mule', 691If `:coding-type' is `emacs-mule', VALUE may be `emacs-mule',
@@ -711,9 +711,9 @@ VALUE must be a translation table to use on encoding.
711VALUE must be a function to call after some text is inserted and 711VALUE must be a function to call after some text is inserted and
712decoded by the coding system itself and before any functions in 712decoded by the coding system itself and before any functions in
713`after-insert-functions' are called. This function is passed one 713`after-insert-functions' are called. This function is passed one
714argument; the number of characters in the text to convert, with 714argument: the number of characters in the text to convert, with
715point at the start of the text. The function should leave point 715point at the start of the text. The function should leave point
716the same, and return the new character count. 716unchanged, and should return the new character count.
717 717
718`:pre-write-conversion' 718`:pre-write-conversion'
719 719
@@ -742,7 +742,7 @@ to lower case.
742`:mime-text-unsuitable' 742`:mime-text-unsuitable'
743 743
744VALUE non-nil means the `:mime-charset' property names a charset which 744VALUE non-nil means the `:mime-charset' property names a charset which
745is unsuitable for the top-level media type \"text\". 745is unsuitable for the top-level media of type \"text\".
746 746
747`:flags' 747`:flags'
748 748
@@ -772,8 +772,8 @@ This attribute is meaningful only when `:coding-type' is `iso-2022'.
772 772
773`:bom' 773`:bom'
774 774
775This attributes specifies whether the coding system uses a `byte order 775This attributes specifies whether the coding system uses a \"byte order
776mark'. VALUE must be nil, t, or cons of coding systems whose 776mark\". VALUE must be nil, t, or a cons cell of coding systems whose
777`:coding-type' is `utf-16' or `utf-8'. 777`:coding-type' is `utf-16' or `utf-8'.
778 778
779If the value is nil, on decoding, don't treat the first two-byte as 779If the value is nil, on decoding, don't treat the first two-byte as
@@ -782,9 +782,9 @@ BOM, and on encoding, don't produce BOM bytes.
782If the value is t, on decoding, skip the first two-byte as BOM, and on 782If the value is t, on decoding, skip the first two-byte as BOM, and on
783encoding, produce BOM bytes according to the value of `:endian'. 783encoding, produce BOM bytes according to the value of `:endian'.
784 784
785If the value is cons, on decoding, check the first two-byte. If they 785If the value is a cons cell, on decoding, check the first two bytes.
786are 0xFE 0xFF, use the car part coding system of the value. If they 786If they are 0xFE 0xFF, use the car part coding system of the value.
787are 0xFF 0xFE, use the cdr part coding system of the value. 787If they are 0xFF 0xFE, use the cdr part coding system of the value.
788Otherwise, treat them as bytes for a normal character. On encoding, 788Otherwise, treat them as bytes for a normal character. On encoding,
789produce BOM bytes according to the value of `:endian'. 789produce BOM bytes according to the value of `:endian'.
790 790
@@ -801,14 +801,14 @@ This attribute is meaningful only when `:coding-type' is `utf-16'.
801`:ccl-decoder' (required if :coding-type is `ccl') 801`:ccl-decoder' (required if :coding-type is `ccl')
802 802
803VALUE is a CCL program name defined by `define-ccl-program'. The 803VALUE is a CCL program name defined by `define-ccl-program'. The
804the CCL program reads a byte sequence and writes a character 804CCL program reads a byte sequence and writes a character sequence
805sequence as a decoding result. 805as a decoding result.
806 806
807`:ccl-encoder' (required if :coding-type is `ccl') 807`:ccl-encoder' (required if :coding-type is `ccl')
808 808
809VALUE is a CCL program name defined by `define-ccl-program'. The 809VALUE is a CCL program name defined by `define-ccl-program'. The
810the CCL program reads a character sequence and writes a byte 810CCL program reads a character sequence and writes a byte sequence
811sequence as a encoding result. 811as an encoding result.
812 812
813`:inhibit-null-byte-detection' 813`:inhibit-null-byte-detection'
814 814