From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Name of file being exported. Date: Tue, 14 Apr 2009 12:20:14 -0400 Message-ID: <16352.1239726014@gamaville.dokosmarshall.org> References: <49E3F37E.5090704@nibrahim.net.in> <5DBFB303-366D-4485-82B9-6CF0EFAC257C@gmail.com> <49E4A4A4.8050909@nibrahim.net.in> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtlOH-0002yV-Oe for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 12:21:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtlOF-0002xe-W6 for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 12:21:41 -0400 Received: from [199.232.76.173] (port=58523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtlOF-0002xZ-Rd for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 12:21:39 -0400 Received: from qmta06.westchester.pa.mail.comcast.net ([76.96.62.56]:42235) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtlOF-00058z-7D for emacs-orgmode@gnu.org; Tue, 14 Apr 2009 12:21:39 -0400 In-Reply-To: Message from Noufal Ibrahim of "Tue, 14 Apr 2009 20:28:44 +0530." <49E4A4A4.8050909@nibrahim.net.in> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Noufal Ibrahim Cc: emacs-orgmode@gnu.org Noufal Ibrahim wrote: > Carsten Dominik wrote: > [..] > > In what way are you calling the update of dblocks during export? > > Have you added a function to this effect to a hook? Which function? > > To which hook? > [..] > > Hello Carsten, > I have done this > (add-hook 'org-export-preprocess-hook 'org-update-all-dblocks) > > Is this not the right hook to add the function to? > I don't know how Carsten will address this, but it seems that the running of the org-export-preprocess-hook is done too late for your purposes (from inside org-export-preprocess-string and inside a (with-current-buffer (get-buffer-create " org-mode-tmp") ... construct, where there is no buffer file name). Can you run org-update-all-dblocks by hand before doing the export? That should update the org file and the export should then have all the right information, no? If so, you can even automate the process by advising org-export, so that org-update-all-dblocks is run before org-export proper is called. [1] HTH, Nick [1] Disclaimer: I have not tried it, so no warranty...