emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: zhenjiang zech xu <zhenjiang.xu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: tangle the code blocks in the regions
Date: Thu, 6 Mar 2014 17:47:16 -0700	[thread overview]
Message-ID: <CAAp=d8qdTg_Csxs4B6G+F4An2bmyOpAGFOs619vf-wHvOpnwaA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

Hi all,

is there function to extract all the code blocks in the selected region?

For example, can I select the region of the following two blocks and
extract them with just one command? Or I have to move cursor to each block
and extract them one by one?

   #+BEGIN_SRC sh :tangle foo.sh
     echo 'hello'
   #+END_SRC
   #+BEGIN_SRC python :tangle foo.py
     print 'hello'
   #+END_SRC

I doesn't find the extracting region command in manual. I would think this
can be a convenient feature to have?

Best,
Zhenjiang

[-- Attachment #2: Type: text/html, Size: 655 bytes --]

             reply	other threads:[~2014-03-07  0:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07  0:47 zhenjiang zech xu [this message]
2014-03-07  3:00 ` tangle the code blocks in the regions Eric Schulte

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='CAAp=d8qdTg_Csxs4B6G+F4An2bmyOpAGFOs619vf-wHvOpnwaA@mail.gmail.com' \
    --to=zhenjiang.xu@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).