From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: org-babel-tangle-file not parsing code blocks Date: Mon, 25 Mar 2013 12:19:22 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFkE-0000sd-7u for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:20:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKFk9-0004DT-5t for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:19:58 -0400 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:33528) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UKFk8-00047Y-Tl for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:19:53 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Mon, 25 Mar 2013 16:02:58 -0600") 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: Marcelo de Moraes Serpa Cc: Org Mode Aloha Marcelo, Marcelo de Moraes Serpa writes: > Hi list, > > I have a simple babel file with an Emacs Lisp code block, that looks like > this: > > peepopen-config.org: > > > * Load it > #+BEGIN_SRC emacs_lisp > (add-to-list 'load-path (concat fullofcaffeine-vendor-dir "/peepopen")) > (require 'peepopen) > (textmate-mode) > #+END_SRC > > (provide 'peepopen-config) > > > I'm trying to tangle it with (org-babel-tangle-file "peepopen-config.org"= ), > but I get the following in the "Messages" buffer: > > Tangled 0 code blocks from peepopen-config.org > > > I'm confused, since the file *does* contain a code block. Am I doing > something wrong? Not really, but you do need to tell Babel you want to tangle this code block. See the header argument :tangle, which by default is set to `no'. If you add :tangle yes to the code block header, then it should do what you want. hth, Tom > > Thanks in advance, > > - Marcelo. > Hi list, > > > I have a simple babel file with an Emacs Lisp code block, that looks > like this: > > peepopen-config.org: > > > * Load it > #+BEGIN_SRC emacs_lisp > =C2=A0 (add-to-list 'load-path (concat fullofcaffeine-vendor-dir > "/peepopen")) > =C2=A0 (require 'peepopen) > =C2=A0 (textmate-mode) > #+END_SRC >=20=20=20=20=20 > (provide 'peepopen-config) >=20=20=20=20=20 > > I'm trying to tangle it with (org-babel-tangle-file > "peepopen-config.org"), but I get the following in the "Messages" > buffer: > > Tangled 0 code blocks from peepopen-config.org > > > I'm confused, since the file *does* contain a code block. Am I doing > something wrong? > > Thanks in advance, > > - Marcelo.=C2=A0 > > > --=20 Thomas S. Dye http://www.tsdye.com