From 9c52d61d070c1e8961ce376f4829e364960cda97 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 27 Oct 2012 19:05:04 -0700 Subject: [PATCH] Add some xrefs to cl.texi * doc/misc/cl.texi (Porting Common Lisp, Lexical Bindings): Add some xrefs to the Elisp manual. --- doc/misc/ChangeLog | 3 +++ doc/misc/cl.texi | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index c5d084891f6..6d744908ebe 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,5 +1,8 @@ 2012-10-28 Glenn Morris + * cl.texi (Porting Common Lisp, Lexical Bindings): + Add some xrefs to the Elisp manual. + * cl.texi (Lexical Bindings): Move to appendix of obsolete features. (Porting Common Lisp): Emacs Lisp can do true lexical binding now. (Obsolete Features): New appendix. Move Lexical Bindings here. diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 46e9dae5319..aebdcb7d5f4 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi @@ -4754,9 +4754,11 @@ Lexical scoping. In Common Lisp, function arguments and @code{let} bindings apply only to references physically within their bodies (or within macro expansions in their bodies). Traditionally, Emacs Lisp uses @dfn{dynamic scoping} wherein a binding to a variable is visible -even inside functions called from the body. Lexical binding is -available since Emacs 24.1, so be sure to set @code{lexical-binding} -to @code{t} if you need to emulate this aspect of Common Lisp. +even inside functions called from the body. +@xref{Dynamic Binding,,,elisp,GNU Emacs Lisp Reference Manual}. +Lexical binding is available since Emacs 24.1, so be sure to set +@code{lexical-binding} to @code{t} if you need to emulate this aspect +of Common Lisp. @xref{Lexical Binding,,,elisp,GNU Emacs Lisp Reference Manual}. Here is an example of a Common Lisp code fragment that would fail in Emacs Lisp if @code{lexical-binding} were set to @code{nil}: @@ -4969,7 +4971,8 @@ body, without any effect on the global variable of the same name. The most important use of lexical bindings is to create @dfn{closures}. A closure is a function object that refers to an outside lexical -variable. For example: +variable (@pxref{Closures,,,elisp,GNU Emacs Lisp Reference Manual}). +For example: @example (defun make-adder (n) -- 2.39.2