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.help Subject: macro-replacement with quotes Date: Sun, 24 Jan 2016 21:56:01 +0000 Message-ID: <87powq3amm.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453672596 16458 80.91.229.3 (24 Jan 2016 21:56:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2016 21:56:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 22:56:30 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1aNSe5-0002QT-8M for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2016 22:56:29 +0100 Original-Received: from localhost ([::1]:33506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNSe4-0000a5-PF for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2016 16:56:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNSdt-0000Zp-Ad for help-gnu-emacs@gnu.org; Sun, 24 Jan 2016 16:56:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNSdp-0002pI-9g for help-gnu-emacs@gnu.org; Sun, 24 Jan 2016 16:56:17 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:35221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNSdp-0002pE-3c for help-gnu-emacs@gnu.org; Sun, 24 Jan 2016 16:56:13 -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 1aNSdl-00069h-F6 for help-gnu-emacs@gnu.org; Sun, 24 Jan 2016 21:56:09 +0000 Original-Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aNSdl-0006Q3-GJ for help-gnu-emacs@gnu.org; Sun, 24 Jan 2016 21:56:09 +0000 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108834 Archived-At: Is it possible to build a list within a macro which contains backquote, quote or comma symbols in it? Specifically, I was thinking of building a macro which expands to a pcase form, but I need the ` symbol in the expansion. For example, say I have a list '(a b c) which I want to expand to `(,a ,b ,c) Or in full I want to expand something like (((a) a) ((a b) a b) ((a b c) a b c)) into (pcase x (`(,a) a) (`(,a ,b) a b) (`(,a ,b ,c) a b c)) Phil