[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r110698: Add some xrefs to cl.texi
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r110698: Add some xrefs to cl.texi |
Date: |
Sat, 27 Oct 2012 19:05:04 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 110698
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2012-10-27 19:05:04 -0700
message:
Add some xrefs to cl.texi
* doc/misc/cl.texi (Porting Common Lisp, Lexical Bindings):
Add some xrefs to the Elisp manual.
modified:
doc/misc/ChangeLog
doc/misc/cl.texi
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog 2012-10-28 01:55:40 +0000
+++ b/doc/misc/ChangeLog 2012-10-28 02:05:04 +0000
@@ -1,5 +1,8 @@
2012-10-28 Glenn Morris <address@hidden>
+ * 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.
=== modified file 'doc/misc/cl.texi'
--- a/doc/misc/cl.texi 2012-10-28 01:55:40 +0000
+++ b/doc/misc/cl.texi 2012-10-28 02:05:04 +0000
@@ -4754,9 +4754,11 @@
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.
address@hidden Binding,,,elisp,GNU Emacs Lisp Reference Manual}.
+Lexical binding is available since Emacs 24.1, so be sure to set
address@hidden 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 @@
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r110698: Add some xrefs to cl.texi,
Glenn Morris <=