diff options
| author | Glenn Morris | 2014-01-09 21:39:29 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-01-09 21:39:29 -0800 |
| commit | dad6fae7481c35aa1ff9491f789b860aaa898dec (patch) | |
| tree | c2b7c9f6697b51113029f21c5ffbea513307d374 | |
| parent | 0ede4df37ea9d7ed940ded91b916a8c107c9b02f (diff) | |
| download | emacs-dad6fae7481c35aa1ff9491f789b860aaa898dec.tar.gz emacs-dad6fae7481c35aa1ff9491f789b860aaa898dec.zip | |
If running uninstalled, always put our own info files first
* lisp/info.el (info-initialize): If running uninstalled, ensure our
own info files are always found first, even if INFOPATH is set.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/info.el | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0c1b111e3b0..7fecb6b58c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-01-10 Glenn Morris <rgm@gnu.org> | 1 | 2014-01-10 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * info.el (info-initialize): If running uninstalled, ensure our | ||
| 4 | own info files are always found first, even if INFOPATH is set. | ||
| 5 | |||
| 3 | * help.el (view-order-manuals): Open emacs.info rather than ORDERS. | 6 | * help.el (view-order-manuals): Open emacs.info rather than ORDERS. |
| 4 | 7 | ||
| 5 | 2014-01-09 David Engster <deng@randomsample.de> | 8 | 2014-01-09 David Engster <deng@randomsample.de> |
diff --git a/lisp/info.el b/lisp/info.el index 84fc13ccc7d..b8e30fadef3 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -732,6 +732,13 @@ in `Info-file-supports-index-cookies-list'." | |||
| 732 | (Info-default-dirs)) | 732 | (Info-default-dirs)) |
| 733 | (split-string path sep)) | 733 | (split-string path sep)) |
| 734 | (Info-default-dirs)))) | 734 | (Info-default-dirs)))) |
| 735 | ;; If we are running uninstalled, our own Info files should | ||
| 736 | ;; always come first. If INFOPATH was set, they might not. | ||
| 737 | (and path | ||
| 738 | installation-directory | ||
| 739 | (let ((dir (expand-file-name "info/" installation-directory))) | ||
| 740 | (setq Info-directory-list (delete dir Info-directory-list)) | ||
| 741 | (push dir Info-directory-list))) | ||
| 735 | ;; For a self-contained (ie relocatable) NS build, AFAICS we | 742 | ;; For a self-contained (ie relocatable) NS build, AFAICS we |
| 736 | ;; always want the included info directory to be at the head of | 743 | ;; always want the included info directory to be at the head of |
| 737 | ;; the search path, unless it's already in INFOPATH somewhere. | 744 | ;; the search path, unless it's already in INFOPATH somewhere. |