diff lisp/packages/info.el @ 22:8fc7fe29b841 r19-15b94

Import from CVS: tag r19-15b94
author cvs
date Mon, 13 Aug 2007 08:50:29 +0200
parents 0293115a14e9
children 56c54cf7c5b6
line wrap: on
line diff
--- a/lisp/packages/info.el	Mon Aug 13 08:50:06 2007 +0200
+++ b/lisp/packages/info.el	Mon Aug 13 08:50:29 2007 +0200
@@ -1826,11 +1826,11 @@
   (interactive)
   (if Info-standalone
       (save-buffers-kill-emacs)
-    (switch-to-buffer (prog1 (other-buffer (current-buffer))
-			(bury-buffer (current-buffer))
-			(if (featurep 'toolbar)
-			    (if (frame-live-p toolbar-info-frame)
-				(delete-frame toolbar-info-frame)))))))
+    (bury-buffer (current-buffer))
+    (if (and (featurep 'toolbar)
+	     (eq toolbar-info-frame (selected-frame)))
+	(delete-frame toolbar-info-frame)
+      (switch-to-buffer (other-buffer (current-buffer))))))
 
 (defun Info-undefined ()
   "Make command be undefined in Info."