Mercurial > emacs
comparison lispref/strings.texi @ 30498:79122ed1162e
Numeric args to concat.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 27 Jul 2000 13:09:58 +0000 |
parents | d2e5f1b7d8e2 |
children | 956652ab5efc |
comparison
equal
deleted
inserted
replaced
30497:66c03b43ceb8 | 30498:79122ed1162e |
---|---|
244 | 244 |
245 @noindent | 245 @noindent |
246 The @code{concat} function always constructs a new string that is | 246 The @code{concat} function always constructs a new string that is |
247 not @code{eq} to any existing string. | 247 not @code{eq} to any existing string. |
248 | 248 |
249 When an argument is an integer (not a sequence of integers), it is | 249 In Emacs versions before 21, when an argument was an integer (not a |
250 converted to a string of digits making up the decimal printed | 250 sequence of integers), it was converted to a string of digits making up |
251 representation of the integer. @strong{Don't use this feature; we plan | 251 the decimal printed representation of the integer. This obsolete usage |
252 to eliminate it. If you already use this feature, change your programs | 252 no longer works. The proper way to convert an integer to its decimal |
253 now!} The proper way to convert an integer to its decimal printed form | 253 printed form is with @code{format} (@pxref{Formatting Strings}) or |
254 is with @code{format} (@pxref{Formatting Strings}) or | |
255 @code{number-to-string} (@pxref{String Conversion}). | 254 @code{number-to-string} (@pxref{String Conversion}). |
256 | |
257 @example | |
258 @group | |
259 (concat 137) | |
260 @result{} "137" | |
261 (concat 54 321) | |
262 @result{} "54321" | |
263 @end group | |
264 @end example | |
265 | 255 |
266 For information about other concatenation functions, see the | 256 For information about other concatenation functions, see the |
267 description of @code{mapconcat} in @ref{Mapping Functions}, | 257 description 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 |
269 Lists}. | 259 Lists}. |