aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-16 15:44:16 +0000
committerRichard M. Stallman1994-06-16 15:44:16 +0000
commit7df79bd462b98b6ee9844200378340c10aeeb7d8 (patch)
tree55e8f9097cdc054f4737a041a5f80111ec06f522
parent15495c7324317bb269408dc6d02c99cd82f529d1 (diff)
downloademacs-7df79bd462b98b6ee9844200378340c10aeeb7d8.tar.gz
emacs-7df79bd462b98b6ee9844200378340c10aeeb7d8.zip
(Info-directory-list): For msdos, use ";" instead of
":" as delimiter in INFOPATH.
-rw-r--r--lisp/info.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el
index fc20c4b61e7..524b0b74af5 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -52,12 +52,13 @@ in paths.el.")
52 52
53(defvar Info-directory-list 53(defvar Info-directory-list
54 (let ((path (getenv "INFOPATH")) 54 (let ((path (getenv "INFOPATH"))
55 (sep (if (eq system-type 'ms-dos) ";" ":"))
55 (sibling (expand-file-name "../info/" (invocation-directory)))) 56 (sibling (expand-file-name "../info/" (invocation-directory))))
56 (if path 57 (if path
57 (let ((list nil) 58 (let ((list nil)
58 idx) 59 idx)
59 (while (> (length path) 0) 60 (while (> (length path) 0)
60 (setq idx (or (string-match ":" path) (length path)) 61 (setq idx (or (string-match sep path) (length path))
61 list (cons (substring path 0 idx) list) 62 list (cons (substring path 0 idx) list)
62 path (substring path (min (1+ idx) 63 path (substring path (min (1+ idx)
63 (length path))))) 64 (length path)))))