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.
This commit is contained in:
John K. Luebs 2013-02-05 00:09:19 +01:00 committed by Bastien Guerry
parent 80cb1b0a09
commit f27e1e8e4d
1 changed files with 2 additions and 1 deletions

View File

@ -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)))