]> git.eshelyaron.com Git - emacs.git/commitdiff
(Explicit Encoding): Document the `charset' text property produced by
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Feb 2009 11:48:40 +0000 (11:48 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Feb 2009 11:48:40 +0000 (11:48 +0000)
decode-coding-region and decode-coding-string.

doc/lispref/ChangeLog
doc/lispref/nonascii.texi

index 64e05276e365f350f8dcc01ce267b1d7b7945b16..dd57b11860ad748fb1d30557da72477824ca1b41 100644 (file)
@@ -5,6 +5,8 @@
        * keymaps.texi (Searching Keymaps): 
        * nonascii.texi (Translation of Characters): Reinstate
        documentation of translation-table-for-input.
+       (Explicit Encoding): Document the `charset' text property produced
+       by decode-coding-region and decode-coding-string.
 
 2009-01-27  Alan Mackenzie  <acm@muc.de>
 
index f425c19d3d4a9f0193f41feb070b55730f601d8f..7e4c767ad43f43b81276146a8919a2ba8e640c7f 100644 (file)
@@ -1568,6 +1568,10 @@ inserting it.
 
 If decoded text is inserted in some buffer, this command returns the
 length of the decoded text.
+
+This command puts a @code{charset} text property on the decoded text.
+The value of the property states the character set used to decode the
+original text.
 @end deffn
 
 @defun decode-coding-string string coding-system &optional nocopy buffer
@@ -1583,6 +1587,18 @@ contains 8-bit bytes in their multibyte form).
 If optional argument @var{buffer} specifies a buffer, the decoded text
 is inserted in that buffer after point (point does not move).  In this
 case, the return value is the length of the decoded text.
+
+@cindex @code{charset}, text property
+This function puts a @code{charset} text property on the decoded text.
+The value of the property states the character set used to decode the
+original text:
+
+@example
+@group
+(decode-coding-string "Gr\374ss Gott" 'latin-1)
+     @result{} #("Gr@"uss Gott" 0 9 (charset iso-8859-1))
+@end group
+@end example
 @end defun
 
 @defun decode-coding-inserted-region from to filename &optional visit beg end replace