Re: [O] [babel] [PATCH] Fix sh block execution in session

2011-06-06 Thread Eric Schulte
Hi julien, julien Barnier writes: > Hi Eric, > >> 1. do you have a minimal example of a shell code block which works after >>your patch but not before? > > Well, in fact it seems that almost any shell block cause problems when > executed in a session. This one, for example : > > #+begin_src

Re: [O] [babel] [PATCH] Fix sh block execution in session

2011-06-06 Thread julien Barnier
Hi Eric, > 1. do you have a minimal example of a shell code block which works after >your patch but not before? Well, in fact it seems that almost any shell block cause problems when executed in a session. This one, for example : #+begin_src sh :session test :results output echo "foo" #+end_

Re: [O] [babel] [PATCH] Fix sh block execution in session

2011-06-05 Thread Eric Schulte
Hi Julien, Thanks for this patch, the current method of waiting for output in shell code blocks could certainly use improvement. After a series of simple tests I can confirm that this does appear to work for me. I have a couple of questions. 1. do you have a minimal example of a shell code bloc

[O] [babel] [PATCH] Fix sh block execution in session

2011-06-03 Thread Julien Barnier
Hi, When evaluating shell code blocks in org-babel, the execution seems to hang indefinitely. The following patch is trying to fix this problem by modifying the way shell code is send to comint and the way the end-of-evaluation indicator is looking for. As I am far from an emacs lisp expert and a