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#7865: Bug in display-buffer-reuse-frames [was Re: bug#7865: 24.0.50; doc of display-buffer-reuse-frames] Date: Sun, 13 Feb 2011 15:05:36 +0100 Message-ID: <4D57E530.1080101@gmx.at> References: <7505A1C76F6C42E4A27159D548366974@us.oracle.com> <87aai1x8lf.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297605994 30309 80.91.229.12 (13 Feb 2011 14:06:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2011 14:06:34 +0000 (UTC) Cc: 7865@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 13 15:06:30 2011 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.69) (envelope-from ) id 1Pocar-0000ET-LA for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Feb 2011 15:06:29 +0100 Original-Received: from localhost ([127.0.0.1]:33268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pocar-0004ww-2I for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Feb 2011 09:06:29 -0500 Original-Received: from [140.186.70.92] (port=43787 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pocam-0004wr-51 for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 09:06:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pocak-00062M-Qm for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 09:06:24 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pocak-00062G-Ng for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2011 09:06:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PocRi-0004Yy-DE; Sun, 13 Feb 2011 08:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2011 13:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7865-submit@debbugs.gnu.org id=B7865.129760541117524 (code B ref 7865); Sun, 13 Feb 2011 13:57:02 +0000 Original-Received: (at 7865) by debbugs.gnu.org; 13 Feb 2011 13:56:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PocRX-0004Yb-6p for submit@debbugs.gnu.org; Sun, 13 Feb 2011 08:56:51 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PocRU-0004YO-49 for 7865@debbugs.gnu.org; Sun, 13 Feb 2011 08:56:49 -0500 Original-Received: (qmail invoked by alias); 13 Feb 2011 14:05:41 -0000 Original-Received: from 62-47-36-154.adsl.highway.telekom.at (EHLO [62.47.36.154]) [62.47.36.154] by mail.gmx.net (mp050) with SMTP; 13 Feb 2011 15:05:41 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19dUQkkWCJdTc0D4cizScwif5muDNPIuwkq7BPka/ R17zNfjbOYEIz6 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87aai1x8lf.fsf@stupidchicken.com> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 13 Feb 2011 08:57:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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:44097 Archived-At: > I think this is actually a bug. Doing `C-x b' with non-nil > display-buffer-reuse-frames should make Emacs raise another frame if > it;s already displaying the desired buffer---regardless of the value of > pop-up-frames. If `display-buffer-reuse-frames' is non-nil, Emacs currently uses an arbitrary window on _any_ frame provided the window shows the buffer, regardless of the value of `pop-up-frames'. It has been this way ever since `display-buffer-reuse-frames' was introduced. > Currently, if display-buffer-reuse-frames and pop-up-frames are both t, > `C-x b' instead displays the buffer in the existing frame. So > `pop-up-frames' has changed the behavior, even though it's not doing any > "popping up" in this case. I suppose you mean "if `display-buffer-reuse-frames' is nil and `pop-up-frames' is t" in the first sentence above. In that case I'd agree. But I think Stefan wants it the current way because he doesn't care much about `display-buffer-reuse-frames' and he's using these options for popping up dedicated frames to show some buffer in such a frame and nowhere else. In his particular use case the present behavior makes perfect sense because it DTRT even if he asks for displaying the buffer when its frame _is_ currently selected. To make `display-buffer-reuse-frames' work as you describe we'd have to make the `get-buffer-window' routines understand as ALL-FRAMES argument a value of say 'other, meaning to "not return a window on the selected frame". Or, we can sort out these windows manually - you might want to have a look at the routine `display-buffer-reuse-window' in my branch to see how it's done there. martin