Tag Archives: Emacs-lisp

Finding Org Headers And Links

Today I was looking through Xah Lee’s ErgoEmacs Google+ Page (there’s a ton of interesting stuff there—you should check it out) when I came across this post in which someone asks how to find links in an Org mode buffer. … Continue reading

Posted in Programming | Tagged , , | 4 Comments

Lexical Binding In Emacs

A while ago in Lexical Scoping In Emacs Lisp I wrote that Emacs 24 will (finally) introduce lexical binding. Trawling through the EmacsWiki today I came across a page, Dynamic Binding Vs Lexical Binding, that describes the differences between the … Continue reading

Posted in Programming | Tagged , | 6 Comments

Does Elisp Suck?

One of the links from the CategoryCode page that I wrote about yesterday is the Why Does Elisp Suck page. The idea is to give people a place to be grumpy about Elisp. My first thought was that, really, Elisp … Continue reading

Posted in Programming | Tagged , | 12 Comments

Learning Elisp Idioms

I’ve said before that Emacs Lisp is pretty much like any other Lisp except for its library, which is specialized for editing tasks. One of the things I like about Xah Lee’s Emacs Lisp Tutorial is that it doesn’t concern … Continue reading

Posted in Programming | Tagged , | Leave a comment

JSON And S-Expressions Redux

After yesterday’s post on JSON Versus S-Expressions I thought that one obvious solution for people who want to use JSON tools to process logs is to have the (Lisp-based) logs convert themselves to JSON much like we did for S-expressions … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Lexical Scoping In Emacs Lisp

I’ve said before that Emacs Lisp is pretty much like other Lisps but one area where that is not true is in variable scoping. Common Lisp and Scheme both enjoy lexical scoping whereas Emacs Lisp has dynamic scoping. Until you … Continue reading

Posted in Programming | Tagged , | 6 Comments

File Loading In Emacs

Xah Lee has a very nice post up that explores Emacs Lisp’s Library System and what require, load, load-file, autoload, and feature really do and how they differ. This is one of those subject areas that most of us just … Continue reading

Posted in Programming | Tagged , | Leave a comment

Emacs Syntax Classes

This is sort of a note to myself. I sometimes need to know the character designation of a syntax class. Most often this is for use with the \sC syntax in a regexp. For example (looking-at “^\\s-*$\\|\\s-*;”) asks if we’re … Continue reading

Posted in Programming | Tagged , | 3 Comments

The Emacs regexp-opt Function

Sacha Chua introduced me to regexp-opt, an Emacs function that I hadn’t seen before. The idea is that regexp-opt will take a list of strings and return a more or less optimal regexp to recognize any of those strings. Because … Continue reading

Posted in Programming | Tagged , | Leave a comment

Solution To The Emacs Programming Challenge

A few days ago, I posed an Elisp programming challenge that asked you to make the record (record (date “2005-02-21T18:57:39”) (millis 1109041059800) (sequence 1) (logger nil) (level ‘SEVERE) (class “java.util.logging.LogManager$RootLogger”) (method ‘log) (thread 10) (emessage “A very very bad thing … Continue reading

Posted in Programming | Tagged , | 3 Comments