From unknown Sun Jun 15 08:21:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35006 <35006@debbugs.gnu.org> To: bug#35006 <35006@debbugs.gnu.org> Subject: Status: 27.0.50; Minibuffer sometimes unexpectedly does not grow Reply-To: bug#35006 <35006@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:21:34 +0000 retitle 35006 27.0.50; Minibuffer sometimes unexpectedly does not grow reassign 35006 emacs submitter 35006 Markus Triska severity 35006 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 13:41:57 2019 Received: (at submit) by debbugs.gnu.org; 26 Mar 2019 17:41:57 +0000 Received: from localhost ([127.0.0.1]:60515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8q5D-00019J-6B for submit@debbugs.gnu.org; Tue, 26 Mar 2019 13:41:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8q5A-00018x-At for submit@debbugs.gnu.org; Tue, 26 Mar 2019 13:41:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:54865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8q54-0006x3-Pe for submit@debbugs.gnu.org; Tue, 26 Mar 2019 13:41:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8q53-0002Mq-QP for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 13:41:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8psU-0001hl-W3 for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 13:28:47 -0400 Received: from metalevel.at ([78.46.218.83]:58690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8psU-0001hL-NY for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2019 13:28:46 -0400 Received: from mts-Mac-mini.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id B5D74A01FB for ; Tue, 26 Mar 2019 18:28:44 +0100 (CET) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 4F564457977; Tue, 26 Mar 2019 18:31:03 +0100 (CET) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Minibuffer sometimes unexpectedly does not grow Date: Tue, 26 Mar 2019 18:31:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 78.46.218.83 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Please start Emacs with "emacs -Q", and then evaluate in the *scratch* buffer the following form: (with-selected-window (minibuffer-window) (erase-buffer) (insert (propertize "hello" 'face '(:height 2.0))) (read-key) (erase-buffer)) This shows "hello" in the minibuffer, and the minibuffer grows as expected. Please press a key (or C-g) to continue. Next, please make a frame, say "F", with the form: (make-frame '((name . "F"))) In F, please press: M-x C-g This simply enters and exits the minibuffer. Then, in the original frame, evaluate again the form above, i.e.: (with-selected-window (minibuffer-window) (erase-buffer) (insert (propertize "hello" 'face '(:height 2.0))) (read-key) (erase-buffer)) Unexpectedly, the minibuffer is now no longer grown in the (selected) frame where this form is evaluated (again), and therefore the inserted text is now not fully visible, in contrast to the first time. In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.0.0, X toolkit, Xaw scroll bars) of 2018-11-15 built on mt-computer Repository revision: b4eb908f858284a7962851fd99c94598f76afa6f Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 14:41:13 2019 Received: (at 35006) by debbugs.gnu.org; 26 Mar 2019 18:41:13 +0000 Received: from localhost ([127.0.0.1]:60549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8r0a-0004b4-Va for submit@debbugs.gnu.org; Tue, 26 Mar 2019 14:41:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8r0X-0004aj-Mx for 35006@debbugs.gnu.org; Tue, 26 Mar 2019 14:41:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8r0O-0002lU-33; Tue, 26 Mar 2019 14:41:00 -0400 Received: from [176.228.60.248] (port=4596 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h8r0M-0000WN-Bl; Tue, 26 Mar 2019 14:40:59 -0400 Date: Tue, 26 Mar 2019 20:41:04 +0200 Message-Id: <83mulhlbr3.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-reply-to: (message from Markus Triska on Tue, 26 Mar 2019 18:31:03 +0100) Subject: Re: bug#35006: 27.0.50; Minibuffer sometimes unexpectedly does not grow References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35006 Cc: 35006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Markus Triska > Date: Tue, 26 Mar 2019 18:31:03 +0100 > > Please start Emacs with "emacs -Q", and then evaluate in the > *scratch* buffer the following form: > > (with-selected-window (minibuffer-window) > (erase-buffer) > (insert (propertize "hello" 'face '(:height 2.0))) > (read-key) > (erase-buffer)) > > This shows "hello" in the minibuffer, and the minibuffer grows as > expected. You didn't say how to evaluate that; there's more than one way. If I evaluate with "M-x eval-region RET", the mini-window doesn't grow; if I evaluate with "C-x C-e" or C-j after the closing parenthesis, it does grow. So it sounds like one doesn't need such a complex recipe, the different behavior is visible already on the first evaluation. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 27 13:55:36 2019 Received: (at 35006) by debbugs.gnu.org; 27 Mar 2019 17:55:36 +0000 Received: from localhost ([127.0.0.1]:33533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Cm0-0001SU-0o for submit@debbugs.gnu.org; Wed, 27 Mar 2019 13:55:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Cly-0001SH-KF for 35006@debbugs.gnu.org; Wed, 27 Mar 2019 13:55:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9Cls-0005Se-Ta; Wed, 27 Mar 2019 13:55:29 -0400 Received: from [176.228.60.248] (port=2864 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h9Clo-0007W6-On; Wed, 27 Mar 2019 13:55:25 -0400 Date: Wed, 27 Mar 2019 19:55:32 +0200 Message-Id: <837eckkxrf.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-reply-to: (message from Markus Triska on Tue, 26 Mar 2019 18:31:03 +0100) Subject: Re: bug#35006: 27.0.50; Minibuffer sometimes unexpectedly does not grow References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35006 Cc: 35006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Markus Triska > Date: Tue, 26 Mar 2019 18:31:03 +0100 > > Please start Emacs with "emacs -Q", and then evaluate in the > *scratch* buffer the following form: > > (with-selected-window (minibuffer-window) > (erase-buffer) > (insert (propertize "hello" 'face '(:height 2.0))) > (read-key) > (erase-buffer)) > > This shows "hello" in the minibuffer, and the minibuffer grows as > expected. Please press a key (or C-g) to continue. > > Next, please make a frame, say "F", with the form: > > (make-frame '((name . "F"))) > > In F, please press: > > M-x C-g > > This simply enters and exits the minibuffer. > > Then, in the original frame, evaluate again the form above, i.e.: > > (with-selected-window (minibuffer-window) > (erase-buffer) > (insert (propertize "hello" 'face '(:height 2.0))) > (read-key) > (erase-buffer)) > > Unexpectedly, the minibuffer is now no longer grown in the (selected) > frame where this form is evaluated (again), and therefore the inserted > text is now not fully visible, in contrast to the first time. I think you expect resize-mini-windows to do what it was never designed to do. This feature is supposed to resize mini-windows for the purposes of interacting with the user, i.e. for displaying messages in the echo-area, and for prompting the user for input and receiving input in response. You are doing something different: you insert arbitrary text into a mini-window's buffer, which is a normal buffer operation not specific to mini-windows. The text you insert is displayed as part of normal redisplay of all the windows, not as user interaction via the mini-window. So in that case, the mini-window is just like any other window, and those don't resize automatically to accommodate the text you inserted when they are redisplayed. Maybe it's a flaw that should be fixed by enhancing the design and making the implementation follow suit, but currently the code works as designed, AFAICT. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 27 17:00:12 2019 Received: (at 35006) by debbugs.gnu.org; 27 Mar 2019 21:00:12 +0000 Received: from localhost ([127.0.0.1]:33582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Fed-0005mv-Se for submit@debbugs.gnu.org; Wed, 27 Mar 2019 17:00:12 -0400 Received: from metalevel.at ([78.46.218.83]:46826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9Feb-0005mm-SI for 35006@debbugs.gnu.org; Wed, 27 Mar 2019 17:00:10 -0400 Received: by metalevel.at (Postfix, from userid 1000) id BF39FA03CB; Wed, 27 Mar 2019 22:00:07 +0100 (CET) From: Markus Triska To: Eli Zaretskii Subject: Re: bug#35006: 27.0.50; Minibuffer sometimes unexpectedly does not grow References: <837eckkxrf.fsf@gnu.org> Date: Wed, 27 Mar 2019 22:00:07 +0100 In-Reply-To: <837eckkxrf.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 27 Mar 2019 19:55:32 +0200") Message-ID: <87ftr82fu0.fsf@metalevel.at> User-Agent: Emacs/24.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35006 Cc: 35006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > I think you expect resize-mini-windows to do what it was never > designed to do. I was relying on the guarantee outlined in the info material: The minibuffer=E2=80=99s window is normally a single line; it grows automatically if the contents require more space. In the case I posted, the contents indeed require more space, but unfortunately the minibuffer does not grow automatically. > Maybe it's a flaw that should be fixed by enhancing the design and > making the implementation follow suit, but currently the code works as > designed, AFAICT. Could you please consider supporting this feature? It would be very useful for an application I am currently working on. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 27 23:33:44 2019 Received: (at 35006) by debbugs.gnu.org; 28 Mar 2019 03:33:44 +0000 Received: from localhost ([127.0.0.1]:33715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9LnU-0000UF-FY for submit@debbugs.gnu.org; Wed, 27 Mar 2019 23:33:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h9LnN-0000Tv-LM for 35006@debbugs.gnu.org; Wed, 27 Mar 2019 23:33:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9LnH-0001nx-Dp; Wed, 27 Mar 2019 23:33:31 -0400 Received: from [176.228.60.248] (port=2734 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h9LnF-0006dv-Ly; Wed, 27 Mar 2019 23:33:31 -0400 Date: Thu, 28 Mar 2019 05:33:27 +0200 Message-Id: <83y34zk708.fsf@gnu.org> From: Eli Zaretskii To: Markus Triska In-reply-to: <87ftr82fu0.fsf@metalevel.at> (message from Markus Triska on Wed, 27 Mar 2019 22:00:07 +0100) Subject: Re: bug#35006: 27.0.50; Minibuffer sometimes unexpectedly does not grow References: <837eckkxrf.fsf@gnu.org> <87ftr82fu0.fsf@metalevel.at> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35006 Cc: 35006@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > From: Markus Triska > Cc: 35006@debbugs.gnu.org > Date: Wed, 27 Mar 2019 22:00:07 +0100 > > Eli Zaretskii writes: > > > I think you expect resize-mini-windows to do what it was never > > designed to do. > > I was relying on the guarantee outlined in the info material: > > The minibuffer’s window is normally a single line; it grows > automatically if the contents require more space. The documentation doesn't consider the case of inserting arbitrary content in the minibuffer. > > Maybe it's a flaw that should be fixed by enhancing the design and > > making the implementation follow suit, but currently the code works as > > designed, AFAICT. > > Could you please consider supporting this feature? I will take a look, but no promises. This is something redisplay never does, for any window. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 21:06:39 2019 Received: (at control) by debbugs.gnu.org; 2 Apr 2019 01:06:39 +0000 Received: from localhost ([127.0.0.1]:40159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hB7st-0007qC-08 for submit@debbugs.gnu.org; Mon, 01 Apr 2019 21:06:39 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:38468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hB7sr-0007py-2a for control@debbugs.gnu.org; Mon, 01 Apr 2019 21:06:37 -0400 Received: by mail-qt1-f180.google.com with SMTP id d13so13332049qth.5 for ; Mon, 01 Apr 2019 18:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=aR6UFaAUzDPCwc5VOuY6PWOxVJPZ8XiWfnfqoDnnTLI=; b=BTnp1Gqfdwc7S5pMzK/DPY1GAeL5FMvBlIIwoD2BHU6d3a7XlyFPEabfPa2JSs0wQu dfJDTXwIRMftwJOs0nmc94dK3OKlJhFa+cNC5dEp4+w5mFz1VwZizTle7vYohl/xOUEx P0RGTFBCd8ySpulCgyujfES0dQoVtKj+hgkTFWjwPpg0iLQTSnpXl9g2iD+hFY7210Dz ETM4vhzeZzmosSarwe98Xc0hArS/t5HsfWofaZhi94kxDhgdNrYz86OEzaNRt3EeO19G aUobTFQm4FnBpFPGB4ExC9pbw4nocGpP5Q6Kbdx74QqIlkqOiWHwuB+PR8299RkCD5MO z26A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=aR6UFaAUzDPCwc5VOuY6PWOxVJPZ8XiWfnfqoDnnTLI=; b=gSiTCImH2XUCVvd080/Qn/ttmZ3agXZsk/2XrlrIQGgfHFf/N4rfrHvn+hVEHls47e xMqWhS1OX/J8dGKDCnHB4kTKgYImwOaZfWVFN8B0VnfYowx7DUBU6PaJKh3U6G49G4TU f+Uuvn6um+Zd0uNxHmzg1HF4/FYhBE4PQp9qVVMS1yO+yLIcCReTHK9MeOBSNs+KGQxQ 2fl613Gbbp7EJBzTAc/xf8gK95QJdgzHP3G8/mTy83Jzy+8dW7a3snMGplJEniJekNB+ 40oVBV3uigN0diqsvkKdUjE/UY66lrJqgoqi6SNjSVlZ9RWy7R6SI/Gknn7fx6lN3PFt B+qA== X-Gm-Message-State: APjAAAWKuKnBP3ntmuIJ3hrpb7DIigvOIAf3+oiXd2ydU4DfjNu1StAz eUfbEFUFMpQQZi+zrGJjZmPxcGuZ X-Google-Smtp-Source: APXvYqwHyy9KjXgulZa5KnRLurvzb48jAnNNyVisSaubYirZSaxVVwDRL84Yq4LyweSHdmZpPAEthQ== X-Received: by 2002:a0c:8a61:: with SMTP id 30mr54540132qvu.110.1554167191447; Mon, 01 Apr 2019 18:06:31 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id w20sm5733517qkj.31.2019.04.01.18.06.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 18:06:30 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #35006 Date: Mon, 01 Apr 2019 21:06:29 -0400 Message-ID: <87h8bhgqqy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 35006 wishlist quit