diff options
| author | Miles Bader | 2000-07-04 04:50:20 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-07-04 04:50:20 +0000 |
| commit | 78e7e8a0454255e97764027389d3faaa476faa99 (patch) | |
| tree | 2b9ff2ff8f24e0e40a48fc980ee3e10758c8cc3b /lisp | |
| parent | 97ad35dd11ec24e124a8606d94544cc20b1e3c12 (diff) | |
| download | emacs-78e7e8a0454255e97764027389d3faaa476faa99.tar.gz emacs-78e7e8a0454255e97764027389d3faaa476faa99.zip | |
(info-initialize): Use prune-directory-list to remove non-existant
directories from Info-directory-list.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/info.el | 49 |
2 files changed, 46 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2742992a4fc..3df176e418a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2000-06-29 Miles Bader <miles@lsi.nec.co.jp> | ||
| 2 | |||
| 3 | * paths.el (prune-directory-list): New function. | ||
| 4 | (Info-default-directory-list): Rewritten to more methodically | ||
| 5 | enumerate a big list of possible info directories (based on the | ||
| 6 | list used by the standalone info reader). | ||
| 7 | * info.el (info-initialize): Use prune-directory-list to remove | ||
| 8 | non-existant directories from Info-directory-list. | ||
| 9 | |||
| 10 | 2000-06-27 Miles Bader <miles@lsi.nec.co.jp> | ||
| 11 | |||
| 12 | * paths.el (Info-default-directory-list): Try a list of possible | ||
| 13 | info-directories instead of a single one. Add the possible | ||
| 14 | info directory "/usr/share/info". | ||
| 15 | |||
| 16 | * woman.el (woman-man.conf-path): Explicitly include the debian | ||
| 17 | man-db config file "/etc/manpath.config". | ||
| 18 | (woman-parse-man.conf): Also handle MANDATORY_MANPATH entries, as | ||
| 19 | are present in `manpath.config'. | ||
| 20 | (woman-manpath): Include "/usr/share/man". | ||
| 21 | |||
| 1 | 2000-07-03 Gerd Moellmann <gerd@gnu.org> | 22 | 2000-07-03 Gerd Moellmann <gerd@gnu.org> |
| 2 | 23 | ||
| 3 | * frame.el (blink-cursor-mode): Don't hide cursor initially. | 24 | * frame.el (blink-cursor-mode): Don't hide cursor initially. |
diff --git a/lisp/info.el b/lisp/info.el index 78c2193f005..2f5d6744496 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -259,30 +259,31 @@ Do the right thing if the file has been compressed or zipped." | |||
| 259 | (expand-file-name "info/" installation-directory))) | 259 | (expand-file-name "info/" installation-directory))) |
| 260 | alternative) | 260 | alternative) |
| 261 | (setq Info-directory-list | 261 | (setq Info-directory-list |
| 262 | (if path | 262 | (prune-directory-list |
| 263 | (split-string path (regexp-quote path-separator)) | 263 | (if path |
| 264 | (if (and sibling (file-exists-p sibling)) | 264 | (split-string path (regexp-quote path-separator)) |
| 265 | ;; Uninstalled, Emacs builddir != srcdir. | 265 | (if (and sibling (file-exists-p sibling)) |
| 266 | (setq alternative sibling) | 266 | ;; Uninstalled, Emacs builddir != srcdir. |
| 267 | ;; Uninstalled, builddir == srcdir | 267 | (setq alternative sibling) |
| 268 | (setq alternative source)) | 268 | ;; Uninstalled, builddir == srcdir |
| 269 | (if (or (member alternative Info-default-directory-list) | 269 | (setq alternative source)) |
| 270 | ;; On DOS/NT, we use movable executables always, | 270 | (if (or (member alternative Info-default-directory-list) |
| 271 | ;; and we must always find the Info dir at run time. | 271 | ;; On DOS/NT, we use movable executables always, |
| 272 | (if (memq system-type '(ms-dos windows-nt)) | 272 | ;; and we must always find the Info dir at run time. |
| 273 | nil | 273 | (if (memq system-type '(ms-dos windows-nt)) |
| 274 | ;; Use invocation-directory for Info | 274 | nil |
| 275 | ;; only if we used it for exec-directory also. | 275 | ;; Use invocation-directory for Info |
| 276 | (not (string= exec-directory | 276 | ;; only if we used it for exec-directory also. |
| 277 | (expand-file-name "lib-src/" | 277 | (not (string= exec-directory |
| 278 | installation-directory)))) | 278 | (expand-file-name "lib-src/" |
| 279 | (not (file-exists-p alternative))) | 279 | installation-directory)))) |
| 280 | Info-default-directory-list | 280 | (not (file-exists-p alternative))) |
| 281 | ;; `alternative' contains the Info files that came with this | 281 | Info-default-directory-list |
| 282 | ;; version, so we should look there first. `Info-insert-dir' | 282 | ;; `alternative' contains the Info files that came with this |
| 283 | ;; currently expects to find `alternative' first on the list. | 283 | ;; version, so we should look there first. `Info-insert-dir' |
| 284 | (cons alternative | 284 | ;; currently expects to find `alternative' first on the list. |
| 285 | (reverse (cdr (reverse Info-default-directory-list)))))))))) | 285 | (cons alternative |
| 286 | (reverse (cdr (reverse Info-default-directory-list))))))))))) | ||
| 286 | 287 | ||
| 287 | ;;;###autoload | 288 | ;;;###autoload |
| 288 | (defun info-other-window (&optional file) | 289 | (defun info-other-window (&optional file) |