diff options
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el index 367d9d0a9ef..93523c4c16f 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -618,7 +618,19 @@ in `Info-file-supports-index-cookies-list'." | |||
| 618 | (append (split-string (substring path 0 -1) sep) | 618 | (append (split-string (substring path 0 -1) sep) |
| 619 | (Info-default-dirs)) | 619 | (Info-default-dirs)) |
| 620 | (split-string path sep)) | 620 | (split-string path sep)) |
| 621 | (Info-default-dirs))))))) | 621 | (Info-default-dirs)))) |
| 622 | ;; For a self-contained (ie relocatable) NS build, AFAICS we | ||
| 623 | ;; always want the included info directory to be at the head of | ||
| 624 | ;; the search path, unless it's already in INFOPATH somewhere. | ||
| 625 | ;; It's at the head of Info-default-directory-list, | ||
| 626 | ;; but there's no way to get it at the head of Info-directory-list | ||
| 627 | ;; except by doing it here. | ||
| 628 | (and path | ||
| 629 | (featurep 'ns) | ||
| 630 | (let ((dir (expand-file-name "../info" data-directory))) | ||
| 631 | (and (file-directory-p dir) | ||
| 632 | (not (member dir (split-string path ":" t))) | ||
| 633 | (push dir Info-directory-list))))))) | ||
| 622 | 634 | ||
| 623 | ;;;###autoload | 635 | ;;;###autoload |
| 624 | (defun info-other-window (&optional file-or-node) | 636 | (defun info-other-window (&optional file-or-node) |