From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: How to collect multiple source blocks with the same name at the same level Date: Wed, 5 Mar 2014 16:30:48 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e015384d68b46df04f3e3923d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLKKw-0002Eg-Pi for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:30:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLKKv-00012Q-Cg for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:30:50 -0500 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:50417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLKKv-00012M-5Z for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:30:49 -0500 Received: by mail-ob0-f178.google.com with SMTP id wp18so1757623obc.9 for ; Wed, 05 Mar 2014 14:30:48 -0800 (PST) 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: "emacs-orgmode@gnu.org" --089e015384d68b46df04f3e3923d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here is what I was looking for: http://orgmode.org/manual/noweb_002dref.html *** Windows [fn:39] :PROPERTIES: :noweb-ref: uxo-decision :END: Menu bars are not required [fn:38] #+BEGIN_SRC emacs-lisp (menu-bar-mode 0) #+END_SRC On Wed, Mar 5, 2014 at 4:24 PM, Grant Rettke wrote= : > Exactly I'm doing a > > #+BEGIN_SRC emacs-lisp :tangle .emacs.el :noweb tangle > > What I'm aiming for is the case where you have lots of code blocks > interspersed > with written language... and want them to accumulate under a single > identifier. I will keep > digging. > > > On Wed, Mar 5, 2014 at 3:39 PM, Thomas S. Dye wrote: > >> Aloha Grant, >> >> I'm not certain what you're after. >> >> From the Org mode manual: >> >> * outline header >> :PROPERTIES: >> :header-args: :cache yes >> :END: >> >> Perhaps >> >> :header-args: :tangle myfile.el >> >> All the best, >> Tom >> >> Grant Rettke writes: >> >> > Hi, >> > >> > My goal is to intersperse code blocks with comments about them like >> this: >> > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > Menu bars are not required [fn:38] >> > #+NAME: uxo-decision1 >> > #+BEGIN_SRC emacs-lisp >> > (menu-bar-mode 0) >> > #+END_SRC >> > >> > Don't need auto-save >> > #+NAME: uxo-decision2 >> > #+BEGIN_SRC emacs-lisp >> > (disable-auto-save) >> > #+END_SRC >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > And replace it with something like this: >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > *** Setup >> > :PROPERTY: >> > :name: uxo-decision >> > :END >> > >> > Menu bars are not required [fn:38] >> > #+BEGIN_SRC emacs-lisp >> > (menu-bar-mode 0) >> > #+END_SRC >> > >> > Don't need auto-save >> > #+BEGIN_SRC emacs-lisp >> > (disable-auto-save) >> > #+END_SRC >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > >> > Basically I'm going through a config file and want write a lot but to = be >> > able to refer to all of the >> > snippets as a single ended and tangle them accordingly. What is the >> right >> > way to do this? >> > >> > My apologies for having to ask this; for some bizarre reason I am not >> > finding the example >> > to do this though I know I have read it. >> > >> > Regards, >> > >> > -- >> > Grant Rettke | ACM, AMA, COG, IEEE >> > gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ >> > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates >> > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) >> > =E2=80=9CLife has become immeasurably better since I have been forced = to stop >> > taking it seriously.=E2=80=9D --Thompson >> > Hi, >> > >> > My goal is to intersperse code blocks with comments about them like >> > this: >> > >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > Menu bars are not required [fn:38] >> > #+NAME: uxo-decision1 >> > #+BEGIN_SRC emacs-lisp >> > (menu-bar-mode 0) >> > #+END_SRC >> > >> > Don't need auto-save >> > #+NAME: uxo-decision2 >> > #+BEGIN_SRC emacs-lisp >> > (disable-auto-save) >> > #+END_SRC >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > And replace it with something like this: >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > *** Setup >> > :PROPERTY: >> > :name: uxo-decision >> > :END >> > >> > Menu bars are not required [fn:38] >> > #+BEGIN_SRC emacs-lisp >> > (menu-bar-mode 0) >> > #+END_SRC >> > >> > Don't need auto-save >> > #+BEGIN_SRC emacs-lisp >> > (disable-auto-save) >> > #+END_SRC >> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> > >> > Basically I'm going through a config file and want write a lot but to >> > be able to refer to all of the >> > snippets as a single ended and tangle them accordingly. What is the >> > right way to do this? >> > >> > My apologies for having to ask this; for some bizarre reason I am not >> > finding the example >> > to do this though I know I have read it. >> > >> > Regards, >> >> -- >> Thomas S. Dye >> http://www.tsdye.com >> > > > > -- > Grant Rettke | ACM, AMA, COG, IEEE > gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ > =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates > ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) > =E2=80=9CLife has become immeasurably better since I have been forced to = stop > taking it seriously.=E2=80=9D --Thompson > --=20 Grant Rettke | ACM, AMA, COG, IEEE gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson --089e015384d68b46df04f3e3923d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here is what I was looking for:


