Yes, the math is wrong; I knew that.
Do this
"Filippo A. Salustri" <salustri@ryerson.ca> writes:
> 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.
#+begin_src emacs-lisp
(require 'org) ;; note this
(defvar fas/org-some-variable#+end_src
(/ 10 (* 1000 (- org-lowest-priority org-highest-priority))))
or
this
#+begin_src emacs-lisp
(eval-after-load 'org
(defvar fas/org-some-variable ;; replace defvar with setq, maybe?
(/ 10 (* 1000 (- org-lowest-priority org-highest-priority)))))
#+end_src
Just re-check whether you have got your math right. It looks suspicious
to me.
Jambunathan K.
>
> It's embarrassing, but it's not coming to me.
>
> Can someone help me out?
> Cheers.
> Fil
--