summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/byte-opt.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-03-03 03:38:21 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-03-03 03:38:21 +0000
commit42521cd491e5fdfdab5dec9a7c6c4d3452dde9fa (patch)
tree5f26f720539be77511c0627db66724b1388ea2dd /lisp/emacs-lisp/byte-opt.el
parent9f014775c4dd3b7902f55e40a72fd1cacb222c2d (diff)
downloademacs-42521cd491e5fdfdab5dec9a7c6c4d3452dde9fa.tar.gz
(byte-optimize-form-code-walker):
Walk into the body of lambdas after byte-compile-unfold-lambda.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
-rw-r--r--lisp/emacs-lisp/byte-opt.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el
index a4a0f1ad279..92d83b0ef67 100644
--- a/lisp/emacs-lisp/byte-opt.el
+++ b/lisp/emacs-lisp/byte-opt.el
@@ -383,7 +383,9 @@
form))
((or (byte-code-function-p fn)
(eq 'lambda (car-safe fn)))
- (byte-compile-unfold-lambda form))
+ (byte-optimize-form-code-walker
+ (byte-compile-unfold-lambda form)
+ for-effect))
((memq fn '(let let*))
;; recursively enter the optimizer for the bindings and body
;; of a let or let*. This for depth-firstness: forms that