On Sun, Oct 17, 2010 at 2:18 AM, Carsten Dominik <carsten.domi...@gmail.com> 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." > (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))) > + (org-capture-put :template (org-capture-fill-template)) > > (if (equal goto 0) > ;;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 -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode