Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
315fe0e9
Commit
315fe0e9
authored
Jul 27, 2000
by
Dave Love
Browse files
Numeric args to concat.
parent
7d8b4c7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
lispref/strings.texi
lispref/strings.texi
+5
-15
No files found.
lispref/strings.texi
View file @
315fe0e9
...
...
@@ -246,23 +246,13 @@ returns an empty string.
The @code{concat} function always constructs a new string that is
not @code{eq} to any existing string.
When an argument is an integer (not a sequence of integers), it is
converted to a string of digits making up the decimal printed
representation of the integer. @strong{Don't use this feature; we plan
to eliminate it. If you already use this feature, change your programs
now!} The proper way to convert an integer to its decimal printed form
is with @code{format} (@pxref{Formatting Strings}) or
In Emacs versions before 21, when an argument was an integer (not a
sequence of integers), it was converted to a string of digits making up
the decimal printed representation of the integer. This obsolete usage
no longer works. The proper way to convert an integer to its decimal
printed form is with @code{format} (@pxref{Formatting Strings}) or
@code{number-to-string} (@pxref{String Conversion}).
@example
@group
(concat 137)
@result{} "137"
(concat 54 321)
@result{} "54321"
@end group
@end example
For information about other concatenation functions, see the
description of @code{mapconcat} in @ref{Mapping Functions},
@code{vconcat} in @ref{Vectors}, and @code{append} in @ref{Building
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment