org-capture: Tiny refactoring

* lisp/org-capture.el (org-capture-set-target-location): Use
  `point-marker'.  Also remove trailing space.
This commit is contained in:
Nicolas Goaziou 2017-03-17 08:26:29 +01:00
parent f6f02ea019
commit 2ff038da31
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ Store them in the capture property list."
(org-find-olp (cons (org-capture-expand-file path)
outline-path))
(set-buffer (org-capture-target-buffer path))
(move-marker (make-marker) (point)))))
(point-marker))))
(set-buffer (marker-buffer m))
(org-capture-put-target-region-and-position)
(widen)