Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-14 Thread Gary Johnson
Yep. Thanks for the patch, Ben. I had set org-babel-default-header-args:clojure to '((:noweb . "tangle")) in my .emacs, so I was getting the benefit of automatic noweb expansion when tangling (but not weaving). It's all fun and games until you break someone else's setup! ;) ~Gary On Wednes

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-12 Thread Ben Mabey
On 9/12/12 9:29 PM, Ben Mabey wrote: Thanks for the great example Gary! I've been meaning to try org-babel out for a while but never got around to it. I just tried your example and when I run org-babel-tangle the code blocks are not expanded into the source file, but rather the code block nam

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-12 Thread Ben Mabey
Thanks for the great example Gary! I've been meaning to try org-babel out for a while but never got around to it. I just tried your example and when I run org-babel-tangle the code blocks are not expanded into the source file, but rather the code block names are just inserted into the source d

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-12 Thread Denis Labaye
On Tue, Sep 11, 2012 at 10:13 PM, Gary Johnson wrote: > I just put together a simple example repo on GitHub, containing a literate > programming solution to the Potter Kata ( > http://codingdojo.org/cgi-bin/wiki.pl?KataPotter) using Emacs' org-babel > mode. You can check it out here: > > https

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-11 Thread Giorgio Valoti
Il giorno 07/set/2012, alle ore 15:45, lambdatronic ha scritto: > Thanks, Tim. This looks great. > > For those of you who don't want to go digging through the thread, here's the > summary: > > Step 1. Download nrepl-0.1.4-preview from Marmalade or MELPA (depends on > clojure-mode 1.11). > >

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-11 Thread Gary Johnson
I just put together a simple example repo on GitHub, containing a literate programming solution to the Potter Kata (http://codingdojo.org/cgi-bin/wiki.pl?KataPotter) using Emacs' org-babel mode. You can check it out here: https://github.com/lambdatronic/org-babel-example Also be sure to tak

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-08 Thread Denis Labaye
On Thu, Sep 6, 2012 at 6:42 PM, lambdatronic wrote: > For those people (like myself) who do a lot of Literate Programming in > Emacs using Clojure and org-babel, migrating to nrepl and nrepl.el is > somewhat non-trivial. This is because the existing Clojure support in > org-babel (ob-clojure.el)

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-07 Thread lambdatronic
Thanks, Tim. This looks great. For those of you who don't want to go digging through the thread, here's the summary: Step 1. Download nrepl-0.1.4-preview from Marmalade or MELPA (depends on clojure-mode 1.11). Step 2. Add this code to your .emacs file: ;; Patch ob-clojure to work with nrepl (

Re: Literate Programming in org-babel (ob-clojure.el) is broken under nrepl.el

2012-09-06 Thread Tim King
On Thu, Sep 6, 2012 at 9:42 AM, lambdatronic wrote: > For those people (like myself) who do a lot of Literate Programming in > Emacs using Clojure and org-babel, migrating to nrepl and nrepl.el is > somewhat non-trivial. This is because the existing Clojure support in > org-babel (ob-clojure.el)

Re: Literate programming in emacs - any experience?

2012-03-22 Thread Michael O'Keefe
Hey Tim, Just wanted to say thanks for this post and this is a great discussion. I have the privilege of being able to spend a small amount of my time working on "official unofficial" projects at my work. I had seen an earlier post by you where I think you may have posted the same code to extra

Re: Literate programming in emacs - any experience?

2012-03-22 Thread daly
On Tue, 2012-03-20 at 12:27 -0700, Tim Dysinger wrote: > I'm using org-mode, org-babel & swank for a "living" document I'm > writing. I'm generating a PDF which includes documentation, working > clojure code that generates incanter graphs. Also the generated > incanter graphs are included in the g

Re: Literate programming in emacs - any experience?

2012-03-21 Thread martin_clausen
Nurullah did an excellent post on org-mode, Clojure and inferior-lisp from Emacs a while back: http://nakkaya.com/2010/12/12/using-clojure-with-org-babel-and-inferior-lisp/ On Tuesday, March 20, 2012 8:27:23 PM UTC+1, Tim Dysinger wrote: > > I'm using org-mode, org-babel & swank for a "living" d

Re: Literate programming in emacs - any experience?

2012-03-20 Thread Tim Dysinger
I'm using org-mode, org-babel & swank for a "living" document I'm writing. I'm generating a PDF which includes documentation, working clojure code that generates incanter graphs. Also the generated incanter graphs are included in the generated (latex) PDF. On Monday, January 23, 2012 3:14:09 A

Re: Literate programming in emacs - any experience?

2012-03-18 Thread daly
On Sat, 2012-01-28 at 06:51 -0800, Folcon wrote: > Hi Tim, > > > Personally if you have done or would be interested in doing a quick > vid cast of how you progress through your workflow, I think that would > be very interesting. Sorry for the delay. Here is the answer to your request. Note that

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Hugo Duncan
Fogus writes: > I would love to see your .emacs setup around these tools. I'll put together a blog post - my .emacs files could do with a cleanup, so this sounds like a good excuse to get it done. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Fogus
I would love to see your .emacs setup around these tools. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Hugo Duncan
Mark Engelberg writes: > On Wed, Feb 1, 2012 at 5:38 AM, Hugo Duncan wrote: >> SLIME works fully within the code blocks. For example C-x C-e can be >> used to evaluate expressions. Paredit also works. > > My understanding is that unless you use C-c C-k to evaluate the entire > file (which I don'

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Mark Engelberg
On Wed, Feb 1, 2012 at 5:38 AM, Hugo Duncan wrote: > SLIME works fully within the code blocks. For example C-x C-e can be > used to evaluate expressions. Paredit also works. My understanding is that unless you use C-c C-k to evaluate the entire file (which I don't think works in a literate progra

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Hugo Duncan
Colin Yates writes: > Has anybody got any "real world usage reports" regarding using literate > programming in emacs? In particular, does paredit and slime work inside > the clojure "fragments" when using org.babel for example? For the update in Pallet docs [1], we've been using Jekyll with m

Re: Literate programming in emacs - any experience?

2012-02-01 Thread daly
On Wed, 2012-02-01 at 10:43 +, Sam Aaron wrote: > On 30 Jan 2012, at 17:07, daly wrote: > > > > The key result was that I discovered what I call my personal > > "irreducible error rate". If I do 100 things I will make 3 errors. > > This was independent of the task. So typing 100 characters has

Re: Literate programming in emacs - any experience?

2012-02-01 Thread Sam Aaron
On 30 Jan 2012, at 17:07, daly wrote: > > The key result was that I discovered what I call my personal > "irreducible error rate". If I do 100 things I will make 3 errors. > This was independent of the task. So typing 100 characters has > 3 wrong letters which were mostly caught while typing. Wri

Re: Literate programming in emacs - any experience?

2012-01-30 Thread daly
On Sat, 2012-01-28 at 10:04 -0500, daly wrote: > On Sat, 2012-01-28 at 06:51 -0800, Folcon wrote: > > Hi Tim, > > > > > > Personally if you have done or would be interested in doing a quick > > vid cast of how you progress through your workflow, I think that would > > be very interesting. > > So

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Folcon
I think I could live with that :)... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Colin Yates
Fair enough :) - deal. Assuming I ever get to leave my pit of despair (trying to get a well-known javascript charting library to render properly...how hard can these things be!). On 28 January 2012 15:41, daly wrote: > On Sat, 2012-01-28 at 15:27 +, Colin Yates wrote: > > I know I would fin

Re: Literate programming in emacs - any experience?

2012-01-28 Thread daly
On Sat, 2012-01-28 at 15:27 +, Colin Yates wrote: > I know I would find it incredibly helpful, and would consider paying a > token sum of money (£5?)... An amusing thought but no thanks. Buy yourself a pint and swear you'll at least try to write your next program in some form of literate prog

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Colin Yates
I know I would find it incredibly helpful, and would consider paying a token sum of money (£5?)... On 28 January 2012 15:04, daly wrote: > On Sat, 2012-01-28 at 06:51 -0800, Folcon wrote: > > Hi Tim, > > > > > > Personally if you have done or would be interested in doing a quick > > vid cast of

Re: Literate programming in emacs - any experience?

2012-01-28 Thread daly
On Sat, 2012-01-28 at 06:51 -0800, Folcon wrote: > Hi Tim, > > > Personally if you have done or would be interested in doing a quick > vid cast of how you progress through your workflow, I think that would > be very interesting. Sort of "extreme pair programming with everybody"? :-) There is no

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Folcon
Hi Tim, Personally if you have done or would be interested in doing a quick vid cast of how you progress through your workflow, I think that would be very interesting. Regards, Folcon -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Literate programming in emacs - any experience?

2012-01-28 Thread Ulises
Here's a paper that might be interesting to folk discussing in this thread: http://www.jstatsoft.org/v46/i03/paper Cheers U -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Re: Literate programming in emacs - any experience?

2012-01-24 Thread Colin Yates
Thanks Stuart. On 24 January 2012 14:18, Stuart Sierra wrote: > With a little hacking, org-babel works with Clojure editing & evaluation > in SLIME. I've been using it to write Clojure training materials. > > You need the latest versions of org-mode, SLIME, and clojure-mode. My > .emacs has the

Re: Literate programming in emacs - any experience?

2012-01-24 Thread Stuart Sierra
With a little hacking, org-babel works with Clojure editing & evaluation in SLIME. I've been using it to write Clojure training materials. You need the latest versions of org-mode, SLIME, and clojure-mode. My .emacs has the relevant elisp snippets. http://github.com/stuartsierra/dotfiles -S -

Re: Literate programming in emacs - any experience?

2012-01-24 Thread Colin Yates
The topic is literate programming in emacs, not eclipse ;). The trivial amount of Clojure I have done so far has all been in emacs and letting go of paredit, slime, and emacs in general is already pretty hard! On 24 January 2012 03:06, daly wrote: > > > > For Eclipse I suppose we could invent a

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 10:06 PM, daly wrote: > >> > For Eclipse I suppose we could invent a chunk syntax >> > and create a plugin. If people are interested perhaps we >> > could create a Literate Clojure plugin for Eclipse. See >> > http://www.eclipse.org/articles/Article-Your%20First% >> > 20Plu

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
> > For Eclipse I suppose we could invent a chunk syntax > > and create a plugin. If people are interested perhaps we > > could create a Literate Clojure plugin for Eclipse. See > > http://www.eclipse.org/articles/Article-Your%20First% > > 20Plug-in/YourFirstPlugin.html > > That would make Clojure

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 6:23 PM, daly wrote: > On Mon, 2012-01-23 at 16:17 -0500, Cedric Greevey wrote: >> On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: >> > It accepts either noweb syntax for chunks, as in: >> >    <>= >> >      (this is lisp code) >> >    @ >> >> A rather unfortunate choice of

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 16:17 -0500, Cedric Greevey wrote: > On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: > > It accepts either noweb syntax for chunks, as in: > ><>= > > (this is lisp code) > >@ > > A rather unfortunate choice of delimiter if you wanted to use this > with Clojure cod

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Andy Fingerhut
I've only briefly scanned what I think is the relevant code in tangle.lisp posted by Tim Daly, but it appears that the @ must be the first character on a line, which with indenting I've never seen in a Clojure source file. It would be a tiny change to make the @ required to be on a line by itself,

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Cedric Greevey
On Mon, Jan 23, 2012 at 11:19 AM, daly wrote: > It accepts either noweb syntax for chunks, as in: >    <>= >      (this is lisp code) >    @ A rather unfortunate choice of delimiter if you wanted to use this with Clojure code, since Clojure code frequently has internal @-signs for other purposes.

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Colin Yates
Excellent - very nice! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this gro

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Mark Engelberg
On Mon, Jan 23, 2012 at 5:14 AM, Colin Yates wrote: > Has anybody got any "real world usage reports" regarding using literate > programming in emacs?  In particular, does paredit and slime work inside the > clojure "fragments" when using org.babel for example? I had major problems trying to get p

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 07:18 -0800, Sam Ritchie wrote: > I've been wondering this as well -- I'm specifically curious about how > one might jump back and forth between literate source like this and > the REPL. I know you can evaluate code snippets into the repl; I'm > thinking of early steps like lo

Re: Literate programming in emacs - any experience?

2012-01-23 Thread daly
On Mon, 2012-01-23 at 05:14 -0800, Colin Yates wrote: > Hi all, > > > There are some excellent resources on this mailing list regarding > literate resources, but they are more based around the theory rather > than actual use. > > > Has anybody got any "real world usage reports" regarding using

Re: Literate programming in emacs - any experience?

2012-01-23 Thread Sam Ritchie
I've been wondering this as well -- I'm specifically curious about how one might jump back and forth between literate source like this and the REP

Re: Literate Programming in Emacs?

2012-01-13 Thread Phil Hagelberg
Andrew writes: > Eric asks: The only function ob-clojure uses from swank-clojure is > swank:interactive-eval-region' (used with `slime-eval') in the > org-babel-execute:clojure' function. Which function would now be used > to evaluate a region of clojure code? Would `slime-eval-region' > suffice?

