[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Fix error handling deadline lead time specified in hours
From: |
John K. Luebs |
Subject: |
[O] [PATCH] Fix error handling deadline lead time specified in hours |
Date: |
Fri, 01 Feb 2013 15:56:54 -0500 |
From: "John K. Luebs" <address@hidden>
* lisp/org.el (org-get-wdays): Handle matching a lead time specified in
hours, which is matched by the current regexp but will erroneously
return nil.
TINYCHANGE
---
lisp/org.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index 310972b..e9353f6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16227,7 +16227,8 @@ If SECONDS is non-nil, return the difference in
seconds."
(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)))
--
1.8.1.2
- [O] [PATCH] Fix error handling deadline lead time specified in hours,
John K. Luebs <=