From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#49069: 28.0.50; [PATCH] Use display-buffer for re-builder Date: Wed, 30 Jun 2021 22:49:52 +0300 Organization: LINKOV.NET Message-ID: <87zgv76skf.fsf@mail.linkov.net> References: <87r1h1jnf2.fsf@riseup.net> <87a6npf7pr.fsf@riseup.net> <871r90fsoq.fsf@riseup.net> <87o8boy8cd.fsf@riseup.net> <87pmw4tn2t.fsf@mail.linkov.net> <87czs4xqn7.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 49069@debbugs.gnu.org To: Trust me I am a Doctor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 30 22:06:46 2021 Return-path: 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 ) id 1lygTu-0006F9-Dw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 22:06:46 +0200 Original-Received: from localhost ([::1]:36878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lygTt-0003ic-0h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Jun 2021 16:06:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lygSE-0000Qc-Gg for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lygSE-0006xb-8z for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lygSD-0003pP-VE for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2021 16:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jun 2021 20:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49069-submit@debbugs.gnu.org id=B49069.162508347514657 (code B ref 49069); Wed, 30 Jun 2021 20:05:01 +0000 Original-Received: (at 49069) by debbugs.gnu.org; 30 Jun 2021 20:04:35 +0000 Original-Received: from localhost ([127.0.0.1]:58814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lygRn-0003oJ-Kx for submit@debbugs.gnu.org; Wed, 30 Jun 2021 16:04:35 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lygRi-0003nd-P8 for 49069@debbugs.gnu.org; Wed, 30 Jun 2021 16:04:31 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 7D42FE0007; Wed, 30 Jun 2021 20:04:24 +0000 (UTC) In-Reply-To: <87czs4xqn7.fsf@riseup.net> (Trust me I. am a. Doctor's message of "Tue, 29 Jun 2021 23:50:19 +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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209238 Archived-At: >> Sorry, preventing the users from customizing windows is the wrong thing. > > I don't know really, let me explain my rational : some users have a very > constrained display-buffer-alist and match ".*". You can see such > rational explained at the end of this page : > > https://github.com/nex3/perspective-el Thanks for the reference. Now I understand the reason for such absurdity in org-mode: (defmacro org-no-popups (&rest body) "Suppress popup windows and evaluate BODY." `(let (pop-up-frames display-buffer-alist) ,@body)) So different packages are fighting with each other: one package recommends using display-buffer-alist to display all buffers only in the same window, another package throws away user customization on such grounds that users might follow such poor recommendations. The correct way to display all buffers in the same window is documented in (info "(emacs) Window Choice") where display-buffer-base-action should be customized like this: (customize-set-variable 'display-buffer-base-action '((display-buffer-reuse-window display-buffer-same-window))) And the problem is solved. So please avoid ignoring user customization with display-buffer-overriding-action because users with such display-buffer-base-action will be able to customize "*RE-Builder*" with display-buffer-alist.