From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Around-advice on org--export function? Date: Thu, 26 Jun 2014 00:46:39 +0200 Message-ID: <87pphwy5dc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzvy2-0004EX-76 for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 18:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzvxt-00084u-Kn for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 18:47:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:55236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzvxt-00084q-Ex for emacs-orgmode@gnu.org; Wed, 25 Jun 2014 18:46:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wzvxr-0001Xj-62 for emacs-orgmode@gnu.org; Thu, 26 Jun 2014 00:46:51 +0200 Received: from g231234191.adsl.alicedsl.de ([92.231.234.191]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jun 2014 00:46:51 +0200 Received: from tjolitz by g231234191.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jun 2014 00:46:51 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi List, sometimes I want to call one of the org--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