Tag Archives: Emacs-lisp

Casting Spels in Emacs Lisp

Conrad Barski (with Jim Webb) has released an Elisp version of his entertaining introduction to Lisp. Perfect for the N00b but even experts may find it delightful.

Posted in Programming | Tagged , | Leave a comment

Elisp and the Clojure Threading Macros

One set of Clojure features that its adherents are quite fond of is the threading macros ->, ->>, and -->. Unless you're familiar with Clojure, you probably don't know what they do. You might wonder why we should care. The … Continue reading

Posted in Programming | Tagged , | Leave a comment

Debugging Emacs Lisp

Nic Ferrier has posted a nice video tutorial on debugging Elisp. Ferrier covers the basics of instrumenting your code, stepping through it, setting breakpoints, and other edebug functions. He also demonstrates macrostep, a package that allows you to expand and … Continue reading

Posted in Programming | Tagged , | Leave a comment

Generating Random Trees

I've mentioned Atabey Kaygun's blog before. He mostly writes short posts on some mathematical algorithm, which he illustrates with Lisp. One such post was about generating random trees of nodes in such a way that every possible tree having nodes … Continue reading

Posted in Programming | Tagged , | Leave a comment

Emacs Idioms

Learning to configure and extend Emacs is pretty easy for those with a modicum of Lisp experience. Much has been written about the shortcomings of Elisp and while those criticisms have merit, it's easy for a Lisper to become comfortable … Continue reading

Posted in Programming | Tagged , | Leave a comment

An Emacs Style Guide

Bozhidar Batsov, proprietor of Emacs Redux, is starting an interesting new project: The Emacs Lisp Style Guide. The idea is to create a community contributed set of rules for “good Elisp form.” Normally, I'd hate that sort of thing. Almost … Continue reading

Posted in Programming | Tagged , | Leave a comment

Removing Repeated Occurrences of a Target Character From a String

The Problem While I was going through my RSS feed the other day, I came across this Programming Praxis problem and thought right away that the solution called for a state machine. It's one of those problems that seems easy … Continue reading

Posted in Programming | Tagged , | 2 Comments

Mutable String and Emacs Buffer Passing Style

Speaking of Christopher Wellons, he's got a very interesting post over at null program on mutable strings and Emacs buffer passing style. Wellons starts by pointing out that strings in Emacs Lisp, like many other languages, have a fixed size … Continue reading

Posted in Programming | Tagged , | Leave a comment

Emacs Byte Code

Over at null program, Christopher Wellons has an excellent post on Emacs Byte Code Internals. Most people won't care, of course, but we're nerds and we don't like black boxes. As Wellons says, the byte code internals are under documented—or … Continue reading

Posted in Programming | Tagged , | Leave a comment

Serializable Emacs Objects

Christopher Wellons over at null program has a very nice post on readable closures in Emacs. With the introduction of lexical scoping and, consequently, closures in Emacs 24 it's nice to discover that Elisp closures are readable. That is, you … Continue reading

Posted in General | Tagged , | Leave a comment