浏览代码

Revert "org-capture: Fix datetree capture"

This reverts commit a834a5939fd7fa9b7184ebc0a4587a72916f907f.
Nicolas Goaziou 9 年之前
父节点
当前提交
2316925ecb
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      lisp/org-capture.el

+ 1 - 6
lisp/org-capture.el

@@ -929,12 +929,7 @@ Store them in the capture property list."
 	      (time-to-days prompt-time)))
 	   (t
 	    ;; current date, possibly corrected for late night workers
-	    (org-today)))))
-	;; If `org-datetree-add-timestamp' is non-nil, point is not
-	;; located on a headline.  However `file+datetree' expects
-	;; a node where to paste captured tree.  Thus, we make sure to
-	;; move to day heading.
-	(org-back-to-heading t))
+	    (org-today))))))
 
        ((eq (car target) 'file+function)
 	(set-buffer (org-capture-target-buffer (nth 1 target)))