summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-10-02 22:18:57 +0200
committerAndrea Corallo <akrl@sdf.org>2020-10-05 21:32:38 +0200
commit0b58be4941c92d337eccadabaaba5ef8620c5b52 (patch)
tree6bfdf8c52c510b7ff1566f1596053258c6438d5c /lisp
parentb3ade4de179d4c13cd09e2b8066e09c66355d322 (diff)
downloademacs-0b58be4941c92d337eccadabaaba5ef8620c5b52.tar.gz
emacs-0b58be4941c92d337eccadabaaba5ef8620c5b52.tar.bz2
emacs-0b58be4941c92d337eccadabaaba5ef8620c5b52.zip
Rename comp-subr-safe-advice -> comp-subr-trampoline-install
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/advice.el2
-rw-r--r--lisp/emacs-lisp/comp.el2
-rw-r--r--lisp/emacs-lisp/nadvice.el2
3 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 4df8743de50..fb67de3a029 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -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
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index ef13c0ce63e..7074ff759e0 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -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))
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index 5b3aa708508..03961325856 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -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