diff options
| author | Leo Liu | 2014-05-21 11:49:58 +0800 |
|---|---|---|
| committer | Leo Liu | 2014-05-21 11:49:58 +0800 |
| commit | 254b7645f30f67abd00b773f2b0eac63d4c382dd (patch) | |
| tree | 30b7feb81da5fb54bceb4a06f6f020fd22bb70f1 /doc | |
| parent | e619d93c227597bccc8b3d76ee8518fb20098bb1 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/sequences.texi | 7 |
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 @@ | |||
| 1 | 2014-05-21 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * sequences.texi (Sequence Functions): Update nreverse. | ||
| 4 | |||
| 1 | 2014-05-19 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2014-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}. |
| 267 | If @var{seq} is a list, @code{nreverse} alters its by reversing the @sc{cdr}s | 268 | If @var{seq} is a list, @code{nreverse} alters it by reversing the @sc{cdr}s |
| 268 | in the cons cells. The cons cell that used to be the last one in @var{seq} | 269 | in the cons cells. The cons cell that used to be the last one in @var{seq} |
| 269 | becomes the first cons cell of the value. If @var{seq} is a vector or | 270 | becomes the first cons cell of the value. If @var{seq} is a vector or |
| 270 | bool vector, its items are placed in the same vector in a reversed order. | 271 | bool vector, its items are placed in the same vector in a reversed |
| 272 | order. If @var{seq} is a string, it works like @code{reverse} i.e., no | ||
| 273 | destructive modifcation in preference to treat strings as immutable. | ||
| 271 | 274 | ||
| 272 | For example: | 275 | For example: |
| 273 | 276 | ||