diff options
author | Peter Münster <pmlists@free.fr> | 2011-11-21 22:21:41 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-12-11 18:44:00 +0100 |
commit | 0472ccdc995b0fc7b9e1375cdb6ea6d56efd6c09 (patch) | |
tree | 1ea42f524f1da73de374f7b04662836f1ee5780e | |
parent | 283fa3e38df522159420f722d69e1fea47c7d9e0 (diff) | |
download | org-mode-0472ccdc995b0fc7b9e1375cdb6ea6d56efd6c09.tar.gz |
Timestamps: Fix org-schedule and org-deadline with absolute time arguments
* lisp/org.el (org-add-planning-info): Treat absolute time too.
TINYCHANGE
-rw-r--r-- | lisp/org.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/org.el b/lisp/org.el index eda954f..c417d6e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12078,9 +12078,8 @@ be removed." default-input (and ts (org-get-compact-tod ts)))))) (when what (setq time - (if (and (stringp time) - (string-match "^[-+]+[0-9]" time)) - ;; This is a relative time, set the proper date + (if (stringp time) + ;; This is a string (relative or absolute), set proper date (apply 'encode-time (org-read-date-analyze time default-time (decode-time default-time))) @@ -14807,7 +14806,7 @@ The prompt will suggest to enter an ISO date, but you can also enter anything which will at least partially be understood by `parse-time-string'. Unrecognized parts of the date will default to the current day, month, year, hour and minute. If this command is called to replace a timestamp at point, -of to enter the second timestamp of a range, the default time is taken +or to enter the second timestamp of a range, the default time is taken from the existing stamp. Furthermore, the command prefers the future, so if you are giving a date where the year is not given, and the day-month combination is already past in the current year, it will assume you |