diff options
| -rw-r--r-- | src/fns.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -2494,8 +2494,12 @@ mapcar1 (EMACS_INT leni, Lisp_Object *vals, Lisp_Object fn, Lisp_Object seq) | |||
| 2494 | DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0, | 2494 | DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0, |
| 2495 | doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. | 2495 | doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. |
| 2496 | In between each pair of results, stick in SEPARATOR. Thus, " " as | 2496 | In between each pair of results, stick in SEPARATOR. Thus, " " as |
| 2497 | SEPARATOR results in spaces between the values returned by FUNCTION. | 2497 | SEPARATOR results in spaces between the values returned by FUNCTION. |
| 2498 | SEQUENCE may be a list, a vector, a bool-vector, or a string. */) | 2498 | SEQUENCE may be a list, a vector, a bool-vector, or a string. |
| 2499 | SEPARATOR must be a string. | ||
| 2500 | FUNCTION must be a function of one argument, and must return a value | ||
| 2501 | that is a sequence of characters: either a string, or a vector or | ||
| 2502 | list of numbers that are valid character codepoints. */) | ||
| 2499 | (Lisp_Object function, Lisp_Object sequence, Lisp_Object separator) | 2503 | (Lisp_Object function, Lisp_Object sequence, Lisp_Object separator) |
| 2500 | { | 2504 | { |
| 2501 | USE_SAFE_ALLOCA; | 2505 | USE_SAFE_ALLOCA; |