Re: Literate Programming in Emacs?

2012-01-13 Thread Stuart Sierra
I was able to get org-babel evaluation working with Clojure. Requires latest versions of Clojure mode, Org mode, and Lein. Check out my dotfiles repo for examples. https://github.com/stuartsierra/dotfiles -S -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
Eric asks: The only function ob-clojure uses from swank-clojure is `swank:interactive-eval-region' (used with `slime-eval') in the `org-babel-execute:clojure' function. Which function would now be used to evaluate a region of clojure code? Would `slime-eval-region' suffice? -- You received thi

Re: Literate Programming in Emacs?

2012-01-12 Thread Phil Hagelberg
Andrew writes: > I found [1] from Eric Schulte which says to add certain package > archives such that ELPA finds swank-clojure... But what about the > swank-clojure elisp package being deprecated? swank-clojure.el is definitely deprecated, but there could still be code out there in the wild depe

Re: Literate Programming in Emacs?

2012-01-12 Thread Andrew
I found [1] from Eric Schulte which says to add certain package archives such that ELPA finds swank-clojure... But what about the swank-clojure elisp package being deprecated? (By the way, I do get further now... the clojure code evaluates) (setq package-archives '(("original". "ht

Re: Literate Programming in Emacs?

2012-01-11 Thread Andrew
As you know, now I get org-babel-execute:clojure:Cannot open load file: swank-clojure The method org-babel-execute:clojure in my .emacs.d/elpa/org-2029/ob-clojure.el file says (require 'swank-clojure). Given that the swank-clojure elisp package is deprecated and should not be used what sho

Re: Literate programming

2011-12-26 Thread Jay Edwards
Like this? http://brighterplanet.github.com/flight/impact_model.html You can see how they handle it (from a Ruby-centric perspective) here: https://github.com/brighterplanet/numbers/blob/gh-pages/_posts/2010-12-02-github-pages-rocco-and-rake-file-tasks.markdown The same approach should work fin

Re: Literate Programming

2011-12-24 Thread daly
On Sat, 2011-12-24 at 12:56 -0600, Jay Edwards wrote: > Like this? http://brighterplanet.github.com/flight/impact_model.html My first reaction, after the first reading was "almost ok". The task is reasonably mathematical so it seems useful to show the equations. Unfortunately, at the end, I hav

Re: Literate programming

2011-12-23 Thread Adam Getchell
On Thu, Dec 22, 2011 at 11:54 AM, daly wrote: > On Tue, 2011-12-20 at 00:26 -0800, Adam Getchell wrote: > > BTW I looked at marginalia+leiningen, which seems to work for my > > purposes except I'm unclear where to put the .tex files. > > I'm not sure what this sentence means. The .tex files ARE t

Re: Literate programming

2011-12-23 Thread daly
>I'll do everything I can to help. I have tons of thoughts (as you >might guess); but I haven't demonstrated myself to be a great coder, >yet. I feel like I'm a coder who needs something like literate >programming to be great, so it's kind of a chicken-and-egg problem. >I'm already partway there

Re: Literate programming

2011-12-23 Thread daly
On Thu, 2011-12-22 at 20:19 -0800, nchurch wrote: > I'll do everything I can to help. I have tons of thoughts (as you > might guess); but I haven't demonstrated myself to be a great coder, > yet. I feel like I'm a coder who needs something like literate > programming to be great, so it's kind of

Re: Literate programming

2011-12-22 Thread Cedric Greevey
On Thu, Dec 22, 2011 at 11:59 PM, nchurch wrote: > What I really want you to notice is how we are faced with a choice: > either we improve the library code (presumably by making split > optionally return an array of separators matched by the regex for > later reassembly by join, perhaps in metadat

Re: Literate programming

2011-12-22 Thread nchurch
While we're on the topic of a literate Github, let me just point out that we might want to go just a little beyond Github to the way we write code itself. Look again at the capitalize-every-word function I defined above. In my original unshortened commentary, I included also this: .

Re: Literate programming

2011-12-22 Thread nchurch
I'll do everything I can to help. I have tons of thoughts (as you might guess); but I haven't demonstrated myself to be a great coder, yet. I feel like I'm a coder who needs something like literate programming to be great, so it's kind of a chicken-and-egg problem. I'm already partway there with

Re: Literate programming

2011-12-22 Thread daly
On Thu, 2011-12-22 at 17:53 -0800, nchurch wrote: > Firstly, there really needs to be something like a Github for literate > programming. What a great idea! I'll see what I can do. Tim Daly -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Literate programming

2011-12-22 Thread nchurch
Why should I write English in the first place? Because it helps me to think; and it helps me to "program" other people to think like me. But I would never have learned English unless along the way it gave me near-term results. It should follow, then, that telling people to write literate programs

Re: Literate programming

2011-12-22 Thread Larry Johnson
Probably the most effective way to really hammer the benefits of literate programming into the clojure community would be to take a manageable but serious and well known clojure program, module, or library, and render it into literate form. As a clojure programmer, I'm not even there. But as some

Re: Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Linus Ericsson
Yes, it does. I had problems with some midje-facts crashing the rendering in marginalia, but was able to just give the files as consecutive arguments as a work around. lein marg src/app/core.clj src/app/another/file.clj wildcards works fine as well. This problem with midje-facts being incompatib

Re: Literate programming/TDD with Leiningen + midje + marginalia

2011-12-22 Thread Alex Baranosky
Hi Adam, It seems like making it so that Marginalia allows you to specify which directories to use would be the ideal case, instead of feeling a need to lump all your tests in the src directory. I wonder if Marginalia already supports this? Alex On Wed, Dec 21, 2011 at 11:25 PM, Adam Getchell w

Re: Literate programming

2011-12-22 Thread daly
On Thu, 2011-12-22 at 15:35 -0500, Larry Johnson wrote: > > > On Thu, Dec 22, 2011 at 2:54 PM, daly > wrote: > > > > > The combination of literate + TDD seems forbidding. > > > Are you finding it hard to explain why you wrote a test? >

Re: Literate programming

2011-12-22 Thread Larry Johnson
On Thu, Dec 22, 2011 at 2:54 PM, daly wrote: > > > > > The combination of literate + TDD seems forbidding. > > Are you finding it hard to explain why you wrote a test? > > Tim Daly > > I decided awhile back when trying to answer questions about literate programming, that people get caught up in t

Re: Literate programming

2011-12-22 Thread daly
On Tue, 2011-12-20 at 00:26 -0800, Adam Getchell wrote: > > > On Fri, Oct 28, 2011 at 2:45 PM, Damion Junk wrote: > I have also been using Emacs/Org-mode/Babel/R lately, mostly > as a way to have easily modifiable write up and source code > for assignments in statistics c

Re: Literate programming

2011-12-22 Thread Adam Getchell
On Fri, Oct 28, 2011 at 2:45 PM, Damion Junk wrote: > I have also been using Emacs/Org-mode/Babel/R lately, mostly as a way to > have easily modifiable write up and source code for assignments in > statistics courses. I suppose this is one valid use, but I'm using it less > to communicate code me

Re: Literate Programming in Emacs?

2011-12-07 Thread Robert McIntyre
Here's a pew literate programs I've written, as well as the website on which they are hosted. http://hg.bortreb.com/abomination/ http://hg.bortreb.com/aurellem/ http://hg.bortreb.com/cortex/ http://www.aurellem.com I use some emacs scripts to automate tangling and weaving. http://hg.bortreb.com/

Re: Literate Programming in Emacs?

2011-11-29 Thread Stuart Sierra
Haven't done any recently. A long, long time ago I wrote a Common Lisp FFI tool using a Literate Programming tool called noweb. It's so old it predates GitHub: http://stuartsierra.com/software/perl-in-lisp -S -- You received this message because you are subscribed to the Google Groups "Clojure"

Re: Literate Programming in Emacs?

2011-11-29 Thread daly
I would be really interested to see some examples of literate programs. Please consider releasing them as open source, possibly pushed to github. Tim Daly On Tue, 2011-11-29 at 11:26 -0800, Stuart Sierra wrote: > Here's the relevant bit of my .emacs for Babel + Clojure: > https://github.com/stuar

Re: Literate Programming in Emacs?

2011-11-29 Thread Stuart Sierra
Here's the relevant bit of my .emacs for Babel + Clojure: https://github.com/stuartsierra/dotfiles/blob/cb88b1ca020fd5beebb3de092f12aa27daddd779/.emacs#L203 This requires Org mode version 7.7. I mostly use inferior-lisp mode instead of SWANK/SLIME. -S -- You received this message because you a

Re: Literate Programming in Emacs?

2011-11-29 Thread Phil Hagelberg
On Tue, Nov 29, 2011 at 8:34 AM, Andrew wrote: > How is it that you have swank-clojure in your elpa directory? M-x > list-packages does not have swank-clojure as an option. The swank-clojure elisp package is deprecated and should not be used. > Why does your elpa directory have 1.1.0 and your pr

Re: Literate Programming in Emacs?

2011-11-29 Thread Andrew
Thanks -- it does help somewhat... 1. How is it that you have swank-clojure in your elpa directory? M-x list-packages does not have swank-clojure as an option. 2. Why does your elpa directory have 1.1.0 and your project file have 1.3.0? 3. Is there a choice between SLIME and infer

Re: Literate Programming in Emacs?

2011-11-24 Thread ck
I did not encounter that particular problem. But to compare, my project file is ... :dependencies [[org.clojure/clojure "1.3.0"]] :dev-dependencies [[jline "0.9.94"] [swank-clojure "1.3.0" :exclusions [org.clojure/ clojure]]] ... and my current ~/.emacs.d/elpha fold

Re: Literate Programming in Emacs?

2011-11-23 Thread Andrew
Thanks! Next step: org-babel-execute:clojure:Cannot open load file: swank-clojure ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - pleas

Re: Literate Programming in Emacs?

2011-11-23 Thread ck
Andrew: Make sure you have (require 'ob-clojure) in your controlling emacs file (mine is .el). -ck On Nov 23, 12:00 pm, Andrew wrote: > Here's my attempt at following the steps > athttp://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html. > *The > result is org-babel-exec

Re: Literate Programming in Emacs?

2011-11-23 Thread Andrew
Here's my attempt at following the steps at http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html. *The result is org-babel-execute-src-block: No org-babel-execute function for clojure * 1. The recommendation was to follow "Connecting with SLIME" from https://github.

Re: Literate Programming in Emacs?

2011-11-22 Thread Devin Walters
I have a bit of a weird setup I think. I put clojure-1.3.0.jar in ~/.clojure and set a variable for org-mode according to the advanced setup instructions. I also run org-mode from source. As a result I make sure to add org-mode's lisp/ dir to my load path. Sent via mobile On Nov 22, 2011, at 4

Re: Literate Programming in Emacs?

2011-11-22 Thread Andreas Kostler
It should work as expected if you follow http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html and use the stand-alone version of swank-clojure (Section Connecting with SLIME https://github.com/technomancy/swank-clojure). Looking at ob-clojure.el http://kanis.fr/hg/lisp/org/ob-clo

Re: Literate Programming in Emacs?

2011-11-22 Thread Andrew
I should add that I am starting with a working setup (able to M-x clojure-jack-in and compile and execute stuff in the REPL as expected). -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com No

Re: Literate Programming example

2011-11-21 Thread Thorsten Wilms
On 11/20/2011 11:18 PM, Daniel Jomphe wrote: On Sunday, November 20, 2011 5:50:31 AM UTC-5, thorwil wrote: I'm following one or the other Free Software project where an incredible amount of discussions happen regarding work-flow and features. So much thought, so many decisions on

Re: Literate Programming example

2011-11-20 Thread Daniel Jomphe
On Sunday, November 20, 2011 6:17:13 AM UTC-5, robermann79 wrote: > > FYI: some time ago the Opensuse project used such a collaborative tool > (http://www.co-ment.com) in order to get a shared mindset of its > goals. > This was the result, see how clicking on higlight words points to > their commen

Re: Literate Programming example

2011-11-20 Thread Daniel Jomphe
On Sunday, November 20, 2011 5:50:31 AM UTC-5, thorwil wrote: > > I'm following one or the other Free Software project where an incredible > amount of discussions happen regarding work-flow and features. So much > thought, so many decisions on details, but for the most part, the > implementation

Re: Literate Programming example

2011-11-20 Thread Roberto Mannai
FYI: some time ago the Opensuse project used such a collaborative tool (http://www.co-ment.com) in order to get a shared mindset of its goals. This was the result, see how clicking on higlight words points to their comments: https://lite.co-ment.com/text/lNPCgzeGHdV/view/ On Sat, Nov 19, 2011 at 1

Re: Literate Programming example

2011-11-20 Thread Thorsten Wilms
On 11/19/2011 10:21 PM, Daniel Jomphe wrote: With the tools available to us today, there's no reason why we at least shouldn't have everything needed to make literate programming more seamless, more natural. For example, while reading your toy example, I found myself wanting to ask a question or

Re: Literate Programming example

2011-11-19 Thread Daniel Jomphe
On Saturday, November 19, 2011 2:37:48 PM UTC-5, TimDaly wrote: > > However, as Knuth points out and as I've already experienced, writing > a program in literate form vastly reduces the errors. There are two > causes I can find. > > First, if I have to write an explanation then I have to justify m

Re: Literate Programming example

2011-11-19 Thread daly
On Sat, 2011-11-19 at 14:35 +0100, Laurent PETIT wrote: > Hello, > > 2011/11/19 TimDaly > On Fri, 2011-11-18 at 20:02 -0800, Daniel Jomphe wrote: > > On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly > wrote: > > Many of you asked me to show an example

Re: Literate Programming example

2011-11-19 Thread Laurent PETIT
Hello, 2011/11/19 TimDaly > On Fri, 2011-11-18 at 20:02 -0800, Daniel Jomphe wrote: > > On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly wrote: > > Many of you asked me to show an example of a literate > > program and demonstrate the use of the tangle function. > > > >

Re: Literate Programming example

2011-11-18 Thread TimDaly
On Fri, 2011-11-18 at 20:02 -0800, Daniel Jomphe wrote: > On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly wrote: > Many of you asked me to show an example of a literate > program and demonstrate the use of the tangle function. > > I usually use Latex for literate work

Re: Literate Programming example

2011-11-18 Thread Daniel Jomphe
On Friday, November 18, 2011 7:17:08 AM UTC-5, TimDaly wrote: > > Many of you asked me to show an example of a literate > program and demonstrate the use of the tangle function. > > I usually use Latex for literate work but I've done > this example using HTML and tags. > > I've written a self-refe

Re: Literate Programming example

2011-11-18 Thread daly
On Fri, 2011-11-18 at 07:07 -0800, bernardH wrote: > > On Nov 18, 1:17 pm, daly wrote: > > Many of you asked me to show an example of a literate > > program and demonstrate the use of the tangle function. > > Thanks to your perseverance, I am looking into practicing literate > programming. > >

Re: Literate Programming example

2011-11-18 Thread bernardH
On Nov 18, 1:17 pm, daly wrote: > Many of you asked me to show an example of a literate > program and demonstrate the use of the tangle function. Thanks to your perseverance, I am looking into practicing literate programming. However, I decided to settle for emacs org-mode environment with the

Re: Literate Programming example

2011-11-18 Thread László Török
it works for me. Las 2011/11/18 daly > I believe I fixed it. > Please try it again and let me know. > > Tim > > On Fri, 2011-11-18 at 07:46 -0500, Chas Emerick wrote: > > On Nov 18, 2011, at 7:17 AM, daly wrote: > > > > > http://daly.literatesoftware.com/lithtml/litprog.html > > > > FYI, this is

Re: Literate Programming example

2011-11-18 Thread daly
I believe I fixed it. Please try it again and let me know. Tim On Fri, 2011-11-18 at 07:46 -0500, Chas Emerick wrote: > On Nov 18, 2011, at 7:17 AM, daly wrote: > > > http://daly.literatesoftware.com/lithtml/litprog.html > > FYI, this is 404 at the moment. > > - Chas > -- You received this

Re: Literate Programming example

2011-11-18 Thread daly
sigh. Try http://daly.axiom-developer.org/lithtml/litprog.html On Fri, 2011-11-18 at 07:46 -0500, Chas Emerick wrote: > On Nov 18, 2011, at 7:17 AM, daly wrote: > > > http://daly.literatesoftware.com/lithtml/litprog.html > > FYI, this is 404 at the moment. > > - Chas > -- You received th

Re: Literate Programming example

2011-11-18 Thread Chas Emerick
On Nov 18, 2011, at 7:17 AM, daly wrote: > http://daly.literatesoftware.com/lithtml/litprog.html FYI, this is 404 at the moment. - Chas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com N

Re: Literate programming

2011-10-29 Thread Damion Junk
I have also been using Emacs/Org-mode/Babel/R lately, mostly as a way to have easily modifiable write up and source code for assignments in statistics courses. I suppose this is one valid use, but I'm using it less to communicate code meaning and more as a convenient way to perform analysis, lo

Re: Literate programming

2011-10-28 Thread Stefan Kamphausen
Clojure moved off the local optimum of common lisp > I can't help, but I really like that quote. Nice meme :-) Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts f

Re: Literate programming

2011-10-28 Thread daly
On Fri, 2011-10-28 at 09:54 -0700, Mark Engelberg wrote: > On Thu, Oct 27, 2011 at 10:58 AM, daly wrote: > >> Have there been any new developments on the literate programming / > >> Clojure front, in terms of tools that leverage existing build tools, > >> test suites, generating meaningful line nu

Re: Literate programming

2011-10-28 Thread Mark Engelberg
On Thu, Oct 27, 2011 at 10:58 AM, daly wrote: >> Have there been any new developments on the literate programming / >> Clojure front, in terms of tools that leverage existing build tools, >> test suites, generating meaningful line numbers for stack traces and >> debugging? >> > > The question is i

Re: Literate programming

2011-10-28 Thread daly
On Fri, 2011-10-28 at 11:59 +0200, Tassilo Horn wrote: > Hi Tim, > > while I agree that good documentation is important for maintaining and > developing further a given code base, I always wonder how literate > programming deals with refactoring and larger restructuring. I mean, in > basically al

  1   2   >