diff options
Diffstat (limited to 'lisp/emacs-lisp/advice.el')
-rw-r--r-- | lisp/emacs-lisp/advice.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 752660156b9..73d11fc8aa8 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el @@ -2845,7 +2845,11 @@ The current definition and its cache-id will be put into the cache." (old-ispec (interactive-form advicefunname))) (fset advicefunname (or verified-cached-definition - (ad-make-advised-definition function))) + (eval + (ad-make-advised-definition function) + ;; We don't keep track of the `lexical-binding' of the + ;; various chunks: assume it's the old dynbound dialect. + nil))) (put advicefunname 'function-documentation `(ad--make-advised-docstring ',advicefunname)) (unless (equal (interactive-form advicefunname) old-ispec) |