emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Around-advice on org-<foo>-export function?
@ 2014-06-25 22:46 Thorsten Jolitz
  0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2014-06-25 22:46 UTC (permalink / raw)
  To: emacs-orgmode


Hi List, 

sometimes I want to call one of the org-<foo>-export functions with a
different environment, i.e. with different values for the
backend-specific customizable export variables, e.g.

,----
| (let ((org-taskjuggler-default-project-duration 1)) ; default is 280
|    (org-taskjuggler-export-and-process ...))
`----

I activate an around-advice for org-taskjuggler-export (which does the
real work) doing that

,----
| (defadvice org-taskjuggler-export (around org-taskjuggler-export-around)
|       (let ((org-taskjuggler-default-project-duration 1))
|       ad-do-it))
| 
| ((ad-activate 'org-taskjuggler-export)
`----

but nothing changes - default duration is still shown as 280, not 1. 
Is this supposed to work?

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-25 22:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 22:46 Around-advice on org-<foo>-export function? Thorsten Jolitz

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).