From: Michael Heerdegen <michael_heerdegen@web.de>
To: 13678@debbugs.gnu.org
Subject: bug#13678: 24.2.93; pcase: mention list-like QPatterns in the doc
Date: Sun, 10 Feb 2013 18:49:33 +0100 [thread overview]
Message-ID: <87d2w8xdn6.fsf@web.de> (raw)
Hi,
due to the doc of `pcase' (similarly in the manual), this is the list of
forms that is valid as a QPattern:
,----------------------------------------------------------------------
| QPatterns can take the following forms:
| (QPAT1 . QPAT2) matches if QPAT1 matches the car and QPAT2 the cdr.
| ,UPAT matches if the UPattern UPAT matches.
| STRING matches if the object is `equal' to STRING.
| ATOM matches if the object is `eq' to ATOM.
`----------------------------------------------------------------------
I think it should also mention list-like patterns (without dot):
(QPat1 ...QPatn) matches any n-element list were each
element matches the according QPattern
Sure, `(QPAT1 . QPAT2)' also matches lists - but `(QPAT1 . QPAT2)' and
`(QPat1 ...QPatn)' are different forms (expressions) (although those
expressions could match equal values), so IMHO both should be mentioned.
Thanks,
Michael.
In GNU Emacs 24.2.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
of 2013-02-09 on drachen
Bzr revision: cyd@gnu.org-20130209044342-t2b063zu2fqy8nud
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description: Debian GNU/Linux 7.0 (wheezy)
Configured using:
`configure '--prefix=/usr/local/built/''
next reply other threads:[~2013-02-10 17:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-10 17:49 Michael Heerdegen [this message]
2013-02-11 1:43 ` bug#13678: 24.2.93; pcase: mention list-like QPatterns in the doc Stefan Monnier
2013-02-11 13:37 ` Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2w8xdn6.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=13678@debbugs.gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).