emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS Wind


From: Mikhail Titov
Subject: Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows
Date: Thu, 24 May 2012 16:30:53 -0500

> -----Original Message-----
> From: address@hidden [mailto:emacs-orgmode-
> address@hidden On Behalf Of Mikhail Titov
> Sent: Thursday, May 24, 2012 4:02 PM
> To: address@hidden
> Subject: [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.
>
> ...
> 
> 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
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]