emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature/native-comp 711b2c8 2/2: * lisp/loadup.el: Don't load pcase


From: Stefan Monnier
Subject: Re: feature/native-comp 711b2c8 2/2: * lisp/loadup.el: Don't load pcase on native builds (bug#47025).
Date: Wed, 10 Mar 2021 18:23:44 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> -(if (byte-code-function-p (symbol-function 'macroexpand-all))
> +(if (or (byte-code-function-p (symbol-function 'macroexpand-all))
> +        (subr-native-elisp-p (symbol-function 'macroexpand-all)))

BTW, I find this rather ugly.

I think for this specific case, I will be able to come up with a better
(less ad-hoc/circumstantial) test, but I wonder if this kind of test was
also needed in enough other places that we might think about providing
some other test (like `function-interpreted-p` maybe?).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]