[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [babel] Painless integration of source blocks with languag
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [babel] Painless integration of source blocks with language |
Date: |
Thu, 13 Jan 2011 14:23:54 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
I briefly mentioned the approach you describe below earlier in this
thread [1], and while I see the appeal of this approach, I think that
the second approach I described in that same message (using offsets
instead of comments) is preferable -- although I am of course open to
being persuaded otherwise.
Best -- Eric
Seth Burleigh <address@hidden> writes:
> I would just like to throw in a quick idea.
> The easiest way to support noweb tangling is to get org-babel-tangle to
> create nested tags and change detangle to take these into account.
>
> for example, i have the forex_user source block that is tangled.
>
> ;; [[file:~/Dropbox/.rep/clj-forex/clj-forex.org::*User][forex_user]]
> my code...
> ;; [[file:~/Dropbox/.rep/clj-forex/clj-forex.org::*User][embedded_block]]
> my embedded code ...
> ;; embedded_block ends here
> ;; forex_user ends here
>
> corresponding to a forex_user block of
> #+begin_src
> my code ...
> <<embedded_block>>
> #+end_src
>
> This would only work for noweb on separate lines and preferably only when
> one block is noweb embedded into one other source block, but i believe that
> this is the most common case anyways. This could be enforced in the
> detangle/tangle code.
>
> Then, a separate minor mode could make these file: markers invisible and
> create a colored overlay pattern per source block code. Saving the file
> would still save the markers, you just wouldnt see them if the minor mode
> was on.
Footnotes:
[1] http://thread.gmane.org/gmane.emacs.orgmode/35863/focus=35971
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, (continued)
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/09
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Eric Schulte, 2011/01/09
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/09
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/09
- Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Eric Schulte, 2011/01/11
Re: [Orgmode] [babel] Painless integration of source blocks with language, Eric S Fraga, 2011/01/10
Re: [Orgmode] [babel] Painless integration of source blocks with language, Eric S Fraga, 2011/01/13
Re: [Orgmode] [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/13
Re: [Orgmode] [babel] Painless integration of source blocks with language,
Eric Schulte <=
Re: [Orgmode] [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/13
Re: [Orgmode] [babel] Painless integration of source blocks with language, Eric Schulte, 2011/01/16
[Orgmode] Re: [babel] Painless integration of source blocks with language, Sébastien Vauban, 2011/01/17
Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Eric Schulte, 2011/01/17
[Orgmode] Re: [babel] Painless integration of source blocks with language, Sébastien Vauban, 2011/01/17
Re: [Orgmode] [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/17
[Orgmode] Re: [babel] Painless integration of source blocks with language, Sébastien Vauban, 2011/01/17
Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/18
Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/18
Re: [Orgmode] Re: [babel] Painless integration of source blocks with language, Seth Burleigh, 2011/01/18