Emacs-Lisp
Table of Contents
Syntax
Backquote
Backquote constructs allow you to quote a list, but selectively evaluate elements of that list. In the simplest case, it is identical to the special form quote. For example, these two forms yield identical results:
`(a list of (+ 2 3) elements) ;; ⇒ (a list of (+ 2 3) elements)
'(a list of (+ 2 3) elements) ;; ⇒ (a list of (+ 2 3) elements)
The special marker ‘,’ inside of the argument to backquote indicates a value that isn’t constant. The Emacs Lisp evaluator evaluates the argument of ‘,’, and puts the value in the list structure:
`(a list of ,(+ 2 3) elements)
a | list | of | 5 | elements |
Loop
References
- http://www.wilfred.me.uk - Absolutely awesome blogposts about Emacs lisp.