From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noufal Ibrahim Subject: Name of file being exported Date: Tue, 14 Apr 2009 03:03:00 +0530 Message-ID: <49E3AF8C.60508@nibrahim.net.in> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtTmP-0008PU-Dl for emacs-orgmode@gnu.org; Mon, 13 Apr 2009 17:33:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtTmJ-0008M9-NO for emacs-orgmode@gnu.org; Mon, 13 Apr 2009 17:33:23 -0400 Received: from [199.232.76.173] (port=48392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtTmJ-0008Lz-HH for emacs-orgmode@gnu.org; Mon, 13 Apr 2009 17:33:19 -0400 Received: from deleuze.hcoop.net ([69.90.123.67]:34609) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LtTmI-0006Ut-VE for emacs-orgmode@gnu.org; Mon, 13 Apr 2009 17:33:19 -0400 Received: from [122.167.25.230] (helo=[192.168.2.100]) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LtTmG-0003l9-G8 for emacs-orgmode@gnu.org; Mon, 13 Apr 2009 17:33:17 -0400 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: emacs-orgmode@gnu.org Hello everyone, I'm a recent org-mode convert (after hearing the talk) and without question, it's one of the best things I've ever used. Thank you for making such a wonderful program. However, org-mode and emacs being what they are, I'm tempted to try and customise it to do more. :) I'm trying a simple trick to insert the version control history of my current file formatted as a table when I export the org file into HTML or ascii. I need this to track changes to design documents etc. I'm using dynamic blocks to do this and have a function defined to insert the output of git log --pretty='format:|%ad|%s|' (buffer-file-name) into the block. This works fine if I run org-update-all-dblocks from the org buffer itself manually. If I export it however, (buffer-file-name) returns a null string so I get the entire log of my repository which is not what I want. Is there a way to get the buffer/file which is being exported so that I can use that in the command rather than buffer-file-name? Thanks in advance and for such an awesome mode. -- ~noufal http://nibrahim.net.in/