]> git.eshelyaron.com Git - emacs.git/commitdiff
* nadvice.el: Add ourselves to package--builtin-versions
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Apr 2019 19:36:18 +0000 (15:36 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 8 Apr 2019 19:36:18 +0000 (15:36 -0400)
lisp/emacs-lisp/nadvice.el

index bb647b012e1c40de4af9c3723021dab0cfbe2ed2..2278e389cef6f63380cdea45181252caaf6be052 100644 (file)
 
 ;;; Code:
 
+;; The autoloads.el mechanism which adds package--builtin-versions
+;; maintenance to loaddefs.el doesn't work for preloaded packages (such
+;; as this one), so we have to do it by hand!
+(push (purecopy '(nadvice 1 0)) package--builtin-versions)
+
 ;;;; Lightweight advice/hook
 (defvar advice--where-alist
   '((:around "\300\301\302\003#\207" 5)
@@ -241,6 +246,8 @@ different, but `function-equal' will hopefully ignore those differences.")
   (if (local-variable-p var) (symbol-value var)
     (setq advice--buffer-local-function-sample
           ;; This function acts like the t special value in buffer-local hooks.
+          ;; FIXME: Provide an `advice-bottom' function that's like
+          ;; `advice-cd*r' but also follows through this proxy.
           (lambda (&rest args) (apply (default-value var) args)))))
 
 (eval-and-compile