diff options
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/info.el b/lisp/info.el index bc2062e72b2..fb753659737 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -594,15 +594,15 @@ in `Info-file-supports-index-cookies-list'." | |||
| 594 | (defun info-initialize () | 594 | (defun info-initialize () |
| 595 | "Initialize `Info-directory-list', if that hasn't been done yet." | 595 | "Initialize `Info-directory-list', if that hasn't been done yet." |
| 596 | (unless Info-directory-list | 596 | (unless Info-directory-list |
| 597 | (let ((path (getenv "INFOPATH"))) | 597 | (let ((path (getenv "INFOPATH")) |
| 598 | (sep (regexp-quote path-separator))) | ||
| 598 | (setq Info-directory-list | 599 | (setq Info-directory-list |
| 599 | (prune-directory-list | 600 | (prune-directory-list |
| 600 | (if path | 601 | (if path |
| 601 | (if (string-match ":\\'" path) | 602 | (if (string-match-p (concat sep "\\'") path) |
| 602 | (append (split-string (substring path 0 -1) | 603 | (append (split-string (substring path 0 -1) sep) |
| 603 | (regexp-quote path-separator)) | ||
| 604 | (Info-default-dirs)) | 604 | (Info-default-dirs)) |
| 605 | (split-string path (regexp-quote path-separator))) | 605 | (split-string path sep)) |
| 606 | (Info-default-dirs))))))) | 606 | (Info-default-dirs))))))) |
| 607 | 607 | ||
| 608 | ;;;###autoload | 608 | ;;;###autoload |