]> git.eshelyaron.com Git - emacs.git/commitdiff
do not native compile interactive functions
authorAndrea Corallo <akrl@sdf.org>
Tue, 5 Nov 2019 19:34:12 +0000 (20:34 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:01 +0000 (11:38 +0100)
lisp/emacs-lisp/bytecomp.el

index 836377b4df3a4685a304fb2e192f5f0591747ebd..04c80c17577660ce5f4b183c4319f954b17f60d0 100644 (file)
@@ -2713,7 +2713,10 @@ not to take responsibility for the actual compilation of the code."
               (push (if macro
                         (make-byte-to-native-top-level
                          :form `(defalias ',name '(macro . ,code) nil))
-                      (make-byte-to-native-function :name name :data code))
+                      (if (commandp code)
+                          (make-byte-to-native-top-level ;FIXME compile interactive functions.
+                           :form `(defalias ',name ,code))
+                        (make-byte-to-native-function :name name :data code)))
                     byte-to-native-top-level-forms))
             ;; Output the form by hand, that's much simpler than having
             ;; b-c-output-file-form analyze the defalias.