summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-03-10 17:22:59 +0000
committerRichard M. Stallman <rms@gnu.org>1994-03-10 17:22:59 +0000
commitd7846e08916ee27de2dabec62015cd4c7b34d1b1 (patch)
tree709549b5883f32dd737452d971fa60e78a166f62 /lisp/emacs-lisp/bytecomp.el
parentfcb8a0c5102f21ae55a8e19297b30af04a7083c4 (diff)
downloademacs-d7846e08916ee27de2dabec62015cd4c7b34d1b1.tar.gz
emacs-d7846e08916ee27de2dabec62015cd4c7b34d1b1.tar.bz2
emacs-d7846e08916ee27de2dabec62015cd4c7b34d1b1.zip
(byte-compile-track-mouse): Undo previous change,
but use byte-compile-top-level-body.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 437c5da3340..be117d1184f 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2689,11 +2689,13 @@ If FORM is a lambda or a macro, byte-compile it as a function."
(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))