]> code.delx.au - gnu-emacs/commitdiff
(Modifying Strings): clear-string can make unibyte.
authorRichard M. Stallman <rms@gnu.org>
Sun, 6 Feb 2005 10:58:01 +0000 (10:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 6 Feb 2005 10:58:01 +0000 (10:58 +0000)
(Formatting Strings): format gives error if values missing.

lispref/strings.texi

index a29e84f8edd5ae7e9d64740982c79cebcbb211b0..cca19ffbe922db627e91cc076d5ca53146b3e447 100644 (file)
@@ -383,8 +383,9 @@ character currently present at that point in @var{string}.
 @code{clear-string}:
 
 @defun clear-string string
-This clears the contents of @var{string} to zeros
-and may change its length.
+This clears the contents of @var{string} to zeros.
+It may also change @var{string}'s length and convert it to
+a unibyte string.
 @end defun
 
 @need 2000
@@ -714,8 +715,8 @@ format specifications correspond to successive values from
 @var{objects}.  Thus, the first format specification in @var{string}
 uses the first such value, the second format specification uses the
 second such value, and so on.  Any extra format specifications (those
-for which there are no corresponding values) cause unpredictable
-behavior.  Any extra values to be formatted are ignored.
+for which there are no corresponding values) cause an error.  Any
+extra values to be formatted are ignored.
 
   Certain format specifications require values of particular types.  If
 you supply a value that doesn't fit the requirements, an error is