1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Fix slow "C-h f" in Emacs built without native compilation

* lisp/help-fns.el (help-fns--signature): Don't try calling
'comp-function-type-spec' if Emacs was built without native
compilation.  (Bug#65250)
This commit is contained in:
Eli Zaretskii 2023-08-14 18:08:54 +03:00
parent cca14e0253
commit 545f95d1a3

View 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