Mercurial > emacs
comparison lisp/emacs-lisp/backquote.el @ 91204:53108e6cea98
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 06 Dec 2007 09:51:45 +0000 |
parents | b83d0dadb2a7 fb6683560bac |
children | 606f2d163a64 |
comparison
equal
deleted
inserted
replaced
91203:db40129142b2 | 91204:53108e6cea98 |
---|---|
90 | 90 |
91 (defconst backquote-splice-symbol '\,@ | 91 (defconst backquote-splice-symbol '\,@ |
92 "Symbol used to represent a splice inside a backquote.") | 92 "Symbol used to represent a splice inside a backquote.") |
93 | 93 |
94 ;;;###autoload | 94 ;;;###autoload |
95 (defmacro backquote (arg) | 95 (defmacro backquote (structure) |
96 "Argument STRUCTURE describes a template to build. | 96 "Argument STRUCTURE describes a template to build. |
97 | 97 |
98 The whole structure acts as if it were quoted except for certain | 98 The whole structure acts as if it were quoted except for certain |
99 places where expressions are evaluated and inserted or spliced in. | 99 places where expressions are evaluated and inserted or spliced in. |
100 | 100 |
104 `(a b c) => (a b c) ; backquote acts like quote | 104 `(a b c) => (a b c) ; backquote acts like quote |
105 `(a ,b c) => (a (ba bb bc) c) ; insert the value of b | 105 `(a ,b c) => (a (ba bb bc) c) ; insert the value of b |
106 `(a ,@b c) => (a ba bb bc c) ; splice in the value of b | 106 `(a ,@b c) => (a ba bb bc c) ; splice in the value of b |
107 | 107 |
108 Vectors work just like lists. Nested backquotes are permitted." | 108 Vectors work just like lists. Nested backquotes are permitted." |
109 (cdr (backquote-process arg))) | 109 (cdr (backquote-process structure))) |
110 | 110 |
111 ;; GNU Emacs has no reader macros | 111 ;; GNU Emacs has no reader macros |
112 | 112 |
113 ;;;###autoload | 113 ;;;###autoload |
114 (defalias '\` (symbol-function 'backquote)) | 114 (defalias '\` (symbol-function 'backquote)) |