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: Re: switch-to-buffer-other-frame fails to pop-up window Date: Tue, 04 Dec 2007 08:37:46 +0100 Message-ID: <475503CA.70502@gmx.at> References: <47541753.4060505@diamondbackcap.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 1196754718 13904 80.91.229.12 (4 Dec 2007 07:51:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 07:51:58 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Mark T. Kennedy" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 04 08:52:08 2007 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 1IzSZb-0008El-PZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Dec 2007 08:52:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzSZL-00019P-EC for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Dec 2007 02:51:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzSZ9-00015p-Rw for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 02:51:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzSZ7-00014N-AM for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 02:51:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzSZ6-000147-Ge for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 02:51:36 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IzSZ5-0000HD-Qh for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 02:51:36 -0500 Original-Received: (qmail invoked by alias); 04 Dec 2007 07:51:34 -0000 Original-Received: from N858P000.adsl.highway.telekom.at (EHLO [62.47.51.32]) [62.47.51.32] by mail.gmx.net (mp036) with SMTP; 04 Dec 2007 08:51:34 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX184Bcc/HYc49T4X4Ncu91WxD+ULHcUWj1kiZBpdkK B8VNaDpRCT1J6m User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <47541753.4060505@diamondbackcap.com> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:17116 Archived-At: > 1) start emacs with "-Q" > 2) type "c-x b foo", then "c-x 2", and then "c-x b". > now "*scratch* and "foo" are displayed in two windows > on the original single frame. At this moment the window displaying "foo" is _not_ selected. > 3) now type "c-x 5 b foo" and see that a new frame is not > popped up. But the window displaying "foo" should be selected now. This is the expected behavior of `display-buffer' which is mentioned in the doc-string of `switch-to-buffer-other-frame'. Maybe `switch-to-buffer-other-frame' should _always_ display the buffer in another frame - that is call `display-buffer-other-frame' and select that frame (C-x 5 C-o doesn't _select_ the other frame). > contrast this with "emacs -Q" and "c-x 4 b foo" followed by > "c-x 5 b foo". Because at the time you invoke C-x 5 b foo here a window showing "foo" is selected. Again this is the documented behavior of `display-buffer'. Just some explanations - feel free to demand a more intuitive behavior and/or description. To me it's not entirely clear how to reconcile all possible use cases.