diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-02-23 12:59:24 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-02-23 12:59:24 +0100 |
commit | da80e6c6abb9ac1aca1997bf691648e0a56aa6d8 (patch) | |
tree | 20c48db82b0badb32d80e0d7a40b565dde18a05a | |
parent | df506794db4ab026a4525772de92b8bd33ef6271 (diff) | |
download | org-mode-da80e6c6abb9ac1aca1997bf691648e0a56aa6d8.tar.gz |
org-capture: Tiny refactoring
* lisp/org-capture.el (org-capture-refile): Tiny refactoring.
-rw-r--r-- | lisp/org-capture.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 4466d23..9003b2f 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -830,9 +830,7 @@ 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 - (and (org-back-to-heading t) (point))) - base) + (set-marker pos (save-excursion (org-back-to-heading t) (point)) base) (org-capture-put :kill-buffer nil) (unwind-protect (progn |