From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Sort order of TODO entries Date: Thu, 08 Mar 2012 09:52:40 -0600 Message-ID: <87linbnl87.fsf@fastmail.fm> References: <20120308155637.42844cf7@vknecht-intel.unibw-hamburg.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5feQ-0008E8-0j for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 10:53:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5fe1-0004Ue-Bs for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 10:53:09 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:45218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5fe0-0004UB-V0 for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 10:52:45 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 53A8620E34 for ; Thu, 8 Mar 2012 10:52:42 -0500 (EST) In-Reply-To: <20120308155637.42844cf7@vknecht-intel.unibw-hamburg.de> (Detlef Steuer's message of "Thu, 8 Mar 2012 15:56:37 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Detlef Steuer Cc: emacs-orgmode@gnu.org Hi Detlef, Detlef Steuer writes: > I don't understand the reasoning in putting TODOs without priority or > WAITING without priority before priority #C. > > Conceptually "no priority" (for me) means "not decided how important or > not important at all, but would like to work on it", In contrast "#C" > means "must be done, but do #A and #B first". > > It would IMHO feel much more natural to sort > > #A, #B, #C, no priority. Currently, org gives items with no priority a default priority of B. ,----[ (info "(org) Priorities") | By default, Org mode supports three priorities: `A', `B', and `C'. `A' | is the highest priority. An entry without a cookie is treated just | like priority `B'. Priorities make a difference only for sorting in | the agenda (*note Weekly/daily agenda::); outside the agenda, they have | no inherent meaning to Org mode. `---- > Is that (easily) possible? You can modify how the agenda sorts priorities with a custom function. Here's a quick hack that seems to work: (defun my-org-get-priority () (save-match-data (if (not (string-match org-priority-regexp s)) -1000 (* 1000 (- org-lowest-priority (string-to-char (match-string 2 s))))))) (setq org-get-priority-function 'my-org-get-priority) Best, Matt