From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: 14935-done@debbugs.gnu.org
Subject: bug#14935: 24.3.50; pcase (or) UPAT fails?
Date: Tue, 23 Jul 2013 09:44:49 -0400 [thread overview]
Message-ID: <jwvip01tms1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ip01fr90.fsf@gmail.com> (Vitalie Spinu's message of "Tue, 23 Jul 2013 13:30:19 +0200")
> This doesn't:
> (pcase (list 23 nil "%")
> (`(,scale nil (or "^" "%")) (message "%s" scale))
> (_ (message "failed")))
> Is this a bug?
No, it's normal. The third pattern matches a list of 3 elements (the
first being the symbol `or'). You probably meant to do
(pcase (list 23 nil "%")
(`(,scale nil ,(or `"^" `"%")) (message "%s" scale))
(_ (message "failed")))
-- Stefan
next prev parent reply other threads:[~2013-07-23 13:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 11:30 bug#14935: 24.3.50; pcase (or) UPAT fails? Vitalie Spinu
2013-07-23 12:08 ` Andreas Schwab
2013-07-23 13:44 ` Stefan Monnier [this message]
2013-07-23 21:00 ` Vitalie Spinu
2013-07-24 5:14 ` Stefan Monnier
2013-07-24 7:19 ` Vitalie Spinu
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=jwvip01tms1.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=14935-done@debbugs.gnu.org \
--cc=spinuvit@gmail.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.