[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] fix/bug-31311-pcase-doc 8fccdaa 2/4: rewrite @item @var{at

From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc 8fccdaa 2/4: rewrite @item @var{atom}
Date: Mon, 30 Apr 2018 09:12:11 -0400 (EDT)

branch: fix/bug-31311-pcase-doc
commit 8fccdaa9b3c8952872afd6ea0dd43e04e0a1209e
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 f741e39..9f07ee2 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}.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]