From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#34957: 26.1; Minibuffer sometimes shrinks unexpectedly Date: Sat, 23 Mar 2019 19:01:16 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="130223"; mail-complaints-to="usenet@blaine.gmane.org" To: 34957@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 19:02:13 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 1h7kyC-000XlK-PS for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 19:02:12 +0100 Original-Received: from localhost ([127.0.0.1]:46277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7kyB-0004O3-PT for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Mar 2019 14:02:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7ky3-0004Nn-Pv for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7ky2-0004Vx-JT for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42225) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h7ky2-0004Tz-FB for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h7ky2-0001zQ-6c for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2019 18:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34957 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15533640907596 (code B ref -1); Sat, 23 Mar 2019 18:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Mar 2019 18:01:30 +0000 Original-Received: from localhost ([127.0.0.1]:55766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7kxW-0001yS-6s for submit@debbugs.gnu.org; Sat, 23 Mar 2019 14:01:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h7kxU-0001yG-Et for submit@debbugs.gnu.org; Sat, 23 Mar 2019 14:01:29 -0400 Original-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 ) id 1h7kxP-0003aU-9D for submit@debbugs.gnu.org; Sat, 23 Mar 2019 14:01:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7kxO-0004Kc-89 for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:01:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7kxN-0003Yd-9a for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:01:22 -0400 Original-Received: from metalevel.at ([78.46.218.83]:53160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7kxN-0003WT-0j for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2019 14:01:21 -0400 Original-Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 1B1D1A0205 for ; Sat, 23 Mar 2019 19:01:18 +0100 (CET) Original-Received: by mt-mbpro.localdomain (Postfix, from userid 501) id 74F28F0E7B9; Sat, 23 Mar 2019 19:01:16 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:156675 Archived-At: 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