[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Stefan Monnier
Subject: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals
Date: Thu, 27 Aug 2009 01:17:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> 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?


=== 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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]