From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: task juggler export Date: Mon, 06 Sep 2010 11:39:47 +0200 Message-ID: <871v978b30.fsf@saadawi.sbszh.ch> References: <87hbi6bbxi.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=55644 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsYGI-00061P-4B for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 05:45:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsYGF-000071-A5 for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 05:45:14 -0400 Received: from lo.gmane.org ([80.91.229.12]:48050) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsYGF-00006m-4J for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 05:45:11 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OsYG8-0002C5-IQ for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 11:45:04 +0200 Received: from gateway01.sbszh.ch ([217.162.18.85]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2010 11:45:04 +0200 Received: from christian.egli by gateway01.sbszh.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2010 11:45:04 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > However, org-taskjuggler seems to use the global value regardless. Hm, org-taskjuggler doesn't do anything magic here. It just takes the value of org-export-taskjuggler-default-project-duration. > Is there something I need to do to get it to pay attention to my file > local variable value? A pointer to a relevant section in the emacs > lisp manual would suffice I just looked at the help string for defcustom (C-h f defcustom) where it says: > If symbol has a local binding, then this form affects the local > binding. This is normally not what you want. Thus, if you need to load > a file defining variables with this form, or with `defvar' or > `defconst', you should always load that file _outside_ any bindings > for these variables. (`defvar' and `defconst' behave similarly in this > respect.) So if I understand this correctly it appears that defcustom is overwriting your file variable. I don't understand however how you could make your file variable work. Maybe the variable org-export-taskjuggler-default-project-duration needs to be buffer-local. How does this interact with defcustom? Thanks Christian -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland