comparison src/eval.c @ 5265:5663ae9a8989

Warn at compile time, error at runtime, with (quote X Y), (function X Y). lisp/ChangeLog addition: 2010-09-16 Aidan Kehoe <kehoea@parhasard.net> * bytecomp.el (byte-compile-function-form, byte-compile-quote) (byte-compile-quote-form): Warn at compile time, and error at runtime, if a (quote ...) or a (function ...) form attempts to quote more than one object. src/ChangeLog addition: 2010-09-16 Aidan Kehoe <kehoea@parhasard.net> * eval.c (Ffunction, Fquote): Add argument information in the arguments: () format for these two special operators.
author Aidan Kehoe <kehoea@parhasard.net>
date Thu, 16 Sep 2010 14:10:44 +0100
parents 18c0b5909d16
children c096d8051f89 308d34e9f07d
comparison
equal deleted inserted replaced
5264:0d43872986b6 5265:5663ae9a8989
1268 1268
1269 There is an alternative, more readable, reader syntax for `quote': a Lisp 1269 There is an alternative, more readable, reader syntax for `quote': a Lisp
1270 object preceded by `''. Thus, `'x' is equivalent to `(quote x)', in all 1270 object preceded by `''. Thus, `'x' is equivalent to `(quote x)', in all
1271 contexts. A print function may use either. Internally the expression is 1271 contexts. A print function may use either. Internally the expression is
1272 represented as `(quote x)'). 1272 represented as `(quote x)').
1273
1274 arguments: (OBJECT)
1273 */ 1275 */
1274 (args)) 1276 (args))
1275 { 1277 {
1276 int nargs; 1278 int nargs;
1277 1279
1348 1350
1349 There is an alternative, more readable, reader syntax for `function': a Lisp 1351 There is an alternative, more readable, reader syntax for `function': a Lisp
1350 object preceded by `#''. Thus, #'x is equivalent to (function x), in all 1352 object preceded by `#''. Thus, #'x is equivalent to (function x), in all
1351 contexts. A print function may use either. Internally the expression is 1353 contexts. A print function may use either. Internally the expression is
1352 represented as `(function x)'). 1354 represented as `(function x)').
1355
1356 arguments: (SYMBOL-OR-LAMBDA)
1353 */ 1357 */
1354 (args)) 1358 (args))
1355 { 1359 {
1356 int nargs; 1360 int nargs;
1357 1361