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 ab17d9a 2/5: reorg function form t


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc ab17d9a 2/5: reorg function form table
Date: Thu, 3 May 2018 15:27:08 -0400 (EDT)

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

    reorg function form table
    
    - ensure blank line before each @item
    - s/lambda-function/lambda expression/g
    - use @item format: TEXT-BLURB, e.g., @code{EXAMPLE}
    - mention N args in ‘function call’ item
    - use concrete code for each EXAMPLE
---
 doc/lispref/control.texi | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index ae8a063..c94284b 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -440,13 +440,15 @@ The function calls used in the @code{pred} and @code{app} 
UPatterns
 can have one of the following forms:
 
 @table @asis
address@hidden function symbol, like @code{integerp}
address@hidden function name (a symbol), e.g., @code{integerp}
 In this case, the named function is applied to the value being
 matched.
address@hidden lambda-function @code{(lambda (@var{arg}) @var{body})}
-In this case, the lambda-function is called with one argument, the
+
address@hidden lambda expression, e.g., @code{(lambda (n) (= 42 n))}
+In this case, the lambda expression is called with one argument, the
 value being matched.
address@hidden @code{(@var{func} @address@hidden)}
+
address@hidden function call with @var{n} args, e.g., @code{(= 42)}
 This is a function call with @var{n} specified arguments; the function
 is called with these @var{n} arguments and an additional @var{n}+1-th
 argument that is the value being matched.



reply via email to

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