From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Capture templates - using result from %^g twice? Date: Fri, 18 Nov 2016 17:18:28 +0100 Message-ID: References: <87y40hmavd.fsf@nicolasgoaziou.fr> <87polsn8kd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7ls5-0008HB-4v for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 11:18:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7ls1-0003Ks-8L for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 11:18:37 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:61273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7ls0-0003KP-Uc for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 11:18:33 -0500 In-Reply-To: <87polsn8kd.fsf@gmail.com> (Aaron Ecay's message of "Fri, 18 Nov 2016 14:53:22 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Aaron Ecay writes: > Hi Rainer, > > 2016ko azaroak 18an, Rainer M Krug-ek idatzi zuen: >>=20 > >>> :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) ":") >>=20 >> Thanks - this looks good to me, but the =3D"=3D causes problems and ends= the >> template early. I tried to replace =3D":"=3D with =3D':'=3D but this did= =3Dnot >> work either (invalid-read-syntax). >>=20 >> How can I get this to work? > > You need to escape the quotes with a single backslash. I did it like this: :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) \":\") But it still does not work as, my guess, nothing is returned - the "field" is empty Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJYLynVAAoJENvXNx4PUvmCDxoH/iSv38XBWCw2pdyWmlcay4Wg QFSCjcIYfxyzuyZeDSRiuyqouRIH5x0ShfIIxJ/9u1Hf/0FtHLJ9YJONsV5zdlX6 ffm3aaeltHUF8K4/pG/ZDQxvM2XKBydJmk9qQU09nMVCWFKEAlWJkWXtOsiU4tuh 12ZDZFvuqhnYA62dZwQ1vivSQRE+rWrH/rwiNaGElwQ+YbSFxSE+5einjDviPaR+ D9PK8wtVEtk11i9zX4yEdAE4TIKui92pyBz8FmBeDMbBZFdMi0NPDR53opxK/j1F SC2E7HGz1RfbOk5Ln/ebpKUxTZEJf3cdK1XJYkTSTVxMC+iGBC2kbtyNTrXqNPQ= =soy3 -----END PGP SIGNATURE----- --=-=-=--