Revert "org-capture: Fix datetree capture"
This reverts commit a834a5939f
.
This commit is contained in:
parent
a834a5939f
commit
2316925ecb
|
@ -929,12 +929,7 @@ Store them in the capture property list."
|
||||||
(time-to-days prompt-time)))
|
(time-to-days prompt-time)))
|
||||||
(t
|
(t
|
||||||
;; current date, possibly corrected for late night workers
|
;; current date, possibly corrected for late night workers
|
||||||
(org-today)))))
|
(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))
|
|
||||||
|
|
||||||
((eq (car target) 'file+function)
|
((eq (car target) 'file+function)
|
||||||
(set-buffer (org-capture-target-buffer (nth 1 target)))
|
(set-buffer (org-capture-target-buffer (nth 1 target)))
|
||||||
|
|
Loading…
Reference in New Issue