فهرست منبع

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.
Bastien Guerry 12 سال پیش
والد
کامیت
af8ee5fcf2
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      lisp/org-agenda.el

+ 6 - 4
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
 is the empty string, compare all timestamps without respect of
 their type."
 their type."
   (let* ((def (if org-sort-agenda-notime-is-late most-positive-fixnum -1))
   (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)
     (cond ((< ta tb) -1)
 	  ((< tb ta) +1))))
 	  ((< tb ta) +1))))