From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: [PATCH 7/8] ox-taskjuggler.el: allow 'priority' to be a directly-specified integer Date: Wed, 11 Nov 2015 02:31:28 +0000 Message-ID: <87wptpqnb3.fsf@gmail.com> References: <87611alrmu.fsf@feelingofgreen.ru> <87bnb2soei.fsf@gmail.com> <878u66jm5e.fsf_-_@feelingofgreen.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwLCB-0008MK-3l for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 21:31:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwLC7-0002Cy-49 for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 21:31:35 -0500 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:33315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwLC6-0002Cn-UI for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 21:31:31 -0500 Received: by wmec201 with SMTP id c201so162137551wme.0 for ; Tue, 10 Nov 2015 18:31:30 -0800 (PST) In-Reply-To: <878u66jm5e.fsf_-_@feelingofgreen.ru> 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: Kosyrev Serge <_deepfire@feelingofgreen.ru>, emacs-orgmode@gnu.org Hi Kosyrev, 2015ko azaroak 10an, Kosyrev Serge-ek idatzi zuen: > Perhaps I was unclear in this message -- it's not the Org's priority > mechanism that is broken, it's the way ox-taskjuggler uses it that is. >=20 > Org specifies priorities via a list of enums, whereas TJ expects an > integer in the range 0-1000. >=20 > The quoted little piece of math in ox-taskjuggler tried to provide a > mapping, but failed and I couldn't figure out how to make it work -- > mainly because I couldn't understand how it was /supposed/ to work. Org priorities are expressed as single characters (conventionally uppercase Latin letters). These map to ASCII/Unicode code points (i.e. integers). The code interpolates these values linearly between 0 and 1000. By default org has three priorities A, B, and C; these map to 1000, 500, and 0 respectively. Five priorities A through E would map to 1000, 750, 500, 250, and 0. Etc. The letter/integer substitution is a bit opaque. So is the fact that org-lowest-priority (by default the ASCII codepoint for =E2=80=98C=E2=80=99= =3D 67) is a larger integer than org-highest-priority (ASCII =E2=80=98A=E2=80=99 =3D 65)= , despite what the names suggest. Does that help any? --=20 Aaron Ecay