diff options
| author | Andrea Corallo | 2023-11-16 09:03:20 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2023-11-16 09:05:27 +0100 |
| commit | 4a2d39020c299332004bb2de1a698c18df40fe02 (patch) | |
| tree | 387933da2de622733903046c376b9a8ebc1592f6 | |
| parent | 7c65ccfc8011e59c39c72adbe604d6325dc5a434 (diff) | |
| download | emacs-4a2d39020c299332004bb2de1a698c18df40fe02.tar.gz emacs-4a2d39020c299332004bb2de1a698c18df40fe02.zip | |
* lisp/emacs-lisp/nadvice.el (advice--add-function): Move func decl.
| -rw-r--r-- | lisp/emacs-lisp/nadvice.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el index 98efb4c9c28..6c5b11d2bd4 100644 --- a/lisp/emacs-lisp/nadvice.el +++ b/lisp/emacs-lisp/nadvice.el | |||
| @@ -389,8 +389,6 @@ is also interactive. There are 3 cases: | |||
| 389 | `(advice--add-function ,how (gv-ref ,(advice--normalize-place place)) | 389 | `(advice--add-function ,how (gv-ref ,(advice--normalize-place place)) |
| 390 | ,function ,props)) | 390 | ,function ,props)) |
| 391 | 391 | ||
| 392 | (declare-function comp-subr-trampoline-install "comp-run") | ||
| 393 | |||
| 394 | ;;;###autoload | 392 | ;;;###autoload |
| 395 | (defun advice--add-function (how ref function props) | 393 | (defun advice--add-function (how ref function props) |
| 396 | (when (and (featurep 'native-compile) | 394 | (when (and (featurep 'native-compile) |
| @@ -408,6 +406,7 @@ is also interactive. There are 3 cases: | |||
| 408 | ;; Must require explicitly as during bootstrap we have no | 406 | ;; Must require explicitly as during bootstrap we have no |
| 409 | ;; autoloads. | 407 | ;; autoloads. |
| 410 | (require 'comp-run) | 408 | (require 'comp-run) |
| 409 | (declare-function comp-subr-trampoline-install "comp-run") | ||
| 411 | (comp-subr-trampoline-install subr-name)))) | 410 | (comp-subr-trampoline-install subr-name)))) |
| 412 | (let* ((name (cdr (assq 'name props))) | 411 | (let* ((name (cdr (assq 'name props))) |
| 413 | (a (advice--member-p (or name function) (if name t) (gv-deref ref)))) | 412 | (a (advice--member-p (or name function) (if name t) (gv-deref ref)))) |