From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: capture problem Date: Wed, 20 Oct 2010 02:02:26 -0400 Message-ID: References: <4CB314DE.5090906@unibas.ch> <6413AFDF-A9D5-4934-B4C1-F54ED4703FFC@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=57033 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8RlB-0002Pw-Ee for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 02:02:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8RlA-0004QK-0s for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 02:02:49 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:42137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8Rl9-0004QB-SG for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 02:02:47 -0400 Received: by iwn1 with SMTP id 1so3829101iwn.0 for ; Tue, 19 Oct 2010 23:02:47 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Emacs-orgmode@gnu.org Steps so far: Clear pasteboard by killing some text. Confirm that org-capture creates capture buffer successfully when pasteboard contains text. To reproduce bug: 1) Find an image online in a modern graphical browser on a modern, GUI OS. Linux should do (I'm using Snow Leopard) 2) Right-click the image, select "copy image" or similar. 3) Return to emacs, and visit any buffer. 4) Call org-capture. Press the key indicating the template you'd like to us= e. 5) Observe the mini-buffer complains that the "pastboard does not contain valid data" Again, I'm using **Aquamacs** on Snow Leopard. Can anyone else confirm using a different emacsen/os combination? I've downloaded the patched org-capture.el you've sent, and pressed `C-u C-c C-x !`. I've observed the minibuffer reloading uncompiled source and stating that I'm using org-mode 7.1trans "dirty". When I try to reproduce the bug, the minibuffer again complains, but I see no backtrace or additional errors in the Messages buffer. Jeff On Sun, Oct 17, 2010 at 2:18 AM, Carsten Dominik wrote: > > On Oct 12, 2010, at 6:55 AM, Jeff Horn wrote: > >> On Tue, Oct 12, 2010 at 12:51 AM, Carsten Dominik >> wrote: >>> >>> Could one of you try to make a backtrace for this problem? >> >> Debugger entered--Lisp error: (error "Capture abort: (quit pasteboard >> doesn't contain valid data)") >> =A0signal(error ("Capture abort: (quit pasteboard doesn't contain valid >> data)")) >> =A0ad-Orig-error("Capture abort: %s" (quit "pasteboard doesn't contain >> valid data")) >> =A0apply(ad-Orig-error ("Capture abort: %s" (quit "pasteboard doesn't >> contain valid data"))) >> =A0error("Capture abort: %s" (quit "pasteboard doesn't contain valid dat= a")) >> =A0byte-code("\301\302!\203\n > > Hi Jeff, > > unfortunately the error is hard to identify because I have a handler in > place when it happens. > > Can I ask you to apply the patch below, and then again hit the error to > make me a backtrace? =A0With uncompiled code, please. > > Thanks! > > - Carsten > > diff --git a/lisp/org-capture.el b/lisp/org-capture.el > index 7915f7f..b2aade6 100644 > --- a/lisp/org-capture.el > +++ b/lisp/org-capture.el > @@ -405,11 +405,7 @@ bypassed." > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (or org-overriding-defaul= t-time > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-current-time= ))) > =A0 =A0 =A0 =A0(org-capture-set-target-location) > - =A0 =A0 =A0 (condition-case error > - =A0 =A0 =A0 =A0 =A0 (org-capture-put :template (org-capture-fill-templa= te)) > - =A0 =A0 =A0 =A0 ((error quit) > - =A0 =A0 =A0 =A0 =A0(if (get-buffer "*Capture*") (kill-buffer "*Capture*= ")) > - =A0 =A0 =A0 =A0 =A0(error "Capture abort: %s" error))) > + =A0 =A0 =A0 (org-capture-put :template (org-capture-fill-template)) > > =A0 =A0 =A0 =A0(if (equal goto 0) > =A0 =A0 =A0 =A0 =A0 =A0;;insert at point > > > > >> >> -- >> Jeffrey Horn >> Graduate Lecturer and PhD Student in Economics >> George Mason University >> >> (704) 271-4797 >> jhorn@gmu.edu >> jrhorn424@gmail.com > > --=20 Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/