emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Weylandt <michael.weylandt@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: :mkdirp without path specifier
Date: Thu, 1 May 2014 15:47:17 -0400	[thread overview]
Message-ID: <14FCE026-6FA3-409F-87F6-B2E9B1452C9E@gmail.com> (raw)

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

             reply	other threads:[~2014-05-01 19:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 19:47 Michael Weylandt [this message]
2014-05-03  3:43 ` :mkdirp without path specifier 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

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=14FCE026-6FA3-409F-87F6-B2E9B1452C9E@gmail.com \
    --to=michael.weylandt@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 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).