From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Babel Tangling Only Blocks Under One Heading in a File with Multiple Blocks. Date: Tue, 22 Nov 2011 14:46:06 +0100 Message-ID: References: <4ECBA544.5010006@wilkesley.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001485ea88166ca1b004b2530679 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqft-0002hL-6x for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 08:46:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSqfo-0007fX-GF for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 08:46:13 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:40250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqfo-0007fH-A4 for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 08:46:08 -0500 Received: by qyg14 with SMTP id 14so49528qyg.0 for ; Tue, 22 Nov 2011 05:46:06 -0800 (PST) In-Reply-To: <4ECBA544.5010006@wilkesley.net> 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: ian@manor-farm.org Cc: Org-mode --001485ea88166ca1b004b2530679 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 22, 2011 at 2:36 PM, Ian Barton wrote: > I am using org to keep configuration files for my various servers. A > typical file might look like: > > * Postfix > ** main.cf > #+BEGIN_SRC sh :tangle ~/dropbox/configuration_files/** > wilkesley.org/postfix/main.cf :exports none :noweb yes > > #+END_SRC > ** master.cf > > * Dovecot > ** dovecot.conf > > Mostly I only change one configuration file and don't need to tangle every > block in my org file. Is there any method to only tangle files under a > particular heading? Thus I could regenerate just my Postfix config files > and not my Dovecot ones. > Check org-narrow-to-subtree - you can narrow to subtree and then tangle. Cheers, Rainer > > Ian. > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug --001485ea88166ca1b004b2530679 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Nov 22, 2011 at 2:36 PM, Ian Bar= ton <lists@wilk= esley.net> wrote:
I am using org to keep configuration files for my various servers. A typica= l file might look like:

* Postfix
** main.cf
#+BEGIN_SRC sh :tangle ~/dropbox/configuration_files/wilkesley.org/postfix/m= ain.cf :exports none :noweb yes

#+END_SRC
** master.cf

* Dovecot
** dovecot.conf

Mostly I only change one configuration file and don't need to tangle ev= ery block in my org file. Is there any method to only tangle files under a = particular heading? Thus I could regenerate just my Postfix config files an= d not my Dovecot ones.

Check org-narrow-to-subtree - you can n= arrow to subtree and then tangle.

Cheers,

Rainer
=A0

Ian.




--
Rainer M.= Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Di= pl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel : =A0 =A0 =A0 +33 - (0)9= 53 10 27 44
Cell: =A0 =A0 =A0 +33 - (0)6 85 62 59 98
Fax (F): =A0 = =A0 =A0 +33 - (0)9 58 10 27 44

Fax (D): =A0 =A0+49 - (0)3 21 21 25 2= 2 44

email: =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0RMkrug

--001485ea88166ca1b004b2530679--