From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: org-babel-tangle-file not parsing code blocks Date: Mon, 25 Mar 2013 17:24:50 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044786b582070b04d8c81cbb Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGl3-0006WJ-6A for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:24:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKGl1-0007FS-De for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:24:53 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:62056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGl1-0007E3-5N for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:24:51 -0400 Received: by mail-ob0-f181.google.com with SMTP id ni5so6607281obc.12 for ; Mon, 25 Mar 2013 16:24:50 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode --f46d044786b582070b04d8c81cbb Content-Type: text/plain; charset=ISO-8859-1 Perhaps I'm misunderstanding how org-babel-tangle-file works. Isn't it supposed to create a correspondent .el file for the tangled org file? On Mon, Mar 25, 2013 at 4:45 PM, Marcelo de Moraes Serpa < celoserpa@gmail.com> wrote: > Oh, actually that wasn't the issue. > > org-babel-load-file seems to force tangling the file to an .el. > org-babel-tangle-file doesn't. Is there a way to force the output to the > .el file without using the parameter in the code block itself? > > Thanks! > > > On Mon, Mar 25, 2013 at 4:20 PM, Marcelo de Moraes Serpa < > celoserpa@gmail.com> wrote: > >> Hi Thomas, >> >> Stupid me. There was a syntax error in the code block -- "emacs_lisp" >> instead of "emacs-lisp". >> >> Thank you for taking your time to answer it, though! >> >> - Marcelo. >> >> >> On Mon, Mar 25, 2013 at 4:19 PM, Thomas S. Dye wrote: >> >>> 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 >>> > (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? >>> > >>> > Thanks in advance, >>> > >>> > - Marcelo. >>> > >>> > >>> > >>> >>> -- >>> Thomas S. Dye >>> http://www.tsdye.com >>> >> >> > --f46d044786b582070b04d8c81cbb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Perhaps I'm misunderstanding how org-babel-tangle-file works. Isn't= it supposed to create a correspondent .el file for the tangled org file?

On Mon, Mar 25, 2013 at 4:= 45 PM, Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote= :
Oh, actually that wasn't the issue.
=
org-babel-load-file seems to force tangling the file to an .= el. org-babel-tangle-file doesn't. Is there a way to force the output t= o the .el file without using the parameter in the code block itself?

Thanks!


On Mon, Mar 25, 2013 at 4:20 PM, Marcelo de Moraes Serpa <celo= serpa@gmail.com> wrote:
Hi Thomas,

Stupid me. The= re was a syntax error in the code block -- "emacs_lisp" instead o= f "emacs-lisp".

Thank you for taking your time to answer it, though!

- Marcelo.<= /font>


On Mon, Mar 25, 2= 013 at 4:19 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
Aloha Marcelo,

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> Hi list,
>
> I have a simple babel file with an Emacs Lisp code block, that looks l= ike
> this:
>
> peepopen-conf= ig.org:
>
>
> * Load it
> #+BEGIN_SRC emacs_lisp
> =A0 (add-to-list 'load-path (concat fullofcaffeine-vendor-dir &quo= t;/peepopen"))
> =A0 (require 'peepopen)
> =A0 (textmate-mode)
> #+END_SRC
>
> (provide 'peepopen-config)
>
>
> I'm trying to tangle it with (org-babel-tangle-file "peepopen-config.org&q= uot;),
> 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 doi= ng
> something wrong?

Not really, but you do need to tell Babel you want to tangle th= is code
block. =A0See the header argument :tangle, which by default is set to
`no'. =A0If you add :tangle yes to the code block header, then it shoul= d
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-conf= ig.org:
>
>
> =A0 =A0 * Load it
> =A0 =A0 #+BEGIN_SRC emacs_lisp
> =A0 =A0 =A0 (add-to-list 'load-path (concat fullofcaffeine-vendor-= dir
> =A0 =A0 "/peepopen"))
> =A0 =A0 =A0 (require 'peepopen)
> =A0 =A0 =A0 (textmate-mode)
> =A0 =A0 #+END_SRC
>
> =A0 =A0 (provide 'peepopen-config)
>
>
> I'm trying to tangle it with (org-babel-tangle-file
> "peepope= n-config.org"), but I get the following in the "Messages"= ;
> buffer:
>
> =A0 =A0 Tangled 0 code blocks from peepopen-config.org
>
>
> I'm confused, since the file *does* contain a code block. Am I doi= ng
> something wrong?
>
> Thanks in advance,
>
> - Marcelo.=A0
>
>
>

--
Thomas S. Dye
http://www.tsdye.com=



--f46d044786b582070b04d8c81cbb--