* lisp/help.el (help-function-arglist): Fix non nativecomp builds (bug#43914)

This commit is contained in:
Andrea Corallo 2020-10-10 21:30:04 +02:00
parent 4b924ef87d
commit feed53f8b5

View file

@ -1335,7 +1335,9 @@ the same names as used in the original source code, when possible."
((and (byte-code-function-p def) (listp (aref def 0))) (aref def 0))
((eq (car-safe def) 'lambda) (nth 1 def))
((eq (car-safe def) 'closure) (nth 2 def))
((and (subrp def) (listp (subr-native-lambda-list def)))
((and (featurep 'nativecomp)
(subrp def)
(listp (subr-native-lambda-list def)))
(subr-native-lambda-list def))
((or (and (byte-code-function-p def) (integerp (aref def 0)))
(subrp def) (module-function-p def))