emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...


From: John Wiegley
Subject: Re: [Orgmode] Newbie elisp programmer requests a pointer to backtics...
Date: Wed, 14 Apr 2010 09:35:43 -0400

A back-quoted form is just like a quoted form, except every ,foo is substituted 
by the evaluation of foo.

  (defvar foo 123)

  `(foo ,foo) => '(foo 123)

They can be nested:

  `(foo `(foo ,,foo))

And lists can be directly interpolated:

  (defvar foo '(123 456))

  `(foo ,foo)  => '(foo (123 456))
  `(foo ,@foo) => '(foo 123 456)

You can do this to see how any form will expand:

  M-: (pp-to-string (macroexpand `(foo ,foo)))

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]