From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add shell-quasiquote. Date: Sat, 17 Oct 2015 18:23:04 +0100 Message-ID: References: <87si59wj42.fsf@T420.taylan> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fb9223e04760522502ab2 X-Trace: ger.gmane.org 1445102606 25423 80.91.229.3 (17 Oct 2015 17:23:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 17:23:26 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?B?VGF5bGFuIFVscmljaCBCYXnEsXJsxLEvS2FtbWVy?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 19:23:26 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 1ZnVCX-0002a5-IP for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 19:23:25 +0200 Original-Received: from localhost ([::1]:59257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVCR-0003fv-V6 for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 13:23:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVCE-0003fK-Kr for emacs-devel@gnu.org; Sat, 17 Oct 2015 13:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnVCD-0005fK-Vi for emacs-devel@gnu.org; Sat, 17 Oct 2015 13:23:06 -0400 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:36683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnVCD-0005fG-Ok for emacs-devel@gnu.org; Sat, 17 Oct 2015 13:23:05 -0400 Original-Received: by lffz202 with SMTP id z202so8946582lff.3 for ; Sat, 17 Oct 2015 10:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=T110xqWLlf7UksT1RGerIGEOcQaNf2bKgJq68O6RSpA=; b=naCdlnkFB7IVEDo02fa/h7qMdIePxk5pQwYYzdRjjYZ0KPjyIaqtXKQrVehpJIhCTJ d/xiVEvLCcVdSmNfCfzvlh1UiJ92/umXhZq3dUDvaEkikyMAg1JMUKbbM+Qjjy9vn+Ep X9DVes0yFOMdygBsYJYpQU+1L0tqRf7jeRA9Oi8xcJEpNgWj9fp672bz+l6H43A0H/da WJBhHePWOF5n42BUHKX0gdxbqp3mLTi7uugB6YRJdD8s+ETlsaKIC3JruwEIYAZJH+2a coFQv7j2yx6xw1d2AxPHdA4f941nEgFzg1ylNS4qrRBXcCD3jGNzjzOLwoL8w5Pm1Qyn Pbtw== X-Received: by 10.25.16.73 with SMTP id f70mr6969627lfi.21.1445102584984; Sat, 17 Oct 2015 10:23:04 -0700 (PDT) Original-Received: by 10.25.22.197 with HTTP; Sat, 17 Oct 2015 10:23:04 -0700 (PDT) Original-Received: by 10.25.22.197 with HTTP; Sat, 17 Oct 2015 10:23:04 -0700 (PDT) In-Reply-To: <87si59wj42.fsf@T420.taylan> X-Google-Sender-Auth: 5rKNEC1ymjy9aWijWHDDLl99eJk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::22f 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:191861 Archived-At: --001a113fb9223e04760522502ab2 Content-Type: text/plain; charset=UTF-8 + (if (and (consp form) + (eq '\, (car form)) + (consp (cdr form)) + (null (cddr form))) + (cadr form))) There's nothing wrong with this code. But, just FYI, here's what it would look like with pcase (assuming I didn't mess up writing this on my phone). (pcase form ((`\, x) x)) --001a113fb9223e04760522502ab2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

+=C2=A0 (if (and (consp form)
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (eq '\, (= car form))
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (consp (cdr f= orm))
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (null (cddr f= orm)))
+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (cadr form)))

There's nothing wrong with this code. But, just FYI, her= e's what it would look like with pcase (assuming I didn't mess up w= riting this on my phone).

(pcase form
=C2=A0 ((`\, x) x))

--001a113fb9223e04760522502ab2--