summaryrefslogtreecommitdiff
path: root/lisp/loadhist.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2006-11-05 20:57:32 +0000
committerJuanma Barranquero <lekktu@gmail.com>2006-11-05 20:57:32 +0000
commitcf0f58baee6a986021f2a1e9a5b30256e53ad6b9 (patch)
tree37bb3873a9bacabf30f7bcfd63654424923c9e9d /lisp/loadhist.el
parenta7b5712cdf74ca8f76198aaf4f554e33f0f99cd7 (diff)
downloademacs-cf0f58baee6a986021f2a1e9a5b30256e53ad6b9.tar.gz
(read-feature): Don't complete features not loaded from a file (which make
`unload-feature' to fail).
Diffstat (limited to 'lisp/loadhist.el')
-rw-r--r--lisp/loadhist.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index 61f15c8ef1c..6683f8ae413 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -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