diff options
| author | Eli Zaretskii | 2009-02-07 11:48:40 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-02-07 11:48:40 +0000 |
| commit | 7d2a859fabcea25051efff5bc6fec78b7290c2b6 (patch) | |
| tree | 06719d6362742fd08290c6337eeadd100e487949 | |
| parent | ab992d66299ccc1269033f23f8b4ea33daca99a3 (diff) | |
| download | emacs-7d2a859fabcea25051efff5bc6fec78b7290c2b6.tar.gz emacs-7d2a859fabcea25051efff5bc6fec78b7290c2b6.zip | |
(Explicit Encoding): Document the `charset' text property produced by
decode-coding-region and decode-coding-string.
| -rw-r--r-- | doc/lispref/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 64e05276e36..dd57b11860a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -5,6 +5,8 @@ | |||
| 5 | * keymaps.texi (Searching Keymaps): | 5 | * keymaps.texi (Searching Keymaps): |
| 6 | * nonascii.texi (Translation of Characters): Reinstate | 6 | * nonascii.texi (Translation of Characters): Reinstate |
| 7 | documentation of translation-table-for-input. | 7 | documentation of translation-table-for-input. |
| 8 | (Explicit Encoding): Document the `charset' text property produced | ||
| 9 | by decode-coding-region and decode-coding-string. | ||
| 8 | 10 | ||
| 9 | 2009-01-27 Alan Mackenzie <acm@muc.de> | 11 | 2009-01-27 Alan Mackenzie <acm@muc.de> |
| 10 | 12 | ||
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index f425c19d3d4..7e4c767ad43 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -1568,6 +1568,10 @@ inserting it. | |||
| 1568 | 1568 | ||
| 1569 | If decoded text is inserted in some buffer, this command returns the | 1569 | If decoded text is inserted in some buffer, this command returns the |
| 1570 | length of the decoded text. | 1570 | length of the decoded text. |
| 1571 | |||
| 1572 | This command puts a @code{charset} text property on the decoded text. | ||
| 1573 | The value of the property states the character set used to decode the | ||
| 1574 | original text. | ||
| 1571 | @end deffn | 1575 | @end deffn |
| 1572 | 1576 | ||
| 1573 | @defun decode-coding-string string coding-system &optional nocopy buffer | 1577 | @defun decode-coding-string string coding-system &optional nocopy buffer |
| @@ -1583,6 +1587,18 @@ contains 8-bit bytes in their multibyte form). | |||
| 1583 | If optional argument @var{buffer} specifies a buffer, the decoded text | 1587 | If optional argument @var{buffer} specifies a buffer, the decoded text |
| 1584 | is inserted in that buffer after point (point does not move). In this | 1588 | is inserted in that buffer after point (point does not move). In this |
| 1585 | case, the return value is the length of the decoded text. | 1589 | case, the return value is the length of the decoded text. |
| 1590 | |||
| 1591 | @cindex @code{charset}, text property | ||
| 1592 | This function puts a @code{charset} text property on the decoded text. | ||
| 1593 | The value of the property states the character set used to decode the | ||
| 1594 | original text: | ||
| 1595 | |||
| 1596 | @example | ||
| 1597 | @group | ||
| 1598 | (decode-coding-string "Gr\374ss Gott" 'latin-1) | ||
| 1599 | @result{} #("Gr@"uss Gott" 0 9 (charset iso-8859-1)) | ||
| 1600 | @end group | ||
| 1601 | @end example | ||
| 1586 | @end defun | 1602 | @end defun |
| 1587 | 1603 | ||
| 1588 | @defun decode-coding-inserted-region from to filename &optional visit beg end replace | 1604 | @defun decode-coding-inserted-region from to filename &optional visit beg end replace |