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: Sun, 10 Dec 2023 07:44:34 +0200 Message-ID: <83jzpmwr0d.fsf@gnu.org> References: <87plzg5xff.fsf@metalevel.at> <838r64zb3r.fsf@gnu.org> <874jgrvotz.fsf@metalevel.at> <83wmtnyffx.fsf@gnu.org> <878r63vjal.fsf@metalevel.at> <83sf4bwbpy.fsf@gnu.org> <87r0jvf88j.fsf@metalevel.at> <83msujw2ks.fsf@gnu.org> <87y1e3axo9.fsf@metalevel.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67715@debbugs.gnu.org To: Markus Triska , martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 10 06:46:04 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 1rCCdg-0000qc-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Dec 2023 06:46:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rCCdX-0000jx-Pe; Sun, 10 Dec 2023 00:45:56 -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 1rCCdR-0000fD-63 for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 00:45:49 -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 1rCCdQ-0006nm-Tq for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 00:45:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rCCde-0006JT-GX for bug-gnu-emacs@gnu.org; Sun, 10 Dec 2023 00:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Dec 2023 05:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67715 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 67715-submit@debbugs.gnu.org id=B67715.170218711324186 (code B ref 67715); Sun, 10 Dec 2023 05:46:02 +0000 Original-Received: (at 67715) by debbugs.gnu.org; 10 Dec 2023 05:45:13 +0000 Original-Received: from localhost ([127.0.0.1]:49339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCCcr-0006I0-C4 for submit@debbugs.gnu.org; Sun, 10 Dec 2023 00:45:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCCcn-0006Hh-OM for 67715@debbugs.gnu.org; Sun, 10 Dec 2023 00:45:12 -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 1rCCcT-0006KW-5H; Sun, 10 Dec 2023 00:44:49 -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=hZHCEaM28AnDLgcMvHQarTc2dRu7bUQIwCfNPtOyJvw=; b=hSuQ8rZhM1F6 di81EGG8vnycfAzyAv5WaZjZW3RXmjFvlx+IfnqMFtPyjY4kghWI7vJ3Sz/LntERXbDEshHOXgjEY yAbJ267Itq7vdVGv+5MfMsm5eIXwBidepTWHNa+CDM/8IxqpacPsuz7MNmAOGYFUOMuOG7x2COvS8 fs3OtconNtB4N+gjtj4nqv+K+f72Mj+/NIbIGNzoqVlUgJjcIwmTahZ8X/LugClYVgbMY2VB638eQ RnPa8MIeO8Jhld071uFC7ttZL5Xu6o70BQ6ZJZMwTBC4XTjnXZMIBXNkJYaCAAe6vtpk2ws538cRT cVnMqFQDuBPN/YisQz946w==; In-Reply-To: <87y1e3axo9.fsf@metalevel.at> (message from Markus Triska on Sat, 09 Dec 2023 22:11:34 +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:275895 Archived-At: > From: Markus Triska > Cc: 67715@debbugs.gnu.org > Date: Sat, 09 Dec 2023 22:11:34 +0100 > > Eli Zaretskii writes: > > > I'm not sure I understood, but if you put a face on some text, and > > then type at the end of that text, the additional text you type is > > supposed to "inherit" that face, no? > > I mean: When my program runs, I do not type anything myself, but the > program simulates that something is being typed by me. For example, when > I ask the program to perform one step, it may simulate that M-x is > pressed, by inserting the text "M-x " in the minibuffer, and then wait > for further instructions (by me). When I then ask the program to perform > the next step, it may simulate that "emacs-uptime" is being typed, and > thus incrementally add the letters "e", "m", "a", ... to the minibuffer > while waiting for a short amount of time after each letter, until (in > total) "M-x emacs-uptime" appears in the minibuffer. The goal is that we > can simulate the effects of typing while minimizing manual effort. > > This all already works as expected in Emacs versions before 28.2, and it > works to a large extent also in later versions. The only remaining > problem I have with Emacs 28.2 and later versions is that in situations > like the one I posted, the minibuffer is no longer adequately grown to > fully display the text it contains (because the program wrote it there). > > With your snippet, I can work around a very specific case of this, where > a single string is shown in the minibuffer. For my use case though, this > is not yet enough, because my program simulates manual edits by changing > text in the minibuffer, such as adding or removing individual letters. You could perhaps use 'message'. Here's a trivial demo: (defun my-msg () (interactive) (message (propertize "something" 'face '(:height 2.0)))) (defun my-msg2 () (interactive) (message (propertize "something else" 'face '(:height 2.0)))) (global-set-key [f5] 'my-msg) (global-set-key [f6] 'my-msg2) Evaluate the above, then press F5 followed by F6. > I am therefore interested in ways to grow the minibuffer so that it is > large enough, while allowing very flexible editing operations to be > simulated in it that go beyond showing a single string. I'm showing you all the methods I can come up with. Maybe Martin or others will have better ideas (so please don't elide their addresses when replying).