aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-09-23 14:41:34 +0300
committerEli Zaretskii2024-09-23 14:41:34 +0300
commitc8ed48b9901790fdabcf91ef15a6ba47c96b48c8 (patch)
tree846c960b3dd5d648768ca5efe4641314ff835318 /src
parentc1f2501f55d7454222389244512f732ac5e778b4 (diff)
downloademacs-c8ed48b9901790fdabcf91ef15a6ba47c96b48c8.tar.gz
emacs-c8ed48b9901790fdabcf91ef15a6ba47c96b48c8.zip
; Improve documentation of 'append'
* doc/lispref/lists.texi (Building Lists): * src/fns.c (Fappend): Improve documentation of 'append'. (Bug#73427)
Diffstat (limited to 'src')
-rw-r--r--src/fns.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 6133c20573a..33079cf926a 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -719,7 +719,12 @@ The result is a list whose elements are the elements of all the arguments.
719Each argument may be a list, vector or string. 719Each argument may be a list, vector or string.
720 720
721All arguments except the last argument are copied. The last argument 721All arguments except the last argument are copied. The last argument
722is just used as the tail of the new list. 722is just used as the tail of the new list. If the last argument is not
723a list, this results in a dotted list.
724
725As an exception, if all the arguments except the last are nil, and the
726last argument is not a list, the return value is that last argument
727unaltered.
723 728
724usage: (append &rest SEQUENCES) */) 729usage: (append &rest SEQUENCES) */)
725 (ptrdiff_t nargs, Lisp_Object *args) 730 (ptrdiff_t nargs, Lisp_Object *args)