From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#55169: Can't combine window-min-height with window-height Date: Wed, 11 May 2022 10:19:20 +0200 Message-ID: References: <86y1zp5but.fsf@mail.linkov.net> <86czgxi3nn.fsf@mail.linkov.net> <86tua7pyfp.fsf@mail.linkov.net> <5e93dcad-4071-b4e2-d408-ba670413eb67@gmx.at> <868rriil03.fsf@mail.linkov.net> <0e9b53c4-b283-ca20-fa8a-995f2b58ed59@gmx.at> <865ymlje5o.fsf@mail.linkov.net> <8ae5e6ac-25f5-3feb-b05b-fbdb71e7ac1d@gmx.at> <864k24v0vo.fsf@mail.linkov.net> <865ymkrmze.fsf@mail.linkov.net> <86v8ujcd2r.fsf@mail.linkov.net> <3f7b273c-59f4-5486-728e-a0c8e09190a7@gmx.at> <86bkwahe5g.fsf@mail.linkov.net> <86mtfrj3bh.fsf@mail.linkov.net> <868rray1me.fsf@mail.linkov.net> <3c037fed-fc8e-52b0-3f3c-f06a7648c0bf@gmx.at> <865ymc8rgw.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 55169@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 10:20:15 2022 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 1nohZu-0007sq-BX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 10:20:14 +0200 Original-Received: from localhost ([::1]:58944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nohZs-0008U6-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 04:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nohZj-0008Ti-1X for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 04:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42099) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nohZi-000759-O4 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 04:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nohZi-0007Wn-Iq for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55169 X-GNU-PR-Package: emacs Original-Received: via spool by 55169-submit@debbugs.gnu.org id=B55169.165225717128869 (code B ref 55169); Wed, 11 May 2022 08:20:02 +0000 Original-Received: (at 55169) by debbugs.gnu.org; 11 May 2022 08:19:31 +0000 Original-Received: from localhost ([127.0.0.1]:35988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nohZC-0007VZ-Ro for submit@debbugs.gnu.org; Wed, 11 May 2022 04:19:31 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:48109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nohZ9-0007VI-TB for 55169@debbugs.gnu.org; Wed, 11 May 2022 04:19:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1652257161; bh=/LE6ffnHMi4rmN2uJGd0kPQfD1x7HwSgymoHhVyPiFQ=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=FTVbEtwFS8f0r0Mpgazwz6Q75WHhOw1Z7Ux0xfSI3EHtOH/eThlpGfW3hxAmQTqyn 9sjQJFLZYzVNu8y9Y412T74RMsfMcq0x2c0i8YfG7N1JsrHUkVsMiiToRIRmQGOhU5 DfCTSKKSWXULIlXOYJCBHayMUg24XkLFCXfC2pzU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.84]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MIx3C-1nUIMd1U3W-00KOD4; Wed, 11 May 2022 10:19:21 +0200 Content-Language: en-US In-Reply-To: <865ymc8rgw.fsf@mail.linkov.net> X-Provags-ID: V03:K1:9DbWc1jHON/Hr0+NIZQuz5whqO4K68dIV6mH0T83EbT5/aKu88v h8nu8dH2a2qZmk1AJVku1arRTFd8BYLQPmjm4NjyriNng91U2xLYsFywU7Usy7oAPfN8u3F Vp7ZCWVWmp4Mt/z0SKG7SvvUHJ0tMzFiOIQg2bC0lSjBrMs85qOmRaQnUnpl+PChF000e3U FGhUKPNl2dC6bcngFEv5g== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZgsYocf0xyk=:2855CKu8RkpGnigdY/CxO9 4m0dxYpjowxV1svhmi0eAo2NMiyJwEL7vPzilnoR9js2kph+lNPIYHFq5z1n9MocG6BzdEVYm nAeOiKInN/2LwmPGExv64wtojMZHMLWdVyWhd9WVeEkUo3xdDKEfviSDSyeMAha9Ll0DCfz1V tD8jb17CU2sdzB7K+JCsdd/yjApRC1ScDZ9RtkLtwxE1fJU62d9/SFijRWmVGg4/CVPtu9Nv0 TBcxCyT0Lr03U80DkaLsfbZdY0isMGt2pUfca4wiGVjUahU+wOW/yHyxbw2ZBhnFp+iZgiVA2 6hoODmJschH9VVWy4LNCBHepgxr5P9Od9yqoOpItwKOj35QZXQSqTMS8CyRq4ZHiY78qmf3uw c3c03SNZOgoYhGfQ4636mE8pfAGlyAAKw2/ngOy4yIQQTIxAMbIH9igCxZCw3UVQrmiYo9KvI aMpLsy7TI4p6U5wOn/1FS6SuXIzjst5771vKteoiwcAocf5x6vFzNd57tCuMvmibbIRvWxsLh lQFDSATQMPJ7iM/IyHv28lJ14gAFBD4qWXpyha7aUajJfCrv08VMIvRIy96OJbf+gyDuIsT8W Jw4XJhrr2L4XkiC6jHj9cDqlU6tqFE3dWs0zyFINVxfq4k7UhzSM0sBaPx+FidEDYOTVYkrtw GxB1ldi3JtuoZ5nRMSXDK/MulJ6lpBm1gsE3Ig2h9yvtp1m+iH+9Lp7A9Xi9UlT6Q5XsegX9J 3QKZGUJb7hHuzODAQBY0xJ3+UbRUeMbduP4h1gB1vkQ5Cvu3MDPqnBIrPWx7aR0aXeeS+kZB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:231886 Archived-At: > I have an example only for 'fit-window-to-buffer': > > (pop-to-buffer (generate-new-buffer "*edit string*") > '(display-buffer-below-selected > (window-height . (lambda (window) > (fit-window-to-buffer window nil 10))))) I meant an example for how to put a lambda into 'display-buffer-alist'. In either case, I still think we should provide an option where we pass the window _and_ the alist to that function. Your example illustrates well that we cannot integrate a user supplied 'window-min-height' entry say into the application provided lambda. Vice versa, user supplied functions cannot interact with application provided 'window-min-height' entries. Think of an application suggesting 'fit-window-to-buffer' with some 'window-min-height' value and a user who wants to use 'shrink-window-if-larger-than-buffer' instead but still use the 'window-min-height' value proposed by the application. How would we do that? > I wonder why other 'display-buffer-*' function wouldn't need the same? All of 'display-buffer-same-window', 'display-buffer-reuse-window' and 'display-buffer-pop-up-window' should get the same treatment, probably. martin