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 #15 received at 4271 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Tom Tromey <tromey <at> redhat.com>, 4271 <at> debbugs.gnu.org
Subject: Re: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals
Date: Thu, 27 Aug 2009 07:52:52 +0200
> When I ran vc-diff on this terminal, I was surprised that I was not
> switched to the *vc-diff* buffer.  It turns out that *vc-diff* was in a
> window on one of the X frames -- but not visible to me now, using the
> tty.
>
> 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.

Could you please edebug `display-buffer' and find out how the `let' part
below gets executed in your case

     ((let ((frames (or frame
			(and (or use-pop-up-frames
				 display-buffer-reuse-frames
				 (not (last-nonminibuffer-frame)))
			     0)
			(last-nonminibuffer-frame))))
	(setq window-to-use
	      (catch 'found
		;; Search frames for a window displaying BUFFER.  Return
		;; the selected window only if we are allowed to do so.
		(dolist (window (get-buffer-window-list buffer 'nomini frames))
		  (when (or can-use-selected-window
			    (not (eq (selected-window) window)))
		    (throw 'found window))))))

Thanks, martin.



This bug report was last modified 13 years and 7 days ago.

Previous Next


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