aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-15 19:47:15 +0000
committerRichard M. Stallman1993-05-15 19:47:15 +0000
commit6e8d0db7e232ba187d5b3e9c548f1fe312b7fa99 (patch)
treedc23a09f0f48768e4d79186e7da32ff40fa99f81
parent356ba514a3cfc4a11c031fdce4c6bb81c4ed5ae3 (diff)
downloademacs-6e8d0db7e232ba187d5b3e9c548f1fe312b7fa99.tar.gz
emacs-6e8d0db7e232ba187d5b3e9c548f1fe312b7fa99.zip
(byte-compile-track-mouse): New function.
This is a kludge; track-mouse must be compiled better.
-rw-r--r--lisp/emacs-lisp/bytecomp.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 7d686b10057..76a0712dcad 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2610,6 +2610,7 @@ If FORM is a lambda or a macro, byte-compile it as a function."
2610(byte-defop-compiler-1 save-restriction) 2610(byte-defop-compiler-1 save-restriction)
2611(byte-defop-compiler-1 save-window-excursion) 2611(byte-defop-compiler-1 save-window-excursion)
2612(byte-defop-compiler-1 with-output-to-temp-buffer) 2612(byte-defop-compiler-1 with-output-to-temp-buffer)
2613(byte-defop-compiler-1 track-mouse)
2613 2614
2614(defun byte-compile-catch (form) 2615(defun byte-compile-catch (form)
2615 (byte-compile-form (car (cdr form))) 2616 (byte-compile-form (car (cdr form)))
@@ -2624,6 +2625,15 @@ If FORM is a lambda or a macro, byte-compile it as a function."
2624 (byte-compile-form-do-effect (car (cdr form))) 2625 (byte-compile-form-do-effect (car (cdr form)))
2625 (byte-compile-out 'byte-unbind 1)) 2626 (byte-compile-out 'byte-unbind 1))
2626 2627
2628(defun byte-compile-track-mouse (form)
2629 (byte-compile-form
2630 (list
2631 'funcall
2632 (list 'quote
2633 (list 'lambda nil
2634 (list 'track-mouse
2635 (byte-compile-top-level (nth 1 form))))))))
2636
2627(defun byte-compile-condition-case (form) 2637(defun byte-compile-condition-case (form)
2628 (let* ((var (nth 1 form)) 2638 (let* ((var (nth 1 form))
2629 (byte-compile-bound-variables 2639 (byte-compile-bound-variables