From 2249360b6332d17993a963ef63c72c8f3de33160 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Sun, 17 Sep 2000 19:29:19 +0000 Subject: [PATCH] (unload-feature): Maybe call elp-restore-list and ad-unadvise. --- lisp/loadhist.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/loadhist.el b/lisp/loadhist.el index 402a3ce35b9..db760c25b32 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el @@ -154,6 +154,8 @@ is nil, raise an error." (memq x loadhist-hook-functions))) (dolist (y (cdr flist)) (remove-hook x y)))))) + (if (fboundp 'elp-restore-list) + (elp-restore-list (cdr flist))) (mapc (lambda (x) (cond ((stringp x) nil) @@ -165,6 +167,8 @@ is nil, raise an error." (when (boundp x) (makunbound x)) (when (fboundp x) + (if (fboundp 'ad-unadvise) + (ad-unadvise x)) (fmakunbound x) (let ((aload (get x 'autoload))) (if aload (fset x (cons 'autoload aload)))))))) -- 2.39.2