From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: org-babel-tangle-file not parsing code blocks Date: Mon, 25 Mar 2013 16:02:58 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb202eabe0e8104d8c6f75e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFTs-0000Jr-9K for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKFTn-0006y1-Fa for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:03:04 -0400 Received: from mail-oa0-f50.google.com ([209.85.219.50]:50127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFTn-0006xw-AN for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:02:59 -0400 Received: by mail-oa0-f50.google.com with SMTP id n1so4157461oag.37 for ; Mon, 25 Mar 2013 15:02:58 -0700 (PDT) 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: Org Mode --e89a8fb202eabe0e8104d8c6f75e Content-Type: text/plain; charset=ISO-8859-1 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. --e89a8fb202eabe0e8104d8c6f75e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi list,

I have a simple babel file with an Emacs Lisp c= ode block, that looks like this:


* = Load it
#+BEGIN_SRC emacs_lisp
=A0 (add-to-list 'load-path (concat fullofcaf= feine-vendor-dir "/peepopen"))
=A0 (require 'peepopen)
= =A0 (textmate-mode)
#+END_SRC

(provide 'peepopen-config)
<= /blockquote>

I'm trying to tangle it with (org-babel-tangl= e-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 advan= ce,

- Marcelo.=A0



--e89a8fb202eabe0e8104d8c6f75e-- 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 16:03:47 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb200bca723cf04d8c6fad2 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFUf-0000uX-DT for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKFUa-00079F-0y for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:03:53 -0400 Received: from mail-oa0-f54.google.com ([209.85.219.54]:54700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFUZ-000791-S5 for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:03:47 -0400 Received: by mail-oa0-f54.google.com with SMTP id n12so6979088oag.13 for ; Mon, 25 Mar 2013 15:03:47 -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: Org Mode --e89a8fb200bca723cf04d8c6fad2 Content-Type: text/plain; charset=ISO-8859-1 Versions: Org-mode version 8.0-pre (release_8.0-pre-186-g8aeea9.dirty) GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-12 On Mon, Mar 25, 2013 at 4:02 PM, Marcelo de Moraes Serpa < celoserpa@gmail.com> wrote: > 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. > > > > --e89a8fb200bca723cf04d8c6fad2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Versions:

Org-mode version 8.0-pre (release_8.0-pre-186-= g8aeea9.dirty)

GNU Emacs 24.3.1 (x86_64-apple-darw= in, NS apple-appkit-1038.36) of 2013-03-12



On Mon, Mar 25, 2013 at 4:02 PM, Marcelo de = Moraes Serpa <celoserpa@gmail.com> wrote:
Hi list,

I have a simple babel file with an Emacs Lisp c= ode block, that looks like this:


* Load it
#+BEGIN_SRC emacs_lisp
=A0 (add-to-list 'load-path (concat fullofcaf= feine-vendor-dir "/peepopen"))
=A0 (require 'peepopen)
= =A0 (textmate-mode)
#+END_SRC

(provide 'peepopen-config)
<= /blockquote>

I'm trying to tangle it with (org-babel-tangl= e-file "peepo= pen-config.org"), but I get the following in the "Messages&qu= ot; 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 advan= ce,

- Marcelo.=A0




--e89a8fb200bca723cf04d8c6fad2-- 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 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 16:20:41 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93a0c171f7a5c04d8c7377b Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFl2-00025k-9a for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKFkw-0004x8-Nr for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:20:48 -0400 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:49034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKFkw-0004wp-EH for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:20:42 -0400 Received: by mail-ob0-f180.google.com with SMTP id wo10so4152788obc.39 for ; Mon, 25 Mar 2013 15:20:41 -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 --14dae93a0c171f7a5c04d8c7377b Content-Type: text/plain; charset=ISO-8859-1 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 > --14dae93a0c171f7a5c04d8c7377b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Thomas,

Stupid me. There was a syntax error in the co= de block -- "emacs_lisp" instead of "emacs-lisp".
=

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

- Marcelo.

On Mon, Ma= r 25, 2013 at 4:19 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> Aloha Marcelo,

Marcelo de Moraes Serpa <celoserp= a@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=

--14dae93a0c171f7a5c04d8c7377b-- 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 16:45:01 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb203342454b504d8c78e86 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKG8a-0005bv-MB for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:45:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKG8U-0003mo-S5 for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:45:08 -0400 Received: from mail-oa0-f48.google.com ([209.85.219.48]:52636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKG8U-0003iL-IL for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:45:02 -0400 Received: by mail-oa0-f48.google.com with SMTP id j1so6995351oag.21 for ; Mon, 25 Mar 2013 15:45:01 -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 --e89a8fb203342454b504d8c78e86 Content-Type: text/plain; charset=ISO-8859-1 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 >> > > --e89a8fb203342454b504d8c78e86 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oh, actually that wasn't the issue.

org-babel-load-f= ile 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 th= e parameter in the code block itself?

Thanks!

On Mon, Mar 2= 5, 2013 at 4:20 PM, Marcelo de Moraes Serpa <celoserpa@gmail.com&g= t; 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.


On Mon, Mar 25, 2013 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=


--e89a8fb203342454b504d8c78e86-- 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-- 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 13:39:06 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGzL-0002jX-8i for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:39:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKGzK-0003IB-59 for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:39:39 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:37966) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UKGzJ-0003Hw-RZ for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:39:38 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Mon, 25 Mar 2013 16:45:01 -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: > 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? > Yes, there is. (org-babel-tangle-file FILE &optional TARGET-FILE LANG) You should be able set TARGET-FILE with a buffer-wide header argument, like this: #+PROPERTY: tangle force-output-to-the.el hth, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com 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:48:35 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae93a0c177672c004d8c87117 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKH82-0005hv-0x for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:48:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKH80-0006Cx-E0 for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:48:37 -0400 Received: from mail-oa0-f52.google.com ([209.85.219.52]:51021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKH80-0006Cp-6Z for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 19:48:36 -0400 Received: by mail-oa0-f52.google.com with SMTP id k14so6882129oag.25 for ; Mon, 25 Mar 2013 16:48:35 -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 --14dae93a0c177672c004d8c87117 Content-Type: text/plain; charset=ISO-8859-1 Hi Thomas. Thanks again for the reply. I still don't understand why the TARGET_FILE argument is optional. I would expect it to create a file of the same name of the org file that is tangled. Take this code: (org-babel-tangle-file "~/.emacs.d/config/peepopen-config.org") Contents: * Load it > #+BEGIN_SRC emacs-lisp > (add-to-list 'load-path (concat fullofcaffeine-vendor-dir "/peepopen")) > (require 'peepopen) > (textmate-mode) > (provide 'peepopenconfig) > #+END_SRC When I evaluate the (org-babel-tangle-file...) line, I get the following: Tangled 0 code blocks from peepopen-config.org I would expect it to tangle 1 block, and create a peepopen-config.el (no need to define a TARGET_FILE string). Two questions: 1) Not sure why it's not tangling the BEGIN_SRC emacs-lisp block 2) Am I wrong about the .el file creation assumption ? Cheers! - Marcelo. On Mon, Mar 25, 2013 at 5:39 PM, Thomas S. Dye wrote: > Aloha Marcelo, > > Marcelo de Moraes Serpa writes: > > > 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? > > > > Yes, there is. > > (org-babel-tangle-file FILE &optional TARGET-FILE LANG) > > You should be able set TARGET-FILE with a buffer-wide header argument, > like this: > > #+PROPERTY: tangle force-output-to-the.el > > hth, > Tom > > -- > T.S. Dye & Colleagues, Archaeologists > 735 Bishop St, Suite 315, Honolulu, HI 96813 > Tel: 808-529-0866, Fax: 808-529-0884 > http://www.tsdye.com > --14dae93a0c177672c004d8c87117 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Thomas. Thanks again for the reply.

I still don't= understand why the TARGET_FILE argument is optional. I would expect it to = create a file of the same name of the org file that is tangled. Take this c= ode:

(org-babel-tangle-file "~/.emacs.d/config/peepopen-config.org")

Contents:

* Load it
#+BEGIN_SRC emacs-lisp
=A0 (add-to-list 'load-path (con= cat fullofcaffeine-vendor-dir "/peepopen"))
=A0 (require '= peepopen)
=A0 (textmate-mode)
(provide 'peepopenconfig)
#+END_= SRC

When I evaluate the (org-babel-tangle-file...) li= ne, I get the following:

Tangled 0 code blocks from peepopen-= config.org

I would expect it to t= angle 1 block, and create a peepopen-config.el (no need to define a TARGET_= FILE string).

Two questions:

1) Not sure why= it's not tangling the BEGIN_SRC emacs-lisp block
2) Am I wro= ng about the .el file creation assumption ?

Cheers= !

- Marcelo.

On Mon, = Mar 25, 2013 at 5:39 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
Aloha Marcelo,

Marcelo de Moraes Serpa <celoserp= a@gmail.com> writes:

> 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?
>

Yes, there is.

(org-babel-tangle-file FILE &optional TARGET-FILE LANG)

You should be able set TARGET-FILE with a buffer-wide header argument,
like this:

#+PROPERTY: tangle force-output-to-the.el

hth,
Tom

--
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com=

--14dae93a0c177672c004d8c87117-- 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 14:58:47 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKIE9-0006ma-RQ for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:59:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKIE4-0002Mt-Na for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:59:01 -0400 Received: from oproxy14-pub.unifiedlayer.com ([67.222.51.224]:40229) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UKIE4-0002Mc-Ey for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 20:58:56 -0400 In-Reply-To: (Marcelo de Moraes Serpa's message of "Mon, 25 Mar 2013 17:48:35 -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: > I still don't understand why the TARGET_FILE argument is optional. I would > expect it to create a file of the same name of the org file that is > tangled. Here is the docstring: (org-babel-tangle-file FILE &optional TARGET-FILE LANG) Extract the bodies of source code blocks in FILE. Source code blocks are extracted with `org-babel-tangle'. Optional argument TARGET-FILE can be used to specify a default export file for all source blocks. Optional argument LANG can be used to limit the exported source code blocks by language. I suppose it is optional so you don't have to specify a default export file for all source blocks. What if you want to tangle two or more files from the same Org buffer? > Take this code: > > (org-babel-tangle-file "~/.emacs.d/config/peepopen-config.org") > > Contents: > > * Load it >> #+BEGIN_SRC emacs-lisp >> (add-to-list 'load-path (concat fullofcaffeine-vendor-dir "/peepopen")) >> (require 'peepopen) >> (textmate-mode) >> (provide 'peepopenconfig) >> #+END_SRC > > > When I evaluate the (org-babel-tangle-file...) line, I get the following: > > Tangled 0 code blocks from peepopen-config.org Well, by default :tangle no, so unless you've changed this somewhere I think Babel will defer to the default value. hth, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com