emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Subtle bug with capture and refile


From: Christopher Witte
Subject: Re: [Orgmode] Subtle bug with capture and refile
Date: Fri, 22 Oct 2010 16:13:01 +0200

Work for me too, thanks for the quick fix!

Cheers
Chris.

On 21 October 2010 22:27, Carsten Dominik <address@hidden> wrote:
Thanks for doing the testing.

- Carsten


On Oct 21, 2010, at 8:29 PM, John Rakestraw wrote:

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


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--
Postdoctoral Research Fellow
Molecular Imaging Group
Leibniz-Institut für Molekulare Pharmakologie (FMP)
Campus Berlin-Buch
Robert-Roessle-Str. 10
13125 Berlin, Germany
Phone: 00493094793-279


reply via email to

[Prev in Thread] Current Thread [Next in Thread]