summaryrefslogtreecommitdiff
path: root/lisp/loadhist.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2013-11-15 14:52:40 +0800
committerLeo Liu <sdl.web@gmail.com>2013-11-15 14:52:40 +0800
commita1f03e8916caa24f1abc2aa14f98a79303017698 (patch)
tree44f4654406788beadcee133feb5557743d136044 /lisp/loadhist.el
parent1a191e5c73cdae3d3b34f5fc3501bfd2ddf50ec8 (diff)
downloademacs-a1f03e8916caa24f1abc2aa14f98a79303017698.tar.gz
* lisp/loadhist.el (read-feature): Get rid of fake feature nil.
* src/minibuf.c (Ftry_completion, Fall_completions) (Ftest_completion): Use FUNCTIONP. (Bug#15889)
Diffstat (limited to 'lisp/loadhist.el')
-rw-r--r--lisp/loadhist.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index 620344734b3..b8433e1cbaa 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -101,14 +101,10 @@ A library name is equivalent to the file name that `load-library' would load."
"Read feature name from the minibuffer, prompting with string PROMPT.
If optional second arg LOADED-P is non-nil, the feature must be loaded
from a file."
- (intern
- (completing-read prompt
- (cons nil features)
- (and loaded-p
- #'(lambda (f)
- (and f ; ignore nil
- (feature-file f))))
- loaded-p)))
+ (intern (completing-read prompt
+ features
+ (and loaded-p #'feature-file)
+ loaded-p)))
(defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks)
(defvar unload-feature-special-hooks