diff options
| author | Philipp Stephani | 2016-12-23 13:14:55 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2016-12-23 17:28:37 +0100 |
| commit | c04ac8a3191820d37e7858b7ca4e31cf04808cc3 (patch) | |
| tree | 4ea933d54682334fe9d1636b7d720d99dec42434 /doc/misc | |
| parent | 272554a6664bc8d2039878218a5b80b1ef830d55 (diff) | |
| download | emacs-c04ac8a3191820d37e7858b7ca4e31cf04808cc3.tar.gz emacs-c04ac8a3191820d37e7858b7ca4e31cf04808cc3.zip | |
Document that variable binding order is unspecified
* doc/lispref/variables.texi (Local Variables):
* cl.texi (Modify Macros): Document that binding order in 'let' and
'cl-letf' is unspecified.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/cl.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index c62fa727c10..75a83602fa3 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -1179,6 +1179,11 @@ behavior. (@code{point} and @code{point-marker} are equivalent | |||
| 1179 | as @code{setf} places; each will accept either an integer or a | 1179 | as @code{setf} places; each will accept either an integer or a |
| 1180 | marker as the stored value.) | 1180 | marker as the stored value.) |
| 1181 | 1181 | ||
| 1182 | Like in the case of @code{let}, the @var{value} forms are evaluated in | ||
| 1183 | the order they appear, but the order of bindings is unspecified. | ||
| 1184 | Therefore, avoid binding the same @var{place} more than once in a | ||
| 1185 | single @code{cl-letf} form. | ||
| 1186 | |||
| 1182 | Since generalized variables look like lists, @code{let}'s shorthand | 1187 | Since generalized variables look like lists, @code{let}'s shorthand |
| 1183 | of using @samp{foo} for @samp{(foo nil)} as a @var{binding} would | 1188 | of using @samp{foo} for @samp{(foo nil)} as a @var{binding} would |
| 1184 | be ambiguous in @code{cl-letf} and is not allowed. | 1189 | be ambiguous in @code{cl-letf} and is not allowed. |