From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhenjiang zech xu Subject: tangle the code blocks in the regions Date: Thu, 6 Mar 2014 17:47:16 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6dbd9ac96bd704f3f99a11 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLixK-0003YD-5y for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 19:48:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLixB-00015j-5R for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 19:48:06 -0500 Received: from mail-ve0-x232.google.com ([2607:f8b0:400c:c01::232]:61144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLixB-00015f-01 for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 19:47:57 -0500 Received: by mail-ve0-f178.google.com with SMTP id jw12so3453829veb.37 for ; Thu, 06 Mar 2014 16:47:56 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b6dbd9ac96bd704f3f99a11 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7b6dbd9ac96bd704f3f99a11 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

is there function to e= xtract 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?

=A0=A0 #+BEGIN_SRC sh :tangle foo.sh
=A0=A0=A0=A0 echo 'hello= 9;
=A0=A0 #+END_SRC
=A0=A0 #+BEGIN_SRC python :tangle foo.py
=A0= =A0=A0=A0 print 'hello'
=A0=A0 #+END_SRC

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

Best,
Zhenjiang
--047d7b6dbd9ac96bd704f3f99a11--