From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: The poor state of documentation of pcase like things. Date: Sat, 19 Dec 2015 22:11:17 +0000 Message-ID: <87vb7um6m2.fsf@russet.org.uk> References: <20151216202605.GA3752@acm.fritz.box> <877fkatpct.fsf@web.de> <87d1u2npsf.fsf@russet.org.uk> <87fuyykukj.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1450563101 30954 80.91.229.3 (19 Dec 2015 22:11:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Dec 2015 22:11:41 +0000 (UTC) Cc: Alan Mackenzie , Kaushal Modi , Emacs developers To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 19 23:11:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aAPin-0003L2-9c for ged-emacs-devel@m.gmane.org; Sat, 19 Dec 2015 23:11:25 +0100 Original-Received: from localhost ([::1]:38906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAPim-0004pl-Nt for ged-emacs-devel@m.gmane.org; Sat, 19 Dec 2015 17:11:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAPij-0004pf-MG for emacs-devel@gnu.org; Sat, 19 Dec 2015 17:11:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAPig-0008Il-HE for emacs-devel@gnu.org; Sat, 19 Dec 2015 17:11:21 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:43577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAPig-0008Ib-B7 for emacs-devel@gnu.org; Sat, 19 Dec 2015 17:11:18 -0500 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1aAPif-0003TR-Fj; Sat, 19 Dec 2015 22:11:17 +0000 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aAPif-0006SQ-KG; Sat, 19 Dec 2015 22:11:17 +0000 In-Reply-To: <87fuyykukj.fsf@web.de> (Michael Heerdegen's message of "Sat, 19 Dec 2015 22:16:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196534 Archived-At: Michael Heerdegen writes: > phillip.lord@russet.org.uk (Phillip Lord) writes: > >> These forms could do with documenting. I've tried to get the seq and >> map pcase-macro's working and have failed. > > What did you try and what failed? Did you load seq.el and map.el before > trying? Just get them working at all. The pcase doc says: -- (map &rest ARGS) ARGS can be a list of the form (KEY PAT), in which case KEY in an unquoted form. ARGS can also be a list of symbols, which stands for (=E2=80=99SYMBOL SYMBOL). So, I tried something like: (pcase '(:a 1) ((map `(:a ,a)) a)) which I thought might eval to 1. Phil