emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: nicholas.dokos@hp.com, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: capture problem
Date: Fri, 30 Dec 2011 04:07:27 -0500	[thread overview]
Message-ID: <3582.1325236047@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from tsd@tsdye.com (Thomas S. Dye) of "Thu, 29 Dec 2011 21:14:08 -1000." <m1boqqsf9b.fsf@tsdye.com>

Thomas S. Dye <tsd@tsdye.com> wrote:

> Aloha all,
> 
> I'm sometimes running into this error message when I capture:
> 
> condition-case: Capture abort: (quit pasteboard doesn't contain valid data)
> 
> Unfortunately, this doesn't mean anything to me.  The problem arises
> after I've been working for a while, but I haven't an idea why it
> starts, or any clue to what might trigger it.
> 
> I realize this isn't much to go on, and a long way from an ECM, but I
> don't know what to do.  Any ideas on how to track this down will be
> appreciated.
> 
> I'm using Org-mode version 7.8.02 (release_7.8.02.13.g0c09a.dirty).
> 

It's fairly certain that the message comes from org-capture:

,----
|       ...
| 	(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)))
|       ...
`----

and presumably from the call to org-capture-fill-template. The latter
part of the error message comes from the emacs selection processing 
in the file src/nsselect.m which says:

/* NeXT/Open/GNUstep / MacOSX Cocoa selection processing for emacs.

in the function

,----
| ns_string_from_pasteboard (id pb)
| {
|    ...
|           Fsignal (Qquit,
|                   Fcons (build_string ("pasteboard doesn't contain valid data"),
|                         Qnil));
|           return Qnil;
|    ...
| }
`----

So it's MacOSX specific and in emacs C code. But I have no idea what
causes it.

I'm afraid that's about as far as I can go. If you can edebug the
org-capture-fill-template function, maybe you can single-step it and
figure out where it croaks and what values it passes to the function
that causes the error and then proceed further down the call chain.

Nick

  reply	other threads:[~2011-12-30  9:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-30  7:14 capture problem Thomas S. Dye
2011-12-30  9:07 ` Nick Dokos [this message]
2011-12-30  9:35 ` Sebastien Vauban
2011-12-30 17:27   ` Thomas S. Dye
2012-01-05 22:15   ` Thomas S. Dye
2012-01-06  8:33     ` Sebastien Vauban
  -- strict thread matches above, loose matches on Subject: below --
2010-10-11 13:45 Jörg Hagmann
2010-10-11 17:33 ` Jeff Horn
2010-10-12  4:51   ` Carsten Dominik
2010-10-12  4:55     ` Jeff Horn
2010-10-17  6:18       ` Carsten Dominik
2010-10-20  5:19         ` Jeff Horn
2010-10-20  5:20           ` Jeff Horn
2010-10-20  6:02         ` Jeff Horn
2010-10-20  6:05           ` Carsten Dominik
2010-10-20  6:45             ` Jeff Horn
2010-10-20  6:08           ` Noorul Islam K M

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=3582.1325236047@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.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).