]> git.eshelyaron.com Git - emacs.git/commitdiff
(unload-feature): When we come to (provide . FEATURE),
authorKarl Heuer <kwzh@gnu.org>
Thu, 18 May 1995 16:51:35 +0000 (16:51 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 18 May 1995 16:51:35 +0000 (16:51 +0000)
remove FEATURE from the features list.

lisp/loadhist.el

index d541a70140599c67b77ade269ab46b63ddf489ee..2a62ab51b0deae78fda8fd71ee4cfd98271c48fa 100644 (file)
@@ -118,7 +118,10 @@ is nil, raise an error."
     (mapcar
      (function (lambda (x) 
                 (cond ((stringp x) nil)
-                      ((consp x) nil)
+                      ((consp x)
+                       ;; Remove any feature names that this file provided.
+                       (if (eq (car x) 'provide)
+                           (setq features (delq (cdr x) features))))
                       ((boundp x) (makunbound x))
                       ((fboundp x)
                        (fmakunbound x)