GNU bug report logs - #34957
26.1; Minibuffer sometimes shrinks unexpectedly

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Markus Triska <triska@HIDDEN>; Keywords: confirmed; dated Sat, 23 Mar 2019 18:02:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34957 <at> debbugs.gnu.org:


Received: (at 34957) by debbugs.gnu.org; 9 Jul 2019 16:13:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 12:13:58 2019
Received: from localhost ([127.0.0.1]:33950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hkskg-0005hb-A9
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2019 12:13:58 -0400
Received: from quimby.gnus.org ([80.91.231.51]:48914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hkske-0005hS-Ri
 for 34957 <at> debbugs.gnu.org; Tue, 09 Jul 2019 12:13:57 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hkskb-00072C-1n; Tue, 09 Jul 2019 18:13:55 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Markus Triska <triska@HIDDEN>
Subject: Re: bug#34957: 26.1; Minibuffer sometimes shrinks unexpectedly
References: <m2sgvdmpw3.fsf@HIDDEN>
Date: Tue, 09 Jul 2019 18:13:52 +0200
In-Reply-To: <m2sgvdmpw3.fsf@HIDDEN> (Markus Triska's message of "Sat,
 23 Mar 2019 19:01:16 +0100")
Message-ID: <87v9wbrxrz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Markus Triska <triska@HIDDEN> writes: > Please start
 Emacs with "emacs -Q", and then evaluate the form: > > (with-selected-window
 (minibuffer-window) > (erase-buffer) > (insert (propertize "hello" 'face
 '(:height 3.0))) > (read-key) > (re [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34957
Cc: 34957 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Markus Triska <triska@HIDDEN> writes:

> Please start Emacs with "emacs -Q", and then evaluate the form:
>
>     (with-selected-window (minibuffer-window)
>       (erase-buffer)
>       (insert (propertize "hello" 'face '(:height 3.0)))
>       (read-key)
>       (read-key)
>       (insert (propertize " there!" 'face '(:height 3.0)))
>       (read-key)
>       (erase-buffer))
>
> What I observe is:
>
>     1) "hello" is displayed in the minibuffer, and the minibuffer
>        grows so that the text is entirely visible
>     2) when I then press a key, the minibuffer unexpectedly shrinks,
>        and the same text is now no longer fully visible
>     3) when I then press another key, " there!" is added,
>        and the minibuffer is grown again

I can confirm that this bug is still present in Emacs 27.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34957; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Mar 2019 18:01:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 23 14:01:30 2019
Received: from localhost ([127.0.0.1]:55766 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h7kxW-0001yS-6s
	for submit <at> debbugs.gnu.org; Sat, 23 Mar 2019 14:01:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54263)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <triska@HIDDEN>) id 1h7kxU-0001yG-Et
 for submit <at> debbugs.gnu.org; Sat, 23 Mar 2019 14:01:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:55153)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <triska@HIDDEN>) id 1h7kxP-0003aU-9D
 for submit <at> debbugs.gnu.org; Sat, 23 Mar 2019 14:01:23 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40408)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1h7kxO-0004Kc-89
 for bug-gnu-emacs@HIDDEN; Sat, 23 Mar 2019 14:01:23 -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 <triska@HIDDEN>) id 1h7kxN-0003Yd-9a
 for bug-gnu-emacs@HIDDEN; Sat, 23 Mar 2019 14:01:22 -0400
Received: from metalevel.at ([78.46.218.83]:53160)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <triska@HIDDEN>) id 1h7kxN-0003WT-0j
 for bug-gnu-emacs@HIDDEN; Sat, 23 Mar 2019 14:01:21 -0400
Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1])
 by metalevel.at (Postfix) with ESMTP id 1B1D1A0205
 for <bug-gnu-emacs@HIDDEN>; Sat, 23 Mar 2019 19:01:18 +0100 (CET)
Received: by mt-mbpro.localdomain (Postfix, from userid 501)
 id 74F28F0E7B9; Sat, 23 Mar 2019 19:01:16 +0100 (CET)
From: Markus Triska <triska@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1; Minibuffer sometimes shrinks unexpectedly
Date: Sat, 23 Mar 2019 19:01:16 +0100
Message-ID: <m2sgvdmpw3.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Please start Emacs with "emacs -Q", and then evaluate the form:

    (with-selected-window (minibuffer-window)
      (erase-buffer)
      (insert (propertize "hello" 'face '(:height 3.0)))
      (read-key)
      (read-key)
      (insert (propertize " there!" 'face '(:height 3.0)))
      (read-key)
      (erase-buffer))

What I observe is:

    1) "hello" is displayed in the minibuffer, and the minibuffer
       grows so that the text is entirely visible
    2) when I then press a key, the minibuffer unexpectedly shrinks,
       and the same text is now no longer fully visible
    3) when I then press another key, " there!" is added,
       and the minibuffer is grown again

What I expect is that throughout the whole interaction, the minibuffer
consistently stay at the required size to show the entire text.

In addition, when I remove the first or second read-key call above,
i.e., when I instead evaluate the form:

    (with-selected-window (minibuffer-window)
      (erase-buffer)
      (insert (propertize "hello" 'face '(:height 3.0)))
      (read-key)
      (insert (propertize " there!" 'face '(:height 3.0)))
      (read-key)
      (erase-buffer))

then the minibuffer indeed does stay at the expected size throughout.
Hence, the size of the minibuffer unexpectedly depends on whether
read-key is invoked once or twice.

Thank you and all the best,
Markus


In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars)
 of 2018-09-22 built on mt-computer
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000

Configured features:
XPM JPEG TIFF GIF PNG GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LCMS2





Acknowledgement sent to Markus Triska <triska@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34957; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Jul 2019 16:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.