diff options
author | Bastien Guerry <bzg@altern.org> | 2014-06-15 10:43:17 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-06-15 10:43:17 +0200 |
commit | af8ee5fcf2c0e2acf0e7f60b22ffc05b384ebb09 (patch) | |
tree | 73a78feba9e130070caaa9ef7fef8ff8ce5fa48e | |
parent | e26e47c8a10d6be3e27524d2e42669b7b3004a82 (diff) | |
download | org-mode-af8ee5fcf2c0e2acf0e7f60b22ffc05b384ebb09.tar.gz |
org-agenda.el (org-cmp-ts): Fix agenda entry type checking
* org-agenda.el (org-cmp-ts): Fix agenda entry type checking.
Thanks to Trevor Murphy for reporting this.
-rw-r--r-- | lisp/org-agenda.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 1f806ce..df4ce9b 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6993,10 +6993,12 @@ When TYPE is \"scheduled\", \"deadline\", \"timestamp\" or is the empty string, compare all timestamps without respect of their type." (let* ((def (if org-sort-agenda-notime-is-late most-positive-fixnum -1)) - (ta (or (and (string-match type (or (get-text-property 1 type a) "")) - (get-text-property 1 'ts-date a)) def)) - (tb (or (and (string-match type (or (get-text-property 1 type b) "")) - (get-text-property 1 'ts-date b)) def))) + (ta (or (and (string-match type (or (get-text-property 1 'type a) "")) + (get-text-property 1 'ts-date a)) + def)) + (tb (or (and (string-match type (or (get-text-property 1 'type b) "")) + (get-text-property 1 'ts-date b)) + def))) (cond ((< ta tb) -1) ((< tb ta) +1)))) |