diff options
author | Bastien Guerry <bzg@altern.org> | 2013-02-07 10:32:43 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-02-07 10:32:43 +0100 |
commit | 3c4847cf67da2e65f4f8d1dd9514ffd7ff464061 (patch) | |
tree | 1088845e6332cb721301f286a92ac93cf1af624f | |
parent | cadffe8e1a75ab09a0ac8b734c19e0846743f37e (diff) | |
download | org-mode-3c4847cf67da2e65f4f8d1dd9514ffd7ff464061.tar.gz |
org-agenda.el (org-agenda-get-todos): Skip diary sexps when trying to sort by timestamp
* org-agenda.el (org-agenda-get-todos): Skip diary sexps when
trying to sort by timestamp.
Thanks to Kyle Machulis for reporting this problem.
-rw-r--r-- | lisp/org-agenda.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index e9a9efc..54dbeea 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5485,7 +5485,9 @@ the documentation of `org-diary'." (org-entry-get (point) "TIMESTAMP_IA")) ts-date-type "")) (t (setq ts-date-type ""))) - (when ts (org-time-string-to-absolute ts)))) + (when ts (or (ignore-errors (org-time-string-to-absolute ts)) + ;; We skip diary sexp because `date' is not bound + (time-to-days nil))))) category-pos (get-text-property (point) 'org-category-position) txt (org-trim (buffer-substring (match-beginning 2) (match-end 0))) |