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 81d1eaf 1/3: Mention pcase


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc-squash 81d1eaf 1/3: Mention pcase as a fifth conditional form
Date: Sat, 26 May 2018 04:59:24 -0400 (EDT)

branch: fix/bug-31311-pcase-doc-squash
commit 81d1eaff54ad499ba4df57c47abda0d3da938163
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 33051a6..4c5df34 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]