emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>,
	Lawrence Bottorff <borgauf@gmail.com>
Subject: Re: Bizarre gnuplot file creation error
Date: Wed, 22 Nov 2017 14:03:07 +0000	[thread overview]
Message-ID: <871skqbeck.fsf@gmail.com> (raw)
In-Reply-To: <87d14hvr5e.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 16 Nov 2017 22:40:29 +0100")

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

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?

I cannot remember if I answered your second question but my gut feeling
is that the change of directory should be automatic; the file directive
can always specify a full path if desired.

Thanks,
eric

-- 
: Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-162-gde289d

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  parent reply	other threads:[~2017-11-22 14:03 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 [this message]
2017-11-28 23:21         ` Nicolas Goaziou

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=871skqbeck.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=borgauf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).