emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] :mkdirp without path specifier


From: R. Michael Weylandt
Subject: Re: [O] :mkdirp without path specifier
Date: Fri, 2 May 2014 23:43:21 -0400

On Thu, May 1, 2014 at 3:47 PM, Michael Weylandt
<address@hidden> wrote:
> If it intended that setting :mkdirp yes should break tangling with 
> 'directory-free' file names?
>
> I.e., should
> #############
> #+TITLE: test
> #+BEGIN_SRC python :mkdirp yes :tangle test.py
> print 1+2
> #+END_SRC
> ###############
>
> tangle without error?
>
> It currently doesn't because (file-name-directory "test.py"), which is nil, 
> gets passed to make-directory, which throws an error.
>
> The manual is ambiguous, stating only that the arg to :tangle is interpreted 
> as a path. A strict reading says this shouldn't work, regardless of :mkdirp, 
> since we're not giving a path, but I think the "understood ./" of :mkdirp no 
> is reasonable.
>

Patch attached. Should apply cleanly against master and maint.

Michael

Attachment: 0001-Fix-tangle-with-mkdirp-yes-tangle-FILE.patch
Description: Binary data


reply via email to

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