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: Carsten Dominik
Subject: Re: [Orgmode] Subtle bug with capture and refile
Date: Thu, 21 Oct 2010 22:27:08 +0200

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




reply via email to

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