[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 fb7c581: Minor correction to pcase docstring
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] emacs-25 fb7c581: Minor correction to pcase docstring |
Date: |
Fri, 22 Jan 2016 09:46:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> +of values. For example, the pattern (foo bar) matches any two
Hmm...no.
> meaning they must match exactly: The pattern (\\='foo \\='bar)
> matches only against two element lists containing the symbols
Hmm...still not.
If you want (...) to mean "the pattern that matches a list ..." then you
need a backquote in front:
`(foo bar) matches a list containing the symbols `foo' and `bar'.
`(,foo ,bar) matches any two-element list.
The intuition is that the pattern matches elements that could be the
result of evaluating an expression of the same shape.
Stefan
- Re: [Emacs-diffs] emacs-25 fb7c581: Minor correction to pcase docstring,
Stefan Monnier <=