From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35006: 27.0.50; Minibuffer sometimes unexpectedly does not grow Date: Wed, 27 Mar 2019 19:55:32 +0200 Message-ID: <837eckkxrf.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="12315"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35006@debbugs.gnu.org To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 27 18:56:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9CmZ-0002z2-7V for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Mar 2019 18:56:11 +0100 Original-Received: from localhost ([127.0.0.1]:51571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9CmY-0001X4-4f for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Mar 2019 13:56:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9CmS-0001Wm-18 for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2019 13:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9CmR-0005rb-0m for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2019 13:56:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9CmQ-0005rP-Qm for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2019 13:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h9CmQ-0001TA-ID for bug-gnu-emacs@gnu.org; Wed, 27 Mar 2019 13:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Mar 2019 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35006 X-GNU-PR-Package: emacs Original-Received: via spool by 35006-submit@debbugs.gnu.org id=B35006.15537093365614 (code B ref 35006); Wed, 27 Mar 2019 17:56:02 +0000 Original-Received: (at 35006) by debbugs.gnu.org; 27 Mar 2019 17:55:36 +0000 Original-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 Original-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 Original-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 Original-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 In-reply-to: (message from Markus Triska on Tue, 26 Mar 2019 18:31:03 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156861 Archived-At: > 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.