emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 92c5faafd7: Clarify documentation of 'string-to-unibyte'


From: Eli Zaretskii
Subject: emacs-28 92c5faafd7: Clarify documentation of 'string-to-unibyte'
Date: Sat, 4 Jun 2022 03:08:04 -0400 (EDT)

branch: emacs-28
commit 92c5faafd7aac9b2382939fefd2cdf54f386a8e3
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Clarify documentation of 'string-to-unibyte'
    
    * doc/lispref/nonascii.texi (Converting Representations): Clarify
    what 'string-to-unibyte' does.  Reported by Richard Hansen
    <rhansen@rhansen.org>.  (Bug#55777)
---
 doc/lispref/nonascii.texi | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index d7d25dc36a..6dc23637a7 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -280,11 +280,12 @@ to the codepoints @code{#x3FFF80} through 
@code{#x3FFFFF}, inclusive
 
 @defun string-to-unibyte string
 This function returns a unibyte string containing the same sequence of
-characters as @var{string}.  It signals an error if @var{string}
-contains a non-@acronym{ASCII} character.  If @var{string} is a
-unibyte string, it is returned unchanged.  Use this function for
-@var{string} arguments that contain only @acronym{ASCII} and eight-bit
-characters.
+characters as @var{string}.  If @var{string} is a unibyte string, it
+is returned unchanged.  Otherwise, @acronym{ASCII} characters and
+characters in the @code{eight-bit} charset are converted to their
+corresponding byte values.  Use this function for @var{string}
+arguments that contain only @acronym{ASCII} and eight-bit characters;
+the function signals an error if any other characters are encountered.
 @end defun
 
 @defun byte-to-string byte



reply via email to

[Prev in Thread] Current Thread [Next in Thread]