From unknown Fri Jun 20 05:28:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30 <30@debbugs.gnu.org> To: bug#30 <30@debbugs.gnu.org> Subject: Status: Inconsistent behaviour of display-buffer, pop-to-buffer Reply-To: bug#30 <30@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:28:00 +0000 retitle 30 Inconsistent behaviour of display-buffer, pop-to-buffer reassign 30 emacs submitter 30 "Otto Maddox" severity 30 normal tag 30 wontfix thanks From monnier@iro.umontreal.ca Sun Mar 2 19:01:50 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Mar 2008 03:01:50 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2331k53024191 for ; Sun, 2 Mar 2008 19:01:47 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CALr4ykfO+LKX/2dsb2JhbACRd5lOgQA X-IronPort-AV: E=Sophos;i="4.25,435,1199682000"; d="scan'208";a="15470984" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 02 Mar 2008 22:01:32 -0500 Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id JGE40132 for ; Sun, 02 Mar 2008 22:01:32 -0500 Received: by pastel.home (Postfix, from userid 20848) id 3D21A8279; Sun, 2 Mar 2008 22:01:32 -0500 (EST) Resent-Message-ID: Resent-To: submit@debbugs.gnu.org Resent-From: Stefan Monnier Resent-Date: Sun, 02 Mar 2008 22:01:32 -0500 X-Original-To: monnier@iro.umontreal.ca Delivered-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id C5F682CF990 for ; Fri, 29 Feb 2008 23:27:46 -0500 (EST) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 6AA833B8AA7 for ; Fri, 29 Feb 2008 23:27:35 -0500 (EST) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVJJv-0001Uw-62 for monnier@iro.umontreal.ca; Fri, 29 Feb 2008 23:27:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVJJn-0001Uk-MR for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 23:27:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVJJm-0001UF-03 for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 23:27:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVJJl-0001UC-RB for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 23:27:25 -0500 Received: from out3.smtp.messagingengine.com ([66.111.4.27]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVJJl-0004no-Fc for bug-gnu-emacs@gnu.org; Fri, 29 Feb 2008 23:27:25 -0500 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id ECB85A6EE4 for ; Fri, 29 Feb 2008 23:27:23 -0500 (EST) Received: from web8.messagingengine.com ([10.202.2.217]) by compute1.internal (MEProxy); Fri, 29 Feb 2008 23:27:23 -0500 Received: by web8.messagingengine.com (Postfix, from userid 99) id C9FDA1A739; Fri, 29 Feb 2008 23:27:23 -0500 (EST) Message-Id: <1204345643.1966.1239939351@webmail.messagingengine.com> X-Sasl-Enc: Rn2OVJjo6xzBcOAgBI9xf3iIsw8FjCxHzXAgIbqlqMpB 1204345643 From: "Otto Maddox" To: bug-gnu-emacs@gnu.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Date: Sat, 01 Mar 2008 04:27:23 +0000 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Inconsistent behaviour of display-buffer, pop-to-buffer 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: , Sender: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.83, requis 5, BAYES_00 -2.60, MC_HTTPSTR 0.11, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: bug-gnu-emacs-bounces+monnier=iro.umontreal.ca@gnu.org When running Emacs on either X or Mac OS X: ;; Similar to display-buffer-other-frame, but without all the ;; raise-frame, make-frame-{in,}visible stuff. The point is to ;; illustrate annoyingly inconsistent behaviour of display-buffer. (defun my-display-buffer (buf) (let ((pop-up-frames t) same-window-buffer-names same-window-regexps) (display-buffer buf t))) Create but don't display a buffer named "foo": (get-buffer-create "foo") Pop up a new frame, selected and WITH focus: (my-display-buffer "foo") Go back to the original frame with C-x 5 o Pop up the "foo" frame, selected but WITHOUT focus this time: (my-display-buffer "foo") ???? Again, go back to the original frame with C-x 5 o and also do C-x b foo RET to make "foo" the current buffer. Two issues this time. The other "foo" frame is not raised but a new frame is unnecessarily created (the doc says that pop-up-frames means that visible and iconified frames should be searched). Also, the newly created frame is WITH focus this time: (my-display-buffer "foo") The same inconsistent behaviour happens if you substitute pop-to-buffer for display-buffer in the definition of my-display-buffer, which seems definitely buggy because the doc for pop-to-buffer says that it should select the buffer. In GNU Emacs 22.1.1 (powerpc-apple-darwin8.9.0, Carbon Version 1.6.0) of 2007-06-08 -- Otto Maddox ottomaddox@fastmail.fm -- http://www.fastmail.fm - The professional email service From monnier@iro.umontreal.ca Wed Mar 19 11:24:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=4.0 tests=AWL,LOCALPART_IN_SUBJECT, MURPHY_DRUGS_REL8,ONEWORD autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 19 Mar 2008 18:24:35 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2JIOWZ3029291 for ; Wed, 19 Mar 2008 11:24:33 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEACD34EdMCrTo/2dsb2JhbACqWIEH X-IronPort-AV: E=Sophos;i="4.25,525,1199682000"; d="scan'208";a="16243373" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 19 Mar 2008 14:23:58 -0400 Received: from pastel.home ([76.10.180.232]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id ZVQ15958; Wed, 19 Mar 2008 14:23:58 -0400 Received: by pastel.home (Postfix, from userid 20848) id D14868168; Wed, 19 Mar 2008 14:23:57 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: control Message-ID: Date: Wed, 19 Mar 2008 14:23:57 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii owner 32 Francesco Potorti tag 37 +patch tag 30 +wontfix close 43 tag 61 +wontfix thanks From rudalics@gmx.at Sun Jan 4 11:10:51 2009 Received: (at 30-done) by emacsbugs.donarmstrong.com; 4 Jan 2009 19:10:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id n04JAk0M030057 for <30-done@emacsbugs.donarmstrong.com>; Sun, 4 Jan 2009 11:10:48 -0800 Received: (qmail invoked by alias); 04 Jan 2009 19:10:40 -0000 Received: from 88-117-37-64.adsl.highway.telekom.at (EHLO [88.117.37.64]) [88.117.37.64] by mail.gmx.net (mp037) with SMTP; 04 Jan 2009 20:10:40 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+tckdWT0Gthh7IeDDG9cvi7RyFbqY1gQ0Y6pfkpg mE3fBbIlv34AqV Message-ID: <49610988.9000607@gmx.at> Date: Sun, 04 Jan 2009 20:10:00 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 30-done@debbugs.gnu.org CC: ottomaddox@fastmail.fm Subject: Re: Inconsistent behaviour of display-buffer, pop-to-buffer Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 This bug should now have been resolved for CVS Emacs by the following two fixes: 2008-09-11 Martin Rudalics * window.el (pop-to-buffer): If the window for buffer-or-name is not on the selected frame, raise that window's frame and give it input focus. (Bug#745) 2009-01-04 Martin Rudalics * window.el (display-buffer): When a buffer is displayed in the selected and some other window, and not-this-window is non-nil, try to return that other window instead of popping up a new frame. (Bug#30) Thanks for reporting, martin. From unknown Fri Jun 20 05:28:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 02 Feb 2009 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator