]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix slow "C-h f" in Emacs built without native compilation
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 Aug 2023 15:08:54 +0000 (18:08 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 Aug 2023 15:08:54 +0000 (18:08 +0300)
* lisp/help-fns.el (help-fns--signature): Don't try calling
'comp-function-type-spec' if Emacs was built without native
compilation.  (Bug#65250)

lisp/help-fns.el

index fc8f431fd110c759a4bad8e1afdd46d31bdeada8..bedc5a9e49b8a6dcc445b45d2052337a16e3493e 100644 (file)
@@ -715,7 +715,8 @@ the C sources, too."
           (unless (and (symbolp function)
                        (get function 'reader-construct))
             (insert high-usage "\n")
-            (when-let* ((res (comp-function-type-spec function))
+            (when-let* ((res (and (native-comp-available-p)
+                                  (comp-function-type-spec function)))
                         (type-spec (car res))
                         (kind (cdr res)))
               (insert (format