emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Is it possible to run shell script src blocks as root or to expo


From: Andreas Leha
Subject: Re: [O] Is it possible to run shell script src blocks as root or to export individual blocks?
Date: Tue, 06 Mar 2012 10:11:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Eric Schulte <address@hidden> writes:

> Andreas Leha <address@hidden> writes:
>
>> Eric Schulte <address@hidden> writes:
>>
>>> Leo Alekseyev <address@hidden> writes:
>>>
>>>> I was wondering if there was an easy way to execute some shell
>>>> commands contained in a src block as root.  Alternatively, is there a
>>>> quick way to export _just_ that one source block to a temp file so
>>>> that I could run it as root manually?
>>>>
>>>
>>> Just call org-babel-tangle with a prefix argument and it only tangles
>>> the current block
>>>
>>>>
>>
>> Hi,
>>
>> I did not know this either.  Thanks for the hint!
>>
>> Shouldn't this be mentioned in the manual (14.4)?
>>
>> I have two questions/issues about this:
>> (1) Can I get noweb-references to be expanded by this?  Or how would I
>>     tangle one block with noweb references expanded?
>
> There was a conflict between the narrowing to a single code block caused
> by the prefix argument, and the code which searches for replacements to
> noweb elements.  I've just pushed up a fix so noweb elements should now
> expand as normal.
>
>> 
>> (2) I am asked for a filename.  But the header argument :tangle somefile
>>     is overruling my input, which is un-expected.
>>
>
> This is now fixed as well.
>

Hi Eric,

thanks for both fixes!  Tangling of single source blocks is a really
nice feature now!

Regards,
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]