Merge branch 'maint'

This commit is contained in:
Bastien 2017-02-21 15:42:12 +01:00
commit cfadbc3761
1 changed files with 3 additions and 1 deletions

View File

@ -831,7 +831,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