From: Eric Schulte <eric.schulte@gmx.com>
To: yann.ledu.fr@gmail.com
Cc: emacs-orgmode@gnu.org, Eric Schulte <eric.schulte@gmx.com>
Subject: Re: Tangle only current code block?
Date: Mon, 08 Oct 2012 20:28:44 -0600 [thread overview]
Message-ID: <87d30swf43.fsf@gmx.com> (raw)
In-Reply-To: CALF=OS5x0=VZRg1YnWEdPCY+y__eqZFt1Fk8RvMEvbaF82ppKA@mail.gmail.com
Yann Le Du <yann.ledu.fr@gmail.com> writes:
> On Mon, Oct 8, 2012 at 1:39 AM, Eric Schulte <eric.schulte@gmx.com> wrote:
>
>> Yann Le Du <yann.ledu.fr@gmail.com> writes:
>>
>> > Hi,
>> >
>> > I have a bunch of code chunks with stuff like <<fun name>> and headers
>> like
>> > :tangle toto.c exporting to different files in noweb style
>> >
>> > If I use C-c C-v t, it extracts all of those code chunks nicely
>> >
>> > However, sometimes I would like to put my cursor inside one of those code
>> > chunks and then extract only that one, not the others.
>> >
>> > Is there a simple way ?
>> >
>>
>> Yes, run the tangle with a prefix argument to tangle only the block
>> under your cursor e.g., C-u C-c C-v t.
>>
>>
> Very nice! Is that documented? It's not in
> http://orgmode.org/manual/Extracting-source-code.html
>
This is now mentioned in the documentation. Cheers,
>
>
>> Best,
>>
>> >
>> > I narly found a solution, but to make it work nicely I need to put
>> > org-babel-tangle inside a macro, but it fails: if I define a macro :
>> >
>> > C-x (
>> > M-x org-babel-tangle
>> > C-x )
>> > C-x e
>> >
>> > it fails, saying wrong type argument stringp, nul
>> >
>> > I'm lost.
>> >
>> > Yann
>>
>> --
>> Eric Schulte
>> http://cs.unm.edu/~eschulte
>>
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2012-10-09 2:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-07 23:00 Tangle only current code block? Yann Le Du
2012-10-07 23:39 ` Eric Schulte
2012-10-08 6:21 ` Yann Le Du
2012-10-09 2:28 ` Eric Schulte [this message]
2012-10-08 22:32 ` Bill White
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=87d30swf43.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=emacs-orgmode@gnu.org \
--cc=yann.ledu.fr@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).