Re: [O] Re: Using babel to generate a commit log

2011-03-31 Thread Eric Schulte
Luke Crook writes: > Eric Schulte gmail.com> writes: >> >> Since this could be generally useful would you be willing to add it to >> the library of babel (org/contrib/babel/library-of-babel.org)? > > That would be great. > >> If so then if you could supply a few explanatory sentences, I'll add

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Eric Schulte
Luke Crook writes: > Luke Crook balooga.com> writes: > >> >> Eric Schulte gmail.com> writes: >> >> > #+begin_src emacs-lisp :var buf=(buffer-file-name (current-buffer)) >> > :exports >> both >> > (message "buffer %S!" buf) >> > #+end_src >> > > > The following code will now generate the

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Nick Dokos
Eric Schulte 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 guara

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Eric Schulte
Luke Crook writes: > Nick Dokos hp.com> writes: > >> >> Luke Crook balooga.com> wrote: >> >> > 'C-c C-c' at the top of the source block does generate the correct output >> > though. It is just 'C-c C-e ' that returns this error. >> > >> >> Right: (current-buffer) is not what you think it i

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Nick Dokos
Luke Crook wrote: > Nick Dokos hp.com> writes: > > > > > Luke Crook balooga.com> wrote: > > > > > Jambunathan K gmail.com> writes: > > > > > > > > > > > > > I changed my code to wait until the 'Git' process completes. Luckily "vc- > call- > > > backend" returns the async process. > > >

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Nick Dokos
Luke Crook wrote: > Nick Dokos hp.com> writes: > > > > > Luke Crook balooga.com> wrote: > > > > > Suvayu Ali gmail.com> writes: > > > > > > > Have you tried ':exports results' as a header argument? > > > > > > > > > > I just tried ':exports results'. But now I get the following error whe

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Nick Dokos
Luke Crook wrote: > Jambunathan K gmail.com> writes: > > > > > Luke Crook balooga.com> writes: > > > > > 2) I have to add at delay of at least 5 seconds (set-for 5 t) as vc-git > calls > > > "git log" as an asynchronous process. If not for the delay then babel > > > immediately returns

Re: [O] Re: Using babel to generate a commit log

2011-03-30 Thread Nick Dokos
Luke Crook wrote: > Suvayu Ali gmail.com> writes: > > > > > On Wed, 30 Mar 2011 05:38:41 + (UTC) > > Luke Crook balooga.com> wrote: > > > > > 1) The code between #+begin_src and #+end_src is exported and not > > > the result of evaluating the code (the commit log). > > > > [...] > >