all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Filippo A. Salustri" <salustri@ryerson.ca>
To: Samuel Wales <samologist@gmail.com>
Cc: emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: feature request: changing the way numeric priorities are calculated
Date: Sun, 5 Jun 2011 13:23:28 -0400	[thread overview]
Message-ID: <BANLkTin8eCivRmAAvD+r0akR8YmPmTxNtg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimG9G4D+NvetC=0j35Tm6+0PvLvvw@mail.gmail.com>

Could you explain (alpha-org-entry-priority-letter sg), and where you
would use alpha-org-priority-score.
Also, while I see what you're doing in the code, I would prefer
something not so rigid (i.e. expecting only 3 levels of priority and
having the values for those priorities hardwired into the code).
Cheers.
Fil

On 5 June 2011 00:26, Samuel Wales <samologist@gmail.com> wrote:
> I do
>
> (defun alpha-org-priority-score (&optional sg)
>  (case (alpha-org-entry-priority-letter sg)
>    (?A 2)
>    (?B 0)
>    (?C -1)
>    (t (error "Case exhausted for priority"))))
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
> I support the Whittemore-Peterson Institute (WPI)
> ===
> Extreme bigotry against people with deadly serious diseases is still
> extreme bigotry.
>



-- 
\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/

      parent reply	other threads:[~2011-06-05 17:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05  3:51 feature request: changing the way numeric priorities are calculated Filippo A. Salustri
2011-06-05  4:26 ` Samuel Wales
2011-06-05 11:11   ` [OT] " Jambunathan K
2011-06-05 11:26     ` Jambunathan K
2011-06-05 20:36     ` Carsten Dominik
2011-06-05 17:23   ` Filippo A. Salustri [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTin8eCivRmAAvD+r0akR8YmPmTxNtg@mail.gmail.com \
    --to=salustri@ryerson.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.