GNU bug report logs - #4271
23.1; pop-to-buffer -vs- multiple terminals

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Thu, 27 Aug 2009 02:45:04 UTC

Severity: normal

Tags: moreinfo

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 4271 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Tom Tromey <tromey <at> redhat.com>
Cc: 4271 <at> debbugs.gnu.org
Subject: Re: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals
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)




This bug report was last modified 12 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.