emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Mikhail Titov" <mlt@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] ob-octave does not catch EOE from matlabShell on MS Windows
Date: Thu, 24 May 2012 16:30:53 -0500	[thread overview]
Message-ID: <00ff01cd39f4$7feec3d0$7fcc4b70$@us> (raw)
In-Reply-To: <00f901cd39f0$7da5bb00$78f13100$@us>

> -----Original Message-----
> From: emacs-orgmode-bounces+mlt=gmx.us@gnu.org [mailto:emacs-orgmode-
> bounces+mlt=gmx.us@gnu.org] On Behalf Of Mikhail Titov
> Sent: Thursday, May 24, 2012 4:02 PM
> To: emacs-orgmode@gnu.org
> 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	other threads:[~2012-05-24 21:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 21:02 [babel] ob-octave does not catch EOE from matlabShell on MS Windows Mikhail Titov
2012-05-24 21:30 ` Mikhail Titov [this message]
2012-05-25 16:31   ` Mikhail Titov
2012-05-25 16:52     ` [babel, patch] " Mikhail Titov
2012-05-28 15:56       ` Eric Schulte
2012-05-28 18:23         ` Achim Gratz
2012-05-30 15:58           ` Mikhail Titov
2012-05-30 16:05             ` Eric Schulte
2012-05-30 16:58             ` Achim Gratz
2012-05-29 17:00         ` Mikhail Titov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00ff01cd39f4$7feec3d0$7fcc4b70$@us' \
    --to=mlt@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).