diff options
| author | Stefan Monnier | 2024-05-30 18:57:56 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-05-30 18:57:56 -0400 |
| commit | 2e16bcd8ede77e41e0caaf71e1d22edadadc79dd (patch) | |
| tree | 1d3fbfb5e696e89561fb3f2b124becae84ab26d1 | |
| parent | 0d7d835902dfaeaae03850fb37e369833bb5664d (diff) | |
| download | emacs-2e16bcd8ede77e41e0caaf71e1d22edadadc79dd.tar.gz emacs-2e16bcd8ede77e41e0caaf71e1d22edadadc79dd.zip | |
ad-activate-advised-definition: Use proper function objects
* lisp/emacs-lisp/advice.el (ad-activate-advised-definition):
Use interpreted functions rather than lambda lists.
| -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." | |||
| 2845 | (old-ispec (interactive-form advicefunname))) | 2845 | (old-ispec (interactive-form advicefunname))) |
| 2846 | (fset advicefunname | 2846 | (fset advicefunname |
| 2847 | (or verified-cached-definition | 2847 | (or verified-cached-definition |
| 2848 | (ad-make-advised-definition function))) | 2848 | (eval |
| 2849 | (ad-make-advised-definition function) | ||
| 2850 | ;; We don't keep track of the `lexical-binding' of the | ||
| 2851 | ;; various chunks: assume it's the old dynbound dialect. | ||
| 2852 | nil))) | ||
| 2849 | (put advicefunname 'function-documentation | 2853 | (put advicefunname 'function-documentation |
| 2850 | `(ad--make-advised-docstring ',advicefunname)) | 2854 | `(ad--make-advised-docstring ',advicefunname)) |
| 2851 | (unless (equal (interactive-form advicefunname) old-ispec) | 2855 | (unless (equal (interactive-form advicefunname) old-ispec) |