summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-01-20 03:24:48 +0000
committerRichard M. Stallman <rms@gnu.org>1999-01-20 03:24:48 +0000
commit37f4b0339c35c09b997482af7d17f37d5e219430 (patch)
tree756ad260dc16f967ffb93827b4ea274609e5e587 /lisp
parentfea0d7fa5fab9563313603f3932d5560720d841b (diff)
downloademacs-37f4b0339c35c09b997482af7d17f37d5e219430.tar.gz
(Info-default-directory-list): Perhaps add /usr/info.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/paths.el26
1 files changed, 16 insertions, 10 deletions
diff --git a/lisp/paths.el b/lisp/paths.el
index 0f5bd956a29..76c56765d81 100644
--- a/lisp/paths.el
+++ b/lisp/paths.el
@@ -33,16 +33,22 @@
;;; Code:
(defvar Info-default-directory-list
- (let ((start (list "/usr/local/lib/info/"
- ;; This comes second so that, if it is the same
- ;; as configure-info-directory (which is usually true)
- ;; and Emacs has been installed (also usually true)
- ;; then the list will end with two copies of this;
- ;; which means that the last dir file Info-insert-dir
- ;; finds will be the one in this directory.
- "/usr/local/info/"))
- (configdir (file-name-as-directory configure-info-directory)))
- (setq start (nconc start (list configdir)))
+ (let* ((start (list "/usr/local/lib/info/"
+ ;; This comes second so that, if it is the same
+ ;; as configure-info-directory (which is usually true)
+ ;; and Emacs has been installed (also usually true)
+ ;; then the list will end with two copies of this;
+ ;; which means that the last dir file Info-insert-dir
+ ;; finds will be the one in this directory.
+ "/usr/local/info/"))
+ ;; Typically on a GNU system, installed info files are found
+ ;; in /usr/info, but the default prefix is /usr/local.
+ (usrdir "/usr/info")
+ (sysdir (and (file-directory-p usrdir)
+ (not (string= configure-info-directory usrdir))
+ (list usrdir)))
+ (configdir (file-name-as-directory configure-info-directory)))
+ (setq start (nconc sysdir start (list configdir)))
start)
"Default list of directories to search for Info documentation files.
They are searched in the order they are given in the list.