[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/bug-31311-pcase-doc 8884169 1/2: rewrite ‘and’
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] fix/bug-31311-pcase-doc 8884169 1/2: rewrite ‘and’ |
Date: |
Wed, 16 May 2018 06:09:14 -0400 (EDT) |
branch: fix/bug-31311-pcase-doc
commit 8884169d79b13064cd6a59047ad8418585605f42
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>
rewrite ‘and’
- drop ‘pattern2’
- use "attempts to match" and "in order"
---
doc/lispref/control.texi | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 2e03ae0..b19fcdc 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -415,8 +415,12 @@ matching U-pattern is found, the rest are not tested. For
this reason,
if any of the U-patterns let-bind symbols to the matched value, they
should all bind the same symbols.
address@hidden (and @var{pattern1} @address@hidden)
-Matches if all the argument U-patterns match.
address@hidden (and @address@hidden)
+Attempts to match @address@hidden, in order,
+until one of them fails to match.
+In that case, @code{and} likewise fails to match,
+and the rest of the sub-patterns are not tested.
+If all sub-patterns match, @code{and} matches.
@end table
@anchor{pcase-example-0}