From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: task juggler export Date: Mon, 06 Sep 2010 16:40:55 +0100 Message-ID: <87bp8akhh4.wl%ucecesf@ucl.ac.uk> References: <87hbi6bbxi.wl%ucecesf@ucl.ac.uk> <871v978b30.fsf@saadawi.sbszh.ch> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Mon_Sep__6_16:40:55_2010-1" Return-path: Received: from [140.186.70.92] (port=45870 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osgqx-0004uy-0C for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 14:55:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Osgqv-0000Wc-JX for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 14:55:38 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:47369) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Osgqv-0000VU-Fk for emacs-orgmode@gnu.org; Mon, 06 Sep 2010 14:55:37 -0400 In-Reply-To: <871v978b30.fsf@saadawi.sbszh.ch> 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: Christian Egli Cc: emacs-orgmode@gnu.org --Multipart_Mon_Sep__6_16:40:55_2010-1 Content-Type: text/plain; charset=US-ASCII On Mon, 06 Sep 2010 11:39:47 +0200, Christian Egli wrote: > > 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. Yes, I can see that from the code. It doesn't seem to do anything out of the ordinary with this variable. > > 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. I'm glad you can understand that help documentation! I cannot figure out what "... load that file _outside_ any bindings ..." actually means! > Maybe the variable org-export-taskjuggler-default-project-duration needs > to be buffer-local. How does this interact with defcustom? Good question. I'll see if I can figure this out (and play with your code) in due course. In the meantime, I had to give up and have prepared my tj file directly (which is not that onerous of course). When this project bid is finished, I'll come back to this. Thanks again for your help, eric --Multipart_Mon_Sep__6_16:40:55_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Mon_Sep__6_16:40:55_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Mon_Sep__6_16:40:55_2010-1--