emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error using capture: "Capture abort: (wrong-type-argument stringp |)"
@ 2013-10-17 13:40 Alan E. Davis
  2013-10-17 14:01 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Alan E. Davis @ 2013-10-17 13:40 UTC (permalink / raw)
  To: org-mode

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

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 |)

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: Type: text/html, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error using capture: "Capture abort: (wrong-type-argument stringp |)"
  2013-10-17 13:40 Error using capture: "Capture abort: (wrong-type-argument stringp |)" Alan E. Davis
@ 2013-10-17 14:01 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2013-10-17 14:01 UTC (permalink / raw)
  To: Alan E. Davis; +Cc: org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-17 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 13:40 Error using capture: "Capture abort: (wrong-type-argument stringp |)" Alan E. Davis
2013-10-17 14:01 ` Carsten Dominik

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).