aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-05-27 00:36:25 +0000
committerKarl Heuer1995-05-27 00:36:25 +0000
commit792e773aaa592a7f35135ce6d6c9f4fd931b5e2e (patch)
tree13a305e8e8bac7e76f6ee45cd0fa2f505ffdc91b
parentb525816e487ebaef8df8f6936014fc941ce7e067 (diff)
downloademacs-792e773aaa592a7f35135ce6d6c9f4fd931b5e2e.tar.gz
emacs-792e773aaa592a7f35135ce6d6c9f4fd931b5e2e.zip
(Info-directory-list): Use path-separator.
-rw-r--r--lisp/info.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 3972e16ab90..cb36fac8dde 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -55,16 +55,13 @@ in paths.el.")
55 55
56(defvar Info-directory-list 56(defvar Info-directory-list
57 (let ((path (getenv "INFOPATH")) 57 (let ((path (getenv "INFOPATH"))
58 (sep (if (or (eq system-type 'ms-dos)
59 (eq system-type 'windows-nt))
60 ";" ":"))
61 (sibling (if installation-directory 58 (sibling (if installation-directory
62 (expand-file-name "info/" installation-directory)))) 59 (expand-file-name "info/" installation-directory))))
63 (if path 60 (if path
64 (let ((list nil) 61 (let ((list nil)
65 idx) 62 idx)
66 (while (> (length path) 0) 63 (while (> (length path) 0)
67 (setq idx (or (string-match sep path) (length path)) 64 (setq idx (or (string-match path-separator path) (length path))
68 list (cons (substring path 0 idx) list) 65 list (cons (substring path 0 idx) list)
69 path (substring path (min (1+ idx) 66 path (substring path (min (1+ idx)
70 (length path))))) 67 (length path)))))