diff options
| author | Thien-Thi Nguyen | 2018-05-26 09:44:10 +0200 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2018-05-27 17:15:19 +0200 |
| commit | 9d6a3ac73af66184e5bb23555b93833f6a4d9f2e (patch) | |
| tree | 01383b24781f384fed1526ca6cd401fe433d7115 | |
| parent | 567cb9046d098b617c76541a75516ac6ef563be7 (diff) | |
| download | emacs-fix/bug-31311-pcase-doc-squash.tar.gz emacs-fix/bug-31311-pcase-doc-squash.zip | |
Mention pcase as a fifth conditional formfix/bug-31311-pcase-doc-squash
* doc/lispref/control.texi (Conditionals): ...here,
in first para, w/ xref to "Pattern-Matching Conditional".
| -rw-r--r-- | doc/lispref/control.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi index 72dacdf1e0f..9e1bd6b3ecb 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 | |||
| 148 | @cindex conditional evaluation | 148 | @cindex conditional evaluation |
| 149 | 149 | ||
| 150 | Conditional control structures choose among alternatives. Emacs Lisp | 150 | Conditional control structures choose among alternatives. Emacs Lisp |
| 151 | has four conditional forms: @code{if}, which is much the same as in | 151 | has five conditional forms: @code{if}, which is much the same as in |
| 152 | other languages; @code{when} and @code{unless}, which are variants of | 152 | other languages; @code{when} and @code{unless}, which are variants of |
| 153 | @code{if}; and @code{cond}, which is a generalized case statement. | 153 | @code{if}; @code{cond}, which is a generalized case statement; |
| 154 | and @code{pcase}, which is a generalization of @code{cond} | ||
| 155 | (@pxref{Pattern-Matching Conditional}). | ||
| 154 | 156 | ||
| 155 | @defspec if condition then-form else-forms@dots{} | 157 | @defspec if condition then-form else-forms@dots{} |
| 156 | @code{if} chooses between the @var{then-form} and the @var{else-forms} | 158 | @code{if} chooses between the @var{then-form} and the @var{else-forms} |