From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: a couple tangle questions (tangle a single block, comment syntax) Date: Thu, 11 Oct 2018 08:06:38 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004a38d20577f2ce42" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAZk3-00051t-QI for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 08:07:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAZjx-000223-Rq for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 08:06:59 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:40491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAZjv-0001zP-O0 for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 08:06:53 -0400 Received: by mail-wr1-x436.google.com with SMTP id d2-v6so9406147wro.7 for ; Thu, 11 Oct 2018 05:06:51 -0700 (PDT) In-Reply-To: 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" To: Alan Schmitt Cc: org-mode-email --0000000000004a38d20577f2ce42 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Do you mean interactively? With org-babel-tangle you can: With one universal prefix argument, only tangle the block at point. When two universal prefix arguments, only tangle blocks for the tangle file of the block at point. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Oct 11, 2018 at 3:18 AM Alan Schmitt wrote: > Hello, > > I'm moving my configuration files to an org file to be tangled, and I > have a couple questions. > > First, is there a command to tangle a single block, or blocks in a > subtree? > > Second, I like to have the :comments link option in my tangled files (to > reference where they were tangled from), but some files do not have an > emacs mode, so I use a "config" source block. For these files, org does > not know the syntax of comments, so it asks me for it. Can I specify the > syntax for comments in the header of the source block? > > Thanks a lot, > > Alan > > -- > OpenPGP Key ID : 040D0A3B4ED2E5C7 > Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2018-09: 405.51, 2017-09= : 403.37 > --0000000000004a38d20577f2ce42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Do you mean interactively?=C2=A0 With org= -babel-tangle you can:

With one universal prefix ar= gument, only tangle the block at point.

When two u= niversal prefix arguments, only tangle blocks for the
tangle file= of the block at point.


John=

-----------------------------------
Professor John Kitchin=C2=A0=
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Me= llon University
Pittsburgh, PA 15213
412-268-7803


On Thu, Oct 11, 2018 at 3:18 AM Alan Schmitt <alan.schmitt@polytechnique.org> wrote:
Hello,

I'm moving my configuration files to an org file to be tangled, and I have a couple questions.

First, is there a command to tangle a single block, or blocks in a
subtree?

Second, I like to have the :comments link option in my tangled files (to reference where they were tangled from), but some files do not have an
emacs mode, so I use a "config" source block. For these files, or= g does
not know the syntax of comments, so it asks me for it. Can I specify the syntax for comments in the header of the source block?

Thanks a lot,

Alan

--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO=E2=82=82, Mauna Loa Obs. 2018-09: 405.51, 2017-09: = 403.37
--0000000000004a38d20577f2ce42--