From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4FSGNXUYlWEXIgEAgWs5BA (envelope-from ) for ; Wed, 17 Nov 2021 15:57:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sJ0rMXUYlWEAJgAA1q6Kng (envelope-from ) for ; Wed, 17 Nov 2021 14:57:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 87B9717DBC for ; Wed, 17 Nov 2021 15:57:57 +0100 (CET) Received: from localhost ([::1]:44516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnMNn-00061G-Oe for larch@yhetil.org; Wed, 17 Nov 2021 09:57:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnMGB-0006WX-Gl for emacs-orgmode@gnu.org; Wed, 17 Nov 2021 09:50:03 -0500 Received: from ciao.gmane.io ([116.202.254.214]:59366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnMGA-000108-0Q for emacs-orgmode@gnu.org; Wed, 17 Nov 2021 09:50:03 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mnMG8-0007s6-9A for emacs-orgmode@gnu.org; Wed, 17 Nov 2021 15:50:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Bug: org-no-popups disregards display-buffer-fallback-action 9.4.6 Date: Wed, 17 Nov 2021 21:49:53 +0700 Message-ID: References: <87a6ic5u1c.fsf@dumper.i-did-not-set--mail-host-address--so-tickle-me> <06bed7f3-4f31-4d66-4314-18c08c8dbb34@gmail.com> <893749f7-a709-674f-fe89-03574523396f@thenybble.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 In-Reply-To: <893749f7-a709-674f-fe89-03574523396f@thenybble.de> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 18 X-Spam_score: 1.8 X-Spam_bar: + X-Spam_report: (1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-1.009, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637161077; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3wdz553A0H6eW5GKtyagilCFzQ852Q0nuPCGHeC6vhg=; b=YUbs4eUlP3i6b6iFFyUtJ0W3r4UQpRuwTb9HbC+/bL0ckZzCR+213lw2aTXN/IGlmJ7/mr jTMoSvayJsAKqaOR3U4+ujp74RcEwsjqRNrQL8+k9z+Bzdsf2NpTaRlcj9D//IvkHfyn1p ZrSrSpcKQZmgLyAK9BnGxOJGANjMf9ac6amJqTht6YuV6uvaR1CbXhflKHRM33wF0LSnJz 0MuAJDDIUarWAxobkNw74MW7rJZNSTcoT7QmbKRZEHBF5RU4qc7WaUHmVjZUloRZQmpzyF uHHizuofyk4Pq2IhMl/UVCpM6S6t3ZLtoYgSLzjcP1WzYJ9eC847kV5UsQyF9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637161077; a=rsa-sha256; cv=none; b=H5j+UJLD3eJyZ6OGmtMIb6kZesfu0FQTrYsKsqhNsEu0j2lENGJGaY5rBMTC8JJb9hF9YO jhZotrXr3mVex0vqccl2qE4OuJ0bjeFYFsILqOqK62ZasiPX01/0s79cD9XYVICIdDGjvY RKa4fawRoyMfnRXu66AXybZx5QYWpvY9zA4k5Du+aRfFvEYcH9ZewkTmNulz6lp+ExSX5r 1AQA1/EtoAaC7lJT/29Nglx61QYx0S26a8Xq35WXvbURMrYv/4HlHiP3qWN4QR179jF1gF 2VaXlebsWVSDip5sUyOg6+x/Y7t9rhBHAG1TZAwQYlQbS5yjL9QKh+W/VFclSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.25 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 87B9717DBC X-Spam-Score: -2.25 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1LZw0i1Glh5l On 15/11/2021 14:49, Jan Seeger wrote: > On 13.11.21 14:15, Max Nikulin wrote: > > My thought is that I have a perfectly good window manager that allows me > to manage Emacs frames. > ... Thus, I prefer to have my > window manager manage Emacs frames, instead of adding yet another way to > switch between multiple things being displayed at the same time, which I > would have to do using Emacs windows. > > My current configuration is as follows: > > (setq display-buffer-base-action '((display-buffer-reuse-window display-buffer-pop-up-frame) >                                    (reusable-frames . 0))) > (setq display-buffer-alist >       `(("\\*Packages\\*" display-buffer-pop-up-frame) >         ("\\*stdin.*\\*" display-buffer-same-window) >         ("\\*Help\\*" display-buffer-pop-up-frame) >         ("\\*.*\\*" display-buffer-pop-up-window))) Thank you for sharing this. I have tried such setup. Behavior of Org windows is terrible. "Standard" Emacs windows may be a bit strange sometimes, but it is not really annoying. If there is a *Help* buffer on the screen, another one is created if help is called from some other buffer. Content of help frames is synchronized. I suppose, second help frame on the same screen may be avoided by adjusting configuration. (Side note: sometimes I do not mind to have several help buffers showing different content, so I do not like current limitation of help facilities.) Frame may be split into halves by e.g. debugger window, C-h e, etc. It does not matter whether it is full-screen or half-screen frame (OK, in first case it split by vertical line, in second one by horizontal). Next similar buffer is opened in new frame. I would expect that either always new frame is created or decision depends on window size, not on number of windows (1 or 2) in the frame. I have tried your suggestion > (defmacro org-no-popups (&rest body) > "Suppress popup windows and evaluate BODY." > `(let ((display-buffer-overriding-action '(display-buffer-pop-up-window))) > ,@body)) It requires more work. C-c C-j org-goto is obviously broken with your config due to recent changes. It fixes only first step of org-capture (template selection) is fixed, window with buffer for capture is created in the current frame, but new clone of frame is created. I am still in doubts whether `display-buffer-overriding-action' or ACTION argument of `display-buffer' should be used. Actually I think that even org-capture should have two different options: with new frame or withing existing frame. Maybe I will explain it in detail in other part of this thread is response to Eric's message.