> -----Original Message----- > From: emacs-orgmode-bounces+mlt=gmx...@gnu.org [mailto:emacs-orgmode- > bounces+mlt=gmx...@gnu.org] On Behalf Of Mikhail Titov > Sent: Thursday, May 24, 2012 4:31 PM > To: emacs-orgmode@gnu.org > Subject: Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS > Windows > > > ... > > > > I have a simple test block like > > > > #+begin_src matlab :session *MATLAB* > > a=2 > > #+end_src > > > > When I try to execute it with C-c C-c , emacs never returns unless I hit C- > g. > > If I do M-x toggle-debug-on-quit RET I see that for some reason it keeps > > waiting for EOE.
It looks like org-babel-octave-eoe-output and org-babel-octave-eoe-indicator were swapped around in org-babel-octave-evaluate-session . I have the following in dot emacs (setq org-babel-octave-eoe-output " ans = org_babel_eoe ") M. > > > > ... > > > > Here is what I see in *MATLAB* buffer: > > > > ----8<-----------------*MATLAB*------------------>8----- > > >> a=2 > > if ischar(ans), fid = fopen('c:/DOCUME~1/user/LOCALS~1/Temp/babel- > > 7560HUp/matlab-7560PPd', 'w'); fprintf(fid, '%s\n', ans); fclose(fid); else, > > dlmwrite('c:/DOCUME~1/user/LOCALS~1/Temp/babel-7560HUp/matlab-7560PPd', ans, > > '\t'); end > > 'org_babel_eoe' > > > > a = > > > > 2 > > > > >> >> > > ans = > > > > org_babel_eoe > > > > >> > > ----8<-----------------*MATLAB*------------------>8----- > > I feel like it is about > > (defvar org-babel-octave-eoe-output "ans = org_babel_eoe") > > as Matlab's return has newlines. I'm not sure so far how to make universal > regex for re-search-forward in org-babel-comint-with-output . > > Mikhail > > >