From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Bizarre gnuplot file creation error
Date: Wed, 29 Nov 2017 00:21:12 +0100 [thread overview]
Message-ID: <87po82ouqf.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <871skqbeck.fsf@gmail.com> (Eric S. Fraga's message of "Wed, 22 Nov 2017 14:03:07 +0000")
Hello,
Eric S Fraga <esflists@gmail.com> writes:
> On Thursday, 16 Nov 2017 at 22:40, Nicolas Goaziou wrote:
>> Hello,
>>
>> Eric S Fraga <esflists@gmail.com> 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
prev parent reply other threads:[~2017-11-28 23:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-04 17:05 Bizarre gnuplot file creation error Lawrence Bottorff
2017-11-07 14:42 ` Lawrence Bottorff
2017-11-09 18:07 ` Eric S Fraga
2017-11-16 21:40 ` Nicolas Goaziou
2017-11-17 7:45 ` Eric S Fraga
2017-11-22 14:03 ` Eric S Fraga
2017-11-28 23:21 ` Nicolas Goaziou [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87po82ouqf.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=borgauf@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.