mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-06 14:02:07 -08:00
* Fix non native compiled build
* lisp/emacs-lisp/advice.el (ad-add-advice): Do not try to install trampolines in vanilla builds.
This commit is contained in:
parent
4a69e953f3
commit
6c271ffaa8
1 changed files with 2 additions and 1 deletions
|
|
@ -2077,7 +2077,8 @@ mapped to the closest extremal position).
|
|||
If FUNCTION was not advised already, its advice info will be
|
||||
initialized. Redefining a piece of advice whose name is part of
|
||||
the cache-id will clear the cache."
|
||||
(when (subr-primitive-p (symbol-function function))
|
||||
(when (and (featurep 'nativecomp)
|
||||
(subr-primitive-p (symbol-function function)))
|
||||
(comp-subr-trampoline-install function))
|
||||
(cond ((not (ad-is-advised function))
|
||||
(ad-initialize-advice-info function)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue