emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r115784: * doc/lispref/control.texi (Pattern matchin


From: Glenn Morris
Subject: [Emacs-diffs] trunk r115784: * doc/lispref/control.texi (Pattern matching case statement): Brevity.
Date: Sat, 28 Dec 2013 00:47:22 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115784
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Fri 2013-12-27 16:47:15 -0800
message:
  * doc/lispref/control.texi (Pattern matching case statement): Brevity.
modified:
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/control.texi       
control.texi-20091113204419-o5vbwnq5f7feedwu-6169
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2013-12-27 03:38:26 +0000
+++ b/doc/lispref/ChangeLog     2013-12-28 00:47:15 +0000
@@ -1,3 +1,7 @@
+2013-12-28  Glenn Morris  <address@hidden>
+
+       * control.texi (Pattern matching case statement): Brevity.
+
 2013-12-27  Chong Yidong  <address@hidden>
 
        * functions.texi (Function Cells):

=== modified file 'doc/lispref/control.texi'
--- a/doc/lispref/control.texi  2013-12-25 09:12:24 +0000
+++ b/doc/lispref/control.texi  2013-12-28 00:47:15 +0000
@@ -322,7 +322,8 @@
 was returned by @code{(get-return-code x)}.
 
 To give a more complex example, a simple interpreter for a little
-expression language could look like:
+expression language could look like (note that this example requires
+lexical-binding):
 
 @example
 (defun evaluate (exp env)
@@ -342,11 +343,6 @@
 @code{(pred numberp)} is a pattern that simply checks that @code{exp}
 is a number, and @code{_} is the catch-all pattern that matches anything.
 
-Note that the the lambda being the result of the @code{fn} clause is a
-closure (@pxref{Closures}), so the file defining @code{evaluate} must
-have lexical binding enabled (@pxref{Using Lexical Binding}, for how
-to enable it).
-
 Here are some sample programs including their evaluation results:
 
 @example


reply via email to

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