From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Sensible values for `display-buffer-base-action' Date: Tue, 07 Jun 2022 08:24:47 +0000 Message-ID: <87bkv498z4.fsf@posteo.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="11962"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 07 10:26:53 2022 Return-path: Envelope-to: geh-help-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 1nyUY5-0002ii-P6 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 10:26:49 +0200 Original-Received: from localhost ([::1]:49350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyUY4-0007li-A9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 07 Jun 2022 04:26:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyUWD-0007ja-PX for help-gnu-emacs@gnu.org; Tue, 07 Jun 2022 04:24:54 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:52155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyUWA-0006bs-QJ for help-gnu-emacs@gnu.org; Tue, 07 Jun 2022 04:24:53 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8B36424010A for ; Tue, 7 Jun 2022 10:24:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1654590288; bh=uZLhLzPdNUd3eWBkzJ1YKQ5j1GCAImINSIoGGiahIRI=; h=From:To:Subject:Autocrypt:Date:From; b=n+7mIvjzFNGSJCaGqs26fnErbkfmgO4rnFz0vM6+qfgdusp4faKdQLL5tSUlI/gx3 HAd/0QxBoN7o4tG4QQfyod6M9gb8pdJun2wPq86EfLm1AiySEbkK2M/h5CecSRUgxf PrBGQ2+rL9ZD9T8GJ36CfdF1bnTVJOp/mRYFNTLp2LA4oXChxMBwGLPEWfVCHubx/h JmnUpbqD4gGiNBgNYLlLp0+9FcvcRD99QA3OyO0LAqLrmXHfEKOTs1ssVWfhrad8BH ZxJUz/xEmwFndyF7jmmTT+sbz4yZ6pXDzACxenmZHEn5kdZrnR5o+qXLDNtAHEvsJR 6+F0/2RVpQ+KA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LHNgz6QYwz6tnW for ; Tue, 7 Jun 2022 10:24:47 +0200 (CEST) Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137506 Archived-At: Hi, I am wondering if anyone has a clever `display-buffer-base-action' (or `display-buffer-alist') customisation they could share? Even after years of using Emacs, I often have no idea where a buffer might be displayed? I have tried things like (setq display-buffer-alist '(("\\`\\*.*\\*\\'" ;display *...* buffers in a new window (display-buffer-reuse-window display-buffer-pop-up-window))) display-buffer-base-action ;otherwise use the same '((display-buffer-reuse-window display-buffer-reuse-mode-window display-buffer-same-window display-buffer-pop-up-frame))) but as earmuffs are usually used to display buffers without files, this breaks systems like Gnus. One recent annoyance I had was that if I have a window layout like this (in combination with agda2-mode): ------------------------------------------------- | 1 | 2 | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------- | 3 | | | ------------------------------------------------- a new popup buffer (display-buffer-pop-up-window) is displayed by splitting window 3 (which is just a 2-5 lines high) and displaying it just below window 2. It seems to me that there must be a better way, but I cannot formalise any set of rules on how buffers should be displayed, when you have more than two windows opened. Any tips?