diff options
| author | Kenichi Handa | 2001-01-31 23:51:49 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-01-31 23:51:49 +0000 |
| commit | a2852e456f3ae2ab59cc0f73e8a2a689713eef34 (patch) | |
| tree | 69f4a813be167d462a0abf51126b469e439d4c38 | |
| parent | 8e0284991968f7ea98f81f17b77006a55112a0ec (diff) | |
| download | emacs-a2852e456f3ae2ab59cc0f73e8a2a689713eef34.tar.gz emacs-a2852e456f3ae2ab59cc0f73e8a2a689713eef34.zip | |
(make-coding-system): Add description
about recognized properties in the docstring.
| -rw-r--r-- | lisp/international/mule.el | 59 |
1 files changed, 58 insertions, 1 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index c3e8b0c9aa3..fecba4979a5 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -710,7 +710,64 @@ FLAGS specifies more detailed information of the coding system as follows: | |||
| 710 | decoding and encoding. CCL programs should be specified by their | 710 | decoding and encoding. CCL programs should be specified by their |
| 711 | symbols. | 711 | symbols. |
| 712 | 712 | ||
| 713 | PROPERTIES is an alist of properties vs the corresponding values. | 713 | PROPERTIES is an alist of properties vs the corresponding values. The |
| 714 | following properties are recognized: | ||
| 715 | |||
| 716 | o post-read-conversion | ||
| 717 | |||
| 718 | The value is a function to call after some text is inserted and | ||
| 719 | decoded by the coding system itself and before any functions in | ||
| 720 | `after-insert-functions' are called. The arguments to this | ||
| 721 | function is the same as those of a function in | ||
| 722 | `after-insert-functions', i.e. LENGTH of a text while putting point | ||
| 723 | at the head of the text to be decoded | ||
| 724 | |||
| 725 | o pre-write-conversion | ||
| 726 | |||
| 727 | The value is a function to call after all functions in | ||
| 728 | `write-region-annotate-functions' and `buffer-file-format' are | ||
| 729 | called, and before the text is encoded by the coding system itself. | ||
| 730 | The arguments to this function is the same as those of a function | ||
| 731 | in `write-region-annotate-functions', i.e. FROM and TO specifying | ||
| 732 | region of a text. | ||
| 733 | |||
| 734 | o translation-table-for-decode | ||
| 735 | |||
| 736 | The value is a translation table to be applied on decoding. See | ||
| 737 | the function `make-translation-table' for the format of translation | ||
| 738 | table. | ||
| 739 | |||
| 740 | o translation-table-for-encode | ||
| 741 | |||
| 742 | The value is a translation table to be applied on encoding. | ||
| 743 | |||
| 744 | o safe-chars | ||
| 745 | |||
| 746 | The value is a char table. If a character has non-nil value in it, | ||
| 747 | the character is safely supported by the coding system. This | ||
| 748 | overrides the specification of safe-charsets. | ||
| 749 | |||
| 750 | o safe-charsets | ||
| 751 | |||
| 752 | The value is a list of charsets safely supported by the coding | ||
| 753 | system. The value t means that all charsets Emacs handles are | ||
| 754 | supported. Even if some charset is not in this list, it doesn't | ||
| 755 | mean that the charset can't be encoded in the coding system, | ||
| 756 | instead, it just means that some other receiver of a text encoded | ||
| 757 | in the coding system won't be able to handle that charset. | ||
| 758 | |||
| 759 | o mime-charset | ||
| 760 | |||
| 761 | The value is a symbol of which name is `MIME-charset' parameter of | ||
| 762 | the coding system. | ||
| 763 | |||
| 764 | o valid-codes (meaningful only for a coding system based on CCL) | ||
| 765 | |||
| 766 | The value is a list to indicate valid byte ranges of the encoded | ||
| 767 | file. Each element of the list is an integer or a cons of integer. | ||
| 768 | In the former case, the integer value is a valid byte code. In the | ||
| 769 | latter case, the integers specifies the range of valid byte codes. | ||
| 770 | |||
| 714 | These properties are set in PLIST, a property list. This function | 771 | These properties are set in PLIST, a property list. This function |
| 715 | also sets properties `coding-category' and `alias-coding-systems' | 772 | also sets properties `coding-category' and `alias-coding-systems' |
| 716 | automatically. | 773 | automatically. |