diff options
| author | Tino Calancha | 2017-03-31 17:17:07 +0900 |
|---|---|---|
| committer | Tino Calancha | 2017-03-31 17:17:07 +0900 |
| commit | 3f0d047d2eb1fb59be2ff962c01392d8c808a654 (patch) | |
| tree | 028019d49acb766b89c1c7891aa26332938fd14c | |
| parent | ee1bd94dd0ce427fcdfea33af38a4eaf47f911f0 (diff) | |
| download | emacs-3f0d047d2eb1fb59be2ff962c01392d8c808a654.tar.gz emacs-3f0d047d2eb1fb59be2ff962c01392d8c808a654.zip | |
Delete confuse statement in manual
* doc/misc/cl.texi (For Clauses): Delete confuse statement
and its example (Bug#23550).
| -rw-r--r-- | doc/misc/cl.texi | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index b672678dc8c..b698c77032f 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -1966,18 +1966,6 @@ This clause iterates @var{var} over all the cons cells of @var{list}. | |||
| 1966 | @result{} ((1 2 3 4) (2 3 4) (3 4) (4)) | 1966 | @result{} ((1 2 3 4) (2 3 4) (3 4) (4)) |
| 1967 | @end example | 1967 | @end example |
| 1968 | 1968 | ||
| 1969 | With @code{by}, there is no real reason that the @code{on} expression | ||
| 1970 | must be a list. For example: | ||
| 1971 | |||
| 1972 | @example | ||
| 1973 | (cl-loop for x on first-animal by 'next-animal collect x) | ||
| 1974 | @end example | ||
| 1975 | |||
| 1976 | @noindent | ||
| 1977 | where @code{(next-animal x)} takes an ``animal'' @var{x} and returns | ||
| 1978 | the next in the (assumed) sequence of animals, or @code{nil} if | ||
| 1979 | @var{x} was the last animal in the sequence. | ||
| 1980 | |||
| 1981 | @item for @var{var} in-ref @var{list} by @var{function} | 1969 | @item for @var{var} in-ref @var{list} by @var{function} |
| 1982 | This is like a regular @code{in} clause, but @var{var} becomes | 1970 | This is like a regular @code{in} clause, but @var{var} becomes |
| 1983 | a @code{setf}-able ``reference'' onto the elements of the list | 1971 | a @code{setf}-able ``reference'' onto the elements of the list |