Don't quote lambdas.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Dec 2000 16:15:18 +0000 (16:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Dec 2000 16:15:18 +0000 (16:15 +0000)
lispref/debugging.texi
lispref/functions.texi

index d8b465a..50f5b61 100644 (file)
@@ -153,7 +153,7 @@ this:
 
 @example
 (add-hook 'after-init-hook
-          '(lambda () (setq debug-on-error t)))
+          (lambda () (setq debug-on-error t)))
 @end example
 
 @node Infinite Loops
index de726e5..fa45e9e 100644 (file)
@@ -809,7 +809,7 @@ anonymous function.  Such a list is valid wherever a function name is.
 
 @smallexample
 @group
-(setq silly (append '(lambda (x)) (list (list '+ (* 3 4) 'x))))
+(setq silly (append (lambda (x)) (list (list '+ (* 3 4) 'x))))
 @result{} (lambda (x) (+ 12 x))
 @end group
 @end smallexample
@@ -856,7 +856,7 @@ passing it a function to double a number:
 @example
 @group
 (defun double-property (symbol prop)
-  (change-property symbol prop '(lambda (x) (* 2 x))))
+  (change-property symbol prop (lambda (x) (* 2 x))))
 @end group
 @end example