aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-02-20 06:06:18 +0000
committerGlenn Morris2009-02-20 06:06:18 +0000
commit7aad296acfd3f744f3689905b358bbe160a2d0f0 (patch)
tree6559130e9596c80b6298f3465a70a888646acdc9
parent475293229574efccb8798f357aca135a441017f9 (diff)
downloademacs-7aad296acfd3f744f3689905b358bbe160a2d0f0.tar.gz
emacs-7aad296acfd3f744f3689905b358bbe160a2d0f0.zip
Daniel Jensen <daniel at bigwalter.net> (tiny change)
(apropos-library): Check for null filename in load-history.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/apropos.el2
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9a2e46c9191..fbcec5b8f5e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-02-20 Daniel Jensen <daniel@bigwalter.net> (tiny change)
2
3 * apropos.el (apropos-library): Check for null filename in load-history.
4
12009-02-20 Glenn Morris <rgm@gnu.org> 52009-02-20 Glenn Morris <rgm@gnu.org>
2 6
3 * apropos.el (apropos-library): Remove the element with null filename, 7 * apropos.el (apropos-library): Remove the element with null filename,
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 91e763185b6..375b19eebe7 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -593,7 +593,7 @@ thus be found in `load-history'."
593 (re (concat "\\(?:\\`\\|[\\/]\\)" (regexp-quote file) 593 (re (concat "\\(?:\\`\\|[\\/]\\)" (regexp-quote file)
594 "\\(\\.\\|\\'\\)"))) 594 "\\(\\.\\|\\'\\)")))
595 (while (and lh (null lh-entry)) 595 (while (and lh (null lh-entry))
596 (if (string-match re (caar lh)) 596 (if (and (caar lh) (string-match re (caar lh)))
597 (setq lh-entry (car lh)) 597 (setq lh-entry (car lh))
598 (setq lh (cdr lh))))) 598 (setq lh (cdr lh)))))
599 (unless lh-entry (error "Unknown library `%s'" file))) 599 (unless lh-entry (error "Unknown library `%s'" file)))