aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-07-27 13:09:58 +0000
committerDave Love2000-07-27 13:09:58 +0000
commit315fe0e9538ddb1f03c46dad7e87dab922b891ac (patch)
tree77e38295614c45ae4ee68cfd8f0442214e558f28
parent7d8b4c7c0e14ba7b02a7646f4be2ec75232deba6 (diff)
downloademacs-315fe0e9538ddb1f03c46dad7e87dab922b891ac.tar.gz
emacs-315fe0e9538ddb1f03c46dad7e87dab922b891ac.zip
Numeric args to concat.
-rw-r--r--lispref/strings.texi20
1 files changed, 5 insertions, 15 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi
index f5c73de809c..3f99834fe7f 100644
--- a/lispref/strings.texi
+++ b/lispref/strings.texi
@@ -246,23 +246,13 @@ returns an empty string.
246The @code{concat} function always constructs a new string that is 246The @code{concat} function always constructs a new string that is
247not @code{eq} to any existing string. 247not @code{eq} to any existing string.
248 248
249When an argument is an integer (not a sequence of integers), it is 249In Emacs versions before 21, when an argument was an integer (not a
250converted to a string of digits making up the decimal printed 250sequence of integers), it was converted to a string of digits making up
251representation of the integer. @strong{Don't use this feature; we plan 251the decimal printed representation of the integer. This obsolete usage
252to eliminate it. If you already use this feature, change your programs 252no longer works. The proper way to convert an integer to its decimal
253now!} The proper way to convert an integer to its decimal printed form 253printed form is with @code{format} (@pxref{Formatting Strings}) or
254is with @code{format} (@pxref{Formatting Strings}) or
255@code{number-to-string} (@pxref{String Conversion}). 254@code{number-to-string} (@pxref{String Conversion}).
256 255
257@example
258@group
259(concat 137)
260 @result{} "137"
261(concat 54 321)
262 @result{} "54321"
263@end group
264@end example
265
266For information about other concatenation functions, see the 256For information about other concatenation functions, see the
267description of @code{mapconcat} in @ref{Mapping Functions}, 257description of @code{mapconcat} in @ref{Mapping Functions},
268@code{vconcat} in @ref{Vectors}, and @code{append} in @ref{Building 258@code{vconcat} in @ref{Vectors}, and @code{append} in @ref{Building