From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Error using capture: "Capture abort: (wrong-type-argument stringp |)" Date: Thu, 17 Oct 2013 16:01:01 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_3F6EC550-B9DC-4C8D-B9FB-1A17B66FB05A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWo8X-0007Na-58 for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 10:01:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWo8O-0003PI-8L for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 10:01:13 -0400 Received: from mail-ee0-x22f.google.com ([2a00:1450:4013:c00::22f]:39942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWo8O-0003Ow-1r for emacs-orgmode@gnu.org; Thu, 17 Oct 2013 10:01:04 -0400 Received: by mail-ee0-f47.google.com with SMTP id d49so1076172eek.20 for ; Thu, 17 Oct 2013 07:01:03 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Alan E. Davis" Cc: org-mode --Apple-Mail=_3F6EC550-B9DC-4C8D-B9FB-1A17B66FB05A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Alan, On Oct 17, 2013, at 3:40 PM, Alan E. Davis wrote: > I have made only minor changes to my capture-templates variable, which = is admittedly quite convoluted. Recently, this error pops up whenever I = run C-cC and any of the keys for templates: =20 >=20 > Capture abort: (wrong-type-argument stringp |) This is an error that happens while the function = org-capture-fill-template runs. It is not easy to locate because the = error is captured. What you can do this this: Goto org-capture.el and find this piece of code: (condition-case error (org-capture-put :template (org-capture-fill-template)) ((error quit) (if (get-buffer "*Capture*") (kill-buffer "*Capture*")) (error "Capture abort: %s" error))) Edit it to remove the error trap: (org-capture-put :template (org-capture-fill-template)) (if (get-buffer "*Capture*") (kill-buffer "*Capture*")) Evaluate buffer to update. Set debug-on-error And then go and hit the error again. The traceback will then give information we can hopefully use. HTH - Carsten >=20 > Does this ring a bell for anyone? Does this mean that "|" is = encountered in a template, as a string, and shouldn't be? >=20 > Thank you, >=20 > Alan=20 --Apple-Mail=_3F6EC550-B9DC-4C8D-B9FB-1A17B66FB05A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSX+2dAAoJEO+gg/nAZuwMWGEH/2ea33MxtiLohFdgyGYXBn0A frsSUI0Cj0P/6AevrRVNUksNzz+mD2pp/rM9YclRgI6GDH4uMFaXHIquJVkNfDTk QA1O2MrPfT2kQJYK4XuCuvhwwe5AvANHsZlbVDM3NBXIzr39cPT8Om+9t/FDl10R oiiBiua61U33dIX3MV2cNVHEdQdfp/vMIw4+h7CDYLqIe/H4rWuhSLa4tYhjiAPh deFPrDOVz4PppRhw1aEnX+HvE+SOomZmmlNkE/oh8kuqJwLpfzRBKeS60xIxamVV SFdmp8Rrk25ePRg5obh3TTSFfrTfD4hTNe6CJxgDYZbaqzu/brB9I/M9nxjJimM= =u8Um -----END PGP SIGNATURE----- --Apple-Mail=_3F6EC550-B9DC-4C8D-B9FB-1A17B66FB05A--