Don't quote lambdas.
This commit is contained in:
parent
01ad4eacc2
commit
00c804d5e6
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue