aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2019-04-08 15:36:18 -0400
committerStefan Monnier2019-04-08 15:36:18 -0400
commitbaaacd92fff4e6a49bbb1fea3caed25004490559 (patch)
tree274f7faf1a5d9ddefbb6b7f3d14dcceadba1fba7
parent0d5e83611e5157800fd855fe8e3f60c8eff0af7c (diff)
downloademacs-baaacd92fff4e6a49bbb1fea3caed25004490559.tar.gz
emacs-baaacd92fff4e6a49bbb1fea3caed25004490559.zip
* nadvice.el: Add ourselves to package--builtin-versions
-rw-r--r--lisp/emacs-lisp/nadvice.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index bb647b012e1..2278e389cef 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -36,6 +36,11 @@
36 36
37;;; Code: 37;;; Code:
38 38
39;; The autoloads.el mechanism which adds package--builtin-versions
40;; maintenance to loaddefs.el doesn't work for preloaded packages (such
41;; as this one), so we have to do it by hand!
42(push (purecopy '(nadvice 1 0)) package--builtin-versions)
43
39;;;; Lightweight advice/hook 44;;;; Lightweight advice/hook
40(defvar advice--where-alist 45(defvar advice--where-alist
41 '((:around "\300\301\302\003#\207" 5) 46 '((:around "\300\301\302\003#\207" 5)
@@ -241,6 +246,8 @@ different, but `function-equal' will hopefully ignore those differences.")
241 (if (local-variable-p var) (symbol-value var) 246 (if (local-variable-p var) (symbol-value var)
242 (setq advice--buffer-local-function-sample 247 (setq advice--buffer-local-function-sample
243 ;; This function acts like the t special value in buffer-local hooks. 248 ;; This function acts like the t special value in buffer-local hooks.
249 ;; FIXME: Provide an `advice-bottom' function that's like
250 ;; `advice-cd*r' but also follows through this proxy.
244 (lambda (&rest args) (apply (default-value var) args))))) 251 (lambda (&rest args) (apply (default-value var) args)))))
245 252
246(eval-and-compile 253(eval-and-compile