[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pcase docstring tweaks
From: |
Stefan Monnier |
Subject: |
Re: pcase docstring tweaks |
Date: |
Tue, 27 Oct 2015 14:57:51 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>> ***************
>> *** 115,123 ****
>> SYMBOL matches anything and binds it to SYMBOL.
>> (or PAT...) matches if any of the patterns matches.
>> (and PAT...) matches if all the patterns match.
>> ! \\='VAL matches if the object is `equal' to VAL
>> ATOM is a shorthand for \\='ATOM.
>> ! ATOM can be a keyword, an integer, or a string.
>> (pred FUN) matches if FUN applied to the object returns non-nil.
>> (guard BOOLEXP) matches if BOOLEXP evaluates to non-nil.
>> (let PAT EXP) matches if EXP matches PAT.
>> --- 115,123 ----
>> SYMBOL matches anything and binds it to SYMBOL.
>> (or PAT...) matches if any of the patterns matches.
>> (and PAT...) matches if all the patterns match.
>> ! \\='VAL matches if the object is `equal' to VAL.
>> ATOM is a shorthand for \\='ATOM.
>> ! when ATOM is a keyword, an integer, or a string.
>> (pred FUN) matches if FUN applied to the object returns non-nil.
>> (guard BOOLEXP) matches if BOOLEXP evaluates to non-nil.
>> (let PAT EXP) matches if EXP matches PAT.
The ATOM change looks like a mild regression to me, but if you feel
strongly about that bikeshed color, feel free to change it (but then
please remove the "." from the previous line, otherwise the "when"
doesn't continue anything).
The rest is fine.
Stefan
- Re: Question on pcase, (continued)
- Re: Question on pcase, Alan Mackenzie, 2015/10/24
- Re: Question on pcase, Stephen Berman, 2015/10/24
- Re: Question on pcase, Alan Mackenzie, 2015/10/24
- Re: Question on pcase, Stephen Berman, 2015/10/24
- Re: Question on pcase, Alan Mackenzie, 2015/10/24
- pcase docstring tweaks (was: Question on pcase), Michael Heerdegen, 2015/10/24
- Re: pcase docstring tweaks, Michael Heerdegen, 2015/10/27
- Re: pcase docstring tweaks,
Stefan Monnier <=
- Re: pcase docstring tweaks, Michael Heerdegen, 2015/10/27
- Re: pcase docstring tweaks, Richard Stallman, 2015/10/27
- Re: pcase docstring tweaks, Michael Heerdegen, 2015/10/28
- RE: Question on pcase, Drew Adams, 2015/10/24
- Re: Question on pcase, Alan Mackenzie, 2015/10/24
- RE: Question on pcase, Drew Adams, 2015/10/24
- Re: Question on pcase, Johan Bockgård, 2015/10/24
- Re: Question on pcase, Michael Heerdegen, 2015/10/24
- Re: Question on pcase, Oleh Krehel, 2015/10/26
- Re: Question on pcase, Michael Heerdegen, 2015/10/26