diff options
| author | Eli Zaretskii | 2000-12-14 17:12:39 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-12-14 17:12:39 +0000 |
| commit | e103ef954c471b7b0a40c8b82598bbc364d28655 (patch) | |
| tree | 1357be1e353fbfae5db20ffa6566ca0935b9c549 | |
| parent | 6d435deb175530c3f88359d56959d9abf9938e23 (diff) | |
| download | emacs-e103ef954c471b7b0a40c8b82598bbc364d28655.tar.gz emacs-e103ef954c471b7b0a40c8b82598bbc364d28655.zip | |
(Info-default-directory-list): If
configure-info-directory is not one of the standard directories,
put it first in the list; otherwise put it last. Doc string
changed accordingly.
| -rw-r--r-- | lisp/paths.el | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/lisp/paths.el b/lisp/paths.el index 3e71d5961e5..a9313205aed 100644 --- a/lisp/paths.el +++ b/lisp/paths.el | |||
| @@ -52,8 +52,10 @@ comparision." | |||
| 52 | dirs))) | 52 | dirs))) |
| 53 | 53 | ||
| 54 | (defvar Info-default-directory-list | 54 | (defvar Info-default-directory-list |
| 55 | (let* ((config | 55 | (let* ((config-dir |
| 56 | (list (file-name-as-directory configure-info-directory))) | 56 | (file-name-as-directory configure-info-directory)) |
| 57 | (config | ||
| 58 | (list config-dir)) | ||
| 57 | (unpruned-prefixes | 59 | (unpruned-prefixes |
| 58 | ;; Directory trees that may not exist at installation time, and | 60 | ;; Directory trees that may not exist at installation time, and |
| 59 | ;; so shouldn't be pruned based on existance. | 61 | ;; so shouldn't be pruned based on existance. |
| @@ -66,22 +68,32 @@ comparision." | |||
| 66 | ;; Subdirectories in each directory tree that may contain info | 68 | ;; Subdirectories in each directory tree that may contain info |
| 67 | ;; directories. | 69 | ;; directories. |
| 68 | '("" "share/" "gnu/" "gnu/lib/" "gnu/lib/emacs/" | 70 | '("" "share/" "gnu/" "gnu/lib/" "gnu/lib/emacs/" |
| 69 | "emacs/" "lib/" "lib/emacs/"))) | 71 | "emacs/" "lib/" "lib/emacs/")) |
| 70 | (nconc | 72 | (standard-info-dirs |
| 71 | (apply #'nconc | 73 | (apply #'nconc |
| 72 | (mapcar (lambda (pfx) | 74 | (mapcar (lambda (pfx) |
| 73 | (let ((dirs | 75 | (let ((dirs |
| 74 | (mapcar (lambda (sfx) (concat pfx sfx "info/")) | 76 | (mapcar (lambda (sfx) |
| 75 | suffixes))) | 77 | (concat pfx sfx "info/")) |
| 76 | (if (member pfx unpruned-prefixes) | 78 | suffixes))) |
| 77 | dirs | 79 | (if (member pfx unpruned-prefixes) |
| 78 | (prune-directory-list dirs config)))) | 80 | dirs |
| 79 | prefixes)) | 81 | (prune-directory-list dirs config)))) |
| 80 | config)) | 82 | prefixes)))) |
| 83 | ;; If $(prefix)/info is not one of the standard info directories, | ||
| 84 | ;; they are probably installing an experimental version of Emacs, | ||
| 85 | ;; so make sure that experimental version's Info files override | ||
| 86 | ;; the ones in standard directories. | ||
| 87 | (if (member config-dir standard-info-dirs) | ||
| 88 | (nconc (delete config-dir standard-info-dirs) config) | ||
| 89 | (cons config-dir standard-info-dirs))) | ||
| 81 | "Default list of directories to search for Info documentation files. | 90 | "Default list of directories to search for Info documentation files. |
| 82 | They are searched in the order they are given in the list. | 91 | They are searched in the order they are given in the list. |
| 83 | Therefore, the directory of Info files that come with Emacs | 92 | Therefore, the directory of Info files that come with Emacs |
| 84 | normally should come last (so that local files override standard ones). | 93 | normally should come last (so that local files override standard ones), |
| 94 | unless Emacs is installed into a non-standard directory. In the latter | ||
| 95 | case, the directory of Info files that come with Emacs should be | ||
| 96 | first in this list. | ||
| 85 | 97 | ||
| 86 | Once Info is started, the list of directories to search | 98 | Once Info is started, the list of directories to search |
| 87 | comes from the variable `Info-directory-list'. | 99 | comes from the variable `Info-directory-list'. |