[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Subtle bug with capture and refile
From: |
John Rakestraw |
Subject: |
Re: [Orgmode] Subtle bug with capture and refile |
Date: |
Thu, 21 Oct 2010 14:29:51 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi, Carsten --
On Thu, 21 Oct 2010, Carsten Dominik wrote:
> Hi Christopher,
>
> thank you for taking the time to isolate this bug. Could
> you please try the following patch?
>
Your patch seems to fix the problem.
Thanks --
John
> Thanks.
>
> - Carsten
>
> Modified lisp/org-capture.el
> diff --git a/lisp/org-capture.el b/lisp/org-capture.el
> index 7915f7f..537f1a4 100644
> --- a/lisp/org-capture.el
> +++ b/lisp/org-capture.el
> @@ -548,6 +548,7 @@ already gone."
> (unless (eq (org-capture-get :type 'local) 'entry)
> (error
> "Refiling from a capture buffer makes only sense for `entry'-
> type templates"))
> + (if (and (bolp) (eobp)) (backward-char 1))
> (let ((pos (point))
> (base (buffer-base-buffer (current-buffer)))
> (org-refile-for-capture t))
>
--
John Rakestraw