diff options
| author | Dave Love | 2000-07-27 13:09:58 +0000 |
|---|---|---|
| committer | Dave Love | 2000-07-27 13:09:58 +0000 |
| commit | 315fe0e9538ddb1f03c46dad7e87dab922b891ac (patch) | |
| tree | 77e38295614c45ae4ee68cfd8f0442214e558f28 | |
| parent | 7d8b4c7c0e14ba7b02a7646f4be2ec75232deba6 (diff) | |
| download | emacs-315fe0e9538ddb1f03c46dad7e87dab922b891ac.tar.gz emacs-315fe0e9538ddb1f03c46dad7e87dab922b891ac.zip | |
Numeric args to concat.
| -rw-r--r-- | lispref/strings.texi | 20 |
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. | |||
| 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 | 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 | |||
| 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 |