]> git.eshelyaron.com Git - emacs.git/commitdiff
Small help--loaded-p fix
authorGlenn Morris <rgm@gnu.org>
Wed, 1 Mar 2017 19:35:29 +0000 (14:35 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 1 Mar 2017 19:35:29 +0000 (14:35 -0500)
* lisp/help-fns.el (help--loaded-p): Handle entry in load-history
with nil file name.  (Bug#25847)

lisp/help-fns.el

index 742c66919af80a822f16f1885322dac63ca67d66..21f76e100a7b81472f0e248ed5a1316d0783335e 100644 (file)
@@ -73,7 +73,7 @@ The functions will receive the function name as argument.")
       (let* ((re (load-history-regexp file))
              (done nil))
         (dolist (x load-history)
-          (if (string-match-p re (car x)) (setq done t)))
+          (and (car x) (string-match-p re (car x)) (setq done t)))
         done)))
 
 (defun help--load-prefixes (prefixes)