changeset 21003:fd244f615d9d

(info): Always switch to buffer *info* even if current buffer is in Info mode.
author Richard M. Stallman <rms@gnu.org>
date Fri, 27 Feb 1998 23:30:11 +0000
parents bf4300d62bd1
children c1ec48dd8520
files lisp/info.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Fri Feb 27 22:20:12 1998 +0000
+++ b/lisp/info.el	Fri Feb 27 23:30:11 1998 +0000
@@ -286,11 +286,10 @@
 in all the directories in that path."
   (interactive (if current-prefix-arg
 		   (list (read-file-name "Info file name: " nil nil t))))
+  (pop-to-buffer "*info*")
   (if file
       (Info-goto-node (concat "(" file ")"))
-    (if (get-buffer "*info*")
-	(pop-to-buffer "*info*")
-      (Info-directory))))
+    (Info-directory)))
 
 ;;;###autoload
 (defun info-standalone ()