Land Of Lisp Book Giveaway

You will recall that I recently reviewed the book Land of Lisp. It turns out I've got two copies of it, and would like to give one away. To you. As a bounty.

i-daddf88430b2b2d64f6d869eb7139f83-LandOfLisp-thumb-300x395-70094.jpgThis is not a contest. It is a bounty. You can "win" a brand new copy of Land of Lisp very easily. What you need to do is to supply the best eLisp code, in my opinion, in the comments below. The code should have the following characteristics:

1) It should work, probably as an .el file. Code that you just think might work or has parts like "Then you do something like this bla bla bla" is interesting and you are welcome to post it, but it won't win you the book. But do post it ... someone else might get it to work and they can win!

2) It should be useful for me, in its working form. Assume I'm running the latest easily installable (via synaptic) version of emacs (23 or so). I am a writer and a blogger. I do all my writing in emacs. Keeping track of links, doing stuff writers might want to do with a file, stuff like that, could be good. I'm always trying to find links to old posts that I've written. I write my posts in HTML using HTML mode. I do a lot of stuff in org mode. Stuff that helps in writing code is probably NOT good for me, as I almost never do that.

Hint: I read these blogs:

Emacs-Fu
Got Emacs?
Mastering Emacs
minor emacs wizardry

And a few others.

Your code doesn't actually have to be yours, but give credit as to where you got it, and the original writer of the code gets the book! But if that is the code that "wins" the "bounty" then you'll get something too, I promise.

More like this

Land of Lisp: Learn to Program in Lisp, One Game at a Time! is a book about lisp programming. If you are into programming for fun, artificial intelligence, role playing games, or an emacs user, you should take a look at this book. I've got some info on this book as well as a few others for the…
After a little messing around with interesting emacs goodies, we might as well get right on to the good stuff. emacs uses a concept called "modes." You'll learn about that if you use emacs. For now, what you need to know is that there are "major modes" and "minor modes" and we're only interested…
Emacs is exactly like a religion. A western religion, at least, operates by testing the faith of its participants. The god coldly allows babies to die of unexplained illnesses, violence to affect the innocent, wars to break out, natural disasters to ruin everything. That we mortals have faith…
I just reconfigured my laptop with a new system (a form of Linux) and, almost as important, a new power brick. That second item may be more interesting than it sounds for some of you; I'll write that up later. This change also meant trashing my emacs configuration file. I didn't have to trash it…

Seems a bit silly to me. Offering a book on _learning_ LISP to the person that posts the best LISP code. A bit like offering mechanic lessons to the person that fixes your car the best?

By Anonymous Coward (not verified) on 23 Oct 2011 #permalink

I'd like the book, I haven't got the faintest idea how the code in LISP, so I think I qualify as someone who needs it.

By tracyanne (not verified) on 23 Oct 2011 #permalink

Yes, I, too, would love to have this book so I can finally learn some Lisp, but I don't know any Lisp yet, so you'll have to wait a bit for my submission. When does this bounty-hunt end?

Also, I use VIM, not Emacs. That would be another hurdle to take.

By Miel Bronneberg (not verified) on 24 Oct 2011 #permalink

Well, you have a point, all of you, but Land of Lisp, while not advanced, would be of interest to those who are messing around with emacs. I learned a LOT from the book yet I've written a few code snippets myself already. I could easily submit my "HTML tag wrapper" code for instance.

When does it end? Let's say January 1st, unless there is nothing brilliant by then, in which case, the following January 1st.

(write-line "Hello I don't know LISP!!! I need a book to teach me")

ejes, your code yields:
Debugger entered--Lisp error: (void-function write-line)
(write-line "Hello I don't know LISP!!! I need a book to teach me")
eval((write-line "Hello I don't know LISP!!! I need a book to teach me"))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
recursive-edit()
byte-code("\306 @\307=\203!