Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Mikhail Titov
-Original Message- From: emacs-orgmode-bounces+mlt=gmx...@gnu.org [mailto:emacs-orgmode- bounces+mlt=gmx...@gnu.org] On Behalf Of Mikhail Titov Sent: Wednesday, June 06, 2012 6:06 PM To: 'Eric Schulte' Cc: emacs-orgmode@gnu.org Subject: Re: [O] [babel] session initialization (was RE

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Eric Schulte
] [babel] session initialization (was RE: python/babel inline images) ... How would I reliably refer to the org doc buffer from where everything was called? The following works just fine in session initialization code for Matlab but not for Octave (file-name-directory (buffer-file-name

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Eric Schulte
Schulte' Subject: Re: [O] [babel] session initialization (was RE: python/babel inline images) Right now I have something like the following in that function (comint-send-string (get-buffer-process (current-buffer)) set(0, 'defaultfigurevisible

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Mikhail Titov
initialization (was RE: python/babel inline images) ... How would I reliably refer to the org doc buffer from where everything was called? The following works just fine in session initialization code for Matlab but not for Octave (file-name-directory (car (delq nil (mapcar #'buffer

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Mikhail Titov
-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, June 07, 2012 6:03 PM To: 'Eric Schulte' Cc: emacs-orgmode@gnu.org Subject: Re: [O] [babel] session initialization (was RE

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-07 Thread Eric Schulte
Mikhail Titov m...@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

[O] [babel] session initialization (was RE: python/babel inline images)

2012-06-06 Thread Mikhail Titov
-Original Message- From: emacs-orgmode-bounces+mlt=gmx...@gnu.org [mailto:emacs-orgmode- bounces+mlt=gmx...@gnu.org] On Behalf Of Eric Schulte Sent: Wednesday, June 06, 2012 12:20 AM To: Mikhail Titov Cc: emacs-orgmode@gnu.org; 'henry atting' Subject: Re: [O] python/babel inline

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-06 Thread Eric Schulte
Most languages should and (at least those I use regularly) do run in the directory of the containing Org-mode file. Which languages do not? I'm working on ob-octave.el which does not. So I'll fix it in this case. Great, thanks. Which leads me to another question I was about to ask.

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-06 Thread Mikhail Titov
] session initialization (was RE: python/babel inline images) Right now I have something like the following in that function (comint-send-string (get-buffer-process (current-buffer)) set(0, 'defaultfigurevisible', 'off');\n) I do

Re: [O] [babel] session initialization (was RE: python/babel inline images)

2012-06-06 Thread Mikhail Titov
'; 'Eric Schulte' Subject: Re: [O] [babel] session initialization (was RE: python/babel inline images) Right now I have something like the following in that function (comint-send-string (get-buffer-process (current-buffer)) set(0