From: Eric Schulte <eric.schulte@gmx.com>
To: Mikhail Titov <mlt@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] session initialization (was RE: python/babel inline images)
Date: Thu, 07 Jun 2012 20:18:09 -0600 [thread overview]
Message-ID: <87fwa6mtr2.fsf@gmx.com> (raw)
In-Reply-To: <001e01cd4519$e1c07d80$a5417880$@us> (Mikhail Titov's message of "Thu, 7 Jun 2012 20:56:11 -0500")
"Mikhail Titov" <mlt@gmx.us> writes:
[...]
>> > I would recommend using the `default-directory' variable. That should
>> > hold the value of the directory of the Org-mode file or the value of the
>> > :dir header argument if present.
>>
>> Huh... now it works... I remember I've tried before but for some reason it
>> was nil.. maybe typo though I have AC.
>>
>> The only trick [1] is to use (file-truename default-directory) as Matlab
>> does not like ~.
>
> Turns out this does not work for octave for some reason. default-directory
> points to my home folder.
>
> Also I'm getting "ansi-color-process-output: Marker does not point anywhere"
> for Octave. So I have to C-c a couple of times on the block for the first
> time. First evaluation just launches session but breaks because of that
> error. Second time (when session is up) C-c works just fine and dumps
> result. Non-session version of Octave works as expected. I wonder if it is
> something Windows-specific... I can see test on :session for Octave and
> Achim Gratz said it passed tests.
>
> The problem occurs to me with git version of ob-octave.el as well. So I'm
> confident it is not me who broke something during experiments :-)
>
> Any idea? Matlab works just fine (session)!
>
> I'm afraid I'll leave all the things as is for now. Maybe someone else can
> fix it later.
>
Unfortunately the developer of matlab/octave support for Babel no longer
tracks this list, and I have no access to matlab/octave, so while I'm
happy to offer advice and commit patches I can't really improve support
for these languages.
RE: default-directory pointing to your home directory, my guess would be
that at the beginning of the `org-babel-execute:octave'
default-directory has the desired value, but then within the octave
comint buffer the value changes, so it should still be possible to use
`default-directory'.
The ansi-color-process-output stuff sounds like something that
octave-mode should be taking care of, i.e., not something directly
related to Org-mode.
Sorry I can't be of more assistance.
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-06-08 2:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 10:30 python/babel inline images henry atting
2012-06-05 12:46 ` Brett Viren
2012-06-05 14:57 ` Eric Schulte
2012-06-05 22:34 ` William LÉCHELLE
2012-06-06 15:19 ` henry atting
2012-06-06 19:16 ` Mikhail Titov
2012-06-06 19:25 ` Eric Schulte
2012-06-06 19:32 ` Mikhail Titov
2012-06-07 8:43 ` henry atting
2012-06-07 15:09 ` Mikhail Titov
2012-06-06 0:59 ` Mikhail Titov
2012-06-06 5:19 ` Eric Schulte
2012-06-06 17:41 ` [babel] session initialization (was RE: python/babel inline images) Mikhail Titov
2012-06-06 19:01 ` Eric Schulte
2012-06-06 19:41 ` Mikhail Titov
2012-06-06 23:06 ` Mikhail Titov
2012-06-07 22:32 ` Mikhail Titov
2012-06-07 22:44 ` Eric Schulte
2012-06-07 23:02 ` Mikhail Titov
2012-06-08 1:56 ` Mikhail Titov
2012-06-08 2:18 ` Eric Schulte [this message]
2012-06-07 22:48 ` Eric Schulte
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=87fwa6mtr2.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=emacs-orgmode@gnu.org \
--cc=mlt@gmx.us \
/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).