From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#4271: 23.1; pop-to-buffer -vs- multiple terminals Date: Thu, 27 Aug 2009 07:52:52 +0200 Message-ID: <4A961F34.8080003@gmx.at> References: Reply-To: martin rudalics , 4271@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251353238 8690 80.91.229.12 (27 Aug 2009 06:07:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 06:07:18 +0000 (UTC) To: Tom Tromey , 4271@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 27 08:07:11 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgY8c-0001VS-JE for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Aug 2009 08:07:10 +0200 Original-Received: from localhost ([127.0.0.1]:34128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgY8b-0008Mq-Mx for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Aug 2009 02:07:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgY8T-0008Jv-8S for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2009 02:07:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgY8O-0008D6-4U for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2009 02:07:00 -0400 Original-Received: from [199.232.76.173] (port=44252 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgY8O-0008D1-04 for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2009 02:06:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43185) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgY8N-0005hG-BG for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2009 02:06:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7R66r8q002276; Wed, 26 Aug 2009 23:06:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7R604ke000533; Wed, 26 Aug 2009 23:00:04 -0700 Resent-Date: Wed, 26 Aug 2009 23:00:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 27 Aug 2009 06:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4271 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4271-submit@emacsbugs.donarmstrong.com id=B4271.125135238132172 (code B ref 4271); Thu, 27 Aug 2009 06:00:04 +0000 Original-Received: (at 4271) by emacsbugs.donarmstrong.com; 27 Aug 2009 05:53:01 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n7R5qwqD032167 for <4271@emacsbugs.donarmstrong.com>; Wed, 26 Aug 2009 22:53:00 -0700 Original-Received: (qmail invoked by alias); 27 Aug 2009 05:52:53 -0000 Original-Received: from 62-47-59-84.adsl.highway.telekom.at (EHLO [62.47.59.84]) [62.47.59.84] by mail.gmx.net (mp026) with SMTP; 27 Aug 2009 07:52:53 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/0+r52WCT0Xm5M52U2vLzVSZUqnifU6f52RCXNn0 ffcdwDW4ZvXyoB User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 27 Aug 2009 02:07:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30604 Archived-At: > 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.