Commit 0e7f9b35 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Info-directory-list): Use installation-directory,

not invocation-directory.  Cope if it is nil.
parent 60558b19
......@@ -58,7 +58,8 @@ in paths.el.")
(sep (if (or (eq system-type 'ms-dos)
(eq system-type 'windows-nt))
";" ":"))
(sibling (expand-file-name "../info/" (invocation-directory))))
(sibling (if installation-directory
(expand-file-name "info/" installation-directory))))
(if path
(let ((list nil)
......@@ -68,7 +69,8 @@ in paths.el.")
path (substring path (min (1+ idx)
(length path)))))
(nreverse list))
(if (or (member sibling Info-default-directory-list)
(if (or (null sibling)
(member sibling Info-default-directory-list)
(not (file-exists-p sibling))
;; On DOS/NT, we use movable executables always,
;; and we must always find the Info dir at run time.
......@@ -77,8 +79,8 @@ in paths.el.")
;; Use invocation-directory for Info only if we used it for
;; exec-directory also.
(not (string= exec-directory
(expand-file-name "../lib-src/"
(expand-file-name "lib-src/"
(reverse (cons sibling (cdr (reverse Info-default-directory-list)))))))
"List of directories to search for Info documentation files.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment