[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [BABEL] Tangling to a hierarchy of files? |
Date: |
Thu, 20 Jan 2011 09:11:25 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Christopher Witte <address@hidden> writes:
> On 19 January 2011 18:41, Eric Schulte <address@hidden> 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.
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, (continued)
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Eric Schulte, 2011/01/19
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Chris Maier, 2011/01/19
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Eric Schulte, 2011/01/19
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Rainer M Krug, 2011/01/20
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Chris Maier, 2011/01/20
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?, Christopher Witte, 2011/01/20
- Re: [Orgmode] [BABEL] Tangling to a hierarchy of files?,
Eric Schulte <=