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: Thu, 05 Mar 2020 01:58:42 +0200 Organization: LINKOV.NET Message-ID: <87pndrpt8t.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13733"; 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 Thu Mar 05 01:23:17 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 1j9eIH-0003So-Ke for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 01:23:17 +0100 Original-Received: from localhost ([::1]:41644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9eIG-0003to-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 19:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59783) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9eI3-0003sr-Tc for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:23:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9eI2-0002Sb-Vd for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36052) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9eI2-0002Rt-Qq for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9eI2-0005Z5-Oe for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 19:23: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: Thu, 05 Mar 2020 00:23: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.158336773221265 (code B ref 39822); Thu, 05 Mar 2020 00:23:02 +0000 Original-Received: (at 39822) by debbugs.gnu.org; 5 Mar 2020 00:22:12 +0000 Original-Received: from localhost ([127.0.0.1]:42016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9eHE-0005Wu-EF for submit@debbugs.gnu.org; Wed, 04 Mar 2020 19:22:12 -0500 Original-Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:25160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9eHC-0005Wl-JT for 39822@debbugs.gnu.org; Wed, 04 Mar 2020 19:22:11 -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 C583712100A; Thu, 5 Mar 2020 00:22:08 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (100-96-1-27.trex.outbound.svc.cluster.local [100.96.1.27]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3044E121001; Thu, 5 Mar 2020 00:22:08 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a3.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); Thu, 05 Mar 2020 00:22:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Whispering-Share: 58e751c64dd1cfcd_1583367728528_416359684 X-MC-Loop-Signature: 1583367728528:1222468455 X-MC-Ingress-Time: 1583367728528 Original-Received: from pdx1-sub0-mail-a3.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a3.g.dreamhost.com (Postfix) with ESMTP id 609C27F78E; Wed, 4 Mar 2020 16:22:06 -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=eFlN1EzMOMSQn3D7j9wE0uJ1c3g=; b= v/jXaFNa2Ytex1sleRbyb+Nf/SxJHIQOo6XSZ4fBnBa4XflT+lUj7jEHtJUVnAMZ lu6KthM7k3Zr4xLrlLqxdaztPDs4nKfMogpvLKug+i/Slz+0RGflYN8MNgZkDs8t nUZVyzBPEoNXnZOPQ7RHUy0rIu7A8AmMQERgYapLZX8= 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-a3.g.dreamhost.com (Postfix) with ESMTPSA id 258987F795; Wed, 4 Mar 2020 16:22:02 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a3 In-Reply-To: (martin rudalics's message of "Wed, 4 Mar 2020 18:30:32 +0100") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddtledgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrvdejpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheprhhuuggrlhhitghssehgmhigrdgrth 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:176873 Archived-At: >> Here is a complete list of commands that use >> with-displayed-buffer-window: >> >> - dired-mark-pop-up >> - minibuffer-completion-help >> - save-buffers-kill-emacs >> >> What they all have in common is that they have some post-processing >> in the displayed buffer. I wonder why there are no more such commands >> that need to do such post-processing? Maybe they use some simpler >> solution that could be used here as well? >> >> For example, hack-local-variables-confirm uses just >> >> (pop-to-buffer "*Local Variables*" '(display-buffer--maybe-at-bottom)) > > IIUC it neither runs the hooks for temporary buffers nor does it obey > 'temp-buffer-resize-mode'. I don't know why it should run hooks and 'temp-buffer-resize-mode'. Why other clients of display-buffer don't need these hooks? >> and nothing more, without hassles of with-displayed-buffer-window. >> And still it fits the window nicely into the buffer height. > > How comes? Maybe this means it's possible to avoid using with-displayed-buffer-window? >> Why the above 3 commands couldn't do the same by abandoning >> with-displayed-buffer-window? > > It depends on how much of the stuff in 'temp-buffer-window-setup' and > 'temp-buffer-window-show' they really need. Maybe they need none of these?