diff options
| author | Eli Zaretskii | 2001-02-02 18:10:41 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-02-02 18:10:41 +0000 |
| commit | 2c366083cd0d072cbd3afca41aa93adadcd9eee9 (patch) | |
| tree | 528e67d69549e4c6c82d0448d3458d78f4c6d158 /lisp | |
| parent | 0969bd6a67fae975e2b16c94889061c45d3a3567 (diff) | |
| download | emacs-2c366083cd0d072cbd3afca41aa93adadcd9eee9.tar.gz emacs-2c366083cd0d072cbd3afca41aa93adadcd9eee9.zip | |
(info-initialize): If installation-directory is nil, for
DOS/Windows systems try looking in a sibling of
invocation-directory.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/info.el | 14 |
2 files changed, 19 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bcff096af9d..7a7547eb8d6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * info.el (info-initialize): If installation-directory is nil, for | ||
| 4 | DOS/Windows systems try looking in a sibling of | ||
| 5 | invocation-directory. | ||
| 6 | |||
| 1 | 2001-02-02 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-02-02 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * wid-edit.el (widget-button-click): Fix last change. | 9 | * wid-edit.el (widget-button-click): Fix last change. |
diff --git a/lisp/info.el b/lisp/info.el index dc9a7b7dea9..1add6ed522f 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -311,7 +311,19 @@ Do the right thing if the file has been compressed or zipped." | |||
| 311 | (let ((path (getenv "INFOPATH")) | 311 | (let ((path (getenv "INFOPATH")) |
| 312 | (source (expand-file-name "info/" source-directory)) | 312 | (source (expand-file-name "info/" source-directory)) |
| 313 | (sibling (if installation-directory | 313 | (sibling (if installation-directory |
| 314 | (expand-file-name "info/" installation-directory))) | 314 | (expand-file-name "info/" installation-directory) |
| 315 | (if (and (memq system-type '(ms-dos windows-nt)) | ||
| 316 | invocation-directory) | ||
| 317 | (let ((infodir (expand-file-name | ||
| 318 | "../info/" | ||
| 319 | invocation-directory))) | ||
| 320 | (if (file-exists-p infodir) | ||
| 321 | infodir | ||
| 322 | (setq infodir (expand-file-name | ||
| 323 | "../../../info/" | ||
| 324 | invocation-directory)) | ||
| 325 | (and (file-exists-p infodir) | ||
| 326 | infodir)))))) | ||
| 315 | alternative) | 327 | alternative) |
| 316 | (setq Info-directory-list | 328 | (setq Info-directory-list |
| 317 | (prune-directory-list | 329 | (prune-directory-list |