* How to collect multiple source blocks with the same name at the same level
@ 2014-03-05 21:14 Grant Rettke
2014-03-05 21:35 ` Samuel Wales
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 21:14 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]
Hi,
My goal is to intersperse code blocks with comments about them like this:
==================================
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
==================================
And replace it with something like this:
==================================
*** 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
==================================
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/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
[-- Attachment #2: Type: text/html, Size: 2021 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 21:14 How to collect multiple source blocks with the same name at the same level Grant Rettke
@ 2014-03-05 21:35 ` Samuel Wales
2014-03-05 22:23 ` Grant Rettke
2014-03-05 21:39 ` Thomas S. Dye
2014-03-05 22:41 ` Aaron Ecay
2 siblings, 1 reply; 9+ messages in thread
From: Samuel Wales @ 2014-03-05 21:35 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org
noweb?
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. And
ANYBODY can get it.
Denmark: free Karina Hansen NOW.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 21:14 How to collect multiple source blocks with the same name at the same level Grant Rettke
2014-03-05 21:35 ` Samuel Wales
@ 2014-03-05 21:39 ` Thomas S. Dye
2014-03-05 22:24 ` Grant Rettke
2014-03-05 22:41 ` Aaron Ecay
2 siblings, 1 reply; 9+ messages in thread
From: Thomas S. Dye @ 2014-03-05 21:39 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org
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 <gcr@wisdomandwonder.com> writes:
> Hi,
>
> My goal is to intersperse code blocks with comments about them like this:
>
> ==================================
> 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
> ==================================
> And replace it with something like this:
> ==================================
> *** 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
> ==================================
>
> 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/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
> Hi,
>
> My goal is to intersperse code blocks with comments about them like
> this:
>
> ==================================
> 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
> ==================================
> And replace it with something like this:
> ==================================
> *** 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
> ==================================
>
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 21:35 ` Samuel Wales
@ 2014-03-05 22:23 ` Grant Rettke
0 siblings, 0 replies; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 22:23 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
Yup I'm using noweb references.
On Wed, Mar 5, 2014 at 3:35 PM, Samuel Wales <samologist@gmail.com> wrote:
> noweb?
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>
> The disease DOES progress. MANY people have died from it. And
> ANYBODY can get it.
>
> Denmark: free Karina Hansen NOW.
>
--
Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
[-- Attachment #2: Type: text/html, Size: 1222 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 21:39 ` Thomas S. Dye
@ 2014-03-05 22:24 ` Grant Rettke
2014-03-05 22:30 ` Grant Rettke
0 siblings, 1 reply; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 22:24 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 3796 bytes --]
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 <tsd@tsdye.com> 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 <gcr@wisdomandwonder.com> writes:
>
> > Hi,
> >
> > My goal is to intersperse code blocks with comments about them like this:
> >
> > ==================================
> > 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
> > ==================================
> > And replace it with something like this:
> > ==================================
> > *** 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
> > ==================================
> >
> > 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/
> > “Wisdom begins in wonder.” --Socrates
> > ((λ (x) (x x)) (λ (x) (x x)))
> > “Life has become immeasurably better since I have been forced to stop
> > taking it seriously.” --Thompson
> > Hi,
> >
> > My goal is to intersperse code blocks with comments about them like
> > this:
> >
> > ==================================
> > 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
> > ==================================
> > And replace it with something like this:
> > ==================================
> > *** 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
> > ==================================
> >
> > 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/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
[-- Attachment #2: Type: text/html, Size: 5235 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 22:24 ` Grant Rettke
@ 2014-03-05 22:30 ` Grant Rettke
0 siblings, 0 replies; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 22:30 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 4596 bytes --]
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 <gcr@wisdomandwonder.com>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 <tsd@tsdye.com> 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 <gcr@wisdomandwonder.com> writes:
>>
>> > Hi,
>> >
>> > My goal is to intersperse code blocks with comments about them like
>> this:
>> >
>> > ==================================
>> > 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
>> > ==================================
>> > And replace it with something like this:
>> > ==================================
>> > *** 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
>> > ==================================
>> >
>> > 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/
>> > “Wisdom begins in wonder.” --Socrates
>> > ((λ (x) (x x)) (λ (x) (x x)))
>> > “Life has become immeasurably better since I have been forced to stop
>> > taking it seriously.” --Thompson
>> > Hi,
>> >
>> > My goal is to intersperse code blocks with comments about them like
>> > this:
>> >
>> > ==================================
>> > 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
>> > ==================================
>> > And replace it with something like this:
>> > ==================================
>> > *** 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
>> > ==================================
>> >
>> > 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/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>
--
Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
[-- Attachment #2: Type: text/html, Size: 6557 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 21:14 How to collect multiple source blocks with the same name at the same level Grant Rettke
2014-03-05 21:35 ` Samuel Wales
2014-03-05 21:39 ` Thomas S. Dye
@ 2014-03-05 22:41 ` Aaron Ecay
2014-03-05 22:45 ` Aaron Ecay
2014-03-05 23:03 ` Grant Rettke
2 siblings, 2 replies; 9+ messages in thread
From: Aaron Ecay @ 2014-03-05 22:41 UTC (permalink / raw)
To: Grant Rettke, emacs-orgmode@gnu.org
Hi Grant,
I think you can do this with the noweb-ref property/header arg. There’s
an example very similar (if not identical) to your use case in the info
manual, node “(org) noweb-ref”
--
Aaron Ecay
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 22:41 ` Aaron Ecay
@ 2014-03-05 22:45 ` Aaron Ecay
2014-03-05 23:03 ` Grant Rettke
1 sibling, 0 replies; 9+ messages in thread
From: Aaron Ecay @ 2014-03-05 22:45 UTC (permalink / raw)
To: Grant Rettke, emacs-orgmode@gnu.org
Aha, I see you found it too. I should run fetchmail more
frequently...sorry for the noise.
2014ko martxoak 5an, Aaron Ecay-ek idatzi zuen:
>
> Hi Grant,
>
> I think you can do this with the noweb-ref property/header arg. There’s
> an example very similar (if not identical) to your use case in the info
> manual, node “(org) noweb-ref”
>
> --
> Aaron Ecay
>
--
Aaron Ecay
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to collect multiple source blocks with the same name at the same level
2014-03-05 22:41 ` Aaron Ecay
2014-03-05 22:45 ` Aaron Ecay
@ 2014-03-05 23:03 ` Grant Rettke
1 sibling, 0 replies; 9+ messages in thread
From: Grant Rettke @ 2014-03-05 23:03 UTC (permalink / raw)
To: Grant Rettke, emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
Thanks Aaron:
http://orgmode.org/manual/noweb_002dref.html
On Wed, Mar 5, 2014 at 4:41 PM, Aaron Ecay <aaronecay@gmail.com> wrote:
> Hi Grant,
>
> I think you can do this with the noweb-ref property/header arg. There’s
> an example very similar (if not identical) to your use case in the info
> manual, node “(org) noweb-ref”
>
> --
> Aaron Ecay
>
--
Grant Rettke | ACM, AMA, COG, IEEE
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
[-- Attachment #2: Type: text/html, Size: 1222 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-03-05 23:03 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 21:14 How to collect multiple source blocks with the same name at the same level Grant Rettke
2014-03-05 21:35 ` Samuel Wales
2014-03-05 22:23 ` Grant Rettke
2014-03-05 21:39 ` Thomas S. Dye
2014-03-05 22:24 ` Grant Rettke
2014-03-05 22:30 ` Grant Rettke
2014-03-05 22:41 ` Aaron Ecay
2014-03-05 22:45 ` Aaron Ecay
2014-03-05 23:03 ` Grant Rettke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).