# HG changeset patch # User aidan # Date 1182946751 0 # Node ID effcad8baac1a1624a6e0976e8861c6115e8c625 # Parent fe4036b9da6a8cd39faf0c2822e6b5b8688f0b73 [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. diff -r fe4036b9da6a -r effcad8baac1 man/ChangeLog --- 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 + + * 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ä * internals/internals.texi: Fix corrupted/oddly encoded chars. diff -r fe4036b9da6a -r effcad8baac1 man/lispref/variables.texi --- 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