From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: capture problem Date: Wed, 20 Oct 2010 01:19:11 -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=54778 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8R5L-0003bg-WE for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:19:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8R5K-0007Nf-PV for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:19:35 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:52513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8R5K-0007Na-Ma for Emacs-orgmode@gnu.org; Wed, 20 Oct 2010 01:19:34 -0400 Received: by iwn1 with SMTP id 1so3787724iwn.0 for ; Tue, 19 Oct 2010 22:19:34 -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 On Sun, Oct 17, 2010 at 2:18 AM, Carsten Dominik wrote: > 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 I grabbed a fresh clone of org-mode in a testing directory, backed up the original org-capture.el, made a copy, and saved the file to a patch file called org-capture.el.patch. I typed the following at the command line. `patch org-capture.el org-capture.el.backup` This patch fails with the following information. ---------------------------------------------------------------------------= --- patching file org-capture.el Hunk #1 FAILED at 405. 1 out of 1 hunk FAILED -- saving rejects to file org-capture.el.rej ---------------------------------------------------------------------------= --- The results of the rejection file are below. ---------------------------------------------------------------------------= --- *************** *** 405,415 **** (or org-overriding-default-time (org-current-time))) (org-capture-set-target-location) - (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))) (if (equal goto 0) ;;insert at point --- 405,411 ---- (or org-overriding-default-time (org-current-time))) (org-capture-set-target-location) + (org-capture-put :template (org-capture-fill-template)) (if (equal goto 0) ;;insert at point ---------------------------------------------------------------------------= --- Apologies if I have made an error. I'm not a programmer by trade and am prone to tiny accidents. It's sloppy, so there's no excuse, but it's difficult for me to interpret where I make mistakes (backtraces for example). Best, Jeff --=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/