emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] fix/bug-31311-pcase-doc 7c68d9f 9/9: explain lexical bind


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc 7c68d9f 9/9: explain lexical binding requirement for ‘evaluate’ example
Date: Sun, 20 May 2018 14:39:29 -0400 (EDT)

branch: fix/bug-31311-pcase-doc
commit 7c68d9f8c774239a363826b01c3967dfbe5f530c
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>

    explain lexical binding requirement for ‘evaluate’ example
---
 doc/lispref/control.texi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 9290adc..721df3a 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -974,8 +974,10 @@ of @var{qpat} in the backquote-style pattern.
 @code{second-elem} is the second element of @var{expval}.)
 
 Here is an example of using @code{pcase} to implement a simple
-interpreter for a little expression language (note that this example
-requires lexical binding, @pxref{Lexical Binding}):
+interpreter for a little expression language
+(note that this requires lexical binding for the
+lambda expression in the @code{fn} clause to properly
+capture @code{body} and @code{arg} (@pxref{Lexical Binding}):
 
 @example
 @group



reply via email to

[Prev in Thread] Current Thread [Next in Thread]