[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
- [elpa] master updated (a4a58da -> d51476a), Stefan Monnier, 2018/09/20
- [elpa] master 4e0255c 3/5: * nadvice/nadvice.el (advice): Require during byte-compilation,
Stefan Monnier <=
- [elpa] master 55d5dd0 1/5: Update usage example, Stefan Monnier, 2018/09/20
- [elpa] master 0f1d555 2/5: Fix readme, Stefan Monnier, 2018/09/20
- [elpa] master d51476a 5/5: Merge commit '4e7c577dc13b918158bcac53e06eeeb7cf93a3fb', Stefan Monnier, 2018/09/20
- [elpa] master 4e7c577 4/5: Stop using advice, user nadvice instead, Stefan Monnier, 2018/09/20