changeset 31674:7661306a5b4e

(unload-feature): Maybe call elp-restore-list and ad-unadvise.
author Dave Love <fx@gnu.org>
date Sun, 17 Sep 2000 19:29:19 +0000
parents 6d39ec089c7b
children a8e0d20f0043
files lisp/loadhist.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/loadhist.el	Sun Sep 17 17:44:47 2000 +0000
+++ b/lisp/loadhist.el	Sun Sep 17 19:29:19 2000 +0000
@@ -154,6 +154,8 @@
                       (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 @@
 	      (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))))))))