소스 검색

org-capture: Tiny refactoring

* lisp/org-capture.el (org-capture-refile): Tiny refactoring.
Nicolas Goaziou 8 년 전
부모
커밋
da80e6c6ab
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      lisp/org-capture.el

+ 1 - 3
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