From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Weylandt Subject: :mkdirp without path specifier Date: Thu, 1 May 2014 15:47:17 -0400 Message-ID: <14FCE026-6FA3-409F-87F6-B2E9B1452C9E@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfwxC-00079W-UG for emacs-orgmode@gnu.org; Thu, 01 May 2014 15:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfwx4-00020H-NN for emacs-orgmode@gnu.org; Thu, 01 May 2014 15:47:34 -0400 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:33806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfwx4-000202-IY for emacs-orgmode@gnu.org; Thu, 01 May 2014 15:47:26 -0400 Received: by mail-qa0-f44.google.com with SMTP id k15so3364891qaq.17 for ; Thu, 01 May 2014 12:47:25 -0700 (PDT) Received: from [10.217.253.212] (mobile-198-228-194-143.mycingular.net. [198.228.194.143]) by mx.google.com with ESMTPSA id l61sm36335114qge.11.2014.05.01.12.47.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 May 2014 12:47:23 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" If it intended that setting :mkdirp yes should break tangling with 'director= y-free' file names? I.e., should ############# #+TITLE: test #+BEGIN_SRC python :mkdirp yes :tangle test.py print 1+2 #+END_SRC ############### tangle without error?=20 It currently doesn't because (file-name-directory "test.py"), which is nil, g= ets passed to make-directory, which throws an error.=20 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 n= o is reasonable.=20 I'm not in a position to do so now, but can send a one-line patch to fix ton= ight if wanted.=20 Michael=