From d20fc4d7c5973e2c07feb321f959471d946aff57 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 11 Apr 2018 23:01:16 +0200 Subject: [PATCH] org-capture: Properly handle `org-extend-today-until' in templates * lisp/org-capture.el (org-capture-set-target-location): Handle non-default `org-extend-today-until'. Reported-by: Robert Irelan --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 3de386c69..37d1b3b1d 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1010,7 +1010,7 @@ Store them in the capture property list." ;; Use 00:00 when no time is given for another ;; date than today? (apply #'encode-time - (append '(0 0 0) + (append `(0 0 ,org-extend-today-until) (cl-cdddr (decode-time prompt-time))))) ((string-match "\\([^ ]+\\)--?[^ ]+[ ]+\\(.*\\)" org-read-date-final-answer) -- 2.11.4.GIT