Tag Archives: Emacs-lisp

Prompting for User Input with Elisp

Xah Lee has a nice tutorial on getting user input with Emacs Lisp. Most Elisp programmers are aware of the interactive control strings for this purpose and most of us probably use that for most occasions requiring user input: (defun … Continue reading

Posted in Programming | Tagged , | Leave a comment

Searching for Blog Posts by Title

Last year I wrote about how I search for a blog post’s org file by the post’s title. That involved bringing up a dired buffer for the directory containing the source org files and doing a dired-do-search for a regular … Continue reading

Posted in Programming | Tagged , | Leave a comment

More On Lexical Scoping

Yesterday I posted a reminder about Yoo Box’s excellent article on lexical binding in Emacs 24. I recently came across a post by Sergey M over at On elisp and programming in general that also considers lexical scoping in Emacs … Continue reading

Posted in Programming | Tagged , | Leave a comment

A Reminder About Lexical Scoping in Emacs

Back in January, I wrote a short post recommending Yoo Box’s piece on lexical scoping in Emacs 24. Now that Emacs 24 is officially released, this seems like a good time to remind folks about Box’s post. If the idea … Continue reading

Posted in Programming | Tagged , | Leave a comment

Reverting All Buffers

I have two machines on which I do most of my writing and development: a 27″ iMac and a 5 year old MacBook Pro. I use both of these computers everyday so I need to keep them in sync. I … Continue reading

Posted in Programming | Tagged , | 9 Comments

The Emacs CL Controversy

The other day I was griping to Xah Lee off-line about the refusal of the Emacs maintainers to add the CL package functionality to the core Elisp distribution. Lee pointed me at several threads on the emacs-devel mailing list that … Continue reading

Posted in Programming | Tagged , | 3 Comments

Solution to the Two Challenges

The other day, I presented two Elisp coding challenges. I specified Elisp because Irreal readers tend to like Emacs related posts. The down side of that is that several of you worried about bignums and other Emacs limitations. That wasn’t … Continue reading

Posted in Programming | Tagged , | 2 Comments

Two Elisp Challenges

I ran across a couple of nice interview questions and an interesting story over at Tanya Khovanova’s Math Blog. The two questions are: Given a list of integers from 1 to n but with one of the integers missing, write … Continue reading

Posted in Programming | Tagged , | 8 Comments

TPK In Common Lisp

Yesterday I wrote about the Trabb Pardo Knuth algorithm and gave an implementation in Emacs Lisp. Elisp allows an nice implementation but was a bit frustrating because the Elisp interpreter handles overflows internally and never signals an overflow condition. Therefore, … Continue reading

Posted in Programming | Tagged , , | 2 Comments

The Trabb Pardo Knuth Algorithm in Elisp

The latest Programming Praxis Exercise is interesting. Back in 1973, Luis Trabb Pardo and Don Knuth published an algorithm that was meant to assess the power of a programming language. The algorithm was Ask for 11 numbers to be read … Continue reading

Posted in Programming | Tagged , | 4 Comments