summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-02-23 12:59:24 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-02-23 12:59:24 +0100
commitda80e6c6abb9ac1aca1997bf691648e0a56aa6d8 (patch)
tree20c48db82b0badb32d80e0d7a40b565dde18a05a
parentdf506794db4ab026a4525772de92b8bd33ef6271 (diff)
downloadorg-mode-da80e6c6abb9ac1aca1997bf691648e0a56aa6d8.tar.gz
org-capture: Tiny refactoring
* lisp/org-capture.el (org-capture-refile): Tiny refactoring.
-rw-r--r--lisp/org-capture.el4
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