Function: backquote

backquote is a macro defined in backquote.el.gz.

Signature

(backquote STRUCTURE)

Documentation

Argument STRUCTURE describes a template to build.

The whole structure acts as if it were quoted except for certain places where expressions are evaluated and inserted or spliced in.

For example:

b => (ba bb bc) ; assume b has this value
`(a b c) => (a b c) ; backquote acts like quote
`(a ,b c) => (a (ba bb bc) c) ; insert the value of b
`(a ,@b c) => (a ba bb bc c) ; splice in the value of b

Vectors work just like lists. Nested backquotes are permitted.

Note that some macros, such as pcase, use this symbol for other purposes.

View in manual

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/backquote.el.gz
(defmacro backquote (structure)
  "Argument STRUCTURE describes a template to build.

The whole structure acts as if it were quoted except for certain
places where expressions are evaluated and inserted or spliced in.

For example:

b              => (ba bb bc)		; assume b has this value
\\=`(a b c)       => (a b c)		; backquote acts like quote
\\=`(a ,b c)      => (a (ba bb bc) c)	; insert the value of b
\\=`(a ,@b c)     => (a ba bb bc c)	; splice in the value of b

Vectors work just like lists.  Nested backquotes are permitted.

Note that some macros, such as `pcase', use this symbol for other
purposes."
  (cdr (backquote-process structure)))