Subject: Re: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals

From: Stefan Monnier <[email-masked]>
Date: Thu, 27 Aug 2009 01:17:36 -0400

> I ran (pop-to-buffer "*vc-diff*") and this did not show the buffer.  I
> think that this should ignore frames on other terminals when determining
> whether a buffer is visible.

Does the patch below help?

        Stefan

=== modified file 'lisp/window.el'
--- lisp/window.el	2009-07-24 02:42:43 +0000
+++ lisp/window.el	2009-08-27 05:16:51 +0000
@@ -1307,7 +1307,7 @@
 	(old-frame (selected-frame))
 	new-window new-frame)
     (set-buffer buffer)
-    (setq new-window (display-buffer buffer other-window))
+    (setq new-window (display-buffer buffer other-window 0))
     (unless (eq new-window old-window)
       ;; `display-buffer' has chosen another window, select it.
       (select-window new-window norecord)