summaryrefslogtreecommitdiff
path: root/lisp/apropos.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-02-20 06:03:45 +0000
committerGlenn Morris <rgm@gnu.org>2009-02-20 06:03:45 +0000
commit475293229574efccb8798f357aca135a441017f9 (patch)
tree41aaa8931bd1ff4aacaf672f88245ce56717c34d /lisp/apropos.el
parentbd26454c2457fb4ad3f85d33025ab4e4e6dd324b (diff)
downloademacs-475293229574efccb8798f357aca135a441017f9.tar.gz
(apropos-library): Remove the element with null filename, if present,
from the completion list.
Diffstat (limited to 'lisp/apropos.el')
-rw-r--r--lisp/apropos.el23
1 files changed, 12 insertions, 11 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 7a427b0c6f1..91e763185b6 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -569,17 +569,18 @@ Returns list of symbols and documentation found."
FILE should be one of the libraries currently loaded and should
thus be found in `load-history'."
(interactive
- (let ((libs
- (nconc (delq nil
- (mapcar
- (lambda (l)
- (setq l (file-name-nondirectory l))
- (while
- (not (equal (setq l (file-name-sans-extension l))
- l)))
- l)
- (mapcar 'car load-history)))
- (mapcar 'car load-history))))
+ (let* ((libs (delq nil (mapcar 'car load-history)))
+ (libs
+ (nconc (delq nil
+ (mapcar
+ (lambda (l)
+ (setq l (file-name-nondirectory l))
+ (while
+ (not (equal (setq l (file-name-sans-extension l))
+ l)))
+ l)
+ libs))
+ libs)))
(list (completing-read "Describe library: " libs nil t))))
(let ((symbols nil)
;; (autoloads nil)