emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <drostekirsten@gmail.com>
To: "Alan E. Davis" <lngndvs@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Error using capture: "Capture abort: (wrong-type-argument stringp |)"
Date: Thu, 17 Oct 2013 16:01:01 +0200	[thread overview]
Message-ID: <FD95F1EA-C226-4F46-B623-9A0ADA8BF5FF@gmail.com> (raw)
In-Reply-To: <CAF-1L2Q-V7B-ojNdDdcAnP4MGPNTxGnA65NK7-5byfCYd-zg2w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

Hi Alan,

On Oct 17, 2013, at 3:40 PM, Alan E. Davis <lngndvs@gmail.com> 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:  
> 
>  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


> 
> Does this ring a bell for anyone?  Does this mean that "|" is encountered in a template, as a string, and shouldn't be?
> 
> Thank you,
> 
> Alan 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

      reply	other threads:[~2013-10-17 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17 13:40 Error using capture: "Capture abort: (wrong-type-argument stringp |)" Alan E. Davis
2013-10-17 14:01 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FD95F1EA-C226-4F46-B623-9A0ADA8BF5FF@gmail.com \
    --to=drostekirsten@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lngndvs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).