1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

Rename comp-subr-safe-advice -> comp-subr-trampoline-install

This commit is contained in:
Andrea Corallo 2020-10-02 22:18:57 +02:00
parent b3ade4de17
commit 0b58be4941
3 changed files with 3 additions and 3 deletions

View File

@ -2076,7 +2076,7 @@ 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))
(comp-subr-safe-advice function))
(comp-subr-trampoline-install function))
(cond ((not (ad-is-advised function))
(ad-initialize-advice-info function)
(ad-set-advice-info-field

View File

@ -2614,7 +2614,7 @@ Return the its filename if found or nil otherwise."
`comp-eln-load-path'")))))
;;;###autoload
(defun comp-subr-safe-advice (subr-name)
(defun comp-subr-trampoline-install (subr-name)
"Make SUBR-NAME effectively advice-able when called from native code."
(unless (or (memq subr-name comp-never-optimize-functions)
(gethash subr-name comp-installed-trampolines-h))

View File

@ -333,7 +333,7 @@ is also interactive. There are 3 cases:
;; Must require explicitly as during bootstrap we have no
;; autoloads.
(require 'comp)
(comp-subr-safe-advice subr-name))))
(comp-subr-trampoline-install subr-name))))
(let* ((name (cdr (assq 'name props)))
(a (advice--member-p (or name function) (if name t) (gv-deref ref))))
(when a