[Orgmode] Re: [Babel] Executing sh code within sessions

2010-11-17 Thread Sébastien Vauban
Hi Eric, > "Eric Schulte" wrote: >> Yes, I've noticed the shell session evaluation problems as well. I think >> one possible solution is for us to move from the current schema of echoing >> a babel-specific marker to indicate that evaluation has completed (which >> isn't working very well and is f

[Orgmode] Re: [Babel] Executing sh code within sessions

2010-11-06 Thread Sébastien Vauban
Hi Eric, "Eric Schulte" wrote: > Yes, I've noticed the shell session evaluation problems as well. I think one > possible solution is for us to move from the current schema of echoing a > babel-specific marker to indicate that evaluation has completed (which isn't > working very well and is fairly

[Orgmode] Re: [babel] Executing sh-code

2009-12-07 Thread Sébastien Vauban
Hi Torsten, Torsten Wagner wrote: >> Sébastien Vauban wrote: >> > "Eric Schulte" wrote: >> >> >> >> [...] The following works for me without any hang. >> >> The only difference I can see between our setups is a matching prompt >> >> regexp. >> > >> > That was it. Fixing my PS1 prompt to be like yo

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-06 Thread Torsten Wagner
Hi, > Hi Eric, > > Sébastien Vauban wrote: > > "Eric Schulte" wrote: > >> > >> [...] The following works for me without any hang. > >> The only difference I can see between our setups is a matching prompt > >> regexp. > > > > That was it. Fixing my PS1 prompt to be like yours (temporarily keeping

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-04 Thread Eric Schulte
Sébastien Vauban writes: > Hi Eric, > > Sébastien Vauban wrote: >> "Eric Schulte" wrote: >>> >>> [...] The following works for me without any hang. >>> The only difference I can see between our setups is a matching prompt >>> regexp. >> >> That was it. Fixing my PS1 prompt to be like yours (tempo

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-04 Thread Eric Schulte
Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> Sébastien Vauban writes: > > #+begin_src sh :session "ecm" > ls *.org > #+end_src > > Nothing to do with the problem, but better to write `:session ecm' than > `:session "ecm"', no? > Correct, it will be interprete

[Orgmode] Re: [babel] Executing sh-code

2009-12-04 Thread Sébastien Vauban
Hi Eric, Sébastien Vauban wrote: > "Eric Schulte" wrote: >> >> [...] The following works for me without any hang. >> The only difference I can see between our setups is a matching prompt >> regexp. > > That was it. Fixing my PS1 prompt to be like yours (temporarily keeping your > regexp from the c

[Orgmode] Re: [babel] Executing sh-code

2009-12-04 Thread Sébastien Vauban
Hi Eric, "Eric Schulte" wrote: > Sébastien Vauban writes: #+begin_src sh :session "ecm" ls *.org #+end_src Nothing to do with the problem, but better to write `:session ecm' than `:session "ecm"', no? I C-c C-c the first snippet. Nothing special, except it doesn't hang

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-03 Thread Eric Schulte
Hi Sébastien, Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: [...] >> Yes, I agree that this should be implemented, patches are welcome :) > > I can imagine. My skills are still maybe a bit low to be productive in that > area. But I really would like to help. Second problem is -

[Orgmode] Re: [babel] Executing sh-code

2009-12-03 Thread Sébastien Vauban
Hi Eric, "Eric Schulte" wrote: > Sébastien Vauban writes: >> "Eric Schulte" wrote: >>> Sébastien Vauban writes: What's the impact of specifying "sh" or "bash" for the snippet? >>> >>> While "sh" blocks should work "bash" blocks will not be recognized. In >>> org-babel "sh" doesn't expl

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-02 Thread Eric Schulte
Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> Sébastien Vauban writes: >>> >>> What's the impact of specifying "sh" or "bash" for the snippet? >> >> While "sh" blocks should work "bash" blocks will not be recognized. In >> org-babel "sh" doesn't explicitly mean the "sh" comman

Re: [Orgmode] Re: [babel] Executing sh-code

2009-12-02 Thread Eric Schulte
Hi Sébastien, Sébastien Vauban writes: > Hi Eric, > > FYI, I just re-did a git pull && make clean && make, before writing this post > (5 min ago). I also launched a new Emacs. > > "Eric Schulte" wrote: >> Sébastien Vauban writes: >>> >>> Let's assume the following Org file: >>> >>> #+begin_src

[Orgmode] Re: [babel] Executing sh-code

2009-12-02 Thread Sébastien Vauban
Hi Eric, "Eric Schulte" wrote: > Sébastien Vauban writes: >> >> What's the impact of specifying "sh" or "bash" for the snippet? > > While "sh" blocks should work "bash" blocks will not be recognized. In > org-babel "sh" doesn't explicitly mean the "sh" command, but rather means > 'run shell' whic

[Orgmode] Re: [babel] Executing sh-code

2009-12-01 Thread Sébastien Vauban
Hi Eric, FYI, I just re-did a git pull && make clean && make, before writing this post (5 min ago). I also launched a new Emacs. "Eric Schulte" wrote: > Sébastien Vauban writes: >> >> Let's assume the following Org file: >> >> #+begin_src sh :session "ecm" >> cd ~/Personal >> #+end_src >> >> #+b

[Orgmode] Re: [babel] Executing sh-code

2009-12-01 Thread Sébastien Vauban
Hi Nick and Eric, "Eric Schulte" wrote: > Nick Dokos writes: >> >> There are two methods that I use that I think are much more effective than >> sprinkling message calls all over the place: >> >> o edebug-defun: (in emacs-lisp mode, C-u C-M-x) will mark the function >>so that when it

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-30 Thread Eric Schulte
Nick Dokos writes: > > There are two methods that I use that I think are much more effective > than sprinkling message calls all over the place: > > o edebug-defun: (in emacs-lisp mode, C-u C-M-x) will mark the > function so that when it is called, the interpreter stops and you can > t

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-30 Thread Nick Dokos
Eric Schulte wrote: > Hi S=C3=A9bastien, > > S=C3=A9bastien Vauban writes: > > [...] > > > > Just for my information (maybe being able to be more accurate next time, = > or > > even finding a solution myself), how do you debug such a problem? > > > > With which debugger, with tracing/stepping?

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-30 Thread Eric Schulte
Hi Sébastien, Sébastien Vauban writes: [...] > > Just for my information (maybe being able to be more accurate next time, or > even finding a solution myself), how do you debug such a problem? > > With which debugger, with tracing/stepping? With stack trace? > I'm almost embarrassed to admit t

[Orgmode] Re: [babel] Executing sh-code

2009-11-29 Thread Sébastien Vauban
Hi Eric and Dan, Dan Davison wrote: > Sébastien Vauban writes: >> Torsten Wagner wrote: >>> This works for me (I changed the folder name). There is a error line in my >>> message buffer: >>> >>> executing Shell source code block >>> ~/babel >>> save-current-buffer: Wrong type argument: char-or-s

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Dan Davison
Sébastien Vauban writes: > Hi Torsten, > > Torsten Wagner wrote: >> I just tried quickly. I use org-babel with python, up to now never with >> shell scripting. >> >>> --8<---cut here---start->8--- >>> * Prerequisites >>> >>> #+begin_src sh :session ecm >>>

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Eric Schulte
Sébastien Vauban writes: > > It stops working only when I add `:session "whatever"' after the `sh' > specification. > > That's the only difference between when it works and when it doesn't. > Hi Sébastien, You discovered a tricky bug in the session-based evaluation of shell blocks. I've just p

Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Eric S Fraga
At Fri, 27 Nov 2009 10:15:41 +0100, Sébastien Vauban wrote: > > Hi, > > Can I bump up this thread? > > > > I'm trying to execute code through babel, for the first time -- I did use it > > for small examples of LP, but not yet for enhanced work. > > > > This is my first file: > > > > * Prerequis

[Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Sébastien Vauban
Hi Torsten, Torsten Wagner wrote: > I just tried quickly. I use org-babel with python, up to now never with > shell scripting. > >> --8<---cut here---start->8--- >> * Prerequisites >> >> #+begin_src sh :session ecm >> cd ~/Personal >> #+end_src >> --8<-

[Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Sébastien Vauban
Hi, Can I bump up this thread? > I'm trying to execute code through babel, for the first time -- I did use it > for small examples of LP, but not yet for enhanced work. > > This is my first file: > > * Prerequisites > > #+begin_src sh :session ecm > cd ~/Personal > #+end_src > > If I C-c on