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#12648: 24.2.50; display-buffer switches to another frame Date: Mon, 15 Oct 2012 14:52:44 +0200 Message-ID: <507C071C.1090402@gmx.at> References: <83391h5787.fsf@gnu.org> <507B0590.3020402@gmx.at> <83zk3o4zus.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350305670 25614 80.91.229.3 (15 Oct 2012 12:54:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2012 12:54:30 +0000 (UTC) Cc: 12648@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 14:54:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TNkBi-0004cp-Hp for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 14:54:30 +0200 Original-Received: from localhost ([::1]:39860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNkBb-0005YJ-MY for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 08:54:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNkBT-0005Uu-Lo for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2012 08:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNkBA-0006e7-NE for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2012 08:54:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNkBA-0006e1-JD for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2012 08:53:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNkCE-0006at-M3 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2012 08:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2012 12:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12648-submit@debbugs.gnu.org id=B12648.135030566125290 (code B ref 12648); Mon, 15 Oct 2012 12:55:02 +0000 Original-Received: (at 12648) by debbugs.gnu.org; 15 Oct 2012 12:54:21 +0000 Original-Received: from localhost ([127.0.0.1]:44828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNkBY-0006Zq-K5 for submit@debbugs.gnu.org; Mon, 15 Oct 2012 08:54:20 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:34127) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TNkBW-0006Ze-AM for 12648@debbugs.gnu.org; Mon, 15 Oct 2012 08:54:19 -0400 Original-Received: (qmail invoked by alias); 15 Oct 2012 12:53:04 -0000 Original-Received: from 62-47-40-20.adsl.highway.telekom.at (EHLO [62.47.40.20]) [62.47.40.20] by mail.gmx.net (mp070) with SMTP; 15 Oct 2012 14:53:04 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19stv1hz3xsJtBYvzJRzPIIDbVudpuft0G39zdnm9 YMGuYwz3xTAURZ In-Reply-To: <83zk3o4zus.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65630 Archived-At: >> > M-: (display-buffer "foo" nil 'visible) RET [...] >> > But >> > display-buffer is not supposed to select the window where it displays >> > the buffer. >> >> Unless it appears on another frame. > > Isn't that difference confusing? I think so. >> If with emacs -Q you do >> >> (let ((pop-up-frames t)) >> (display-buffer (get-buffer-create "baz"))) >> >> that buffer is shown on a new frame and its window is selected. > > I think this is different: setting pop-up-frames non-nil expresses a > wish to see certain behavior that the default shouldn't have. Well, if you call `display-buffer' with the FRAME argument 'visible you're explicitly asking for such behavior. >> Maybe we should provide an alist entry like select-frame for this. If >> the buffer already appears in another frame, we would select the frame >> only if the entry is set. If a new frame is created, we could try to >> not select it if the entry is not set and the window manager supports >> creating a frame and not selecting it. > > Yes, but is the current behavior useful as it is? We have a choice between Scylla and Charybdis. People complained that making a new frame select the window and reusing an existing frame not select the window would break their typing habits ... > If gud.el should call display-buffer in some different way to avoid > selecting the frame with the source, that, too, could be a good > solution. IIUC that's what Chong's `inhibit-switch-frame' alist entry is meant for. I haven't tried it yet, though. martin