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-squash 3a0c48a 5/5: Mention pcase


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc-squash 3a0c48a 5/5: Mention pcase as a fifth conditional form
Date: Sun, 27 May 2018 03:48:13 -0400 (EDT)

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

    Mention pcase as a fifth conditional form
    
    * doc/lispref/control.texi (Conditionals): ...here,
    in first para, w/ xref to "Pattern-Matching Conditional".
---
 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 72dacdf..9e1bd6b 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -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
address@hidden; and @code{cond}, which is a generalized case statement.
address@hidden; @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 address@hidden
 @code{if} chooses between the @var{then-form} and the @var{else-forms}



reply via email to

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