Mercurial > hg > xemacs-beta
changeset 4039:effcad8baac1
[xemacs-hg @ 2007-06-27 12:19:08 by aidan]
Mention that lexical closures are actually available in XEmacs Lisp in the
Lisp reference manual.
author | aidan |
---|---|
date | Wed, 27 Jun 2007 12:19:11 +0000 |
parents | fe4036b9da6a |
children | 68826456250c |
files | man/ChangeLog man/lispref/variables.texi |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/man/ChangeLog Tue Jun 26 21:51:52 2007 +0000 +++ b/man/ChangeLog Wed Jun 27 12:19:11 2007 +0000 @@ -1,3 +1,9 @@ +2007-06-27 Aidan Kehoe <kehoea@parhasard.net> + + * lispref/variables.texi (Extent): + Mention that lexical scope is available using lexical-let and + lexical-let* in cl-macs, instead of ignoring them entirely. + 2007-05-21 Ville Skyttä <scop@xemacs.org> * internals/internals.texi: Fix corrupted/oddly encoded chars.
--- a/man/lispref/variables.texi Tue Jun 26 21:51:52 2007 +0000 +++ b/man/lispref/variables.texi Wed Jun 27 12:19:11 2007 +0000 @@ -894,8 +894,12 @@ @cindex closures not available Some Lisp dialects have ``closures'', objects that are like functions -but record additional variable bindings. XEmacs Lisp does not have -closures. +but record additional variable bindings. Closures are available in +XEmacs Lisp using the @code{lexical-let} and @code{lexical-let*}macroes, +which are autoloaded from @file{cl-macs}. @xref{(cl)Lexical Bindings}. +Note that function arguments cannot be closed around using these +macros, and that any lambda expressions returned will not be +byte-compiled. @node Impl of Scope @subsection Implementation of Dynamic Scoping