From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Crook Subject: Re: Using babel to generate a commit log Date: Wed, 30 Mar 2011 22:02:01 +0000 (UTC) Message-ID: References: <20110329232804.45777e7a@bhishma.homelinux.net> <8080.1301490442@alphaville.dokosmarshall.org> <5188.1301503865@alphaville.usa.hp.com> <87d3l8s6qd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44973 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q53Vk-0004VH-9O for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 18:05:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q53Vj-0006ZI-Dk for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 18:05:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:60999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q53Vj-0006ZC-5l for emacs-orgmode@gnu.org; Wed, 30 Mar 2011 18:05:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q53Vg-0000t8-VO for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 00:05:04 +0200 Received: from 147.21.8.1 ([147.21.8.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2011 00:05:04 +0200 Received: from luke by 147.21.8.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Mar 2011 00:05:04 +0200 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 Eric Schulte gmail.com> writes: > > It is true that export takes place in a fresh Org-mode buffer, however > the header arguments of Org-mode code blocks are guaranteed to be > evaluated in the original buffer, so a trick like the following can be > used to grab the original buffer. > > #+begin_src emacs-lisp :var buf=(buffer-file-name (current-buffer)) :exports both > (message "buffer %S!" buf) > #+end_src > That is exactly what I need. Thank you very much. -Luke