From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67715: 28.2; Minibuffer content is sometimes unexpectedly partially hidden Date: Fri, 08 Dec 2023 22:35:20 +0200 Message-ID: <838r64zb3r.fsf@gnu.org> References: <87plzg5xff.fsf@metalevel.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67715@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 08 21:36:06 2023 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 1rBhZt-0009dS-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Dec 2023 21:36:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBhZh-0006QH-Mf; Fri, 08 Dec 2023 15:35:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBhZg-0006PO-2o for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 15:35:52 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBhZe-000339-Jr for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 15:35:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBhZr-0008TW-06 for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 15:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Dec 2023 20:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67715 X-GNU-PR-Package: emacs Original-Received: via spool by 67715-submit@debbugs.gnu.org id=B67715.170206775732542 (code B ref 67715); Fri, 08 Dec 2023 20:36:02 +0000 Original-Received: (at 67715) by debbugs.gnu.org; 8 Dec 2023 20:35:57 +0000 Original-Received: from localhost ([127.0.0.1]:46285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBhZk-0008Sl-DW for submit@debbugs.gnu.org; Fri, 08 Dec 2023 15:35:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBhZi-0008SK-8U; Fri, 08 Dec 2023 15:35:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBhZP-0002PY-1f; Fri, 08 Dec 2023 15:35:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WmIkrL3JP/JUJF9rPyoHUm8vDODtpy2wKT1WdvBbiOg=; b=ip88V6slgXAa OFTV7XnroF9c9a4h3Yaj5bsBCSUyUINZFoilGudgvloxiGPqxYn92hbyy/DbXp7HomT4oWYKHISnc B6ZWJyupeIzVFSTDhCWoKUZIIsbPm4R38E40wM3yPTt+oX53u4uJes09txIjIOqCvE8paJ5N94xxV atL94RmXombFv64fi9qOeaduHGlc6MnO5rCDtyCevC9axiDi9qIHOTcAaeVf6S6uJcP921E1PVG1L z685zM94bKKpVtK3p4dxrko3tt3k7MW19tS34jZO6ttm9h+TNBcavX47XODpq08aV/OmX0JI2yIzg CggbQD2v8+JFZah3AyUgiA==; In-Reply-To: <87plzg5xff.fsf@metalevel.at> (message from Markus Triska on Fri, 08 Dec 2023 20:03:32 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275804 Archived-At: tags 67715 wontfix thanks > From: Markus Triska > Date: Fri, 08 Dec 2023 20:03:32 +0100 > > To reproduce the issue, please start Emacs with: > > $ emacs -Q > > Then put the following form in the *scratch* buffer and evaluate it with > C-x e: > > (let ((f (selected-frame))) > (with-selected-frame (make-frame) > (switch-to-buffer (get-buffer-create "other"))) > (select-frame-set-input-focus f) > (let ((win (get-buffer-window "other" t))) > (when win > (with-selected-window win > (recenter 0))) > (with-selected-window (minibuffer-window) > (unwind-protect > (progn > (setq-local face-remapping-alist `((default :height 2.0))) > (insert "hello") > (read-key)) > (erase-buffer))))) > > "hello" is shown in the minibuffer, but it is partially hidden. > > For comparison, in Emacs 28.1, "hello" is fully visible. > > Can you reproduce this issue, and if possible, could you please restore > the behaviour of Emacs 28.1 and earlier versions for this example? The change which caused this cannot be reverted, since it will reintroduce a worse bug (bug#24285). Why did you expect the mini-window to resize in this case? Emacs doesn't resize a window just because you enlarge a font shown in that window, which makes some of the text invisible because it not longer fits into the window's dimensions. The automatic resizing of the mini-window is reserved for its uses to prompt the user and to show echo-area messages, whereas your snippet just uses it as a normal window showing some buffer. So I don't think we will change this behavior, and you will need to find another way of ensuring the enlarged text is visible, in your real-life use case. Sorry.