[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] fix/bug-31311-pcase-doc ca86dce 15/16: in U-pattern table
From: |
Thien-Thi Nguyen |
Subject: |
[Emacs-diffs] fix/bug-31311-pcase-doc ca86dce 15/16: in U-pattern table, do ‘s/upattern/pattern/g’ |
Date: |
Sun, 13 May 2018 13:16:36 -0400 (EDT) |
branch: fix/bug-31311-pcase-doc
commit ca86dce4a4c269992d5f343ce42f53714ecfd3eb
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>
in U-pattern table, do ‘s/upattern/pattern/g’
(keep ‘upattern’ in the Q-pattern table for now)
---
doc/lispref/control.texi | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 739a675..f690a3a 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -440,15 +440,15 @@ In this example, the function is @code{=}, @var{n} is
one, and
the actual function call becomes: @address@hidden(= 42 @var{expval})}}.
@end table
address@hidden (app @var{function} @var{upattern})
address@hidden (app @var{function} @var{pattern})
Matches if @var{function} called on @var{expval} returns a
-value that matches @var{upattern}.
+value that matches @var{pattern}.
@var{function} can take one of the
forms described for @var{predfun}, above.
This is like @code{pred},
-except that it tests the result against @var{upattern},
+except that it tests the result against @var{pattern},
rather than against a boolean truth value.
address@hidden Issue: Same as below (side-effecting FUNCTION or UPATTERN).
address@hidden Issue: Same as below (side-effecting FUNCTION or PATTERN).
@item (guard @var{boolean-expression})
Matches if @var{boolean-expression} evaluates to address@hidden This
@@ -481,22 +481,22 @@ which matches any number smaller than 10 and let-binds
the variable
@c and is considered {undefined, wontfix, futurefix}.
@c Leave undocumented for now.
address@hidden (let @var{upattern} @var{expr})
address@hidden (let @var{pattern} @var{expr})
Evaluates @var{expr} to get @var{exprval}
-and matches if @var{exprval} matches @var{upattern}.
+and matches if @var{exprval} matches @var{pattern}.
(It is called @code{let} because
address@hidden can bind symbols to values using the @var{symbol}
address@hidden can bind symbols to values using the @var{symbol}
U-pattern. For example:
@address@hidden((or `(key . ,val) (let val 5)) val)}}.)
@c Issue: Same as above (side-effecting EXPRESSION).
address@hidden (or @var{upattern1} @address@hidden)
address@hidden (or @var{pattern1} @address@hidden)
Matches if one the argument U-patterns matches. As soon as the first
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{upattern1} @address@hidden)
address@hidden (and @var{pattern1} @address@hidden)
Matches if all the argument U-patterns match.
@end table
- [Emacs-diffs] fix/bug-31311-pcase-doc 75ed6d2 05/16: use ‘EXPVAL’ in ‘pcase-defmacro’ et al docstrings, (continued)
- [Emacs-diffs] fix/bug-31311-pcase-doc 75ed6d2 05/16: use ‘EXPVAL’ in ‘pcase-defmacro’ et al docstrings, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 24b02d2 08/16: (docstring) zonk inline Issue, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 5bbbcf4 02/16: move table of PREDFUN forms into ‘pred’ item; refine, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 42ee34d 07/16: add comment: pine for ‘backquote’ first in generated docs; nfc, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 5fc0f24 11/16: mention unsuitability of ‘t’, ‘nil’ as SYMBOL pattern, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 352c1de 12/16: (docstring) small refinements, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc df05494 10/16: objects are self-quoting, not types, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 1c84726 14/16: move ‘app’ to immediately follow ‘pred’, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 381ea05 09/16: (docstring) split middle, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc 985c4ce 13/16: refine ‘(let ...)’ @item, Thien-Thi Nguyen, 2018/05/13
- [Emacs-diffs] fix/bug-31311-pcase-doc ca86dce 15/16: in U-pattern table, do ‘s/upattern/pattern/g’,
Thien-Thi Nguyen <=
- [Emacs-diffs] fix/bug-31311-pcase-doc 2eb044b 16/16: (docstring) move ‘or’ and ‘and’ to end of table, Thien-Thi Nguyen, 2018/05/13