unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Tom Tromey <tromey@redhat.com>, 4271@emacsbugs.donarmstrong.com
Subject: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals
Date: Thu, 27 Aug 2009 07:52:52 +0200	[thread overview]
Message-ID: <4A961F34.8080003@gmx.at> (raw)
In-Reply-To: <m3fxbex9qf.fsf@fleche.redhat.com>

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





  parent reply	other threads:[~2009-08-27  5:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27  2:37 bug#4271: 23.1; pop-to-buffer -vs- multiple terminals Tom Tromey
2009-08-27  5:17 ` Stefan Monnier
2009-08-27  5:52 ` martin rudalics [this message]
2012-06-20  6:03 ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A961F34.8080003@gmx.at \
    --to=rudalics@gmx.at \
    --cc=4271@emacsbugs.donarmstrong.com \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).