From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#39822: 27.0.90; Cannot set *Completions* buffer height using display-buffer-alist Date: Sat, 29 Feb 2020 17:05:37 +0100 Message-ID: <21d2102d-367b-54da-33c5-1ae1ac579bd9@gmx.at> References: <87k146q02n.fsf@firemail.cc> <87ftet76tv.fsf@firemail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="90452"; mail-complaints-to="usenet@ciao.gmane.io" To: Davor Rotim , 39822@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 29 17:10:36 2020 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 1j84hH-000NSE-Vq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 17:10:35 +0100 Original-Received: from localhost ([::1]:33500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j84hG-0005xS-Lj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 11:10:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51993) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j84ct-0004kQ-6T for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 11:06:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j84cs-0000DU-7M for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 11:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57543) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j84cs-0000DQ-3F for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 11:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j84cr-0000Fi-VR for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 11:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Feb 2020 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39822 X-GNU-PR-Package: emacs Original-Received: via spool by 39822-submit@debbugs.gnu.org id=B39822.1582992347949 (code B ref 39822); Sat, 29 Feb 2020 16:06:01 +0000 Original-Received: (at 39822) by debbugs.gnu.org; 29 Feb 2020 16:05:47 +0000 Original-Received: from localhost ([127.0.0.1]:35282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j84cd-0000FF-EG for submit@debbugs.gnu.org; Sat, 29 Feb 2020 11:05:47 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:36535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j84cb-0000F2-EJ for 39822@debbugs.gnu.org; Sat, 29 Feb 2020 11:05:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1582992338; bh=CxIbVs1QdhKZ+YriF2P+EIAk0GGYtj/hgOE7krg+WIo=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=Ub0QKrkNeJV6HZfQD0YRXqrFyJAm1yuz8pwkZFCiA1xgdhP03A6G0os8kK4iGwypt ozsEY3zmsTjZEBapxWgFuG7sC5tfifuRhAnpWvxjK7S/XFSorz8jq6syiuTmm0QKmx 6CiEXejflatVbYtmB7xy3RJqVFADNoCkFZhoCAsM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.253]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MulqN-1jPKBl1m0B-00rlMS; Sat, 29 Feb 2020 17:05:38 +0100 In-Reply-To: <87ftet76tv.fsf@firemail.cc> Content-Language: en-US X-Provags-ID: V03:K1:qlX5eIhsRxz8FgOldcipmbm67CHeu44YEdkdOVuaNyKRhnvDXai FJMEIA72UfZ0km//ZqQKoXhW/soNnxLGCU5xkmaLawtJWMD6uW4li9dW8KqRkQ3zjilqscH PkI2mduUPMXOiHuhdXu52pHP4CQMnp0MKpz5ghdFm8M7AnTqrgD635Cnd0RVjID6sYf2qLo iENJv8/KKkC859GVrBEIQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:8ias+c8TwsI=:CqEe/SM34+GxtukgljOiQQ 4Ym8fx8ZMK47jgPT3+aHDTEvU97NFzJdupTMfcJhF7hB9pC1m3wYRSDXgVjyVgS/YIebuLSXT OQR+D9Od04VX1Ddx1Csq3fsOl/O5n+ipGaWFRI+x3xnpUx2YqaTXC80kgL+Fvc0lYKCVb3w6j aSANuHYzoUGgvWPmrd5TIJTplt17lNM0d8Wlct6pWvDJpA65M/3ier21MpUa0zs74q974oPmp EAZ9tK+ePCOi9ve7I5w69w+W9BCiIQGBI1fMfeGhYts4/eI5ApBqwvSlH5sywHM9HYIT0h+wo 8Y3Ldac/yiUp2AmMmUwjFnmPz4PUwuFePnbJJtRBJPvO8zAocj8ATCZ4L9M6SS/0U+VcE6a89 i6PuQL/5We+7ITdsmdszW19+X4CDQisJrP4CbpQvxxDfZPbcQIc+4xpv8uFxv7Wyn7lZ+EE7E MKsaiSb595Hv8Uq2/tHzapSPubeFzlGQEvg9E4YiMbmxRnajFBDUcEMqn89Ziq4RvP3ubI/JI tOxJGmMh4DreR8hr63k5OmxS9od9Q87EZyocCl2m996tC2b3naBRe4aXowHiJmPYcU4oErp7Q ch2eKPb9k1dpSUsfKYL2JXHAZh2w6cpH98fvtT2sK43ETxu1crFUCRCZ9cI+HOK0zHd9bju63 CR3bWM3NE9OTGCp98WsuJ8ITiAq0lVA/arau3NFn9nCana+6p5sxdQG5Vx+hkx2gpKYHzQ2oV n3TUAduhz4NAraNwHru2///rdobs44c98kBkHqzD2NwCmyFYq3FsD+w/pGLeAKZpMou82orz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:176677 Archived-At: > I'm not seeing any adverse effects by obeying the contract: Neither would I ... > - ,(if temp-buffer-resize-mode > - '(window-height . resize-temp-buffer-window) > - '(window-height . fit-window-to-buffer)) > ,(when temp-buffer-resize-mode > + '(window-height . resize-temp-buffer-window) > '(preserve-size . (nil . t)))) > nil > ;; Remove the base-size tail because `sort' requires a properly ... because I'm using 'temp-buffer-resize-mode'. But IIRC (Juri likely knows better) completions windows are traditionally fit to their buffer so people who never use 'temp-buffer-resize-mode' would now be surprised to not see their completions window fit. So while we probably can't do what you propose above, we should be able to _not_ fit the window when the alist already provides an explicit height argument as in your case. martin