From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: feature request: changing the way numeric priorities are calculated Date: Sat, 4 Jun 2011 23:51:08 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT4Mp-0001bd-80 for emacs-orgmode@gnu.org; Sat, 04 Jun 2011 23:51:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QT4Mo-0001BA-52 for emacs-orgmode@gnu.org; Sat, 04 Jun 2011 23:51:11 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:37467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QT4Mo-0001Az-0g for emacs-orgmode@gnu.org; Sat, 04 Jun 2011 23:51:10 -0400 Received: by wwb39 with SMTP id 39so2307194wwb.30 for ; Sat, 04 Jun 2011 20:51:08 -0700 (PDT) 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: emacs-orgmode mailing list As I understand org - at least as of v7.4, the numeric values of priorities as calculated in org-get-priority, are variable and based on multiplying things by 1000. I can understand why this is done this way, but it is a little restrictive. I would like to suggest that the numeric values of priorities be fixed between 0 and some value that can be user-defined, and that org-get-priority be tweaked to return a value between 0 and the max value, based on the range of priorities (i.e. from org-lowest-priority to org-highest-priority). So, for instance if you set the max numeric priority to 10, it wouldn't matter if you had 3 priority levels or 100, they'd all range between 0 and 10. In my case, I'm asking for this because I'm writing a user-defined comparator function that combines a number of features into a single measure of 'importance' (toodledo does something similar), and having the ability to essentially 'weight' the priority with respect to other values would be very useful. I'd try to do the changes myself, but I'm just not up to the task these days. Thoughts? Cheers. Fil Salustri -- \V/_ Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/