aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-09-17 19:29:19 +0000
committerDave Love2000-09-17 19:29:19 +0000
commit2249360b6332d17993a963ef63c72c8f3de33160 (patch)
tree845c393f145c13d7ab92efc82d941fece5604853
parent7d354dd5ee0448b6fa583230a575114f38c28eda (diff)
downloademacs-2249360b6332d17993a963ef63c72c8f3de33160.tar.gz
emacs-2249360b6332d17993a963ef63c72c8f3de33160.zip
(unload-feature): Maybe call elp-restore-list and
ad-unadvise.
-rw-r--r--lisp/loadhist.el4
1 files changed, 4 insertions, 0 deletions
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."
154 (memq x loadhist-hook-functions))) 154 (memq x loadhist-hook-functions)))
155 (dolist (y (cdr flist)) 155 (dolist (y (cdr flist))
156 (remove-hook x y)))))) 156 (remove-hook x y))))))
157 (if (fboundp 'elp-restore-list)
158 (elp-restore-list (cdr flist)))
157 (mapc 159 (mapc
158 (lambda (x) 160 (lambda (x)
159 (cond ((stringp x) nil) 161 (cond ((stringp x) nil)
@@ -165,6 +167,8 @@ is nil, raise an error."
165 (when (boundp x) 167 (when (boundp x)
166 (makunbound x)) 168 (makunbound x))
167 (when (fboundp x) 169 (when (fboundp x)
170 (if (fboundp 'ad-unadvise)
171 (ad-unadvise x))
168 (fmakunbound x) 172 (fmakunbound x)
169 (let ((aload (get x 'autoload))) 173 (let ((aload (get x 'autoload)))
170 (if aload (fset x (cons 'autoload aload)))))))) 174 (if aload (fset x (cons 'autoload aload))))))))