all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "John K. Luebs" <jkluebs@luebsphoto.com>
To: emacs-orgmode@gnu.org
Cc: "John K. Luebs" <jkluebs@luebsphoto.com>
Subject: [PATCH] Fix error handling deadline lead time specified in hours
Date: Fri, 01 Feb 2013 15:56:54 -0500	[thread overview]
Message-ID: <1359752214-14239-1-git-send-email-jkluebs@luebsphoto.com> (raw)

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

             reply	other threads:[~2013-02-01 21:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 20:56 John K. Luebs [this message]
2013-02-04 23:11 ` [PATCH] Fix error handling deadline lead time specified in hours Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359752214-14239-1-git-send-email-jkluebs@luebsphoto.com \
    --to=jkluebs@luebsphoto.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.