but use byte-compile-top-level-body.
(byte-compile-out 'byte-unbind 1))
(defun byte-compile-track-mouse (form)
- (let ((byte-compile-bound-variables byte-compile-bound-variables))
- (byte-compile-push-constant t)
- (byte-compile-variable-ref 'byte-varbind 'track-mouse)
- (byte-compile-body-do-effect (cdr form))
- (byte-compile-out 'byte-unbind 1)))
+ (byte-compile-form
+ (list
+ 'funcall
+ (list 'quote
+ (list 'lambda nil
+ (cons 'track-mouse
+ (byte-compile-top-level-body (cdr form))))))))
(defun byte-compile-condition-case (form)
(let* ((var (nth 1 form))