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: Fri, 06 Mar 2020 01:43:38 +0200 Organization: LINKOV.NET Message-ID: <87o8tawf59.fsf@mail.linkov.net> References: <87k146q02n.fsf@firemail.cc> <87ftet76tv.fsf@firemail.cc> <21d2102d-367b-54da-33c5-1ae1ac579bd9@gmx.at> <87imjpw3wx.fsf@mail.linkov.net> <87o8tfzmrx.fsf@mail.linkov.net> <43297d89-9e87-0b23-0bca-98b13a27cfe6@gmx.at> <87ftep2h1x.fsf@mail.linkov.net> <87pndrpt8t.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10750"; 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 Fri Mar 06 01:05:21 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 1jA0UT-0002gx-9n for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Mar 2020 01:05:21 +0100 Original-Received: from localhost ([::1]:57791 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA0US-0007Z9-7b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 19:05:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37480) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jA0UC-0007Yi-By for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 19:05:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jA0UB-0000DN-B0 for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 19:05:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37908) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jA0UB-0000Cf-1b for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 19:05:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jA0UA-0006xN-Ts for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 19:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Mar 2020 00:05:02 +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.158345309226701 (code B ref 39822); Fri, 06 Mar 2020 00:05:02 +0000 Original-Received: (at 39822) by debbugs.gnu.org; 6 Mar 2020 00:04:52 +0000 Original-Received: from localhost ([127.0.0.1]:43877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jA0Tz-0006wb-Sg for submit@debbugs.gnu.org; Thu, 05 Mar 2020 19:04:52 -0500 Original-Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:24230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jA0Tx-0006wR-U6 for 39822@debbugs.gnu.org; Thu, 05 Mar 2020 19:04:50 -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 AE318208A9; Fri, 6 Mar 2020 00:04:48 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a97.g.dreamhost.com (100-96-54-11.trex.outbound.svc.cluster.local [100.96.54.11]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 44336205CC; Fri, 6 Mar 2020 00:04:48 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a97.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); Fri, 06 Mar 2020 00:04:48 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Reign-Language: 1a17a9150d87f86d_1583453088508_3402474701 X-MC-Loop-Signature: 1583453088508:3278783719 X-MC-Ingress-Time: 1583453088508 Original-Received: from pdx1-sub0-mail-a97.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a97.g.dreamhost.com (Postfix) with ESMTP id D46D47FFE0; Thu, 5 Mar 2020 16:04:43 -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=RoyBljkTryZUWKlTV3IaFrZpZi4=; b= M2HT//vLufgTB8fpCbW20bK+0SV7ZFj5fxJunBQTu2CPfowBzcRHN+dmWdXEXS4K mZK36uiW8XNLmFSgPlrkX0l0PLdWVFNnFIGbUOGcQUQk0WVgE27EfivqPlIDhP3J 2jPM3KfilqinDB5AapFTDqiR/9E+jBc8PweFb23H8VU= 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-a97.g.dreamhost.com (Postfix) with ESMTPSA id 4C0797FFD5; Thu, 5 Mar 2020 16:04:40 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a97 In-Reply-To: (martin rudalics's message of "Thu, 5 Mar 2020 10:13:13 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudduuddgudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrth 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:176939 Archived-At: > 'display-buffer--maybe-at-bottom' handles this by using > > (let ((alist (append alist `(,(if temp-buffer-resize-mode > '(window-height . resize-temp-buffer-window) > '(window-height . fit-window-to-buffer)) > ,(when temp-buffer-resize-mode > '(preserve-size . (nil . t))))))) > > The question is now whether we want to do that in one place (that is, in > the temporary buffer setup and show functions) or in many places (like > in the buffer display action functions). It seems better to handle the temp-buffer setup in the buffer display action functions (currently there are two such functions that handle temp-buffer: 'display-buffer--maybe-at-bottom' and 'display-buffer-in-direction'), if this will help to get rid of monstrous macro 'with-displayed-buffer-window'.