[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on
From: |
Mikhail Titov |
Subject: |
Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows |
Date: |
Fri, 25 May 2012 11:52:47 -0500 |
> -----Original Message-----
> From: address@hidden [mailto:emacs-orgmode-
> address@hidden On Behalf Of Mikhail Titov
> Sent: Friday, May 25, 2012 11:31 AM
> To: address@hidden
> 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
>
> ")
For the sake of completeness I'm attaching the patch. Also one should override
(setq org-babel-matlab-emacs-link-wrapper-method
"%s
if ischar(ans), fid = fopen('%s', 'w'); fprintf(fid, '%%s\\n', ans);
fclose(fid); else, save -ascii %s ans ; end
delete('%s')
")
as matlabShell does not like commands split across multiple lines.
M.
ob-octave_matlab.patch
Description: Binary data
- [O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows, Mikhail Titov, 2012/05/24
- Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows, Mikhail Titov, 2012/05/24
- Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows, Mikhail Titov, 2012/05/25
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows,
Mikhail Titov <=
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Eric Schulte, 2012/05/28
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Achim Gratz, 2012/05/28
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Mikhail Titov, 2012/05/30
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Eric Schulte, 2012/05/30
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Achim Gratz, 2012/05/30
- Re: [O] [babel, patch] ob-octave does not catch EOE from matlabShell on MS Windows, Mikhail Titov, 2012/05/29