changeset 54387:a3ca89cf37e6

(info-lookup): Reuse an existing Info window.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 13 Mar 2004 13:12:09 +0000
parents 6cce35d999fb
children 87a1108524aa
files lisp/info-look.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info-look.el	Sat Mar 13 13:06:48 2004 +0000
+++ b/lisp/info-look.el	Sat Mar 13 13:12:09 2004 +0000
@@ -338,7 +338,8 @@
 	       (info-frame (and window (window-frame window))))
 	  (if (and info-frame
 		   (display-multi-frame-p)
-		   (memq info-frame (frames-on-display-list)))
+		   (memq info-frame (frames-on-display-list))
+		   (not (eq info-frame (selected-frame))))
 	    (select-frame info-frame)
 	  (switch-to-buffer-other-window "*info*")))))
     (while (and (not found) modes)