From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org> Newsgroups: gmane.emacs.bugs Subject: bug#67249: 30.0.50; `same-frame` equivalent for `display-buffer-alist` Date: Sun, 10 Dec 2023 12:16:26 -0500 Message-ID: <jwvbkayj7x8.fsf-monnier+emacs@gnu.org> References: <jwv34x4m50o.fsf@iro.umontreal.ca> <jwv1qcmfm22.fsf-monnier+emacs@gnu.org> <cbc6a073-2718-7809-c85e-cf338341c712@gmx.at> <jwvv89xesho.fsf-monnier+emacs@gnu.org> <69e6899b-9e93-9a97-a8bc-4ce9a9f0ae4c@gmx.at> <jwvwmucd0mq.fsf-monnier+emacs@gnu.org> <69387717-1eaa-6019-0000-4c95c61e1bc3@gmx.at> <jwvwmubrkx7.fsf-monnier+emacs@gnu.org> <1f026837-af56-435f-9d4e-048a18af07eb@gmx.at> <jwv8r6pssbu.fsf-monnier+emacs@gnu.org> <a3b664a2-bb53-2f84-edb1-ab4d9d3567bd@gmx.at> <jwvlean7ulh.fsf-monnier+emacs@gnu.org> <488b181f-c74e-d97b-b168-a602158c3e7b@gmx.at> <jwv8r6n6z8t.fsf-monnier+emacs@gnu.org> <jwv8r6njf5k.fsf-monnier+emacs@gnu.org> <47d97021-75ea-cfc7-d439-cc38bc1044f4@gmx.at> <jwvwmu529iy.fsf-monnier+emacs@gnu.org> <jwvjzpvglal.fsf-monnier+emacs@gnu.org> <52b5fec2-510f-2fcd-c67c-2da18c91ab22@gmx.at> <jwv1qbvm2o1.fsf-monnier+emacs@gnu.org> <83fs0awqm7.fsf@gnu.org> Reply-To: Stefan Monnier <monnier@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rudalics@gmx.at, 67249@debbugs.gnu.org To: Eli Zaretskii <eliz@gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 10 18:17:04 2023 Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org> Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>) id 1rCNQO-0003r4-Dy for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Dec 2023 18:17:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <bug-gnu-emacs-bounces@gnu.org>) id 1rCNQB-00085F-4N; Sun, 10 Dec 2023 12:16:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rCNQ8-00084q-Lf for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 12:16:48 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rCNQ8-0004rk-CO for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 12:16:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rCNQM-0007ZF-8X for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 12:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier <monnier@iro.umontreal.ca> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2023 17:17:02 +0000 Resent-Message-ID: <handler.67249.B67249.170222861129064@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67249 X-GNU-PR-Package: emacs Original-Received: via spool by 67249-submit@debbugs.gnu.org id=B67249.170222861129064 (code B ref 67249); Sun, 10 Dec 2023 17:17:02 +0000 Original-Received: (at 67249) by debbugs.gnu.org; 10 Dec 2023 17:16:51 +0000 Original-Received: from localhost ([127.0.0.1]:51719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rCNQB-0007Yh-A6 for submit@debbugs.gnu.org; Sun, 10 Dec 2023 12:16:51 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@iro.umontreal.ca>) id 1rCNQ8-0007YS-Ee for 67249@debbugs.gnu.org; Sun, 10 Dec 2023 12:16:49 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 6B52D806A7; Sun, 10 Dec 2023 12:16:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1702228587; bh=ZaekZNlmqlzcHsUcGAveK21c0ML+3LtiBCBDmf+jCx8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CSg05S50wAlOcznFScn1GC1fWeX+z+mBWGvfEz284x6gyvzg8xFcMEPs2F3Se+bGp AX3IuTgd0ItmHwKaRDq2LuWN2P+5xEy6JJExN5KoAW3wkC9i/W6z4CY9ItwJO50WH3 zIRryNybGOgdtuow7JNdpnn8/F/ouLdeCHVeluAs3mmXZyrnYnN7N28Fl5yIU7g2wf 3vNm0O3zEFUyi4N0X8nfTjvhiD86A8H5Etu9o8Yk0M4fhVkvlZxd4B0F8sYz3KNzoV LGpQHRvg6+/Dz+vhjdnTCcPeT9FMn8uIGFxRp9V5i/hVkP8V7etIWnevrN6fxtGm/l cc+xkYipDTyvQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 762BD80385; Sun, 10 Dec 2023 12:16:27 -0500 (EST) Original-Received: from pastel (unknown [45.72.200.104]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4C3901207FE; Sun, 10 Dec 2023 12:16:27 -0500 (EST) In-Reply-To: <83fs0awqm7.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Dec 2023 07:53:04 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs> List-Post: <mailto:bug-gnu-emacs@gnu.org> List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>, <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe> Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275935 Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/275935> > pop-up-frames described here is a user option, so saying "the value of > this parameter" is wrong. My suggestion is to leave the current text > alone, and add after it something like > > An entry by the same name in @code{display-buffer}'s @var{alist} > takes precedence over the variable. Thanks. The doc change is now as below. Stefan diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 22c1b307252..5f5e5d143aa 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -3268,6 +3268,15 @@ Buffer Display Action Alists if one is created. @code{display-buffer-pop-up-frame} is its one and only addressee. +@vindex pop-up-frames{, a buffer display action alist entry} +@item pop-up-frames +This value controls whether @code{display-buffer} may display buffers +by making new frames. It has the same meaning as the +@code{pop-up-frames} variable and takes precedence over it when present. +Its main intended purpose is to override a non-nil value of the +variable for particular buffers which the user prefers to keep +in the selected frame. + @vindex parent-frame@r{, a buffer display action alist entry} @item parent-frame The value specifies the parent frame to be used when the buffer is @@ -3441,6 +3450,9 @@ Choosing Window Options looking for a window already displaying @var{buffer-or-name}, it can search any visible or iconified frame, not just the selected frame. +An entry by the same name in @code{display-buffer}'s @var{alist} +takes precedence over the variable. + This variable is provided mainly for backward compatibility. It is obeyed by @code{display-buffer} via a special mechanism in @code{display-buffer-fallback-action}, which calls the action function