-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
] [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
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
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
-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
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
-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
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.
] 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
'; '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
10 matches
Mail list logo