diff options
author | Bastien <bzg@gnu.org> | 2017-02-21 15:41:15 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2017-02-21 15:41:15 +0100 |
commit | df506794db4ab026a4525772de92b8bd33ef6271 (patch) | |
tree | 7846b1191937777462abd9e3f24fb548dd112e32 | |
parent | 7d7c38c6b1255a3a1ddd03f32849232bf86200e3 (diff) | |
download | org-mode-df506794db4ab026a4525772de92b8bd33ef6271.tar.gz |
org-capture: Fix commit 7d7c38
-rw-r--r-- | lisp/org-capture.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 71aff0d..4466d23 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -830,7 +830,9 @@ for `entry'-type templates")) ;; empty lines) around entry, use a marker to refer to the ;; headline to be refiled. Place the marker in the base buffer, ;; as the current indirect one is going to be killed. - (set-marker pos (save-excursion (org-back-to-heading t)) base) + (set-marker pos (save-excursion + (and (org-back-to-heading t) (point))) + base) (org-capture-put :kill-buffer nil) (unwind-protect (progn |