[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Re: Using babel to generate a commit log
From: |
Nick Dokos |
Subject: |
Re: [O] Re: Using babel to generate a commit log |
Date: |
Wed, 30 Mar 2011 16:22:24 -0400 |
Eric Schulte <address@hidden> wrote:
> > Yes, this makes sense thanks. I'll create another thread asking how to
> > retrieve
> > the original buffer during the export process.
> >
>
> 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
>
... and there was general rejoicing.
Thanks!
Nick
> This issue should be given more prominence in the Org-mode manual, as it
> is a common source of confusion.
>
- [O] Re: Using babel to generate a commit log, (continued)
Re: [O] Using babel to generate a commit log, Suvayu Ali, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- Re: [O] Re: Using babel to generate a commit log, Nick Dokos, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- Re: [O] Re: Using babel to generate a commit log, Nick Dokos, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- Re: [O] Re: Using babel to generate a commit log, Eric Schulte, 2011/03/30
- Re: [O] Re: Using babel to generate a commit log,
Nick Dokos <=
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/30
- Re: [O] Re: Using babel to generate a commit log, Eric Schulte, 2011/03/30
- [O] Re: Using babel to generate a commit log, Luke Crook, 2011/03/31
- Re: [O] Re: Using babel to generate a commit log, Eric Schulte, 2011/03/31
Re: [O] Using babel to generate a commit log, Nick Dokos, 2011/03/30
Re: [O] Using babel to generate a commit log, Eric Schulte, 2011/03/30