aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-09 05:36:55 +0000
committerRichard M. Stallman1995-05-09 05:36:55 +0000
commit0e7f9b35bb3038117c28879ebb48b6217a0eb08f (patch)
tree384a12f94e0d4c4ac79db76c228396cdb917e802
parent60558b198d60d4baefa0dfd17da153536ac97854 (diff)
downloademacs-0e7f9b35bb3038117c28879ebb48b6217a0eb08f.tar.gz
emacs-0e7f9b35bb3038117c28879ebb48b6217a0eb08f.zip
(Info-directory-list): Use installation-directory,
not invocation-directory. Cope if it is nil.
-rw-r--r--lisp/info.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 77973c9e369..3972e16ab90 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -58,7 +58,8 @@ in paths.el.")
58 (sep (if (or (eq system-type 'ms-dos) 58 (sep (if (or (eq system-type 'ms-dos)
59 (eq system-type 'windows-nt)) 59 (eq system-type 'windows-nt))
60 ";" ":")) 60 ";" ":"))
61 (sibling (expand-file-name "../info/" (invocation-directory)))) 61 (sibling (if installation-directory
62 (expand-file-name "info/" installation-directory))))
62 (if path 63 (if path
63 (let ((list nil) 64 (let ((list nil)
64 idx) 65 idx)
@@ -68,7 +69,8 @@ in paths.el.")
68 path (substring path (min (1+ idx) 69 path (substring path (min (1+ idx)
69 (length path))))) 70 (length path)))))
70 (nreverse list)) 71 (nreverse list))
71 (if (or (member sibling Info-default-directory-list) 72 (if (or (null sibling)
73 (member sibling Info-default-directory-list)
72 (not (file-exists-p sibling)) 74 (not (file-exists-p sibling))
73 ;; On DOS/NT, we use movable executables always, 75 ;; On DOS/NT, we use movable executables always,
74 ;; and we must always find the Info dir at run time. 76 ;; and we must always find the Info dir at run time.
@@ -77,8 +79,8 @@ in paths.el.")
77 ;; Use invocation-directory for Info only if we used it for 79 ;; Use invocation-directory for Info only if we used it for
78 ;; exec-directory also. 80 ;; exec-directory also.
79 (not (string= exec-directory 81 (not (string= exec-directory
80 (expand-file-name "../lib-src/" 82 (expand-file-name "lib-src/"
81 (invocation-directory)))))) 83 installation-directory)))))
82 Info-default-directory-list 84 Info-default-directory-list
83 (reverse (cons sibling (cdr (reverse Info-default-directory-list))))))) 85 (reverse (cons sibling (cdr (reverse Info-default-directory-list)))))))
84 "List of directories to search for Info documentation files. 86 "List of directories to search for Info documentation files.