emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* :mkdirp without path specifier
@ 2014-05-01 19:47 Michael Weylandt
  2014-05-03  3:43 ` R. Michael Weylandt
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Weylandt @ 2014-05-01 19:47 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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. 

I'm not in a position to do so now, but can send a one-line patch to fix tonight if wanted. 

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-03 14:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 19:47 :mkdirp without path specifier Michael Weylandt
2014-05-03  3:43 ` R. Michael Weylandt
2014-05-03  3:47   ` R. Michael Weylandt
2014-05-03  8:19     ` Achim Gratz
2014-05-03 14:52       ` R. Michael Weylandt

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).