emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Planner task sort


From: thomas knoll
Subject: [emacs-wiki-discuss] Planner task sort
Date: Sun, 23 Oct 2005 20:39:35 -0500

Anyone know why code below lists timed task in revers chronological order?
Did something change in planner-muse? or should I look for some other configuration changes?

;; planner task sort
(defun sacha/planner-sort-tasks-basic ()
  "Sort tasks by time (@1030, etc), status (_P>XC) and priority (ABC)."
  (let* ((info (planner-current-task-info))
         (status (aref (planner-task-status info) 0)))     
    (concat
     ;; time
     (or (and (string-match "@[0-9][0-9]:[0-9][0-9]" (planner-task-description info))
              (match-string 0 (planner-task-description info)))
         "@99:99")
     ;; status
     (cond
      ((eq status ?o) "1")
      ((eq status ?P) "2")
      ((eq status ?>) "3")
      ((eq status ?X) "4")
      ((eq status ?C) "5")
      (t "9"))
     (planner-task-priority info))))

--
##[.:dydimustk:.]###############
web:     http://dydimustk.com/
aim:     dyd1mustk
Y!:       dydimustk
msn:     address@hidden
vox:      651.210.2321
reply via email to

[Prev in Thread] Current Thread [Next in Thread]