From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [BABEL] Tangling to a hierarchy of files? Date: Thu, 20 Jan 2011 09:11:25 -0700 Message-ID: <87hbd3zg39.fsf@gmail.com> References: <87tyh5icir.fsf@gmail.com> <4D36B76D.9020502@gmail.com> <87vd1k3i62.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55747 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfxW2-0007vu-3C for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfxVz-0002vv-MZ for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:41 -0500 Received: from mail-px0-f169.google.com ([209.85.212.169]:64871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfxVz-0002vc-9X for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 11:37:39 -0500 Received: by pxi12 with SMTP id 12so192601pxi.0 for ; Thu, 20 Jan 2011 08:37:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christopher Witte Cc: "Charles C. Berry" , Chris Maier , emacs-orgmode@gnu.org, Rainer M Krug Christopher Witte writes: > On 19 January 2011 18:41, Eric Schulte wrote: > >> The reason that I push back against this, is that I often times >> accidentally use a tangle path in which the directory does not exist and >> the error notification serves as a useful warning that I either >> mis-typed the directory or need to create it. >> > > Why not make the function prompt the user if they want to create the > directory? That way you get the best of both worlds. > This would be a departure from all existing header arguments none of which will require a prompt. In fact the only time that evaluating a code block can lead to a prompt is through the confirmation construct which is allowed to be special because it is a security concern. That said if you do want more complex behavior like prompting you should be able to add this sort of thing to the `org-babel-pre-tangle-hook'. Best -- Eric > > > Chris.