emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bizarre gnuplot file creation error


From: Nicolas Goaziou
Subject: Re: [O] Bizarre gnuplot file creation error
Date: Wed, 29 Nov 2017 00:21:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Eric S Fraga <address@hidden> writes:

> On Thursday, 16 Nov 2017 at 22:40, Nicolas Goaziou wrote:
>> Hello,
>>
>> Eric S Fraga <address@hidden> writes:
>>
>>> The proper solution would be to update ob-gnuplot to change the working
>>> directory at every invocation of gnuplot to be the directory where the
>>> org file is found.  (gnuplot has a "cd" command for this purpose)
>>
>> Would you like to propose a patch for that? BTW should the new working
>> directory be Org file's or :file, or even :dir?
>
> Nicolas,
>
> can you please advise on how to get the directory the originating org
> file may lie in from within org-babel-expand-body:gnuplot?

No idea. 

  (and (buffer-file-name) (file-name-directory (buffer-file-name)))

?

The originating Org file may not exist.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]