]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention pcase as a fifth conditional form
authorThien-Thi Nguyen <ttn@gnu.org>
Sat, 26 May 2018 07:44:10 +0000 (09:44 +0200)
committerThien-Thi Nguyen <ttn@gnu.org>
Sun, 27 May 2018 15:15:19 +0000 (17:15 +0200)
* doc/lispref/control.texi (Conditionals): ...here,
in first para, w/ xref to "Pattern-Matching Conditional".

doc/lispref/control.texi

index 72dacdf1e0f542f2cc4abde8b61e86e3afa488e4..9e1bd6b3ecbee5693dfb9a66c30ce908af10b724 100644 (file)
@@ -148,9 +148,11 @@ following @var{forms}, in textual order, returning the result of
 @cindex conditional evaluation
 
   Conditional control structures choose among alternatives.  Emacs Lisp
-has four conditional forms: @code{if}, which is much the same as in
+has five conditional forms: @code{if}, which is much the same as in
 other languages; @code{when} and @code{unless}, which are variants of
-@code{if}; and @code{cond}, which is a generalized case statement.
+@code{if}; @code{cond}, which is a generalized case statement;
+and @code{pcase}, which is a generalization of @code{cond}
+(@pxref{Pattern-Matching Conditional}).
 
 @defspec if condition then-form else-forms@dots{}
 @code{if} chooses between the @var{then-form} and the @var{else-forms}