ad-activate-advised-definition: Use proper function objects
* lisp/emacs-lisp/advice.el (ad-activate-advised-definition): Use interpreted functions rather than lambda lists.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user