diff options
| -rw-r--r-- | lisp/info.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/info.el b/lisp/info.el index ec783d1eacf..1e6e0dd472c 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -464,6 +464,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 464 | Info-dir-file-attributes | 464 | Info-dir-file-attributes |
| 465 | (cons (cons file attrs) | 465 | (cons (cons file attrs) |
| 466 | Info-dir-file-attributes)))))) | 466 | Info-dir-file-attributes)))))) |
| 467 | (or (cdr dirs) (setq Info-dir-contents-directory (car dirs))) | ||
| 467 | (setq dirs (cdr dirs)))) | 468 | (setq dirs (cdr dirs)))) |
| 468 | 469 | ||
| 469 | (or buffers | 470 | (or buffers |
| @@ -474,13 +475,10 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 474 | (setq buffer (car buffers) | 475 | (setq buffer (car buffers) |
| 475 | others (cdr buffers)) | 476 | others (cdr buffers)) |
| 476 | 477 | ||
| 477 | ;; Insert the entire original dir file as a start; use its | 478 | ;; Insert the entire original dir file as a start; note that we've |
| 478 | ;; default directory as the default directory for the whole | 479 | ;; already saved its default directory to use as the default |
| 479 | ;; concatenation. | 480 | ;; directory for the whole concatenation. |
| 480 | (insert-buffer buffer) | 481 | (insert-buffer buffer) |
| 481 | (setq Info-dir-contents-directory (save-excursion | ||
| 482 | (set-buffer buffer) | ||
| 483 | default-directory)) | ||
| 484 | 482 | ||
| 485 | ;; Look at each of the other buffers one by one. | 483 | ;; Look at each of the other buffers one by one. |
| 486 | (while others | 484 | (while others |