1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Small help--loaded-p fix

* lisp/help-fns.el (help--loaded-p): Handle entry in load-history
with nil file name.  (Bug#25847)
This commit is contained in:
Glenn Morris 2017-03-01 14:35:29 -05:00
parent 03f64ebbc6
commit ebb105054a

View 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)