diff options
| author | Eli Zaretskii | 2014-12-28 17:43:43 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-12-28 17:43:43 +0200 |
| commit | 79e2dade762491c58aa6396e35bae0ef418bafc6 (patch) | |
| tree | d54180c78efaa3dcd5867f77e1d9080a567f87c1 | |
| parent | a45d4b846434cf9fb70ac9e4d591956af4259214 (diff) | |
| download | emacs-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/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/international/mule.el | 108 |
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 @@ | |||
| 1 | 2014-12-28 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * international/mule.el (define-coding-system): Fix typos in the | ||
| 4 | doc string. | ||
| 5 | |||
| 6 | 2014-12-28 Kenichi Handa <handa@gnu.org> | ||
| 7 | |||
| 8 | * international/mule.el (define-coding-system): Improve the doc | ||
| 9 | string. | ||
| 10 | |||
| 1 | 2014-12-28 Ivan Shmakov <ivan@siamics.net> | 11 | 2014-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 | ||
| 600 | The decoding is done by at most 3 steps; the first is to convert | 600 | The decoding is done by at most 3 steps; the first is to convert |
| 601 | a byte sequence to a character sequence by one of Emacs' | 601 | a byte sequence to a character sequence by one of Emacs' |
| 602 | internal routines specified by :coding-type attribute. The | 602 | internal routines specified by `:coding-type' attribute. The |
| 603 | optional second step is to convert the character sequence (the | 603 | optional second step is to convert the character sequence (the |
| 604 | result of the first step) by a translation table specified | 604 | result of the first step) by a translation table specified |
| 605 | by :decode-translation-table attribute. The optional third step | 605 | by `:decode-translation-table' attribute. The optional third step |
| 606 | is to convert the above reslut by a Lisp function specified | 606 | is to convert the above result by a Lisp function specified |
| 607 | by :post-read-conversion attribute. | 607 | by `:post-read-conversion' attribute. |
| 608 | 608 | ||
| 609 | The encoding is done by at most 3 steps which are reverse of the | 609 | The encoding is done by at most 3 steps, which are the reverse |
| 610 | decoding steps. The optional first step converts a character | 610 | of the decoding steps. The optional first step converts a |
| 611 | sequence to another character sequence by a Lisp function | 611 | character sequence to another character sequence by a Lisp |
| 612 | specified by :pre-write-conversion attribute. The optional | 612 | function specified by `:pre-write-conversion' attribute. The |
| 613 | second step converts the above result by a translation table | 613 | optional second step converts the above result by a translation |
| 614 | specified by :encode-translation-table attribute.. The third | 614 | table specified by `:encode-translation-table' attribute. The |
| 615 | step converts the abobe result to a byte sequence by one of | 615 | third step converts the above result to a byte sequence by one |
| 616 | Emacs' internal routines specified by :coding-type attribute. | 616 | of the Emacs's internal routines specified by the `:coding-type' |
| 617 | attribute. | ||
| 617 | 618 | ||
| 618 | The following attributes have special meanings. Those labeled as | 619 | The 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 | ||
| 632 | If VALUE is `charset', the coding system is for handling a byte | 633 | If VALUE is `charset', the coding system is for handling a |
| 633 | sequence in which each byte or each two to four bytes sequence | 634 | byte sequence in which each byte or every two- to four-byte |
| 634 | represents a character code of a charset specified | 635 | sequence represents a character code of a charset specified |
| 635 | by :charset-list attribute. | 636 | by the `:charset-list' attribute. |
| 636 | 637 | ||
| 637 | If VALUE is `utf-8', the coding system is for handling Unicode | 638 | If VALUE is `utf-8', the coding system is for handling Unicode |
| 638 | UTF-8 byte sequence. See also the documentation of the | 639 | UTF-8 byte sequences. See also the documentation of the |
| 639 | attribute :bom. | 640 | attribute `:bom'. |
| 640 | 641 | ||
| 641 | If VALUE is `utf-16', the coding system is for handling Unicode | 642 | If VALUE is `utf-16', the coding system is for handling Unicode |
| 642 | UTF-16 byte sequence. See also the documentation of the | 643 | UTF-16 byte sequences. See also the documentation of the |
| 643 | attributes :bom and :endian. | 644 | attributes :bom and `:endian'. |
| 644 | 645 | ||
| 645 | If VALUE is `iso-2022', the coding system is for handling a byte | 646 | If VALUE is `iso-2022', the coding system is for handling byte |
| 646 | sequence conforming to ISO/IEC 2022. See also the documentation | 647 | sequences conforming to ISO/IEC 2022. See also the documentation |
| 647 | of the attributes :charset-list, :flags, and :designation. | 648 | of the attributes `:charset-list', `:flags', and `:designation'. |
| 648 | 649 | ||
| 649 | If VALUE is `emacs-mule', the coding system is for handling a | 650 | If VALUE is `emacs-mule', the coding system is for handling |
| 650 | byte sequence which Emacs 20 and 21 used for internal character | 651 | byte sequences which Emacs 20 and 21 used for their internal |
| 651 | representations. | 652 | representation of characters. |
| 652 | 653 | ||
| 653 | If VALUE is `shift-jis', the coding system is for handling a byte | 654 | If VALUE is `shift-jis', the coding system is for handling byte |
| 654 | sequence of Shift_JIS format. See also the | 655 | sequences of Shift_JIS format. See also the attribute `:charset-list'. |
| 655 | attribute :charset-list. | ||
| 656 | 656 | ||
| 657 | If VALUE is `ccl', the coding system uses CCL programs to decodes | 657 | If VALUE is `ccl', the coding system uses CCL programs to decode |
| 658 | and encodes to a byte sequence. The CCL programs must be | 658 | and encode byte sequences. The CCL programs must be |
| 659 | specified by the attributes :ccl-decoder and :ccl-encoder. | 659 | specified by the attributes `:ccl-decoder' and `:ccl-encoder'. |
| 660 | 660 | ||
| 661 | If VALUE is `raw-text', the coding system decodes a byte sequence | 661 | If VALUE is `raw-text', the coding system decodes byte sequences |
| 662 | as is. | 662 | without any conversions. |
| 663 | 663 | ||
| 664 | `:eol-type' | 664 | `:eol-type' |
| 665 | 665 | ||
| 666 | VALUE is the EOL (end-of-line) format of the coding system. It must be | 666 | VALUE is the EOL (end-of-line) format of the coding system. It must be |
| 667 | one of `unix', `dos', `mac'. The symbol `unix' means Unix-like EOL | 667 | one 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 |
| 669 | and `mac' means Mac-like EOL \(i.e. single CR). If omitted, Emacs | 669 | of CR followed by LF), and `mac' means Mac-like EOL \(i.e. a single CR). |
| 670 | detects the EOL format automatically when decoding. | 670 | If 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 | ||
| 674 | VALUE must be a list of charsets supported by the coding system. | 674 | VALUE must be a list of charsets supported by the coding system. |
| 675 | 675 | ||
| 676 | If `coding-type:' is `charset', on decoding and encoding by the | 676 | If `coding-type:' is `charset', then on decoding and encoding by the |
| 677 | coding system, if a character belongs to multiple charsets in the | 677 | coding system, if a character belongs to multiple charsets in the |
| 678 | list, a charset that comes earlier in the list is selected. | 678 | list, a charset that comes first in the list is selected. |
| 679 | 679 | ||
| 680 | If `:coding-type' is `iso-2022', VALUE may be `iso-2022', which | 680 | If `:coding-type' is `iso-2022', VALUE may be `iso-2022', which |
| 681 | indicates that the coding system supports all ISO-2022 based | 681 | indicates 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 | |||
| 685 | to four charsets supported by Shift_JIS encoding scheme. The | 685 | to four charsets supported by Shift_JIS encoding scheme. The |
| 686 | first charset (one dimension) is for code space 0x00..0x7F, the | 686 | first charset (one dimension) is for code space 0x00..0x7F, the |
| 687 | second (one dimension) for 0xA1..0xDF, the third (two dimension) | 687 | second (one dimension) for 0xA1..0xDF, the third (two dimension) |
| 688 | for 0x8140..0xEFFC, the optional fourth (thw dimension) for | 688 | for 0x8140..0xEFFC, the optional fourth (three dimension) for |
| 689 | 0xF040..0xFCFC. | 689 | 0xF040..0xFCFC. |
| 690 | 690 | ||
| 691 | If `:coding-type' is `emacs-mule', VALUE may be `emacs-mule', | 691 | If `:coding-type' is `emacs-mule', VALUE may be `emacs-mule', |
| @@ -711,9 +711,9 @@ VALUE must be a translation table to use on encoding. | |||
| 711 | VALUE must be a function to call after some text is inserted and | 711 | VALUE must be a function to call after some text is inserted and |
| 712 | decoded by the coding system itself and before any functions in | 712 | decoded 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 |
| 714 | argument; the number of characters in the text to convert, with | 714 | argument: the number of characters in the text to convert, with |
| 715 | point at the start of the text. The function should leave point | 715 | point at the start of the text. The function should leave point |
| 716 | the same, and return the new character count. | 716 | unchanged, 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 | ||
| 744 | VALUE non-nil means the `:mime-charset' property names a charset which | 744 | VALUE non-nil means the `:mime-charset' property names a charset which |
| 745 | is unsuitable for the top-level media type \"text\". | 745 | is 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 | ||
| 775 | This attributes specifies whether the coding system uses a `byte order | 775 | This attributes specifies whether the coding system uses a \"byte order |
| 776 | mark'. VALUE must be nil, t, or cons of coding systems whose | 776 | mark\". 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 | ||
| 779 | If the value is nil, on decoding, don't treat the first two-byte as | 779 | If 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. | |||
| 782 | If the value is t, on decoding, skip the first two-byte as BOM, and on | 782 | If the value is t, on decoding, skip the first two-byte as BOM, and on |
| 783 | encoding, produce BOM bytes according to the value of `:endian'. | 783 | encoding, produce BOM bytes according to the value of `:endian'. |
| 784 | 784 | ||
| 785 | If the value is cons, on decoding, check the first two-byte. If they | 785 | If the value is a cons cell, on decoding, check the first two bytes. |
| 786 | are 0xFE 0xFF, use the car part coding system of the value. If they | 786 | If they are 0xFE 0xFF, use the car part coding system of the value. |
| 787 | are 0xFF 0xFE, use the cdr part coding system of the value. | 787 | If they are 0xFF 0xFE, use the cdr part coding system of the value. |
| 788 | Otherwise, treat them as bytes for a normal character. On encoding, | 788 | Otherwise, treat them as bytes for a normal character. On encoding, |
| 789 | produce BOM bytes according to the value of `:endian'. | 789 | produce 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 | ||
| 803 | VALUE is a CCL program name defined by `define-ccl-program'. The | 803 | VALUE is a CCL program name defined by `define-ccl-program'. The |
| 804 | the CCL program reads a byte sequence and writes a character | 804 | CCL program reads a byte sequence and writes a character sequence |
| 805 | sequence as a decoding result. | 805 | as 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 | ||
| 809 | VALUE is a CCL program name defined by `define-ccl-program'. The | 809 | VALUE is a CCL program name defined by `define-ccl-program'. The |
| 810 | the CCL program reads a character sequence and writes a byte | 810 | CCL program reads a character sequence and writes a byte sequence |
| 811 | sequence as a encoding result. | 811 | as an encoding result. |
| 812 | 812 | ||
| 813 | `:inhibit-null-byte-detection' | 813 | `:inhibit-null-byte-detection' |
| 814 | 814 | ||