From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: accessing org-lowest-priority in .emacs Date: Thu, 16 Jun 2011 07:35:36 -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]:33219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXCQi-00011H-Vo for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:16:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXCQb-0001D8-8E for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:16:15 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXCQb-0001Ca-0y for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:16:09 -0400 Received: by wyf19 with SMTP id 19so1268042wyf.0 for ; Thu, 16 Jun 2011 06:16:07 -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 I'm having a senior moment here. I've got code of this form in my Preferences.el (aquamacs-speak for .emacs): (defvar fas/org-some-variable (/ 10 (* 1000 (- org-lowest-priority org-highest-priority)))) But org-lowest-priority & org-highest-priority aren't defined at that point in Preferences.el. I need to defer the calculation till org is running. It's embarrassing, but it's not coming to me. Can someone help me out? Cheers. Fil -- \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/