summaryrefslogtreecommitdiff
path: root/doc/lispref/elisp.texi
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnu.org>2018-05-21 18:16:35 +0200
committerThien-Thi Nguyen <ttn@gnu.org>2018-05-27 17:14:27 +0200
commit567cb9046d098b617c76541a75516ac6ef563be7 (patch)
treecac40d9b8ea3162c5e4762d0a35baaf0d598f983 /doc/lispref/elisp.texi
parent4d7e54acff0869d42bfb5b95014f7e6b988666d5 (diff)
downloademacs-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.texi5
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.