all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: John Wiegley <johnw@newartisans.com>
Subject: Re: [Emacs-diffs] emacs-25 fb7c581: Minor correction to pcase docstring
Date: Fri, 22 Jan 2016 09:46:32 -0500	[thread overview]
Message-ID: <jwvlh7hwu7e.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1aMW9a-0006Yp-It@vcs.savannah.gnu.org> (John Wiegley's message of "Fri, 22 Jan 2016 07:29:07 +0000")

> +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



       reply	other threads:[~2016-01-22 14:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160122072906.25181.94661@vcs.savannah.gnu.org>
     [not found] ` <E1aMW9a-0006Yp-It@vcs.savannah.gnu.org>
2016-01-22 14:46   ` Stefan Monnier [this message]
2016-01-22 17:52     ` [Emacs-diffs] emacs-25 fb7c581: Minor correction to pcase docstring John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlh7hwu7e.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@newartisans.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.