*** Windows [fn:3= 9]
=C2=A0 =C2=A0 :PROPERTIES:
=C2=A0 =C2=A0 :noweb-ref: uxo-dec= ision
=C2=A0 =C2=A0 :END:
Menu bars are not required [f= n:38]
#+BEGIN_SRC emacs-lisp
(menu-bar-mode 0)
#+END_SRC


On Wed, Mar 5= , 2014 at 4:24 PM, Grant Rettke <gcr@wisdomandwonder.com> wrote:
Exactly I'm doing a=C2= =A0

#+BEGIN_SRC emacs-lisp :tangle .emacs.el :noweb tang= le

What I'm aiming for is the case where you have lots= of code blocks interspersed
with written language... and want them to accumulate under a single id= entifier. I will keep
digging.
<= div class=3D"h5">


On Wed, Mar 5, 2014 at 3:39 PM, Thomas S. Dye <tsd@tsdye.com> wr= ote:
Aloha Grant,

I'm not certain what you're after.

>From the Org mode manual:

=C2=A0 =C2=A0 =C2=A0* outline header
=C2=A0 =C2=A0 =C2=A0 =C2=A0:PROPERTIES:
=C2=A0 =C2=A0 =C2=A0 =C2=A0:header-args: =C2=A0 =C2=A0:cache yes
=C2=A0 =C2=A0 =C2=A0 =C2=A0:END:

Perhaps

=C2=A0 :header-args: :tangle myfile.el

All the best,
Tom

Grant Rettke <gcr@wisdomandwonder.com> writes:

> Hi,
>
> My goal is to intersperse code blocks with comments about them like th= is:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Menu bars are not required [fn:38]
> #+NAME: uxo-decision1
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+NAME: uxo-decision2
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> And replace it with something like this:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> *** Setup
> =C2=A0 :PROPERTY:
> =C2=A0 :name: uxo-decision
> =C2=A0 :END
>
> Menu bars are not required [fn:38]
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> Basically I'm going through a config file and want write a lot but= to be
> able to refer to all of the
> snippets as a single ended and tangle them accordingly. What is the ri= ght
> way to do this?
>
> My apologies for having to ask this; for some bizarre reason I am not<= br> > finding the example
> to do this though I know I have read it.
>
> Regards,
>
> --
> Grant Rettke | ACM, AMA, COG, IEEE
> gcr@wisdo= mandwonder.com | http://www.wisdomandwonder.com/
> =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
> ((=CE=BB (x) (x x)) (=CE=BB (x) (x x)))
> =E2=80=9CLife has become immeasurably better since I have been forced = to stop
> taking it seriously.=E2=80=9D --Thompson
> Hi,
>
> My goal is to intersperse code blocks with comments about them like > this:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Menu bars are not required [fn:38]
> #+NAME: uxo-decision1
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+NAME: uxo-decision2
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> And replace it with something like this:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> *** Setup
> :PROPERTY:
> :name: uxo-decision
> :END
>
> Menu bars are not required [fn:38]
> #+BEGIN_SRC emacs-lisp
> (menu-bar-mode 0)
> #+END_SRC
>
> Don't need auto-save
> #+BEGIN_SRC emacs-lisp
> (disable-auto-save)
> #+END_SRC
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> Basically I'm going through a config file and want write a lot but= to
> be able to refer to all of the
> snippets as a single ended and tangle them accordingly. What is the > right way to do this?
>
> My apologies for having to ask this; for some bizarre reason I am not<= br> > finding the example
> to do this though I know I have read it.
>
> Regards,

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



-- Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/<= /a>
=E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
((=CE=BB (x) (x x)= ) (=CE=BB (x) (x x)))
=E2=80=9CLife has become immeasurably better since= I have been forced to stop taking it seriously.=E2=80=9D --Thompson



--
= Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
=E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates
((=CE=BB (x) (x x)= ) (=CE=BB (x) (x x)))
=E2=80=9CLife has become immeasurably better since= I have been forced to stop taking it seriously.=E2=80=9D --Thompson --089e015384d68b46df04f3e3923d--