[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-26 Thread Sébastien Vauban
Hi Dan, Dan Davison wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: management issue: I find it difficult (a) to remember what all my source code snippets are called and (b) to navigate to any given snippet. I

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-24 Thread Dan Davison
Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: [...] management issue: I find it difficult (a) to remember what all my source code snippets are called and (b) to navigate to any given snippet. I would love to see

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-24 Thread Seth Burleigh
You are correct, while the tangling works, the detangling still needs to be updated to take into account the fact that there may now be nested sections of tangled code -- which it doesn't currently.  Hopefully this wont be too large of a code change... It probably wouldnt involve much code

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-24 Thread Eric S Fraga
Dan Davison dandavis...@gmail.com writes: [...] If you know the name of the code block you want to find you can use `org-babel-goto-named-src-block' (bound to C-c C-v g) to jump to a named code block (∃ a similar function for finding named results). Would anyone object if I change that

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-18 Thread Seth Burleigh
Your cursor must be on a code line, not on a special comments line. I've had the same behavior once. Just move down your cursor one or two lines away... Are you saying you have succesfully detangled noweb embedded code? If so, ill have to take a look at the code to see where the bug is. It

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-18 Thread Seth Burleigh
Please try using a decent sender, or at least no HTML. I know this cannot be obvious, though, but look at the results: Not to get off on a tanget, but im using gmail. Looks perfect in my gmail account - i guess your email doesnt support html markup? I just reply to all, and it

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-18 Thread Seth Burleigh
ok, so im not sure how you got it working, but heres the problem in the code (i think). We start with the tangled output -- ;; [[file:~/Desktop/test.org][/home/seth/Desktop/test\.org:2]] (let ((x 1)) (message x=%s x) ;;

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-18 Thread Bastien
Hi Seth, Seth Burleigh wbur...@gmail.com writes: Not to get off on a tanget, but im using gmail. Looks perfect in my gmail account - i guess your email doesnt support html markup? I just reply to all, and it automatically does the markup. I guess ill have to learn how to disable it:) Easy

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-18 Thread Eric Schulte
Hi Seth, You are correct, while the tangling works, the detangling still needs to be updated to take into account the fact that there may now be nested sections of tangled code -- which it doesn't currently. Hopefully this wont be too large of a code change... Seth Burleigh wbur...@gmail.com

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Eric, Eric Schulte wrote: I've just pushed up a new header argument combination :comments noweb which will wrap all embedded noweb sections in link comments, as demonstrated in the following example. Hopefully this should be sufficient for a complete mapping from a pure code file back to

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-17 Thread Eric Schulte
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Eric Schulte wrote: I've just pushed up a new header argument combination :comments noweb which will wrap all embedded noweb sections in link comments, as demonstrated in the following example. Hopefully this should be

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Eric, Eric Schulte wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Eric Schulte wrote: I've just pushed up a new header argument combination :comments noweb which will wrap all embedded noweb sections in link comments, as demonstrated in the following example. Hopefully this

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-17 Thread Sébastien Vauban
Hi Seth, Seth Burleigh wrote: On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte span dir=ltrmailto:schulte.e...@gmail.com/span wrote: Please try using a decent sender, or at least no HTML. I know this cannot be obvious, though, but look at the results: #+source: wrappablebr #+begin_src

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-11 Thread Eric Schulte
Seth Burleigh wbur...@gmail.com writes: My bad. I believe i did look up the functions, but they didn't do what i needed (or so i thought). The code doesn't matter too much, let me explain the idea. A file may contain many blocks of code. Lets look at a arbitrary block A. In the end, block A

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Štěpán Němec
Eric Schulte schulte.e...@gmail.com writes: Hi Seth, Thanks for the thoughtful comments. I especially like the method of literate programming described in your second proposal. Over the last months I have switched from working mainly in code blocks to working mainly in pure source files

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Eric Schulte
Štěpán Němec step...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: Hi Seth, Thanks for the thoughtful comments. I especially like the method of literate programming described in your second proposal. Over the last months I have switched from working mainly in code blocks

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Seth Burleigh
As an update, ive been working on something i call chunks. Basically, they are blocks of code (i.e. emacs overlays) that are linked together. So far, i have each ns of my clojure code in one source block which is then tangled to one file. So, i would like to open the tangled file and then make

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Eric Schulte
Hi Seth, I looked briefly at your code and much of it re-implements functionality already provided by org-mode using a slight variation of Org-mode syntax. While I fully understand that it is often easier to write your own functions rather than look up and parse existing functions, I think that

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Seth Burleigh
My bad. I believe i did look up the functions, but they didn't do what i needed (or so i thought). The code doesn't matter too much, let me explain the idea. A file may contain many blocks of code. Lets look at a arbitrary block A. In the end, block A will somehow become noweb embedded into a

Re: [Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-09 Thread Seth Burleigh
and i misspoke also, the previous .org file wouldnt work since that uses noweb. Heres a simple new example. test.org Description: Binary data ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org