[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] capture problem
From: |
Jeff Horn |
Subject: |
Re: [Orgmode] capture problem |
Date: |
Wed, 20 Oct 2010 01:19:11 -0400 |
On Sun, Oct 17, 2010 at 2:18 AM, Carsten Dominik
<address@hidden> 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
address@hidden
address@hidden
http://www.failuretorefrain.com/jeff/
- [Orgmode] capture problem, Jörg Hagmann, 2010/10/11
- Re: [Orgmode] capture problem, Jeff Horn, 2010/10/11
- Re: [Orgmode] capture problem, Carsten Dominik, 2010/10/12
- Re: [Orgmode] capture problem, Jeff Horn, 2010/10/12
- Re: [Orgmode] capture problem, Carsten Dominik, 2010/10/17
- Re: [Orgmode] capture problem,
Jeff Horn <=
- Re: [Orgmode] capture problem, Jeff Horn, 2010/10/20
- Re: [Orgmode] capture problem, Jeff Horn, 2010/10/20
- Re: [Orgmode] capture problem, Carsten Dominik, 2010/10/20
- Re: [Orgmode] capture problem, Jeff Horn, 2010/10/20
- [Orgmode] Re: capture problem, Noorul Islam K M, 2010/10/20