From 42521cd491e5fdfdab5dec9a7c6c4d3452dde9fa Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 3 Mar 2008 03:38:21 +0000 Subject: [PATCH] (byte-optimize-form-code-walker): Walk into the body of lambdas after byte-compile-unfold-lambda. --- lisp/ChangeLog | 5 +++++ lisp/emacs-lisp/byte-opt.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 08dcb611ba7..4cf70876075 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-03-03 Stefan Monnier + + * emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): + Walk into the body of lambdas after byte-compile-unfold-lambda. + 2008-03-03 Glenn Morris * emulation/viper-util.el (viper-frame-value): Prefer buffer-local 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 -- 2.39.2