aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLeo Liu2014-05-21 11:49:58 +0800
committerLeo Liu2014-05-21 11:49:58 +0800
commit254b7645f30f67abd00b773f2b0eac63d4c382dd (patch)
tree30b7feb81da5fb54bceb4a06f6f020fd22bb70f1 /doc
parente619d93c227597bccc8b3d76ee8518fb20098bb1 (diff)
downloademacs-254b7645f30f67abd00b773f2b0eac63d4c382dd.tar.gz
emacs-254b7645f30f67abd00b773f2b0eac63d4c382dd.zip
* doc/lispref/sequences.texi (Sequence Functions): Update nreverse.
* src/fns.c (Fnreverse): Accept strings for SEQ and update doc-string.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/sequences.texi7
2 files changed, 9 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 6de8adf1215..7d13d06b580 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12014-05-21 Leo Liu <sdl.web@gmail.com>
2
3 * sequences.texi (Sequence Functions): Update nreverse.
4
12014-05-19 Paul Eggert <eggert@cs.ucla.edu> 52014-05-19 Paul Eggert <eggert@cs.ucla.edu>
2 6
3 Allow any non-nil value to count as true in bool-vector. 7 Allow any non-nil value to count as true in bool-vector.
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 68467830a67..9b3df17ceb3 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -261,13 +261,16 @@ x
261@end defun 261@end defun
262 262
263@defun nreverse seq 263@defun nreverse seq
264@cindex reversing a string
264@cindex reversing a list 265@cindex reversing a list
265@cindex reversing a vector 266@cindex reversing a vector
266 This function reverses the order of the elements of @var{seq}. 267 This function reverses the order of the elements of @var{seq}.
267If @var{seq} is a list, @code{nreverse} alters its by reversing the @sc{cdr}s 268If @var{seq} is a list, @code{nreverse} alters it by reversing the @sc{cdr}s
268in the cons cells. The cons cell that used to be the last one in @var{seq} 269in the cons cells. The cons cell that used to be the last one in @var{seq}
269becomes the first cons cell of the value. If @var{seq} is a vector or 270becomes the first cons cell of the value. If @var{seq} is a vector or
270bool vector, its items are placed in the same vector in a reversed order. 271bool vector, its items are placed in the same vector in a reversed
272order. If @var{seq} is a string, it works like @code{reverse} i.e., no
273destructive modifcation in preference to treat strings as immutable.
271 274
272 For example: 275 For example:
273 276