aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2017-09-30 16:01:00 +0300
committerEli Zaretskii2017-09-30 16:01:00 +0300
commitcb93a6ce72c5d238c6f120192aaba1554363dfe9 (patch)
treebd13ee6c2c31b775b9f5e3b701333e09d37ef74c /src
parent200ef6f7213bdd1db314ae3cf66fab6d5caaf1e6 (diff)
downloademacs-cb93a6ce72c5d238c6f120192aaba1554363dfe9.tar.gz
emacs-cb93a6ce72c5d238c6f120192aaba1554363dfe9.zip
Improve documentation of 'copy-sequence'
* src/fns.c (Fcopy_sequence): * doc/lispref/sequences.texi (Sequence Functions): Mention the exception when copying an empty sequence. (Bug#28627)
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fns.c b/src/fns.c
index 4524ff9b268..2311a6e041b 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -482,7 +482,9 @@ usage: (vconcat &rest SEQUENCES) */)
482DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0, 482DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0,
483 doc: /* Return a copy of a list, vector, string, char-table or record. 483 doc: /* Return a copy of a list, vector, string, char-table or record.
484The elements of a list, vector or record are not copied; they are 484The elements of a list, vector or record are not copied; they are
485shared with the original. */) 485shared with the original.
486If the original sequence is empty, this function may return
487the same empty object instead of its copy. */)
486 (Lisp_Object arg) 488 (Lisp_Object arg)
487{ 489{
488 if (NILP (arg)) return arg; 490 if (NILP (arg)) return arg;