[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/bug-31311-pcase-doc f870e5e 3/6: move UPattern and QPa
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] fix/bug-31311-pcase-doc f870e5e 3/6: move UPattern and QPattern tables outside of @defmac pcase |
Date: |
Tue, 1 May 2018 05:18:10 -0400 (EDT) |
branch: fix/bug-31311-pcase-doc
commit f870e5e7660253f37befceca5c1a4ed3725360e4
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>
move UPattern and QPattern tables outside of @defmac pcase
this results in more efficient horizontal space usage
---
doc/lispref/control.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 492f188..dcfb27f 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -325,6 +325,8 @@ The @var{pattern} part of a clause can be of one of two
types:
@dfn{UPattern}, which is not quoted. UPatterns are simpler, so we
describe them first.
address@hidden defmac
+
Note: In the description of the patterns below, we use ``the value
being matched'' to refer to the value of the @var{expression} that is
the first argument of @code{pcase}.
@@ -456,8 +458,6 @@ in many cases lead to a more readable code.
@c FIXME: There should be an example here showing how a 'pcase' that
@c uses QPatterns can be rewritten using UPatterns.
address@hidden defmac
-
Here is an example of using @code{pcase} to implement a simple
interpreter for a little expression language (note that this example
requires lexical binding, @pxref{Lexical Binding}):
- [Emacs-diffs] branch fix/bug-31311-pcase-doc created (now e8dd2a7), Thien-Thi Nguyen, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc f870e5e 3/6: move UPattern and QPattern tables outside of @defmac pcase,
Thien-Thi Nguyen <=
- [Emacs-diffs] fix/bug-31311-pcase-doc 32eee97 2/6: rewrite @item @var{atom}, Thien-Thi Nguyen, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc 46d5824 1/6: add blank line before each @item in @table, Thien-Thi Nguyen, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc e8dd2a7 6/6: s/number/integer/ per feedback from Michael Heerdegen <address@hidden>, Thien-Thi Nguyen, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc 8929957 5/6: explode first address@hidden pcase’ para, Thien-Thi Nguyen, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc 702131a 4/6: add blank line before each @item in @table, Thien-Thi Nguyen, 2018/05/01