diff options
| author | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-21 12:42:16 -0400 |
| commit | cafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch) | |
| tree | 7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /lisp/info.el | |
| parent | a08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff) | |
| parent | 4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff) | |
| download | emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip | |
Merge from trunk
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 |