From unknown Sat Aug 16 00:29:29 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#45945 <45945@debbugs.gnu.org> To: bug#45945 <45945@debbugs.gnu.org> Subject: Status: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction Reply-To: bug#45945 <45945@debbugs.gnu.org> Date: Sat, 16 Aug 2025 07:29:29 +0000 retitle 45945 28.0.50; Feature request: Some kind of 'max-window-height' pa= rameter for display-buffer-in-direction reassign 45945 emacs submitter 45945 Dmitry Gutov severity 45945 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 17 20:55:10 2021 Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 01:55:10 +0000 Received: from localhost ([127.0.0.1]:45931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Jl8-0005gL-5K for submit@debbugs.gnu.org; Sun, 17 Jan 2021 20:55:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:43244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Jl5-0005gB-Mu for submit@debbugs.gnu.org; Sun, 17 Jan 2021 20:55:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Jl5-00006Z-F8 for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 20:55:07 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:41176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1Jl2-0002y0-V3 for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 20:55:07 -0500 Received: by mail-wr1-x42b.google.com with SMTP id a12so14922606wrv.8 for ; Sun, 17 Jan 2021 17:55:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:subject:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=TkpJ2/LwXwgUxZ5CZrigEGiJXdBL0IWeSjGpGj/z0fA=; b=mdmh/rSCzTI0H6G2/jkikL3g5SUHPPoyD8akV76uB/15Box1a8xkVfeS/LKWtQEojr UR4oQhuVaiGaoJB3aQeb2VItyQVcSw9sbUHzQN7r8+Lmod/gHof2QzdAdDhe3mgdYa9X TjRpTpiAkVzq4yFuIF1nk+zIbd7JNiF22i4z+wGBRJPWsBGNLfRGIAPyJMHGP6de/vat wmqVrdqqod0HWC1y8JJhPZpsh2Q3TIZc+yeS+nGAOWaYlIYNMvMNU/bXnD0hxzHXqte1 pF7WdIZ+BDl66a5vu6Uyj1Vt3QMA2Yfxrag6KGRITI+4QVUw+QCitnnB6w/pVmzO3eMt 5Dzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:subject:from:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=TkpJ2/LwXwgUxZ5CZrigEGiJXdBL0IWeSjGpGj/z0fA=; b=BCT3oXJIur/jStHwET0M2XPHKOCjs8Ez+KSW33MvdSh09aFK1nZcVLNvsJiaz31hzF PkwJ3m1AQlNnUmMl2nurovqrMRkyxgX71KxM3UOFkCOueKOhpBDeuWHXeAi81cSKr0V2 Pdivh+7vFnhFz7ZysFRr82FN+Cu6Q2Vj2RHy9pdS+JZFzwKEg/ZQjl4TmwhVbE7k2Hic B0IfHaQFjGbaIwAIgRqWYIY43kq90sb4+rI+UGLTbRCD79u+QopOV7DFhHZxL/MAgFso vSCbLg8+8swrPAx/tpBghXu8BM+YiB0GbSqVbYPNXJMwV1S1Outkjd6GrU+eSD3syiYr uV/A== X-Gm-Message-State: AOAM531s3HLzuZQHvYc2+hbXSYH34A6WT0YWWeKx/yExeLEhXjbO5ZHw U6Ocu54okfRivEsSnKsBSz+K3EUfhyY= X-Google-Smtp-Source: ABdhPJyQWacDURaCdAjiE2D9O35fvqntuD9ET8EC+v/bTSrZdjLsAJhIT/tQg86ACTJeQw1D7b/aEQ== X-Received: by 2002:adf:e705:: with SMTP id c5mr22992529wrm.303.1610934903104; Sun, 17 Jan 2021 17:55:03 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u16sm14620612wrn.68.2021.01.17.17.55.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jan 2021 17:55:02 -0800 (PST) To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction From: Dmitry Gutov Message-ID: Date: Mon, 18 Jan 2021 03:55:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42b.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) X-Debbugs-CC: rudalics@gmx.at, juri@linkov.net It will be helpful to limit the height of the resulting window (either in lines or in percentages of the parent window height). If the split has been performed, of course. At the moment, it can take up almost all of the parent window's height, and that's not ideal for our use of it in xref-show-definitions-buffer-at-bottom. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 20:12:01 2021 Received: (at 45945-done) by debbugs.gnu.org; 19 Jan 2021 01:12:01 +0000 Received: from localhost ([127.0.0.1]:48825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1fYv-0007uZ-98 for submit@debbugs.gnu.org; Mon, 18 Jan 2021 20:12:01 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:47024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1fYs-0007uK-Ve for 45945-done@debbugs.gnu.org; Mon, 18 Jan 2021 20:11:59 -0500 Received: by mail-wr1-f50.google.com with SMTP id d13so18082722wrc.13 for <45945-done@debbugs.gnu.org>; Mon, 18 Jan 2021 17:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3+WFBuGupeV0mF2bAtjLrM4OuU2G6QykRT6aYwKROJU=; b=b6V8FBiS+r3/wBKTqRObH3ysQcVv1zwHARnecqF9zqE0p95cngYLRunOGux/9V5J/A yb6lELN8SUWKwfIh2/EhfYFEGq6gAIIJrcdbkYNUN8V91fJCMDqeyIKhqnSt8daI49zr M9igC5mZJstDJLuNJCs07DdkKoBepByKuvQFzu+xj79gVfY+e60Jugy/4CvFGfaiykZ2 7lPK7baUjKXLLa2Aky3uByr54fHHfE+AqALfZ9V1RfCokBjVdraxcEiBGfj4dEjGVwsn 30lUxoADVEVtiXBuD9h2rCoqhq61815F2xfn9E0rYWZ0glP7KvDMJbamHlMzlHdvbWxJ RvMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3+WFBuGupeV0mF2bAtjLrM4OuU2G6QykRT6aYwKROJU=; b=kARG7X4eX0oiN9ABXcBIpy95f3I7n/hGISG8G2cp1P38wJ14eNErKBkrpN5F0kxgLe pWEWqm4rlqaVp8VCRf74aNyifEyCW/NZXOMMqPBE/RIz3eq0cQ3mt5cCgWxNME4zeyGM pRc/nqmMEsi5cqfqKnu1f1HBGWwNSrwHG2RIMllI2GTAYgxCBEdsVuHXSir4NfP4vSjY 6vQzvf2pQZ8gH2Gaj26bl+lVntOXbq/d9oH8SXM/+OayPOPrIInxC+FKSgCcBe5IlOQs ALziej+8Ffkwn8k/NZgHiAx3viHjQoeg1L+SoskIkzstBE13IiiQHRCB6h8U2yCrzs5O yTwQ== X-Gm-Message-State: AOAM530E7vdu9BE/+ZEW6JbakTvPoRCHx4C+J1LqovS/w47n4nu+XoPR JTQKv0txOxKRzm0PMCTQ0mdohqAKObs= X-Google-Smtp-Source: ABdhPJzuTtZv1xSM6l7WXGT+EaK3bvnbV6TD90PQ9rrBj/LP8nOZvWWh9EbmoLg+3ghSXwIxQPBGkA== X-Received: by 2002:adf:9467:: with SMTP id 94mr1876312wrq.235.1611018712951; Mon, 18 Jan 2021 17:11:52 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v126sm1978067wma.22.2021.01.18.17.11.51 for <45945-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 17:11:51 -0800 (PST) Subject: Re: bug#45945: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction From: Dmitry Gutov To: 45945-done@debbugs.gnu.org References: Message-ID: <4354ad18-3629-da09-8a0b-d810d5abccc6@yandex.ru> Date: Tue, 19 Jan 2021 03:11:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 45945-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 18.01.2021 03:55, Dmitry Gutov wrote: > It will be helpful to limit the height of the resulting window (either > in lines or in percentages of the parent window height). If the split > has been performed, of course. Looks like I've managed that with 'window-height' alist entry set to a function that wraps fit-window-to-buffer. Commit 4ca808ee7a in master. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 12:58:56 2021 Received: (at 45945) by debbugs.gnu.org; 19 Jan 2021 17:58:56 +0000 Received: from localhost ([127.0.0.1]:51580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vHM-0002V9-5K for submit@debbugs.gnu.org; Tue, 19 Jan 2021 12:58:56 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vHJ-0002Uh-QJ for 45945@debbugs.gnu.org; Tue, 19 Jan 2021 12:58:54 -0500 X-Originating-IP: 91.129.98.64 Received: from mail.gandi.net (m91-129-98-64.cust.tele2.ee [91.129.98.64]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9B104E0005; Tue, 19 Jan 2021 17:58:45 +0000 (UTC) From: Juri Linkov To: 45945@debbugs.gnu.org Subject: Re: bug#45945: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction Organization: LINKOV.NET References: <4354ad18-3629-da09-8a0b-d810d5abccc6@yandex.ru> Date: Tue, 19 Jan 2021 19:41:10 +0200 In-Reply-To: <4354ad18-3629-da09-8a0b-d810d5abccc6@yandex.ru> (Dmitry Gutov's message of "Tue, 19 Jan 2021 03:11:50 +0200") Message-ID: <87bldlf9zt.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45945 Cc: rudalics@gmx.at, dgutov@yandex.ru X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> It will be helpful to limit the height of the resulting window (either >> in lines or in percentages of the parent window height). If the split has >> been performed, of course. > > Looks like I've managed that with 'window-height' alist entry set to > a function that wraps fit-window-to-buffer. > > Commit 4ca808ee7a in master. Indeed, maybe this could be customizable. For example, like there is the customizable variable display-buffer-alist, a new customizable variable with a name like post-display-buffer-functions could be used to add/remove such hooks as fit-window-to-buffer. like temp-buffer-resize-mode does. But this should a more general feature. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 14:31:55 2021 Received: (at 45945) by debbugs.gnu.org; 19 Jan 2021 19:31:55 +0000 Received: from localhost ([127.0.0.1]:51844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1wjL-0002zA-8h for submit@debbugs.gnu.org; Tue, 19 Jan 2021 14:31:55 -0500 Received: from mail-wr1-f41.google.com ([209.85.221.41]:39564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1wjJ-0002yw-45 for 45945@debbugs.gnu.org; Tue, 19 Jan 2021 14:31:54 -0500 Received: by mail-wr1-f41.google.com with SMTP id c5so20855943wrp.6 for <45945@debbugs.gnu.org>; Tue, 19 Jan 2021 11:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6Y7aC3mb2B0JfGYwFgdW9BuOsB5xxPws+zQURbb/oHs=; b=qEjd7pUt28tuWc50NjfbeAQqeKcn6/srsmsWv1IJ5Bwo1Iemb5zPNAu40YZLIcmHuX 8R7FSV7YNy1WyOcsJyM2fxCtBqztN19twdkYALVPKOiHuHPHdfu/WPA2QfUZgpKYNf5A xQW6rE0zgN5Kz573UlfXO0MkaiE1fGn27SEhEkzx5IujE/8CbWyXeF4xzPU+n+srkpic Pxu8cQHGpImlWRIoPrF4CLjm5YCsChEsWAM6Th3SLIPYAPiUk6N5IJlmtHyd01tDURGf F8PPL1VOW9t8acU16p78sq3pmJFSFPkTzY6iOlMPyrfGKJ/dUBoOWBbxLcQ+X4dcYEng RTdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6Y7aC3mb2B0JfGYwFgdW9BuOsB5xxPws+zQURbb/oHs=; b=ND1zKaI/b+7d4sQHS6CCjFj1uiQiDOH4RgCjfBSzRcGPGBmbCe6c1ttjnBZyBBDlt1 fBa3e8Fu5EY7vO2eJavCs4J2XWnhSzlyuKx9L9RKQfK7eYXkDN72E3sPXW7/KbLkZphF Js7/MVgEc7DQQ+JvV8xYhh1W99QY90YVmkv9yF+7NAgD/Y+Cu6EolWKrKku1HURpn6lI Xrn27oU7RbrikhwPmdmO6WjkId4AnUrD61Yb/T0ogVyiNXCHHOpFMkehBSugbt3KQl3U 0dDqIHYNssVKsDJsWJvk9XfRc0GwY1z4XleIdycoEzZZdCVOVL4lAdImwbBoWfXb4ZHy z4hA== X-Gm-Message-State: AOAM530djAXjEO997og+N3qGux22Gwskt0Z/gcz9CYpELe5o8y6wDiIr ok/yzeqzB8Omzm9gVrAfI0F6dDkxLk8= X-Google-Smtp-Source: ABdhPJyoCwOC/HtWUcEVz7XMDgdAt3tdz3/cXSzg++I7GfSuJw+yVWL1RXIPfsKYmxBNUX+2wJEHXQ== X-Received: by 2002:a5d:43ce:: with SMTP id v14mr5807876wrr.342.1611084706882; Tue, 19 Jan 2021 11:31:46 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n8sm37833096wrs.34.2021.01.19.11.31.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jan 2021 11:31:45 -0800 (PST) Subject: Re: bug#45945: 28.0.50; Feature request: Some kind of 'max-window-height' parameter for display-buffer-in-direction To: Juri Linkov , 45945@debbugs.gnu.org References: <4354ad18-3629-da09-8a0b-d810d5abccc6@yandex.ru> <87bldlf9zt.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: <5b39387e-cce9-1754-f51b-5a72b6de0d5d@yandex.ru> Date: Tue, 19 Jan 2021 21:31:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87bldlf9zt.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 45945 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 19.01.2021 19:41, Juri Linkov wrote: >>> It will be helpful to limit the height of the resulting window (either >>> in lines or in percentages of the parent window height). If the split has >>> been performed, of course. >> >> Looks like I've managed that with 'window-height' alist entry set to >> a function that wraps fit-window-to-buffer. >> >> Commit 4ca808ee7a in master. > > Indeed, maybe this could be customizable. For example, > like there is the customizable variable display-buffer-alist, > a new customizable variable with a name like post-display-buffer-functions > could be used to add/remove such hooks as fit-window-to-buffer. > like temp-buffer-resize-mode does. But this should a more general feature. The general feature sounds interesting, but I personally have avoided customizing even display-buffer-alist so far, and doing that with either of the variables (the existing or the proposed one) seems pretty far from the capabilities of an average Emacs user. Speaking of customization, I rather wondered whether the max height percentage in xref-show-definitions-buffer-at-bottom should be customizable (as a float number, probably). From unknown Sat Aug 16 00:29:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Feb 2021 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator