summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2024-12-27 12:44:57 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2024-12-27 12:44:57 -0500
commit54dd3e500134ad7b6e03120d862a0cdccb3f7633 (patch)
tree6e41011fddb3e12ec005cfc373c2177f19b2b9b4
parentd19e9ae649374a0f2fab1baa045ed192e0851750 (diff)
nadvice.el: Fix minor compilation warningsexternals/nadvice
-rw-r--r--nadvice.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/nadvice.el b/nadvice.el
index 512843e..1ac5ab4 100644
--- a/nadvice.el
+++ b/nadvice.el
@@ -1,6 +1,6 @@
;;; nadvice.el --- Forward compatibility for Emacs-24.4's nadvice -*- lexical-binding: t; -*-
-;; Copyright (C) 2018-2023 Free Software Foundation, Inc.
+;; Copyright (C) 2018-2024 Free Software Foundation, Inc.
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Version: 0.4
@@ -41,9 +41,10 @@
;;; Code:
-(declare-function ad-remove-advice "advice")
-
-(eval-and-compile (require 'advice))
+(declare-function ad-add-advice "advice") (function advice class position)
+(declare-function ad-remove-advice "advice" (function class name))
+(declare-function ad-find-advice "advice"(function class name))
+(declare-function ad-activate "advice" (function &optional compile))
(unless (fboundp 'add-function)
;; If `add-function' is defined, we're presumably running on