From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Around-advice on org-<foo>-export function?
Date: Thu, 26 Jun 2014 00:46:39 +0200 [thread overview]
Message-ID: <87pphwy5dc.fsf@gmail.com> (raw)
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 other threads:[~2014-06-25 22:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87pphwy5dc.fsf@gmail.com \
--to=tjolitz@gmail.com \
--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).