[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/bug-31311-pcase-doc 32eee97 2/6: rewrite @item @var{at
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] fix/bug-31311-pcase-doc 32eee97 2/6: rewrite @item @var{atom} |
Date: |
Tue, 1 May 2018 05:18:10 -0400 (EDT) |
branch: fix/bug-31311-pcase-doc
commit 32eee97a7414c3fba1b9bfd619b925264d052f71
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>
rewrite @item @var{atom}
- expand to 1 @item + 2 @itemx
- mention ‘equal’
- use term "literal"
- don't mention "Upattern"
- drop "Note ..." sentence completely
---
doc/lispref/control.texi | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 9fedc19..492f188 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -336,11 +336,12 @@ A UPattern can have the following forms:
@item '@var{val}
Matches if the value being matched is @code{equal} to @var{val}.
address@hidden @var{atom}
-Matches any @var{atom}, which can be a keyword, a number, or a string.
-(These are self-quoting, so this kind of UPattern is actually a
-shorthand for @code{'@var{atom}}.) Note that a string or a float
-matches any string or float with the same contents/value.
address@hidden @var{keyword}
address@hidden @var{number}
address@hidden @var{string}
+Matches if the value is @code{equal} to the literal.
+This is a special case of @code{'@var{val}}, above,
+possible because these types are self-quoting.
@item _
Matches any value. This is known as @dfn{don't care} or @dfn{wildcard}.
- [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, 2018/05/01
- [Emacs-diffs] fix/bug-31311-pcase-doc 32eee97 2/6: rewrite @item @var{atom},
Thien-Thi Nguyen <=
- [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