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: Re: macro-replacement with quotes Date: Mon, 25 Jan 2016 14:02:38 +0000 Message-ID: <87si1lg3k1.fsf@russet.org.uk> References: <87powq3amm.fsf@russet.org.uk> <87d1sqd36h.fsf@mbork.pl> <87zivut13d.fsf@russet.org.uk> <874me1didt.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453730586 26781 80.91.229.3 (25 Jan 2016 14:03:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2016 14:03:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 25 15:03:01 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 1aNhjP-0006Kn-MM for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2016 15:02:59 +0100 Original-Received: from localhost ([::1]:38753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhjO-00020n-S7 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2016 09:02:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhjF-00020i-1W for help-gnu-emacs@gnu.org; Mon, 25 Jan 2016 09:02:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNhj9-0005n1-AE for help-gnu-emacs@gnu.org; Mon, 25 Jan 2016 09:02:48 -0500 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:37414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNhj9-0005mb-3S for help-gnu-emacs@gnu.org; Mon, 25 Jan 2016 09:02:43 -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 1aNhj5-0003kn-DB; Mon, 25 Jan 2016 14:02:39 +0000 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1aNhj5-0005Fo-0r; Mon, 25 Jan 2016 14:02:39 +0000 In-Reply-To: <874me1didt.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 25 Jan 2016 12:10:38 +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: 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:108846 Archived-At: Marcin Borkowski writes: > > Glad that it helped. > > It occurred to me now that another way might be to use something like > ``(a b), which apparently yields a similar result, but less of a pain to > type. > > Best, It's a thought, so I tried this.... (defmacro p-test-2 (var) `(pcase 10 ('`(,var) ,var))) but this fails because the ' quotes the ` and the list following it. So you get: (p-test-2 a) expands (pcase 10 ('`(,var) a)) It's all very complicated isn't it? Phil