emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Christian Egli <christian.egli@sbs.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: task juggler export
Date: Mon, 06 Sep 2010 16:40:55 +0100	[thread overview]
Message-ID: <87bp8akhh4.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <871v978b30.fsf@saadawi.sbszh.ch>

[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]

On Mon, 06 Sep 2010 11:39:47 +0200, Christian Egli <christian.egli@sbs.ch> wrote:
> 
> Eric S Fraga <ucecesf@ucl.ac.uk> 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

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  reply	other threads:[~2010-09-06 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04  0:16 task juggler export Eric S Fraga
2010-09-06  9:39 ` Christian Egli
2010-09-06 15:40   ` Eric S Fraga [this message]
2010-09-07  1:38     ` John Hendy

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87bp8akhh4.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=christian.egli@sbs.ch \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).