# HG changeset patch # User Karl Heuer # Date 833485584 0 # Node ID d78c3fd6a0abf21210313ba0bddc47eb0b29db19 # Parent 85073711a2890d6543ebefb3e18b0dab53b75557 (Info-insert-dir): Fix default directory. diff -r 85073711a289 -r d78c3fd6a0ab lisp/info.el --- a/lisp/info.el Thu May 30 17:12:48 1996 +0000 +++ b/lisp/info.el Thu May 30 19:46:24 1996 +0000 @@ -464,6 +464,7 @@ Info-dir-file-attributes (cons (cons file attrs) Info-dir-file-attributes)))))) + (or (cdr dirs) (setq Info-dir-contents-directory (car dirs))) (setq dirs (cdr dirs)))) (or buffers @@ -474,13 +475,10 @@ (setq buffer (car buffers) others (cdr buffers)) - ;; Insert the entire original dir file as a start; use its - ;; default directory as the default directory for the whole - ;; concatenation. + ;; Insert the entire original dir file as a start; note that we've + ;; already saved its default directory to use as the default + ;; directory for the whole concatenation. (insert-buffer buffer) - (setq Info-dir-contents-directory (save-excursion - (set-buffer buffer) - default-directory)) ;; Look at each of the other buffers one by one. (while others