From 328c41f54452d27ee1a3c6f38371507d4e6ca813 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 23 Sep 2024 17:13:31 +0300 Subject: [PATCH] ; Fix last change MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * doc/lispref/lists.texi (Building Lists): * src/fns.c (Fappend): Fix last change (bug#73427). Suggested by Mattias Engdegård . (cherry picked from commit 8f265b49e3d3b4403ab0cdd4a5b94d2e335297cb) --- doc/lispref/lists.texi | 6 +++++- src/fns.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi index 816af4a4ff7..19c4614ebad 100644 --- a/doc/lispref/lists.texi +++ b/doc/lispref/lists.texi @@ -670,6 +670,7 @@ This once was the usual way to copy a list, before the function @cindex list of characters of a string @cindex convert string to list of its characters +@findex string-to-list Here's how to convert a string into a list of its characters: @example @@ -679,6 +680,9 @@ This once was the usual way to copy a list, before the function @end group @end example +@noindent +The function @code{string-to-list} is a handy shortcut for the above. + With the help of @code{apply} (@pxref{Calling Functions}), we can append all the lists in a list of lists: @@ -717,7 +721,7 @@ any other non-list final argument. As an exception, if all the arguments but the last are @code{nil} and the last argument is not a list, the return value is that last argument -unchanged: +unchanged (i.e., in this case the return value is not a list): @example @group diff --git a/src/fns.c b/src/fns.c index edfa66edf4c..9a632231773 100644 --- a/src/fns.c +++ b/src/fns.c @@ -724,7 +724,7 @@ a list, this results in a dotted list. As an exception, if all the arguments except the last are nil, and the last argument is not a list, the return value is that last argument -unaltered. +unaltered, not a list. usage: (append &rest SEQUENCES) */) (ptrdiff_t nargs, Lisp_Object *args) -- 2.39.5