]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-directory-list): Don't use the invocation directory
authorRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 11:43:26 +0000 (11:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 5 Jun 1994 11:43:26 +0000 (11:43 +0000)
unless it was used for exec-directory too.

lisp/info.el

index 5558ee3995545b583428262d471cc23c3013d660..b12278056a65b87359a3a29113527345de156a48 100644 (file)
@@ -63,7 +63,11 @@ in paths.el.")
                                            (length path)))))
          (nreverse list))
       (if (or (member sibling Info-default-directory-list)
-             (not (file-exists-p sibling)))
+             (not (file-exists-p sibling))
+             ;; Use invocation-directory for Info only if we used it for
+             ;; exec-directory also.
+             (not (string= exec-directory
+                           (expand-file-name "../lib-src/" (invocation-directory)))))
          Info-default-directory-list
        (reverse (cons sibling (cdr (reverse Info-default-directory-list)))))))
   "List of directories to search for Info documentation files.