[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 4e0255c 3/5: * nadvice/nadvice.el (advice): Require during

From: Stefan Monnier
Subject: [elpa] master 4e0255c 3/5: * nadvice/nadvice.el (advice): Require during byte-compilation
Date: Thu, 20 Sep 2018 09:04:14 -0400 (EDT)

branch: master
commit 4e0255cd333e60ea7faf1c82d224eb7337e8ecfa
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * nadvice/nadvice.el (advice): Require during byte-compilation
    since ad-find-advice is defined as a macro rather than a function (sigh!).
 packages/nadvice/nadvice.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/nadvice/nadvice.el b/packages/nadvice/nadvice.el
index 447132c..58523f6 100644
--- a/packages/nadvice/nadvice.el
+++ b/packages/nadvice/nadvice.el
@@ -38,6 +38,8 @@
 (declare-function ad-remove-advice "advice")
+(eval-and-compile (require 'advice))
 (unless (fboundp 'add-function)
   ;; If `add-function' is defined, we're presumably running on
   ;; an Emacs that comes with the real nadvice.el, so let's be careful

reply via email to

[Prev in Thread] Current Thread [Next in Thread]