From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55169: Can't combine window-min-height with window-height Date: Tue, 03 May 2022 20:38:12 +0300 Organization: LINKOV.NET Message-ID: <868rriil03.fsf@mail.linkov.net> References: <86y1zp5but.fsf@mail.linkov.net> <87czh0gp6m.fsf@gnus.org> <9753db0e-05f2-5927-80fb-50d17f16441d@gmx.at> <86czgxi3nn.fsf@mail.linkov.net> <86tua7pyfp.fsf@mail.linkov.net> <5e93dcad-4071-b4e2-d408-ba670413eb67@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6680"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 55169@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 03 20:02:59 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 1nlwrS-0001Wp-IZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 May 2022 20:02:58 +0200 Original-Received: from localhost ([::1]:43688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlwrR-0005mm-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 May 2022 14:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlwpa-0002q4-Sz for bug-gnu-emacs@gnu.org; Tue, 03 May 2022 14:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlwpa-0006gt-Hn for bug-gnu-emacs@gnu.org; Tue, 03 May 2022 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlwpa-0001qX-Gk for bug-gnu-emacs@gnu.org; Tue, 03 May 2022 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 May 2022 18:01: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.16516008106963 (code B ref 55169); Tue, 03 May 2022 18:01:02 +0000 Original-Received: (at 55169) by debbugs.gnu.org; 3 May 2022 18:00:10 +0000 Original-Received: from localhost ([127.0.0.1]:40992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlwok-0001oB-4p for submit@debbugs.gnu.org; Tue, 03 May 2022 14:00:10 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:53177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlwoi-0001mZ-Vr for 55169@debbugs.gnu.org; Tue, 03 May 2022 14:00:09 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 48CD6C0002; Tue, 3 May 2022 18:00:00 +0000 (UTC) In-Reply-To: <5e93dcad-4071-b4e2-d408-ba670413eb67@gmx.at> (martin rudalics's message of "Tue, 3 May 2022 11:21:26 +0200") 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:231351 Archived-At: >>> BTW I do not understand well in which sense your original scenario >>> >>> (pop-to-buffer (generate-new-buffer "*edit string*") >>> '(display-buffer-below-selected >>> (window-min-height . 10) >>> (window-height . fit-window-to-buffer))) >>> >>> fails. Do you mean that the window should be at least ten lines high >>> despite of the fact that it's fit to an empty buffer? >> >> Exactly. I expected that window-min-height takes precedence over window-height. > > We could do something like the untested attached .diff. Thanks, I confirm that it works correctly. > But we really should install it only if at least two or three people > confirm that it's the expected behavior. Do you think it's a too big change in behavior that might break some existing configs?