]> git.eshelyaron.com Git - emacs.git/commitdiff
(read-feature): Don't complete features not loaded from a file (which make
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 5 Nov 2006 20:57:32 +0000 (20:57 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 5 Nov 2006 20:57:32 +0000 (20:57 +0000)
`unload-feature' to fail).

lisp/ChangeLog
lisp/loadhist.el

index adde4eb180f1000cee5d1edc5e5daba0284f716a..194ba3f6d88e518567c48fe63ccd7f57ce989ec4 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-05  Juanma Barranquero  <lekktu@gmail.com>
+
+       * loadhist.el (read-feature): Don't complete features not loaded
+       from a file (which make `unload-feature' to fail).
+
 2006-11-05  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * add-log.el (add-log-time-zone-rule): Mark as safe-local-variable.
@@ -10,7 +15,7 @@
 2006-11-05  Richard Stallman  <rms@gnu.org>
 
        * startup.el (init-file-had-error): Add doc string.
-       (fancy-splash-text, fancy-splash-head, fancy-splash-tail): 
+       (fancy-splash-text, fancy-splash-head, fancy-splash-tail):
        Use fixed-width font for keyboard key descriptions.
 
        * cus-edit.el (custom-save-all): Error if saving in .emacs
index 61f15c8ef1c067d4d7a9338cfc6099ffd34e3d0f..6683f8ae4131ab2ba4861ca45ebb9d8cedc28b03 100644 (file)
@@ -119,7 +119,9 @@ return the feature \(symbol\)."
                           (mapcar (lambda (feature)
                                     (list (symbol-name feature)))
                                   features)
-                          nil t)))
+                          ;; Complete only features loaded from a file
+                          #'(lambda (f) (feature-file (intern (car f))))
+                          t)))
 
 (defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks)
 (defvar unload-feature-special-hooks