In Emacs 28, subrp is t for a native-compiled function; to check whether a function is a primitive, there is a new function subr-primitive-p.
Previously, unadvised functions have an extra check that does the same thing as subr-primitive-p, but that was not applied to advised functions. This PR applies it to both.
In Emacs 28,
subrp
is t for a native-compiled function; to check whether a function is a primitive, there is a new functionsubr-primitive-p
.Previously, unadvised functions have an extra check that does the same thing as
subr-primitive-p
, but that was not applied to advised functions. This PR applies it to both.This should fix #277.