all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Fix error handling deadline lead time specified in hours
@ 2013-02-01 20:56 John K. Luebs
  2013-02-04 23:11 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: John K. Luebs @ 2013-02-01 20:56 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: John K. Luebs

From: "John K. Luebs" <jkluebs@luebsphoto.com>

* 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-04 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 20:56 [PATCH] Fix error handling deadline lead time specified in hours John K. Luebs
2013-02-04 23:11 ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.