[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Fix behaviour of ":dir" when ":mkdirp" is not defined
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Fix behaviour of ":dir" when ":mkdirp" is not defined |
Date: |
Thu, 25 Apr 2019 10:39:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello,
Joaquín Aguirrezabalaga <address@hidden> writes:
> Hello,
>
> I think the behaviour of ":dir" is broken since commit 8b5941330
> (ob-core: Make :mkdirp work for :dir too). It only works now if
> ":mkdirp" is defined.
>
> If I execute the following:
>
> #+begin_src elisp :dir /tmp/some-test-dir
> default-directory
> #+end_src
>
>
> Instead of the expected "/tmp/some-test-dir" returned value, I get my
> current directory.
>
> Only add ":mkdirp t":
>
> #+begin_src elisp :dir /tmp/some-test-dir :mkdirp t
> default-directory
> #+end_src
>
> do I get the expected result.
>
> Please find attached my proposal for fixing the issue.
Applied, with a slight refactoring to use `cond' instead of `or' + `if'.
I added TINYCHANGE at the end of the commit message since I don't know
if you signed FSF papers already.
Thank you.
Regards,
--
Nicolas Goaziou