diff options
author | Thien-Thi Nguyen <ttn@gnu.org> | 2018-05-21 18:16:35 +0200 |
---|---|---|
committer | Thien-Thi Nguyen <ttn@gnu.org> | 2018-05-27 17:14:27 +0200 |
commit | 567cb9046d098b617c76541a75516ac6ef563be7 (patch) | |
tree | cac40d9b8ea3162c5e4762d0a35baaf0d598f983 /doc/lispref/elisp.texi | |
parent | 4d7e54acff0869d42bfb5b95014f7e6b988666d5 (diff) | |
download | emacs-567cb9046d098b617c76541a75516ac6ef563be7.tar.gz |
Overhaul pcase documentation
Suggested by Drew Adams (Bug#31311).
* doc/lispref/control.texi (Control Structures):
Add "Pattern-Matching Conditional" to menu, before "Iteration".
(Conditionals): Delete menu.
(Pattern matching case statement): Delete node/subsection,
by actually moving, renaming, and overhauling it to...
(Pattern-Matching Conditional): ...new node/section.
(pcase Macro): New node/subsection.
(Extending pcase): Likewise.
(Backquote Patterns): Likewise.
* doc/lispref/elisp.texi (Top) In @detailmenu, add
"Pattern-Matching Conditional" under "Control Structures"
section and delete "Conditionals" section.
* lisp/emacs-lisp/pcase.el (pcase): Rewrite docstring.
(pcase-defmacro \` (qpat) ...): Likewise.
Diffstat (limited to 'doc/lispref/elisp.texi')
-rw-r--r-- | doc/lispref/elisp.texi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi index 6b59e319172..6c3182b0c70 100644 --- a/doc/lispref/elisp.texi +++ b/doc/lispref/elisp.texi @@ -475,14 +475,11 @@ Control Structures * Sequencing:: Evaluation in textual order. * Conditionals:: @code{if}, @code{cond}, @code{when}, @code{unless}. * Combining Conditions:: @code{and}, @code{or}, @code{not}. +* Pattern-Matching Conditional:: How to use @code{pcase} and friends. * Iteration:: @code{while} loops. * Generators:: Generic sequences and coroutines. * Nonlocal Exits:: Jumping out of a sequence. -Conditionals - -* Pattern matching case statement:: How to use @code{pcase}. - Nonlocal Exits * Catch and Throw:: Nonlocal exits for the program's own purposes. |