mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-07 08:00:48 -08:00
Make 'mapconcat' argument 'separator' optional
* src/fns.c (Fmapconcat): Make third 'separator' argument optional. (Bug#50965) * doc/lispref/functions.texi (Mapping Functions): Update documentation for above change. * test/src/fns-tests.el (fns-tests-mapconcat): New test. * doc/misc/cl.texi (Obsolete Setf Customization): Don't use third mapconcat argument in example. * lisp/emacs-lisp/subr-x.el (string-join): Doc fix.
This commit is contained in:
parent
4bf532ee82
commit
d652efcd08
6 changed files with 35 additions and 9 deletions
|
|
@ -2852,12 +2852,16 @@ mapcar1 (EMACS_INT leni, Lisp_Object *vals, Lisp_Object fn, Lisp_Object seq)
|
|||
return leni;
|
||||
}
|
||||
|
||||
DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0,
|
||||
DEFUN ("mapconcat", Fmapconcat, Smapconcat, 2, 3, 0,
|
||||
doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings.
|
||||
In between each pair of results, stick in SEPARATOR. Thus, " " as
|
||||
SEPARATOR results in spaces between the values returned by FUNCTION.
|
||||
|
||||
SEQUENCE may be a list, a vector, a bool-vector, or a string.
|
||||
SEPARATOR must be a string, a vector, or a list of characters.
|
||||
|
||||
Optional argument SEPARATOR must be a string, a vector, or a list of
|
||||
characters; nil stands for the empty string.
|
||||
|
||||
FUNCTION must be a function of one argument, and must return a value
|
||||
that is a sequence of characters: either a string, or a vector or
|
||||
list of numbers that are valid character codepoints. */)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue