emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: 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	[thread overview]
Message-ID: <87pqcqytz4.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 87wr6zax0z.fsf@gmx.com

Eric Schulte <eric.schulte@gmx.com> writes:

> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>> Eric Schulte <eric.schulte@gmx.com> writes:
>>> Leo Alekseyev <dnquark@gmail.com> 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!


  reply	other threads:[~2012-03-06  9:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03  4:40 Is it possible to run shell script src blocks as root or to export individual blocks? Leo Alekseyev
2012-03-03  8:55 ` Nick Dokos
2012-03-03  9:19 ` org-babel-execute-src-block deletes its src block Daimrod
2012-03-03  9:42   ` Nick Dokos
2012-03-03  9:54     ` Daimrod
2012-03-03 14:46     ` Eric Schulte
2012-03-03 15:11       ` Daimrod
2012-03-03 14:25 ` Is it possible to run shell script src blocks as root or to export individual blocks? Eric Schulte
2012-03-03 16:43   ` Andreas Leha
2012-03-05 15:24     ` Eric Schulte
2012-03-06  9:11       ` Andreas Leha [this message]
2012-03-19  8:42       ` Leo Alekseyev
2012-03-19 14:46         ` Eric Schulte
2012-03-04 17:29 ` Sylvain Rousseau

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:

  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=87pqcqytz4.fsf@med.uni-goettingen.de \
    --to=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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).