From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#39822: 27.0.90; Cannot set *Completions* buffer height using display-buffer-alist Date: Sat, 29 Feb 2020 23:10:22 +0200 Organization: LINKOV.NET Message-ID: <87imjpw3wx.fsf@mail.linkov.net> References: <87k146q02n.fsf@firemail.cc> <87ftet76tv.fsf@firemail.cc> <21d2102d-367b-54da-33c5-1ae1ac579bd9@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78556"; 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: Davor Rotim , 39822@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 29 22:52:30 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 1j8A29-000KLC-RQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 22:52:29 +0100 Original-Received: from localhost ([::1]:36170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8A28-0006Dr-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Feb 2020 16:52:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58202) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8A1l-0005co-9e for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 16:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8A1k-0002IP-9K for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 16:52:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8A1k-0002IJ-6D for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 16:52:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j8A1k-0000Jj-5i for bug-gnu-emacs@gnu.org; Sat, 29 Feb 2020 16:52:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Feb 2020 21:52:04 +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.15830130801079 (code B ref 39822); Sat, 29 Feb 2020 21:52:04 +0000 Original-Received: (at 39822) by debbugs.gnu.org; 29 Feb 2020 21:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:35503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8A12-0000HL-6T for submit@debbugs.gnu.org; Sat, 29 Feb 2020 16:51:20 -0500 Original-Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:9024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8A0z-0000HB-RJ for 39822@debbugs.gnu.org; Sat, 29 Feb 2020 16:51:19 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5F8E820CEA; Sat, 29 Feb 2020 21:51:16 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-0-14.trex.outbound.svc.cluster.local [100.96.0.14]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8B29F20E75; Sat, 29 Feb 2020 21:51:15 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sat, 29 Feb 2020 21:51:15 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cooing-Abortive: 374544ef15b854a1_1583013075789_3069831182 X-MC-Loop-Signature: 1583013075789:3430678938 X-MC-Ingress-Time: 1583013075789 Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id 436667F53C; Sat, 29 Feb 2020 13:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=NR0rSkx0elewAe10CYQ0zXze6RY=; b= MdM4v2kyBVC0TXgrReQj+OaGFfEqPUdXwA4lypIi2qHuJCv42qDxi8n2T91D4ktb eqLwgzsQs5oQ4Bp4vV9G+g4v1sYV/bnQEE2IV6RGIM9+WApFRuADwL7RpfhjD8fT bCconaLhL+THhm/o4Tq+04lpS6ruCNfDS1HGczd4fVM= Original-Received: from mail.jurta.org (m91-129-103-27.cust.tele2.ee [91.129.103.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTPSA id 453037F52A; Sat, 29 Feb 2020 13:51:06 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a73 In-Reply-To: <21d2102d-367b-54da-33c5-1ae1ac579bd9@gmx.at> (martin rudalics's message of "Sat, 29 Feb 2020 17:05:37 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddttddgudehjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrght 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:176701 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. I'm using 'temp-buffer-resize-mode' too. I don't know why it's disabled by default. My old opinion is that we need to try to get rid of these macros and rely only on alist values. So it would be easier to override the default alist values such as 'window-height'.