emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Around-advice on org-<foo>-export function?


From: Thorsten Jolitz
Subject: [O] Around-advice on org-<foo>-export function?
Date: Thu, 26 Jun 2014 00:46:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]