(apropos-library): Check for null filename in load-history.
+2009-02-20 Daniel Jensen <daniel@bigwalter.net> (tiny change)
+
+ * apropos.el (apropos-library): Check for null filename in load-history.
+
2009-02-20 Glenn Morris <rgm@gnu.org>
* apropos.el (apropos-library): Remove the element with null filename,
(re (concat "\\(?:\\`\\|[\\/]\\)" (regexp-quote file)
"\\(\\.\\|\\'\\)")))
(while (and lh (null lh-entry))
- (if (string-match re (caar lh))
+ (if (and (caar lh) (string-match re (caar lh)))
(setq lh-entry (car lh))
(setq lh (cdr lh)))))
(unless lh-entry (error "Unknown library `%s'" file)))