[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/bug-31311-pcase-doc-squash 9d6a3ac 5/5: Mention pcase
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] fix/bug-31311-pcase-doc-squash 9d6a3ac 5/5: Mention pcase as a fifth conditional form |
Date: |
Sun, 27 May 2018 11:09:57 -0400 (EDT) |
branch: fix/bug-31311-pcase-doc-squash
commit 9d6a3ac73af66184e5bb23555b93833f6a4d9f2e
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}
- [Emacs-diffs] branch fix/bug-31311-pcase-doc-squash created (now 9d6a3ac), Thien-Thi Nguyen, 2018/05/27
- [Emacs-diffs] fix/bug-31311-pcase-doc-squash e6de5b3 1/5: Ensure pcase doc shows `QPAT first among extensions, Thien-Thi Nguyen, 2018/05/27
- [Emacs-diffs] fix/bug-31311-pcase-doc-squash 7e8227e 2/5: Introduce EXPVAL for pcase, pcase-defmacro docstrings, Thien-Thi Nguyen, 2018/05/27
- [Emacs-diffs] fix/bug-31311-pcase-doc-squash 9d6a3ac 5/5: Mention pcase as a fifth conditional form,
Thien-Thi Nguyen <=
- [Emacs-diffs] fix/bug-31311-pcase-doc-squash 4d7e54a 3/5: Use EXPVAL in docstrings of patterns defined using pcase-defmacro, Thien-Thi Nguyen, 2018/05/27
- [Emacs-diffs] fix/bug-31311-pcase-doc-squash 567cb90 4/5: Overhaul pcase documentation, Thien-Thi Nguyen, 2018/05/27