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:24:56 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6c64488f3ea04f3e37dfa Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLKFG-0007l9-Tk for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:25:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLKFF-0007Qj-1S for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:24:58 -0500 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:60402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLKFE-0007Qd-PW for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 17:24:56 -0500 Received: by mail-ob0-f170.google.com with SMTP id uz6so1717455obc.1 for ; Wed, 05 Mar 2014 14:24:56 -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" --047d7bd6c64488f3ea04f3e37dfa Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 thi= s: > > > > =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 b= e > > able to refer to all of the > > snippets as a single ended and tangle them accordingly. What is the rig= ht > > 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 t= o 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 > --=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 --047d7bd6c64488f3ea04f3e37dfa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Exactly I'm doing a=C2=A0

#+BEGIN_S= RC emacs-lisp :tangle .emacs.el :noweb tangle

= What I'm aiming for is the case where you have lots of code blocks inte= rspersed
with written language... and want them to accumulate under a single id= entifier. I will keep
digging.


On Wed, Mar 5, 2014 at 3:39 PM, Thom= as S. Dye <tsd@tsdye.com> wrote:
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@wisdomandwo= nder.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@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<= 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
--047d7bd6c64488f3ea04f3e37dfa--