From f27e1e8e4d6ffd3f92287a4a9122e752238c1bb3 Mon Sep 17 00:00:00 2001 From: "John K. Luebs" Date: Tue, 5 Feb 2013 00:09:19 +0100 Subject: [PATCH] org.el (org-get-wdays): Handle matching a lead time specified in hours * org.el (org-get-wdays): Handle matching a lead time specified in hours. TINYCHANGE A lead time in hours is matched but will erroneously return nil. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index ca751a7d4..bba52a8b6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15921,7 +15921,8 @@ Don't touch the rest." (floor (* (string-to-number (match-string 1 ts)) (cdr (assoc (match-string 2 ts) '(("d" . 1) ("w" . 7) - ("m" . 30.4) ("y" . 365.25))))))) + ("m" . 30.4) ("y" . 365.25) + ("h" . 0.041667))))))) ;; go for the default. (t org-deadline-warning-days))) -- 2.11.4.GIT