From: "Eric Schulte" <schulte.eric@gmail.com>
To: Christopher Witte <chris@witte.net.au>
Cc: "Charles C. Berry" <cberry@tajo.ucsd.edu>,
Chris Maier <christopher.maier@gmail.com>,
emacs-orgmode@gnu.org, Rainer M Krug <r.m.krug@gmail.com>
Subject: Re: [BABEL] Tangling to a hierarchy of files?
Date: Thu, 20 Jan 2011 09:11:25 -0700 [thread overview]
Message-ID: <87hbd3zg39.fsf@gmail.com> (raw)
In-Reply-To: AANLkTimZyW1a0PGF9-V7s7M3RKmo6YZs3iAD2hNEstEG@mail.gmail.com
Christopher Witte <chris@witte.net.au> writes:
> On 19 January 2011 18:41, Eric Schulte <schulte.eric@gmail.com> 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.
prev parent reply other threads:[~2011-01-20 16:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 4:02 [BABEL] Tangling to a hierarchy of files? Christopher Maier
2011-01-19 6:45 ` Charles C. Berry
2011-01-19 7:22 ` Eric Schulte
2011-01-19 10:05 ` Rainer M Krug
2011-01-19 11:59 ` Chris Maier
2011-01-19 12:06 ` Rainer M Krug
2011-01-19 16:20 ` Charles C. Berry
2011-01-19 16:27 ` Chris Maier
2011-01-19 17:41 ` Eric Schulte
2011-01-19 18:18 ` Chris Maier
2011-01-20 3:37 ` Eric Schulte
2011-01-20 10:06 ` Rainer M Krug
2011-01-21 2:11 ` Chris Maier
2011-01-20 9:09 ` Christopher Witte
2011-01-20 16:11 ` Eric Schulte [this message]
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=87hbd3zg39.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=cberry@tajo.ucsd.edu \
--cc=chris@witte.net.au \
--cc=christopher.maier@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=r.m.krug@gmail.com \
/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).